CN110831246B - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN110831246B
CN110831246B CN201911095307.3A CN201911095307A CN110831246B CN 110831246 B CN110831246 B CN 110831246B CN 201911095307 A CN201911095307 A CN 201911095307A CN 110831246 B CN110831246 B CN 110831246B
Authority
CN
China
Prior art keywords
data
frame
data source
slave
equipment
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
CN201911095307.3A
Other languages
Chinese (zh)
Other versions
CN110831246A (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.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai Co 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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN201911095307.3A priority Critical patent/CN110831246B/en
Publication of CN110831246A publication Critical patent/CN110831246A/en
Application granted granted Critical
Publication of CN110831246B publication Critical patent/CN110831246B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The invention provides a data transmission method and a device, wherein the method comprises the following steps: the data source device determines a first device in the device group, and the data source device and the first device are in WIFI link; the data source device sends first data to a first device in a unicast mode, a multicast mode or a broadcast mode so that a master device receives the first data or monitors the first data so that a slave device monitors the first data, wherein the master device is a master device in a device group, the slave device is a device except the master device in the device group, and the first device is any one of the master device or the slave device; the data source equipment receives a first reply sent by the master equipment, the first reply indicates the master equipment to determine to obtain second data and/or the slave equipment to determine to obtain third data, the second data is determined by the master equipment according to the first data, and the third data is determined by the slave equipment according to the first data. The method is used for reducing the air interface bandwidth occupied by the data source equipment for sending data.

Description

Data transmission method and device
Technical Field
The embodiment of the invention relates to the technical field of communication systems, in particular to a data transmission method and device.
Background
A data source device (e.g., cell phone, computer), etc. may link a True Wireless Stereo (TWS) headset, wherein the TWS headset includes a first headset and a second headset.
In practical applications, when the data source device links the first earphone and the second earphone, if the user wears the first earphone and the second earphone, the data source device may unicast audio data to the first earphone and the second earphone, or broadcast/multicast audio data to the first earphone and the second earphone. In the above process, when the audio data is unicast to the first earphone and the second earphone, the audio data needs to occupy a larger bandwidth, which results in waste of air interface resources. Broadcasting, multicasting the audio data to the first and second earpieces is not a guarantee that the first and second earpieces receive the audio data correctly.
Disclosure of Invention
The embodiment of the invention provides a data transmission method and device. The bandwidth of the air interface occupied when the data source device sends the first data is used, and therefore reliability of data transmission among the data source device, the master device and the slave device is improved.
In a first aspect, an embodiment of the present invention provides a data transmission method, which is applied to a data source device in a data transmission system, where the data transmission system further includes a device group, where the device group includes at least two devices, and the method includes:
the data source device determines a first device in the device group, and the data source device and the first device are WiFi-linked;
the data source device sends first data to the first device in a unicast mode, a multicast mode or a broadcast mode, so that a master device receives the first data or listens to the first data, so that a slave device listens to the first data, the master device is a master device in the device group, the slave device is a device in the device group except the master device, and the first device is any one of the master device or the slave device;
the data source equipment receives a first reply sent by the master equipment, and the first reply indicates the master equipment to determine to obtain second data and/or the slave equipment to determine to obtain third data, wherein the second data is determined by the master equipment according to the first data, and the third data is determined by the slave equipment according to the first data.
In a second aspect, an embodiment of the present invention provides a data transmission method, which is applied to a first device in a device group in a data transmission system, where the device group includes at least two devices, the data transmission system further includes a data source device, and the method includes:
when the first device is a master device, the first device receives first data sent by the data source device in a unicast mode, a multicast mode or a broadcast mode, and the first device is in WiFi link with the data source device;
after the first equipment receives the first data, determining to obtain second data;
and the first device sends a first reply to the data source device according to the second data, wherein the first reply indicates that the first device determines to obtain the second data and/or determines to obtain third data by the slave device, and the third data is determined to be obtained by the slave device according to the first data.
In a third aspect, an embodiment of the present invention provides a data transmission apparatus, which is applied to a data source device in a data transmission system, where the data transmission system further includes a device group, where the device group includes at least two devices, and the apparatus includes: a determining module, a sending module and a receiving module, wherein,
the determining module is configured to determine a first device, the data source device and the first device in the device group, which are WiFi-linked;
the sending module is configured to send first data to the first device in a unicast manner, a multicast manner, or a broadcast manner, so that a master device receives the first data, or listens to the first data, so that a slave device listens to the first data, where the master device is a master device in the device group, the slave device is a device other than the master device in the device group, and the first device is a master device or any one of the slave devices;
the receiving module is configured to receive a first reply sent by a master device, where the first reply indicates that the master device determines to obtain second data and/or a slave device determines to obtain third data, where the second data is determined by the master device according to the first data, and the third data is determined by the slave device according to the first data.
In a fourth aspect, an embodiment of the present invention provides a data transmission apparatus, which is applied to a first device in a device group in a data transmission system, where the device group includes at least two devices, the data transmission system further includes a data source device, and the apparatus includes: a receiving module, a determining module and a sending module, wherein,
the receiving module is configured to receive, when the first device is a master device, first data sent by the data source device in a unicast manner, a multicast manner, or a broadcast manner, where the first device is WiFi-linked with the data source device;
the determining module is used for determining to obtain second data after receiving the first data.
The sending module is configured to send a first reply to the data source device according to the second data, where the first reply indicates that the first device determines to obtain the second data and/or that the slave device determines to obtain third data, where the third data is determined to be obtained by the slave device according to the first data.
In a fifth aspect, an embodiment of the present invention provides a data transmission apparatus, including a memory and a processor,
the processor executes program instructions in the memory for implementing the data transmission method as described above in relation to the first aspect.
In a sixth aspect, an embodiment of the present invention provides a data transmission apparatus, including a memory and a processor,
the processor executes program instructions in the memory for implementing the data transfer method of the second aspect as described above.
The data transmission method and device provided by the application comprise the following steps: the data source device determines a first device in the device group, the data source device and the first device are wirelessly linked. The data source device transmits first data to the first device. When the first device is the master device, the first earphone receives the first data sent by the data source device and then determines to obtain the second data. The slave device determines to obtain third data after listening to first data sent by the data source device to the first device. The first device sends a first reply to the data source device, the first reply indicates the master device to determine to obtain second data and/or the slave device to determine to obtain third data, the second data is determined to be obtained by the master device according to the first data, and the third data is determined to be obtained by the slave device according to the first data. The data source device receives a first reply sent by the first device. In the above process, the data source device is wirelessly linked with the first device, and the data source device sends the first data to the first device, so that bandwidth of an air interface occupied when the data source device sends the first data is saved. Further, the data source device may receive the first reply sent by the master device, thereby ensuring that the master device and the slave device determine to obtain the first data, and further improving reliability of data transmission among the data source device, the master device, and the slave device.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a data transmission method according to an embodiment of the present invention;
fig. 2 is a first flowchart illustrating a data transmission method according to an embodiment of the present invention;
fig. 3 is a second flowchart illustrating a data transmission method according to an embodiment of the present invention;
fig. 4 is a first schematic diagram of frame data transmission according to an embodiment of the present invention;
fig. 5 is a schematic diagram of frame data transmission according to an embodiment of the present invention;
fig. 6 is a third schematic diagram of frame data transmission according to an embodiment of the present invention;
fig. 7 is a fourth schematic diagram of frame data transmission according to an embodiment of the present invention;
fig. 8 is a fifth schematic diagram of frame data transmission according to an embodiment of the present invention;
fig. 9 is a sixth schematic diagram of frame data transmission according to an embodiment of the present invention;
fig. 10 is a third schematic flowchart of a data transmission method according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present invention;
fig. 12 is a first schematic structural diagram of another data transmission apparatus according to an embodiment of the present invention;
fig. 13 is a second schematic structural diagram of another data transmission device according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of another data transmission apparatus according to another embodiment of the present invention;
fig. 15 is a schematic hardware structure diagram of a data transmission device provided in the present application;
fig. 16 is a schematic diagram of a hardware structure of another data transmission device provided in the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
Fig. 1 is a schematic view of an application scenario of a data transmission method according to an embodiment of the present invention. As shown in fig. 1, includes: the data source device 101 and the device group 102, wherein the device group 102 includes N devices 103, and N is an integer greater than or equal to 2.
Wherein the data source device 101 and a device 103 are wirelessly linked. The N devices 103 are wirelessly linked with each other, or the data source device 101 and the N-1 devices 103 are wirelessly linked. It should be noted that the Wireless link is a Wireless Fidelity (WIFI) link.
In practical applications, if the data source device 101 and the N devices 103 are wirelessly linked, the data source device 101 may determine a master device among the N devices 103; or the data source device is wirelessly connected with only one device, the N devices 103 are wirelessly connected in pairs, and the N devices 103 in the device group 102 negotiate to determine the master device. After determining the master device, the first data is sent to one device 103, so that the master device receives the first data, or listens to the first data, so that the slave device listens to the first data.
It should be noted that one device 103 wirelessly linked with the data source device 101 may be a master device, or may be a slave device, and the slave device is a device other than the master device in the device group 102.
In this application, if the first data is audio data and the device 103 is an earphone, the data source device only needs to send the audio data to the earphone, and the master device listens the first data or receives the first data, and the slave device listens the first data, thereby avoiding the problems that the data source device needs to unicast the audio data to each earphone in the prior art, which results in the waste of air interface resources of the data source device, and the like, and saving the air interface resources of the data source device.
Hereinafter, the technical means shown in the present application will be described in detail by specific examples. It should be noted that the following embodiments may be combined with each other, and the description of the same or similar contents in different embodiments is not repeated.
Fig. 2 is a first flowchart of a data transmission method according to an embodiment of the present invention. As shown in fig. 2, the data transmission method includes:
s201: the data source device determines a first device in the device group, the data source device and the first device being wirelessly linked.
Wherein, the device group comprises at least two devices. The data source equipment and the at least two pieces of equipment are wireless transceiver equipment, and the wireless link is a WIFI link.
Alternatively, the data source device may be a smartphone, a tablet computer, or the like. The devices in the device group may be True Wireless Stereo (TWS) headsets, speakers, etc.
Optionally, the first device may be a master device or a slave device.
Specifically, the master device may be the device with the largest remaining power in the device group, or the device with the largest received power. The slave device is a device in the device group other than the master device.
S202: the data source device transmits first data to the first device.
In one possible design, the data source device sends the first data to the first device in a unicast manner, a multicast manner, or a broadcast manner.
Alternatively, the first data may be audio data, audio-visual data, or the like. Specifically, the first data includes at least one frame of data, and the at least one frame of data has a respective corresponding frame identifier.
Specifically, the frame is identified as a continuous WiFi frame sequence number. For example: 1, 2, 3, etc., and others may be used.
For example, if the first data includes first frame data, second frame data, and third frame data, the frame identifier of the first frame data is "1", the frame identifier of the second frame data is "2", and the frame identifier of the third frame data is "3".
S203: when the first device is the master device, the first device receives the first data sent by the data source device and then determines to obtain the second data.
Optionally, when the first device is a slave device, the first device determines to obtain the second data after listening to the first data sent by the data source device to the first device.
S204: the slave device determines to obtain third data after listening to first data sent by the data source device to the first device.
Optionally, the first device is a master device, and when the slave device is wirelessly linked with the data source device, the slave device may receive link information between the first device and the data source device, which is sent by the data source device, and listen to the first data according to the link information. Or when the slave device is wirelessly linked with the data source device and the slave device is wirelessly linked with the first device, the slave device receives link information between the first device and the data source device, which is sent by the first device, and listens for the first data according to the link information.
Further, after the slave device determines that the third data is obtained, the slave device may send a second reply to the master device or the data source device, where the second reply includes a fifth set of frame identifiers, and a frame identifier in the fifth set of frame identifiers exists in the third data.
For example, when the slave device and the data source device are wirelessly linked, the slave device may send a second reply to the data source device, where the second reply may be a BA frame.
For example, when the slave device and the first device are wirelessly linked, the slave device may send a second reply to the first device, where the second reply is an acknowledgement frame (Confirm frame), which may be an ACK frame, a BA frame, or an Action No ACK frame.
S205: the first device sends a first reply to the data source device, the first reply indicates the master device to determine to obtain second data and/or the slave device to determine to obtain third data, the second data is determined by the master device according to the first data, and the third data is determined by the slave device according to the first data.
Optionally, when the first device and the data source device are wirelessly linked, the data source device may send a reply request (BAR frame) to the first device, and after receiving the reply request, the first device sends a first reply to the data source device.
S206: the data source device receives a first reply sent by the first device.
Specifically, after receiving the first reply, the data source device performs detection processing on the first reply, and after determining that the first reply indicates that the master device and/or the slave device successfully receives the first data, sends new data to the master device.
The data transmission method provided by the application comprises the following steps: the data source device determines a first device in the device group, the data source device and the first device being wirelessly linked. The data source device transmits first data to the first device. When the first device is the master device, the first earphone receives the first data sent by the data source device and then determines to obtain the second data. The slave device listens for first data sent by the data source device to the first device and then determines to obtain third data. The first device sends a first reply to the data source device, the first reply indicates the master device to determine to obtain second data and/or the slave device to determine to obtain third data, the second data is determined by the master device according to the first data, and the third data is determined by the slave device according to the first data. The data source device receives a first reply sent by the first device. In the above process, the data source device is wirelessly linked with the first device, and the data source device sends the first data to the first device, so that bandwidth of an air interface occupied when the data source device sends the first data is saved. Further, the data source device may receive the first reply sent by the master device, thereby ensuring that the master device and the slave device determine to obtain the first data, and further improving reliability of data transmission among the data source device, the master device, and the slave device.
On the basis of the above embodiments, the data transmission method provided by the present application is further described below by taking an example where two devices in the device group are included, and the two devices are the first headset and the second headset.
Fig. 3 is a flowchart illustrating a second data transmission method according to an embodiment of the present invention. As shown in fig. 3, when the data source device has wireless links with the first earphone and the second earphone, and the first earphone and the second earphone have (or do not have) wireless links, the data transmission method includes:
s301: the first earphone sends the state information of the first earphone to the data source equipment.
Optionally, before S301, the method may further include: the data source equipment sends a first state request to the first earphone, wherein the first state request is used for requesting the first earphone to send the state information of the first earphone.
S302: the second headset sends status information of the second headset to the data source device.
Optionally, before S302, the method may further include: and the data source equipment sends a second state request to the second earphone, wherein the second state request is used for requesting the second earphone to send the state information of the second earphone.
Optionally, the status information in S301 and S302 includes an identification of the headset, a remaining power, a received power, and the like.
Alternatively, the status information has a frame format as shown below.
Figure BDA0002268146560000081
The identification of the state information indicates that the frame data is the state information, and the identification of the earphone indicates the earphone corresponding to the state information.
Optionally, the identification of the headset may be numbered N1, N2, N3 … … Nn, etc.
S303: and the data source equipment receives the state information of the first earphone and the state information of the second earphone, and determines the master equipment and the slave equipment in the equipment group according to the state information of the first earphone and the state information of the second earphone.
In one possible design, determining the master device and the slave device in the at least two devices according to the state information corresponding to the at least two devices, includes:
and if the residual capacity and/or the received power in the state information of the first device are/is the maximum, determining the first device as a master device, and determining devices except the first device in the device group as slave devices.
In this embodiment, if the remaining power and/or the received power in the status information of the first headset is the maximum, the first headset is determined as the master device, and the second headset is determined as the slave device.
S304: and the data source equipment determines that the first earphone is the master equipment, and sends first designated information to the first earphone, wherein the first designated information is used for designating the first earphone as the master equipment.
S305: the first earphone receives the first designated information and switches to the master device according to the first designated information.
S306: and the data source equipment determines that the second earphone is the slave equipment, and sends second specified information to the second earphone, wherein the second specified information is used for specifying the second earphone as the slave equipment.
S307: the second earphone receives the second designated information and switches to the slave device according to the second designated information.
Note that the specification information in S304 to S307 has the following frame format.
Figure BDA0002268146560000082
Wherein the switching identifier indicates the device to perform the switching operation. The designated identifier indicates that the data source device designates an earphone as a slave device or a master device, or the master device actively requests the data source device to perform master-slave switching. The master-slave identity indicates that a headset is determined to be a slave or that a headset is determined to be a master.
Alternatively, the specified flag may be Request =0, or Request =1.
For example, request =0 indicates whether the data source device designates a headphone as a slave device or a master device; request =1 indicates that the master device actively requests the data source device to perform master-slave switching.
Alternatively, the Master-slave identity may be Master Role =0 or Master Role =1.
For example, master Role =0 indicates that one headphone is determined as a slave, and Master Role =1 indicates that one headphone is determined as a Master.
Specifically, when the identifier Identification =1, the identifier Request =0, and the Master/slave identifier Master Role =1 in the designation information, the data source device is instructed to designate the first earphone as the Master device.
Specifically, when the identifier Identification =1, the identifier Request =1, and the Master slave identifier Master Role =0 of the earphones in the designation information, the first earphone (Master device) may be instructed to Request the data source device to designate the first earphone as the slave device.
S308: the data source device sends link information between the first headset and the data source device to the second headset.
Optionally, the link information includes an identifier of the first headset, a MAC address, an IP address, key information, and the like.
Alternatively, the link information has a frame format as shown below.
Figure BDA0002268146560000091
S309: the data source device sends first data to the first headset.
S310: after receiving the first data sent by the data source equipment, the first earphone determines to obtain second data.
S311: and the second earphone receives the link information between the first earphone and the data source equipment, and determines to obtain third data after intercepting the first data according to the link information.
S312: and the first earphone sends a first reply to the data source equipment according to the second data, wherein the first reply comprises a fourth frame identification set, and the frame identifications in the fourth frame identification set exist in the second data.
Optionally, the first headset may reply to the first reply (specified by the data source device) immediately after receiving the data; or the first reply can be replied after the data source device receives the BAR/MU-BAR request sent by the data source device.
S313: and the second earphone sends a second reply to the data source equipment according to the third data, wherein the second reply comprises a fifth frame identification set, and the frame identifications in the fifth frame identification set exist in the third data.
Optionally, the second headset may reply to the second reply (specified by the data source device) immediately after receiving the data; or the second reply can be replied after the data source equipment receives the BAR/MU-BAR request sent by the data source equipment.
For example, the data source device may designate one earpiece (e.g., the second earpiece) to send the second reply immediately after listening to the data. And after receiving the second reply, sending a BAR frame to the first earphone, and after receiving the BAR frame, sending the first reply to the data source equipment by the first earphone. As shown in fig. 4.
For example, the data source device may also broadcast a reply request (i.e., an MU-BAR frame) to the first headset and the second headset, so that the second headset sends a second reply to the data source device after listening to the MU-BAR frame, and the first headset sends the first reply to the data source device after receiving the MU-BAR frame. As shown in fig. 5.
For example, the data source device may further send a reply request (BAR frame) to the first headset, and the first headset sends the first reply to the data source device after receiving the corresponding reply request. And the data source equipment sends a reply request (BAR frame) to the second earphone, and the second earphone receives the corresponding reply request and then replies to the data source equipment for the second time. As shown in fig. 6.
S314: and the data source equipment sends frame data corresponding to the frame identifier in the sixth frame identifier set to the first equipment according to the fourth frame identifier set, the fifth frame identifier set and the second frame identifier set of the first data, wherein the frame identifier in the sixth frame identifier set exists in the second frame identifier set and does not exist in the fourth frame identifier set and/or the fifth frame identifier set.
As shown in fig. 6, the fourth set of frame identifications of the first reply includes frame 1-frame 9, the fifth set of frame identifications of the second reply includes frame 2-frame 10, the second set of frame identifications of the first data includes frame 1-frame 10, and the sixth set of frame identifications includes frame 1 and frame 10.
S315: the first earphone sends first switching request information to the data source equipment, and the first switching request information is used for requesting master-slave switching.
S316: and the data source equipment passively sends first switching information to the first equipment according to the first switching request information, wherein the first switching information indicates that the first equipment is switched to the slave equipment.
Specifically, after receiving the first switching request information, the data source device may obtain the state information of at least two devices in the device group again, and re-determine the master device and the slave device according to the state information of the at least two devices.
S317: the first earphone receives first switching information sent by the data source equipment.
S318: the first earphone is switched to the slave equipment according to the first switching information.
S319: the data source device sends second switching information to a second earphone (slave device), and the second switching information is used for indicating that the slave device is switched to the master device.
S320: and the second earphone receives second switching information sent by the data source equipment and switches to the main equipment according to the second switching information.
In one possible design, when the first device is a master device, the data source device actively transmits first switching information to the first device, where the first switching information indicates that the first device is switched to a slave device.
Alternatively, the data source device may intermittently (or periodically) acquire the status information of the first earphone and the status information of the second earphone. If the data source device determines that the remaining power of the second earphone is the maximum or the receiving power is the maximum according to the state information of the first earphone and the state information of the second earphone, the second earphone is determined as the master device, and after the first earphone is determined as the slave device, the data source device actively sends first switching information to the first earphone, so that the first earphone switches the slave device according to the first switching information, and actively sends second switching information to the second earphone, so that the second earphone switches the master device according to the second switching information.
Fig. 4 is a first schematic diagram of frame data transmission according to an embodiment of the present invention. As shown in fig. 4, the data source device sends first data to the first earphone, where the first data includes frame 1 to frame 10, the second data received by the first earphone includes frame 1 to frame 10, the third data received by the second earphone includes frame 1 to frame 10, the data source device specifies that the second earphone sends a second reply immediately after obtaining the third data, and the data source device sends a BAR frame to the first earphone after receiving the second reply. After receiving the BAR frame, the first earpiece transmits a first reply to the data source device.
In this embodiment, the second data of the first headset may include any at least one frame data of frames 1 to 10. The third data of the second headset may include any at least one frame data of the frames 1 to 10.
Fig. 5 is a schematic diagram of frame data transmission according to an embodiment of the present invention. As shown in fig. 5, the data source device sends first data to the first earphone, where the first data includes frame 1-frame 10, the second data of the first earphone includes frame 1-frame 10, the third data of the second earphone includes frame 1-frame 10, the data source device broadcasts a reply request (i.e., MU-BAR frame) to the first earphone and the second earphone, the second earphone listens to the MU-BAR frame and sends a second reply to the data source device, and the first earphone sends the first reply to the data source device after receiving the MU-BAR frame.
In this embodiment, the second data of the first headset may include any at least one frame data of frames 1 to 10. The third data of the second headset may include any at least one frame data of the frames 1 to 10.
Fig. 6 is a schematic diagram of frame data transmission according to the embodiment of the present invention. As shown in fig. 6, the data source device transmits first data to the first headphone, wherein the first data includes frames 1-10. For example, the second data of the first headset comprises frames 1-9 and the third data of the second headset comprises frames 2-10. The data source device sends reply requests (BAR frames) to the first earphone and the second earphone respectively, after the first earphone receives the corresponding reply requests, the first reply sent to the data source device comprises frames 1-9, and after the second earphone receives the corresponding reply requests, the second reply sent to the data source device comprises frames 2-10. The data source device sends data including the frame 1 and the frame 10 to the first earphone according to the first reply and the second reply, so that the first earphone receives the frame 10 and the second earphone senses the frame 1.
Specifically, in the diagrams of fig. 4 to 6, the solid-line block diagram represents a transmitted frame, and the dashed-line block diagram represents a received frame.
In the above-described embodiment of fig. 3, the data source device has a wireless link with the first earphone, the data source device has a wireless link with the second earphone, and the first earphone and the second earphone have no (or no) wireless link. The data source equipment sends the first data to the first earphone (main equipment), and the second earphone listens to the first data, so that the bandwidth of an air interface occupied by the data source equipment when sending the first data is saved. Furthermore, when the data source device is wirelessly linked with the second earphone, the second earphone directly sends a second reply to the data source device, and the reliability of data transmission is guaranteed.
On the basis of the above embodiments, the following takes two devices in a device group as an example, where the two devices are a first headset and a second headset, and the data transmission method provided by the present application is further described in detail.
Fig. 7 is a third flowchart illustrating a data transmission method according to an embodiment of the present invention. As shown in fig. 7, when the data source device has a wireless link with the first earphone, the first earphone has a wireless link with the second earphone, and there is no (or there is) wireless link between the data source device and the second earphone, the data transmission method includes:
s701: the first headset sends state information of the first headset and link information between the first headset and the data source device to the second headset.
The link information has the same content as the link information mentioned in S308, and is not described again.
S702: the second headset sends the state information of the second headset to the first headset.
S703: and the first earphone is determined as the main equipment by the first earphone according to the state information of the first earphone and the state information of the second earphone, and the residual capacity of the first earphone is smaller than that of the main equipment and/or the receiving power of the first earphone is smaller than that of the main equipment.
S704: and the second earphone receives the state information and the link information of the first earphone and determines the second earphone as the slave equipment according to the state information of the first earphone and the state information of the second earphone, wherein the residual capacity of the second earphone is less than that of the first earphone and/or the receiving power of the second earphone is less than that of the first earphone.
S705: the data source device sends first data to the first headset.
S706: the first earphone receives the first data sent by the data source equipment and then determines to obtain second data.
S707: and the second earphone listens for the first data according to the link information between the first earphone and the data source equipment, and then determines to obtain third data.
S708: and the second earphone sends a second reply to the first earphone according to the third data, wherein the second reply comprises a fifth frame identification set, and the frame identification in the fifth frame identification set exists in the third data.
Optionally, the second reply is an acknowledgement frame (Confirm frame), which may be an ACK frame, a BA frame, an Action No ACK frame, or the like.
S709: the first earpiece receives the second reply.
S710: and the first earphone sends a first reply to the data source equipment according to the second reply and the second data, wherein the first reply comprises a first frame identification set, and the frame identification in the first frame identification set exists in the second data and the third data.
Specifically, the reply request (BAR frame) sent by the data source device before sending the first reply to the data source device sends the first reply to the data source device after receiving the reply request.
It should be noted that the first reply is a BA frame, and the BA frame includes a first frame identifier set, and the frame identifiers in the first frame identifier set include frame identifiers of frame data successfully received by both the first earphone and the second earphone (i.e., are present in the second data and the third data).
For example, the second reply is an acknowledgement frame (Confirm frame) including a frame identification of the third data (frame 2-frame 10), the frame identification of the second data of the first headset includes frame 1-frame 9, and the first reply transmitted to the data-source device after the first headset receives the BAR frame transmitted by the data-source device is a BA frame including frame 2-frame 9. As shown in fig. 8.
As shown in fig. 8, the fifth set of frame identifications for the second reply includes frame 2-frame 10.
For example, if the second earphone does not listen to any data, the second earphone does not send the second reply to the first earphone, and the first earphone does not receive the second reply, and after the first earphone receives the BAR frame sent by the data source device, the first earphone does not send the first reply to the data source device, as shown in fig. 9.
For example, the second earpiece gets the third data, and the second earpiece sends the second reply to the first earpiece. However, if the first headset does not receive the second reply, the first headset does not send the first reply to the data source device after receiving the BAR frame sent by the data source device. As shown in fig. 10.
S711: the data source device receives a first reply sent by the first earphone.
Specifically, if the data source device does not receive the first reply, the data source device retransmits the first data to the first earphone.
S712: and the data source equipment sends frame data corresponding to the frame identifier in the third frame identifier set to the first equipment according to the first frame identifier set and the second frame identifier set of the first data, wherein the frame identifier in the third frame identifier set exists in the second frame identifier set and does not exist in the first frame identifier set.
As shown in fig. 8, the first set of frame identifications of the first reply includes frame 2-frame 9, the second set of frame identifications of the first data includes frame 1-frame 10, and the third set of frame identifications includes frame 1 and frame 10.
S713: the first device switches to the slave device according to the state information of the first device and the state information of the slave device.
S714: and the first earphone sends third switching information to the second earphone, wherein the third switching information is used for indicating the second earphone to be switched into the master equipment.
Specifically, when the remaining power of the second earphone is greater than the remaining power of the first earphone and/or the receiving power of the second earphone is greater than the receiving power of the first earphone, the second switching information is sent to the second earphone. The second switching information is used for indicating that the second earphone is switched to the master device.
Optionally, in the negotiation process of the master device and the slave device in S701-S704, a master-slave automatic switching period (for example, 100 ms) may be negotiated, each period automatically switches the master-slave identity, the master device is switched into the slave device, and the slave device is switched into the master device, without performing the switching procedure in S713 each time.
S715: and the second earphone receives the third switching information and switches to the main equipment according to the third switching information.
S716: the data source device transmits new data (fourth data) to the first headphone.
Wherein the fourth data is consecutive to the first data.
Specifically, the fourth data may be audio data, or audio-video data, and may also be other data.
S717: and the first earphone receives the fourth data to determine fifth data.
S718: and the second earphone listens to the fourth data to determine that sixth data is obtained.
S719: the first headset sends a third reply to the second headset according to the fifth data.
S720: the second earpiece receives the third reply.
S721: and the second earphone sends a fourth reply to the data source equipment according to the sixth data and the third reply.
It should be noted that the execution process of S716 to S721 is similar to the execution process of S705 to S710, and the execution process of S716 to S721 is not described herein again.
Fig. 8 is a schematic diagram of frame data transmission according to a fourth embodiment of the present invention. As shown in fig. 8, the data source device transmits first data to the first headphone, wherein the first data includes frames 1-10, the second data includes frames 1-9, and the third data includes frames 2-10. The second reply sent by the second headset to the first headset includes frame 2-frame 10. And after receiving the second reply, the first headset determines that the first reply contains frames 2-9 in combination with frames 1-9 to send to the data source device.
Further, the data source device receives the first reply, and sends frame data corresponding to the frame 10 and frame data corresponding to the frame 1 to the first earphone according to the frame 2-frame 9 and the frame 1-frame 10, so that the first earphone receives the data corresponding to the frame 10 and the second earphone senses the data corresponding to the frame 1.
In this application, when the device group includes N earphones (N is an integer greater than or equal to 2), if the first earphone is the master device, the first earphone sends a first reply to the data source device after receiving replies from the N-1 earphones.
Fig. 9 is a fifth schematic diagram of frame data transmission according to an embodiment of the present invention. As shown in fig. 9, the data source device sends first data to the first earpiece, where the first data includes frames 1-10, the second data of the first earpiece includes frames 1-10, the second earpiece does not listen to any data, and the second earpiece does not send a second reply to the first earpiece. The first earphone does not receive the second reply, and after receiving the reply request (BAR frame) sent by the data source device, the first earphone does not send the first reply to the data source device.
Further, the data source device does not receive the first reply, and then the data source device retransmits the first data to the first earphone.
Alternatively, the second data of the first headset may be any at least one frame data of the frames 1 to 10.
In this application, when the device group includes N (N is an integer greater than or equal to 2) earphones, if the first earphone is the master device, the first earphone sends a first reply to the data source device after receiving replies from the N-1 earphones.
Fig. 10 is a fourth schematic diagram of frame data transmission according to the embodiment of the present invention. As shown in fig. 10, the data source device sends first data to the first earphone, where the first data includes frame 1-frame 10, the second data of the first earphone includes frame 1-frame 10, the third data of the second earphone includes frame 1-frame 10, the second earphone sends a second reply to the first earphone, and the first earphone does not send the first reply to the data source device after receiving the BAR frame sent by the data source device if the first earphone does not receive the second reply.
Further, if the data source device does not receive the first reply, the data source device retransmits the first data (including frame 1-frame 10) to the first headset.
Alternatively, the second data of the first headset may include any at least one frame data of the frames 1 to 10. The third data of the second headset may include any at least one frame data of the frames 1 to 10.
It should be noted that, when the device group includes N (N is an integer greater than or equal to 2) earphones, if the first earphone is the master device, the first earphone sends the first reply to the data source device after receiving the reply information of the N-1 earphones.
Specifically, in the diagrams of fig. 8-10, the solid-line block diagram represents a transmitted frame, the dashed-line block diagram represents a received frame, and the X-symbol represents no received frame or no transmitted frame.
In the embodiment of fig. 7, the data source device has a wireless link with the first earphone, the first earphone has a wireless link with the second earphone, the data source device has no (or has) wireless link with the second earphone, the data source device sends the first data to the first earphone (the master device), and the second earphone listens to the first data, so that bandwidth of an air interface occupied when the data source device sends the first data is saved. Furthermore, when the first earphone and the second earphone are in wireless link, the second earphone (slave device) listens to the first data and then sends a second reply to the first earphone, and the first earphone sends the first reply to the data source device, so that the reliability of data transmission is guaranteed.
It should be noted that, in the embodiments of fig. 2 to fig. 10, the frame transmission manner between the data source device and at least two devices in the device group is based on any manner of the WIFI protocol (for example, through an ACTION frame transmission manner). Specifically, a vendor specific Action frame (vendor specific Action frame) is newly added in the present application, and is applied to the data transmission system in the present application, and the vendor specific Action frame has the following format:
Figure BDA0002268146560000161
note that the Action frame is one of management frames in the WiFi.
Fig. 11 is a schematic structural diagram of a data transmission device according to an embodiment of the present invention. As shown in fig. 12, the data transmission device 10 is applied to a data source apparatus, and the data transmission device 10 includes: a determination module 11, a sending module 12 and a receiving module 13, wherein,
the determining module 11 is configured to determine a first device in the device group, where the data source device and the first device are wirelessly linked;
the sending module 12 is configured to send first data to the first device, so that a master device receives the first data, or listens to the first data, so that a slave device listens to the first data, where the master device is a master device in the device group, the slave device is a device other than the master device in the device group, and the first device is any one of the master device and the slave device;
the receiving module 13 is configured to receive a first reply sent by a master device, where the first reply indicates that the master device determines to obtain second data and/or that a slave device determines to obtain third data, where the second data is determined by the master device according to the first data, and the third data is determined by the slave device according to the first data.
The apparatus provided in this embodiment may be configured to execute the method executed by the data source device, and the implementation principle and the technical effect are similar, which are not described herein again.
In one possible embodiment, the transmitting module 12 has a processor for:
and sending the first data to the first equipment in a unicast mode, a multicast mode or a broadcast mode.
In another possible design, two or more devices in the device group are wirelessly connected, where the first reply includes a first set of frame identifiers, and a frame identifier in the first set of frame identifiers exists in the second data and the third data, and the sending module 12 is further configured to:
after receiving a first reply sent by a master device, the data source device sends frame data corresponding to a frame identifier in a third frame identifier set to the first device according to the first frame identifier set and a second frame identifier set of the first data, where the frame identifier in the third frame identifier set exists in the second frame identifier set and does not exist in the first frame identifier set.
In another possible design, the receiving module 13 is configured to enable the data source device and other devices except the first device to have wireless links, and after the data source device sends first data to the first device, receive a first reply sent by a master device and a second reply sent by a slave device, where the first reply includes a fourth set of frame identifications, and the second reply includes a fifth set of frame identifications;
the sending module 12 is configured to send, to the first device, frame data corresponding to a frame identifier in a sixth frame identifier set according to the fourth frame identifier set, the fifth frame identifier set, and the second frame identifier set of the first data;
wherein frame identifications in the fourth set of frame identifications are present in the second data, frame identifications in the fifth set of frame identifications are present in the third data, and frame identifications in the sixth set of frame identifications are present in the second set of frame identifications, absent from the fourth set of frame identifications and/or the fifth set of frame identifications.
In another possible design, the sending module 12 is further configured to:
and when the data source equipment does not receive the first reply, retransmitting the first data to the first equipment.
In another possible design, the receiving module 13 is further configured to receive, before the data source device sends the first data to the first device, state information corresponding to each of the at least two devices sent by the at least two devices;
the determining module 11 is further configured to determine a master device and a slave device in the at least two devices according to the respective corresponding status information of the at least two devices.
In another possible design, the determining module 11 is specifically configured to determine, according to the state information corresponding to each of the at least two devices, a master device and a slave device in the at least two devices, and includes:
and if the residual capacity and/or the received power in the state information of the first device are/is the maximum, determining the first device as a master device, and determining devices except the first device in the device group as slave devices.
After determining the first device as a master device and determining devices in the device group other than the first device as slave devices, the method further comprises:
and sending link information between the first device and the data source device to a slave device, so that the slave device can determine to obtain the third data after listening to the first data according to the link information.
In another possible design, the receiving module 13 is also used to,
when the first equipment is master equipment, receiving first switching request information sent by the first equipment, wherein the first switching request information is used for requesting master-slave switching;
and passively sending first switching information to the first equipment according to the first switching request information, wherein the first switching information indicates that the first equipment is switched to slave equipment.
In another possible design, the sending module is further configured to, when the first device is a master device, actively send first switching information to the first device, where the first switching information indicates that the first device is switched to a slave device.
In another possible design, the sending module is further configured to send second handover information to a slave device, where the second handover information indicates that the slave device is handed over to a master device.
In another possible design, the wireless link is a WIFI link.
In another possible design, the data source device and the at least two devices are wireless transceiver devices.
The apparatus provided in this embodiment may be configured to execute the method executed by the data source device, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 12 is a first schematic structural diagram of another data transmission device according to an embodiment of the present invention. The data transmission apparatus 20 shown in fig. 12 is applied to a first device in a device group in a data transmission system, the device group including at least two devices, the data transmission system further including a data source device, the apparatus 20 including: a receiving module 21, a determining module 22 and a sending module 33, wherein,
the receiving module 21 is configured to receive first data sent by the data source device when the first device is a master device, where the first device is wirelessly linked with the data source device;
the determining module 22 is configured to determine that the second data is obtained after receiving the first data.
The sending module 23 is configured to send a first reply to the data source device according to the second data, where the first reply indicates that the first device determines to obtain the second data and/or that the slave device determines to obtain third data, where the third data is determined to be obtained by the slave device according to the first data.
The apparatus provided in this embodiment may be configured to execute the method executed by the first device, and the implementation principle and the technical effect are similar, which are not described herein again.
In one possible design, the receiving module 21 is specifically configured to:
and determining to obtain the second data after receiving the first data sent by the data source device to the first device in a unicast mode, a multicast mode or a broadcast mode.
In a possible design, two or more devices in the device group are wirelessly linked, and the receiving module 21 is specifically configured to receive a second reply sent by the slave device, where the second reply indicates the third data determined by the slave device,
the sending module 23 is specifically configured to send a first reply to the data source device according to the second reply and the second data.
In another possible design, the first reply includes a first set of frame identifications, and frame identifications in the first set of frame identifications are present in the second data and the third data;
the receiving module 21 is configured to receive, by the first device, frame data corresponding to a frame identifier in a third frame identifier set sent by the data source device after sending the first reply to the data source device according to the second data, where the frame identifier in the third frame identifier set exists in the second frame identifier set and does not exist in the first frame identifier set, and the frame identifier in the second frame identifier set exists in the first data.
In another possible design, the receiving module 21 is configured to,
receiving frame data corresponding to frame identifiers in a sixth frame identifier set sent by the data source equipment;
wherein the frame identifier in the sixth frame identifier set exists in a second frame identifier set, does not exist in a fourth frame identifier set and/or a fifth frame identifier set, the frame identifier in the second frame identifier set exists in the first data, the frame identifier in the fourth frame identifier set exists in the second data, and the fifth frame identifier set exists in the third data.
In another possible design, the receiving module 21 is configured to receive the first data retransmitted by the data source device.
In another possible design, the sending module 23 is configured to wirelessly link the data source device and the devices in the device group except the first device, and before the first device sends the first reply to the data source device according to the second data, send the state information of the first device to the data source device, so that the data source device determines the first device as a master device according to the state information of the first device and the state information of a slave device;
wherein the first device has the largest remaining capacity and/or the largest received power.
In another possible design, the sending module 23 is configured to wirelessly link two devices in the device group, where the first device sends the state information of the first device to a slave device before sending the first reply to the data source device according to the second data;
the receiving module 21 is configured to receive status information of the slave device sent by the slave device;
the determining module 23 is configured to determine the first device as a master device according to the state information of the slave device and the state information of the first device, where a remaining power of the first device is maximum and/or a received power is maximum.
In another possible design, the sending module 23 is configured to,
and sending link information between the first device and the data source device to devices in the device group except the first device, so that the devices in the device group except the first device listen to the first data.
In another possible design, the receiving module 21 is configured to receive first switching information actively sent by the data source device when the first device is a master device, where the first switching information indicates that the first device is switched to a slave device.
In another possible design, the data source device and the devices in the device group except the first device are wirelessly linked, and the sending module 23 is further configured to send status information of the first device to the data source device, so that the data source device determines the first device as a slave device according to the status information of the first device and the status information of the devices in the device group except the first device;
and the residual capacity of the first equipment is less than the residual capacity of the main equipment and/or the receiving power of the first equipment is less than the receiving power of the main equipment.
In another possible design, two or more devices in the device group are wirelessly linked, and the receiving module 21 is further configured to receive status information sent by devices in the device group other than the first device;
the determining module 22 is further configured to determine a slave device for the first device according to the status information sent by the devices in the device group except the first device and the status information of the first device;
and the residual capacity of the first equipment is less than the residual capacity of the main equipment and/or the receiving power of the first equipment is less than the receiving power of the main equipment.
In another possible design, the receiving module 21 is further configured to receive link information between the data source device and a master device, where the link information is sent by the data source device.
In another possible design, the receiving module 21 is further configured to receive second switching information sent by a data source device, where the second switching information is used to switch the first device to a master device.
In another possible design, the receiving module 21 is further configured to receive third switching information sent by a master device, where the third switching information is used to indicate that the first device is switched to the master device.
In another possible design, the wireless link is a WIFI link.
In another possible design, the data source device and the at least two devices are wireless transceiver devices.
The apparatus provided in this embodiment may be configured to execute the method executed by the first device, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 13 is a schematic structural diagram of another data transmission apparatus according to an embodiment of the present invention. The data transmission device 20 shown in fig. 13 further includes: a switching module 24 for, among other things,
the sending module 23 is configured to send first switching request information to the data source device when the first device is a master device, where the first switching request information is used to request master-slave switching;
the receiving module 21 is configured to receive first switching information passively sent by the data source device according to the first switching request information;
the switching module 24 is configured to perform master-slave switching according to the first switching information, where the first switching information indicates that the first device is switched to a slave device.
The apparatus provided in this embodiment may be configured to execute the method executed by the first device, and the implementation principle and the technical effect are similar, which are not described herein again.
In another possible design, the switching module 24 is further configured to, where the first device is a master device, switch to a slave device according to the state information of the first device and the state information of the slave device;
the sending module 23 is configured to send third switching information to the slave device, where the third switching information is used to instruct the slave device to switch to the master device.
Fig. 14 is a schematic structural diagram of another data transmission device according to another embodiment of the present invention. The data transmission device 20 shown in fig. 14 further includes: the listening module 24 is adapted to, among other things,
in another possible design, the apparatus further includes: the listening module (25) is adapted to,
the interception module 25 is configured to, when the first device is a slave device, intercept the first data sent by the data source device to a master device;
the determining module 22 is configured to determine to obtain the third data after listening to the first data;
the sending module 23 is configured to send, by the first device, a second reply to the master device or to the data source device according to the third data, where the second reply includes a fifth frame identifier set, and a frame identifier in the fifth frame identifier set exists in the third data.
The apparatus provided in this embodiment may be configured to execute the method executed by the first device, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 15 is a schematic diagram of a hardware structure of a data transmission device according to the present application. Referring to fig. 15, the communication device 30 includes: a memory 31, a processor 32, a receiver 33, and a transmitter 34, wherein the memory 31 and the processor 32 are in communication; illustratively, the memory 31, the processor 32, the transceiver 33 and the transmitter 34 may communicate through a communication bus 35, the memory 31 is used for storing a computer program, and the processor 32 executes the computer program to realize the above-mentioned data transmission method. For example, processor 32 performs the relevant steps performed by the data source device in the above-described method embodiments.
Fig. 16 is a schematic diagram of a hardware structure of another data transmission device provided in the present application. Referring to fig. 16, the data transmission device 40 includes: a memory 41, a processor 42, a receiver 43, a transmitter 44, and a listener 45, wherein the memory 41 and the processor 42 are in communication; illustratively, the memory 41, the processor 42, the receiver 43, the transmitter 44 and the listener 45 may communicate via a communication bus 46, the memory 41 being configured to store a computer program, the processor 42 executing the computer program to implement the above-mentioned data transmission method. For example, the processor 42 performs the relevant steps performed by the first device in the method embodiments described above.
The application provides a data transmission system, comprising: the data source device sends first data to first equipment in the equipment group, and the data source device is WIFI-linked with the first equipment.
All or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The aforementioned program may be stored in a readable memory. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned memory (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid state disk, magnetic tape, floppy disk, optical disk, and any combination thereof.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the embodiments of the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to encompass such modifications and variations.
In the present application, the terms "include" and variations thereof may refer to non-limiting inclusions; the term "or" and variations thereof may mean "and/or". The terms "first," "second," and the like in this application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. In the present application, "a plurality" means two or more. "and/or" describes the association relationship of the associated object, indicating that there may be three relationships, for example, a and/or B, which may indicate: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (31)

1. A data transmission method, applied to a data source device in a data transmission system, wherein the data transmission system further includes a device group, and the device group includes at least two devices, and the method includes:
the data source device determines a first device in the device group, and the data source device and the first device are WiFi-linked;
the data source device sends first data to the first device in a unicast mode, a multicast mode or a broadcast mode, so that a master device receives the first data or listens to the first data, so that a slave device listens to the first data, the master device is a master device in the device group, the slave device is a device in the device group except the master device, and the first device is any one of the master device or the slave device;
the data source equipment receives a first reply sent by master equipment, and the first reply indicates the master equipment to determine to obtain second data and/or the slave equipment to determine to obtain third data, wherein the second data is determined by the master equipment according to the first data, and the third data is determined by the slave equipment according to the first data;
at least two devices in the device group are connected to each other via WiFi, the first reply includes a first frame identifier set, a frame identifier in the first frame identifier set exists in the second data and the third data, and after the data source device receives the first reply sent by the master device, the method further includes:
and sending frame data corresponding to a frame identifier in a third frame identifier set to the first device according to the first frame identifier set and the second frame identifier set of the first data, wherein the frame identifier in the third frame identifier set exists in the second frame identifier set and does not exist in the first frame identifier set.
2. The method of claim 1, wherein the data source device and the other devices except the first device have WIFI links, and wherein after the data source device sends the first data to the first device, the method further comprises:
receiving a first reply sent by a master device and a second reply sent by a slave device, wherein the first reply comprises a fourth frame identification set, and the second reply comprises a fifth frame identification set;
sending frame data corresponding to the frame identifier in a sixth frame identifier set to the first device according to the fourth frame identifier set, the fifth frame identifier set and the second frame identifier set of the first data;
wherein a frame identifier in the fourth set of frame identifiers is present in the second data, a frame identifier in the fifth set of frame identifiers is present in the third data, and a frame identifier in the sixth set of frame identifiers is present in the second set of frame identifiers, absent from the fourth set of frame identifiers and/or the fifth set of frame identifiers.
3. The method of claim 1, further comprising:
and when the data source equipment does not receive the first reply, retransmitting the first data to the first equipment.
4. The method of claim 1, wherein before the data source device sends the first data to the first device, the method further comprises:
receiving state information which is sent by the at least two devices and corresponds to the at least two devices respectively;
and determining a master device and a slave device in the at least two devices according to the state information corresponding to the at least two devices respectively.
5. The method according to claim 4, wherein the determining, in the at least two devices, a master device and a slave device according to the status information corresponding to each of the at least two devices comprises:
and if the residual capacity and/or the received power in the state information of the first device are/is the maximum, determining the first device as a master device, and determining devices except the first device in the device group as slave devices.
6. The method of claim 5, wherein after determining the first device as a master device and determining devices in the device group other than the first device as slave devices, the method further comprises:
and sending link information between the first equipment and the data source equipment to slave equipment so that the slave equipment monitors the first data according to the link information and then determines to obtain the third data.
7. The method of claim 1, wherein when the first device is a master device, the method further comprises:
receiving first switching request information sent by the first equipment, wherein the first switching request information is used for requesting master-slave switching;
and passively sending first switching information to the first equipment according to the first switching request information, wherein the first switching information indicates that the first equipment is switched to slave equipment.
8. The method of claim 1, wherein when the first device is a master device, the method further comprises:
actively sending first switching information to the first device, wherein the first switching information indicates that the first device is switched to be a slave device.
9. The method of claim 7 or 8, further comprising:
and sending second switching information to the slave equipment, wherein the second switching information indicates that the slave equipment is switched to the master equipment.
10. The method of claim 1, wherein the data source device, the at least two devices are wireless transceiver devices.
11. A data transmission method applied to a first device in a device group in a data transmission system, the device group including at least two devices, the data transmission system further including a data source device, the method comprising:
when the first device is a master device, the first device receives first data sent by the data source device in a unicast mode, a multicast mode or a broadcast mode, and the first device is WIFI-linked with the data source device;
after the first equipment receives the first data, determining to obtain second data;
the first device sends a first reply to the data source device according to the second data, the first reply indicates that the first device determines to obtain the second data and/or determines to obtain third data by the slave device, and the third data is determined to be obtained by the slave device according to the first data;
two-by-two WIFI of at least two devices in the device group are linked, and the first device sends a first reply to the data source device according to the second data, including:
receiving a second reply sent by the slave device, the second reply indicating the third data determined by the slave device,
and sending a first reply to the data source equipment according to the second reply and the second data.
12. The method of claim 11, wherein the first reply comprises a first set of frame identifications, wherein a frame identification in the first set of frame identifications exists in the second data and the third data, and wherein after the first device sends the first reply to the data source device according to the second data, the method further comprises:
receiving frame data corresponding to a frame identifier in a third frame identifier set sent by a data source device, where the frame identifier in the third frame identifier set exists in a second frame identifier set and does not exist in the first frame identifier set, and the frame identifier in the second frame identifier set exists in the first data.
13. The method of claim 11,
receiving frame data corresponding to the frame identifier in a sixth frame identifier set sent by the data source device;
wherein the frame identifier in the sixth frame identifier set exists in a second frame identifier set, does not exist in a fourth frame identifier set and/or a fifth frame identifier set, the frame identifier in the second frame identifier set exists in the first data, the frame identifier in the fourth frame identifier set exists in the second data, and the fifth frame identifier set exists in the third data.
14. The method of claim 11, further comprising:
and receiving the first data retransmitted by the data source equipment.
15. The method of claim 11, wherein the data source device is WIFI-linked with a device in the device group other than the first device, and wherein before the first device sends a first reply to the data source device according to the second data, the method further comprises:
sending the state information of the first device to the data source device, so that the data source device determines the first device as a master device according to the state information of the first device and the state information of a slave device;
wherein the first device has the largest remaining capacity and/or the largest received power.
16. The method of claim 11, wherein at least two devices in the device group are WIFI-two linked, and wherein before the first device sends a first reply to the data source device according to the second data, the method further comprises:
transmitting status information of the first device to a slave device;
receiving state information of the slave device sent by the slave device;
and determining the first equipment as a master equipment according to the state information of the slave equipment and the state information of the first equipment, wherein the residual capacity and/or the received power of the first equipment are/is maximum.
17. The method of claim 16, further comprising:
and sending link information between the first device and the data source device to devices except the first device in the device group so as to enable the devices except the first device in the device group to listen to the first data.
18. The method of claim 15, wherein when the first device is a master device, the method further comprises:
sending first switching request information to the data source equipment, wherein the first switching request information is used for requesting master-slave switching;
receiving first switching information passively sent by the data source equipment according to the first switching request information;
and performing master-slave switching according to the first switching information, wherein the first switching information indicates that the first equipment is switched to slave equipment.
19. The method of claim 15, wherein when the first device is a master device, the method further comprises:
receiving first switching information actively sent by the data source equipment, wherein the first switching information indicates that the first equipment is switched to slave equipment.
20. The method of claim 16, wherein the first device is a master device, the method further comprising:
switching the first device to a slave device according to the state information of the first device and the state information of the slave device;
and sending third switching information to the slave equipment, wherein the third switching information is used for indicating the slave equipment to be switched to the master equipment.
21. The method of claim 11, further comprising:
when the first device is a slave device, the first device monitors the first data sent by the data source device to a master device;
after the first device listens to the first data, determining to obtain the third data;
and the first device sends a second reply to a master device or the data source device according to the third data, wherein the second reply comprises a fifth frame identification set, and the frame identification in the fifth frame identification set exists in the third data.
22. The method of claim 21, wherein the data source device is WIFI-linked with a device in the device group other than the first device, the method further comprising:
sending the state information of the first device to the data source device, so that the data source device determines the first device as a slave device according to the state information of the first device and the state information of devices in the device group except the first device;
and the residual capacity of the first equipment is less than the residual capacity of the main equipment and/or the receiving power of the first equipment is less than the receiving power of the main equipment.
23. The method of claim 21, wherein at least two devices in the device group are WIFI-two linked, the method further comprising:
receiving state information sent by devices in the device group except the first device;
determining a slave device for the first device according to the state information sent by the devices in the device group except the first device and the state information of the first device;
and the residual capacity of the first equipment is less than the residual capacity of the main equipment and/or the receiving power of the first equipment is less than the receiving power of the main equipment.
24. The method of claim 22, further comprising:
and receiving link information between the data source equipment and the main equipment, which is sent by the data source equipment.
25. The method of claim 22, further comprising:
and receiving second switching information sent by a data source device, wherein the second switching information is used for switching the first device to a master device.
26. The method of claim 23, further comprising:
and receiving third switching information sent by the master device, wherein the third switching information is used for indicating that the first device is switched to the master device.
27. The method of claim 11, wherein the data source device and the at least two devices are wireless transceiver devices.
28. A data transmission apparatus, applied to a data source device in a data transmission system, the data transmission system further including a device group, the device group including at least two devices, the apparatus comprising: a determining module, a sending module and a receiving module, wherein,
the determining module is configured to determine a first device, the data source device, and the first device WIFI link in the device group;
the sending module is configured to send first data to the first device in a unicast manner, a multicast manner, or a broadcast manner, so that a master device receives the first data, or listens to the first data, so that a slave device listens to the first data, where the master device is a master device in the device group, the slave device is a device other than the master device in the device group, and the first device is any one of the master device and the slave device;
the receiving module is configured to receive a first reply sent by a master device, where the first reply indicates that the master device determines to obtain second data and/or a slave device determines to obtain third data, where the second data is determined by the master device according to the first data, and the third data is determined by the slave device according to the first data;
the sending module is further configured to: after receiving a first reply sent by a master device, the data source device sends frame data corresponding to a frame identifier in a third frame identifier set to the first device according to a first frame identifier set and a second frame identifier set of the first data, where the frame identifier in the third frame identifier set exists in the second frame identifier set and does not exist in the first frame identifier set.
29. A data transmission apparatus, for use in a first device of a group of devices in a data transmission system, the group of devices including at least two devices, the data transmission system further including a data source device, the apparatus comprising: a receiving module, a determining module and a sending module, wherein,
the receiving module is configured to receive first data sent by the data source device in a unicast manner, a multicast manner, or a broadcast manner when the first device is a master device, where the first device and the data source device are WIFI-linked;
the determining module is used for determining to obtain second data after receiving the first data;
the sending module is configured to send a first reply to the data source device according to the second data, where the first reply indicates that the first device determines to obtain the second data and/or that the slave device determines to obtain third data, where the third data is determined to be obtained by the slave device according to the first data;
the receiving module is specifically configured to receive a second reply sent by the slave device, where the second reply indicates the third data determined to be obtained by the slave device,
the sending module is specifically configured to send a first reply to the data source device according to the second reply and the second data.
30. A data transmission device, comprising a memory and a processor,
the processor executes program instructions in the memory for implementing the data transmission method of any one of claims 1-10.
31. A data transmission device, comprising a memory and a processor,
the processor executes program instructions in the memory for implementing the data transfer method of any one of claims 11-27.
CN201911095307.3A 2019-11-11 2019-11-11 Data transmission method and device Active CN110831246B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911095307.3A CN110831246B (en) 2019-11-11 2019-11-11 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911095307.3A CN110831246B (en) 2019-11-11 2019-11-11 Data transmission method and device

Publications (2)

Publication Number Publication Date
CN110831246A CN110831246A (en) 2020-02-21
CN110831246B true CN110831246B (en) 2023-04-18

Family

ID=69553831

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911095307.3A Active CN110831246B (en) 2019-11-11 2019-11-11 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN110831246B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111601344A (en) * 2020-04-27 2020-08-28 南京中感微电子有限公司 Wireless communication method and device
CN111356089B (en) 2020-05-22 2020-11-20 深圳市汇顶科技股份有限公司 Data communication method, system, electronic device, chip and storage medium
WO2021232389A1 (en) * 2020-05-22 2021-11-25 深圳市汇顶科技股份有限公司 Data communication method and system, electronic device, chip, and storage medium
CN114422559A (en) * 2021-12-31 2022-04-29 深圳海翼智新科技有限公司 Device control method and device, electronic device and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107889257B (en) * 2016-09-30 2021-10-26 华为技术有限公司 Data transmission method and related equipment
CN106535081A (en) * 2016-12-20 2017-03-22 建荣半导体(深圳)有限公司 Bluetooth mode switching method and device, communication system and stereophonic audio transmission method
CN107018484B (en) * 2017-06-01 2019-11-12 建荣半导体(深圳)有限公司 Bluetooth communication method, its device, Bluetooth system and bluetooth equipment
CN109547072B (en) * 2017-09-22 2021-03-30 华为技术有限公司 Method of channel sounding, communication device, and computer-readable storage medium
WO2019205054A1 (en) * 2018-04-26 2019-10-31 万魔声学科技有限公司 Wireless audio communication method and apparatus, and audio playback device and system
JP7137635B2 (en) * 2018-04-28 2022-09-14 万魔声学科技有限公司 Headphone wireless communication method, main headphone, slave headphone and headphone system

Also Published As

Publication number Publication date
CN110831246A (en) 2020-02-21

Similar Documents

Publication Publication Date Title
CN110831246B (en) Data transmission method and device
US11246022B2 (en) Bluetooth headset device and communication method for the same
CN106162511B (en) D2D relay node determination and use method and device
CN109392092B (en) Method and related equipment for sending paging message
CN109218995B (en) Communication method, communication device, computer readable medium and electronic equipment
EP4075701A1 (en) Data receiving method and apparatus for bluetooth headset, device, and storage medium
WO2016202227A1 (en) Selection and notification method and device for layer 2 link identifier
EP4030846A1 (en) Method and device for multicasting network slice
WO2016106755A1 (en) Method, device and system for supporting multimedia broadcast multicast service transmission
WO2021004136A1 (en) Multicast feedback resource determination method and apparatus, storage medium and user equipment
JP2023536000A (en) Method and apparatus for multicast and broadcast services
CN110798861B (en) Method for sending system information, CU entity and DU entity
KR102333306B1 (en) Data communication method and system, electronic device, chip and storage medium
CN110769445B (en) Data transmission method and device
CN114845280A (en) Data transmission method and device, electronic equipment and storage medium
JP6472889B2 (en) Terminal device, network device, and group communication method
CN111586666B (en) Device discovery method, device and system
CN108702745B (en) Method and device for data transmission by using public resource
CN107682874B (en) Method and equipment for service transmission
CN112533154A (en) Data processing method, device and storage medium
WO2015070421A1 (en) Method, device and system for transmitting data of wireless access network
EP4354773A1 (en) Information transmission method and apparatus
CN113498024B (en) Transmission channel changing method, access network equipment and core network equipment
US20230354003A1 (en) Sidelink discovery with user equipment to user equipment relay
CN107211405B (en) Data transmission method and device

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