CN110769445B - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN110769445B
CN110769445B CN201911032141.0A CN201911032141A CN110769445B CN 110769445 B CN110769445 B CN 110769445B CN 201911032141 A CN201911032141 A CN 201911032141A CN 110769445 B CN110769445 B CN 110769445B
Authority
CN
China
Prior art keywords
data
slave
master
data source
earphone
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
CN201911032141.0A
Other languages
Chinese (zh)
Other versions
CN110769445A (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 CN201911032141.0A priority Critical patent/CN110769445B/en
Publication of CN110769445A publication Critical patent/CN110769445A/en
Application granted granted Critical
Publication of CN110769445B publication Critical patent/CN110769445B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0205Traffic management, e.g. flow control or congestion control at the air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Abstract

The embodiment of the invention provides a data transmission method and a data transmission device, which are applied to data source equipment in a data transmission system, wherein the data transmission system also comprises an equipment group, the equipment group comprises at least two equipment, and the at least two equipment are in wireless link in pairs, and the method comprises the following steps: the data source device determines a first device in the device group, and the first device is in wireless link with the data source device; the data source device sends first data to the first device, so that the first data is sent to the slave device when the first device is the master device, the master device is the master device in the device group, and the slave device is the device except the master device in the device group; the data source device receives a first reply sent by the main device, and the first reply indicates the main device to receive the first data. The method is used for saving air interface resources of the data source equipment, and further guaranteeing the transmission reliability of data between the data source equipment and at least two pieces of equipment.

Description

Data transmission method and device
Technical Field
The embodiment of the invention relates to the field of wireless communication, in particular to a data transmission method and device.
Background
A data source device (e.g., cell phone, computer) or the like may link a real wireless stereo (True Wireless Stereo, TWS) earpiece, wherein the TWS earpiece includes a first earpiece and a second earpiece.
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, resulting in waste of air interface resources. Broadcasting, multicasting, and receiving audio data to the first earpiece and the second earpiece is not guaranteed to correctly receive audio data.
Disclosure of Invention
The embodiment of the invention provides a data transmission method and a data transmission device, which are used for saving air interface resources of data source equipment and further guaranteeing the transmission reliability of the data between the data source equipment and at least two equipment.
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, where the at least two devices are linked in a wireless manner, and the method includes:
The data source device determines a first device in the device group, and the first device and the data source device are in wireless link;
the data source device sends first data to a first device, so that the first data is forwarded to a slave device when the first device is a master device, wherein the master device is the master device in the device group, and the slave device is a device except the master device in the device group;
the data source device receives a first reply sent by the main device, and the first reply indicates that the main device receives the first data.
In a second aspect, an embodiment of the present invention provides a data transmission method, applied to a first device in a device group in a data transmission system, where the device group includes at least two devices, the at least two devices are wirelessly linked in pairs, and the data transmission system further includes a data source device, where the method includes:
the first equipment receives first data sent by data source equipment, and the first equipment is in wireless link with the data source equipment;
when the first device is a master device, a first reply is sent to the data source device, and the first reply indicates that the first device receives the first data;
The first device sends the first data to slave devices in the device group, wherein the slave devices are devices except the first device in the device group;
the first device receives a second reply sent from the slave device, the second reply indicating receipt of the first data by the slave device.
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, where the at least two devices are wirelessly linked in pairs, and the apparatus includes: a determining module, a transmitting module and a receiving module, wherein,
the determining module is used for determining a first device in the device group, and the first device is in wireless link with the data source device;
the sending module is used for sending first data to a first device, so that the first data is sent to a slave device when the first device is the master device, wherein the master device is the master device in the device group, and the slave device is a device except the master device in the device group;
the receiving module is configured to receive a first reply sent by the master device, where the first reply indicates that the master device receives 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 at least two devices are wirelessly linked in pairs, and the data transmission system further includes a data source device, where the apparatus includes: a receiving module, a transmitting module, wherein,
the receiving module is used for receiving first data sent by the data source equipment;
the sending module is configured to send a first reply to the data source device when the first device is a master device, where the first reply indicates that the first device receives the first data;
the sending module is further configured to send the first data to a slave device, where the slave device is a device of the device group other than the first device;
the receiving module is further configured to receive a second reply sent by the slave device, where the second reply indicates that the slave device receives 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 a data transmission method as described in any of the above first methods.
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 the data transmission method of any of the second method above.
The data transmission method and device provided by the embodiment of the invention comprise the following steps: the data source device determines a first device in the device group, and the first device is in wireless link with the data source device; the data source device sends first data to the first device; when the first device is a master device, the first device sends a first reply to the data source device, and the first reply indicates that the first device receives first data; the data source equipment receives a first reply sent by the first equipment; the first device sends first data to the slave devices, and the slave devices are devices except the first device in the device group; receiving first data sent by a first device from the device; after receiving the first data, the slave device sends a second reply to the first device, wherein the second reply indicates that the first device receives the first data; the first device receives a second reply sent from the device. In the process, the data source equipment only needs to send the first data to the main equipment, so that the air interface resources of the data source equipment are saved. Further, the master device sends a first reply to the data source device, and the slave device sends a second reply to the master device, so that the reliability of the first data transmission is guaranteed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it will be obvious that the drawings in the following description are some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art.
Fig. 1 is a schematic diagram of an application scenario of a data transmission method provided by an example;
fig. 2 is a flowchart of a data transmission method according to an embodiment of the present invention;
fig. 3 is a second flowchart of a data transmission method according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a data transmission method according to an embodiment of the present invention;
fig. 5 is a flow chart diagram of a data transmission method according to an embodiment of the present invention;
fig. 6 is a flowchart of a data transmission method according to an embodiment of the present invention;
fig. 7 is a frame transmission schematic diagram of a data transmission method according to an embodiment of the present invention;
fig. 8 is a second frame transmission schematic diagram of a data transmission method according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a data transmission device according to an embodiment of the present invention;
Fig. 10 is a schematic structural diagram of another data transmission device according to an embodiment of the present invention;
fig. 11 is a schematic diagram of a second data transmission device according to another embodiment of the present invention;
fig. 12 is a schematic diagram of another data transmission device according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of another data transmission device according to an embodiment of the present invention;
fig. 14 is a schematic hardware structure of a data transmission device provided in the present application;
fig. 15 is a schematic hardware structure of another data transmission device provided in the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a schematic diagram of an application scenario of a data transmission method provided by an example. As shown in fig. 1, includes: a data source device 101, and a device group 102, wherein the device group 102 includes a plurality of devices 103.
Wherein the data source device 101 is wirelessly linked to the at least one device 103 via a wireless network, and the plurality of devices 103 are also wirelessly linked to each other via the wireless network. Specifically, the wireless network is a wireless fidelity (Wireless Fidelity, abbreviated as WIFI) network.
In practical applications, if the data source device 101 may have a wireless link with the devices 103 in the device group 102, the data source device 101 may determine a master device among the devices 103 in the device group 102; if the data source device 101 has a wireless connection with only one of the devices 103, the master device is internally determined by the device group 102. After determining the master device, the data source device 101 sends the first data to the master device and forwards the first data by the master device to the slave devices, wherein the slave devices are devices other than the master device in the device group 102.
In the 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 main earphone, so that the problems that in the prior art, the data source device needs to unicast the audio data to each earphone, air interface resources of the data source device are wasted and the like are avoided, and the air interface resources of the data source device are saved.
The technical scheme shown in the application is described in detail through specific embodiments. It should be noted that the following embodiments may be combined with each other, and for the same or similar matters, the description will not be repeated in different embodiments.
Fig. 2 is a flowchart illustrating 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 first device being wirelessly linked to the data source device.
Optionally, the device group comprises at least two devices, wherein the at least two devices are wirelessly linked to each other.
In the present application, the data source device and at least two devices are wireless transceiver devices.
For example, the data source device may be a smart phone, tablet computer, or the like.
For example, the at least two devices may be real wireless stereo (True Wireless Stereo, TWS) headphones, speakers, or the like.
Alternatively, the first device may be a master device, or may be a slave device.
Optionally, when the first device is a master device, the first device may be a device with the largest remaining power in the device group or a device with the largest received power. The slave device is a device other than the master device in the device group.
In one possible design, the wireless link is a WIFI link.
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, audiovisual data or the like.
In the present application, the first data includes at least one frame of data, each frame of data has a corresponding frame identifier, and the frame identifiers of the at least one frame of data are continuous.
For example, the frame identification of at least one frame of data may number consecutive math 1, 2, 3, etc.
Specifically, the first data includes first frame data, second frame data, and third frame data, where a frame identifier of the first frame data may be "1", a frame identifier of the second frame data may be "2", and a frame identifier of the third frame data may be "3".
It should be noted that, in the data transmission manner based on the WIFI protocol, the frame identifier is a frame sequence number of the WIFI protocol.
S203: when the first device is a master device, the first device sends a first reply to the data source device, and the first reply indicates that the first device receives first data.
Optionally, after receiving the reply request information sent by the data source device, the first device sends a first reply to the data source device.
It should be noted that, after receiving the first data, the first device may Buffer at least one frame data included in the first data into a Buffer (Buffer).
S204: the data source device receives a first reply sent by the first device.
Optionally, if the data source device does not receive the first reply, the data source device sends the first data to the first device again, where the first reply is an acknowledgement frame (such as ACK/BA, etc.).
Further, after receiving the first reply, the data source device continues to send the second data to the first device. Wherein the second data and the first data are consecutive.
Alternatively, the second data may be the same data as the first data type, for example, may be audio data, or audio-video data, or the like.
S205: the first device transmits first data to the slave device, which is a device other than the first device in the device group.
S206: the slave device receives first data sent by the first device.
S207: the slave device receives the first data and then sends a second reply to the first device, the second reply indicating that the slave device received the first data.
S208: the first device receives a second reply sent from the device.
Optionally, if the first device does not receive the second reply, the first device sends the first data to the slave device again. Wherein the second reply is an acknowledgement frame (e.g., ACK/BA, etc.).
The data transmission method provided by the embodiment of the invention comprises the following steps: the data source device determines a first device in the device group, and the first device is in wireless link with the data source device; the data source device sends first data to the first device; when the first device is a master device, the first device sends a first reply to the data source device, and the first reply indicates that the first device receives first data; the data source equipment receives a first reply sent by the first equipment; the first device sends first data to the slave devices, and the slave devices are devices except the first device in the device group; receiving first data sent by a first device from the device; after receiving the first data, the slave device sends a second reply to the first device, wherein the second reply indicates that the first device receives the first data; the first device receives a second reply sent from the device. In the process, the data source equipment only needs to send the first data by the main equipment, so that the air interface resources of the data source equipment are saved. Further, the master device sends a first reply to the data device, and the slave device sends a second reply to the master device, so that the reliability of the first data transmission is guaranteed.
On the basis of the above embodiment, the data transmission method of the present application will be further described below by taking an example that two devices in the device group are included, and the two devices are a first earphone and a second earphone. Specifically, please refer to fig. 3.
Fig. 3 is a second flowchart of a data transmission method according to an embodiment of the present invention. As shown in fig. 3, when the first earphone and the second earphone are respectively wirelessly linked with the data source device, the data transmission method includes:
s301: the first earphone sends state information of the first earphone to the data source device.
Optionally, before the first earphone sends the state information of the first earphone to the data source device, the method may further include: the data source device sends a first status request to the first earphone, wherein the first status request is used for requesting the first earphone to send status information of the first earphone to the data source device.
S302: the second earphone sends state information of the second earphone to the data source device.
Optionally, before the second earphone sends the state information of the second earphone to the data source device, the method may further include: the data source device sends a second status request to the second earphone, where the second status request is used to request the second earphone to send status information of the second earphone to the data source device.
Optionally, the status information includes an identification of the device, a remaining power, a received power, and the like.
Alternatively, the status information has a frame format as shown below.
Figure BDA0002250464960000071
Specifically, the identifier of the state information is used for indicating that the frame data is the state information, and the identifier of the device is used for indicating the device corresponding to the state information.
Alternatively, the identification of the device may be N1, N2, N3, the device's etc.
S303: the data source equipment receives the state information of the first earphone and the state information of the second earphone, and determines a master equipment and a 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 a master device and a slave device in a device group based on status information sent by at least two devices includes:
if the equipment with the maximum residual electric quantity in the state information sent by the at least two equipment is determined to be the first equipment, the first equipment is determined to be the master equipment, and the equipment except the first equipment in the equipment group is determined to be the slave equipment; or alternatively, the process may be performed,
and if the device with the largest receiving power in the state information sent by the at least two devices is determined to be the first device, the first device is determined to be the master device, and the devices except the master device in the device group are determined to be the slave devices.
Specifically, if the device group includes two devices, the two devices are headphones, and if the remaining power in the state information of the first headphone is greater than the remaining power in the state information of the second headphone, determining the first headphone as a master device; or alternatively, the process may be performed,
and if the received power in the state information of the first earphone is larger than the received power in the state information of the second earphone, determining the first earphone as the main equipment.
S304: after the data source device determines that the master device in the device group is the first earphone, the data source device sends the specified information to the first earphone, and the specified information is used for specifying the first earphone as the master device.
Alternatively, the specification information has a frame format as shown below.
Figure BDA0002250464960000081
The switching identification is used for indicating the equipment to execute switching operation. The designation flag is used to instruct the data source device to designate a device as a slave or a master. The master-slave identification is used to indicate that a device is determined to be a slave device or that a device is determined to be a master device.
Alternatively, the specified identifier may be request=0, or request=1.
For example, request=0 indicates whether the data source device designates a device as a slave or master; 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 device is determined as a slave device, and Master role=1 indicates that one device is determined as a Master device.
Specifically, when the identifier identification=5, the identifier request=0, and the Master-slave identifier master=1 of the device in the designation information, the data source device is instructed to designate the fifth device as the Master device.
Specifically, when the identifier identification=5, the identifier request=1, and the Master-slave identifier master=0 of the device in the specified information, the fifth device (Master device) may be instructed to Request the data source device to determine the fifth device as the slave device.
S305: the first earphone receives the specified information and switches to the main equipment according to the specified information.
S306: the data source device sends first data to the first earpiece.
S307: the first earpiece sends a first reply to the data source device.
S308: the data source device receives a first reply sent by the first earphone.
S309: the first earpiece forwards the first data to the second earpiece, which is a slave device.
Alternatively, the data source device may transmit designation information for designating the second headphone as the slave device to the slave device.
S310: the second earphone receives the first data sent by the first earphone.
S311: the second earpiece receives the first data and then sends a second reply to the first earpiece.
S312: the first earpiece receives a second reply sent from the device.
It should be noted that the execution process of S306 to S312 is the same as the execution process of S202 to S208, and will not be described in detail here.
S313: the first earphone sends first switching request information to the data source equipment, wherein the first switching request information is used for requesting master-slave switching.
Alternatively, the first switching request information is the same as the frame format of the specified information in S303.
Specifically, when the identifier identification=1, the specified identifier request=1, and the Master-slave identifier master=0 of the device in the first handover Request information, the first headset (Master device) may be instructed to Request the data source device to determine the first headset as the slave device.
S314: and the data source equipment acquires the state information of at least two equipment in the equipment group again according to the first switching request information, and redetermines the master equipment and the slave equipment according to the state information of the at least two equipment.
It should be noted that the state information of the at least two devices acquired again is the current state information of the at least two devices.
Specifically, the redetermining master device method at S314 may refer to the execution procedures of S301 to S305.
S315: when the data source equipment determines that the second earphone is the main equipment, the data source equipment sends second switching information to the second earphone, and the second switching information is used for enabling the second earphone to perform master-slave switching.
The identifier of the device in the second handover information is identification=2, the specified identifier Request is=0, and the Master-slave identifier master=1.
In one possible design, the data source device actively transmits first switching information to the master device, where the first switching information is used to cause the master device to perform a master-slave switching.
Alternatively, the data source device may intermittently (e.g., at a certain period) acquire the state information of the first earphone and the state information of the second earphone. If the data source device determines that the residual capacity of the second earphone is maximum or the receiving power is maximum according to the state information of the first earphone and the state information of the second earphone, the second earphone is determined to be the current master device, and the first earphone is determined to be the slave device. And then the data source equipment actively transmits the first switching information to the first earphone and actively transmits the second switching information to the second earphone.
S316: the second earphone receives the second switching information and switches from the slave device to the master device according to the second switching information.
S317: the data source equipment sends first switching information to the first earphone, wherein the first switching information is used for enabling the first earphone to perform master-slave switching.
The identification=1, the specified Identification request=0 and the Master slave Identification master=0 of the device in the first switching information.
S318: the first earphone receives the first switching information and is switched from the master device to the slave device according to the first switching information.
The data transmission method provided by the embodiment of the invention comprises the following steps: the method comprises the steps that a first earphone sends state information of the first earphone to data source equipment; the second earphone sends state information of the second earphone to the data source equipment; the data source equipment receives the state information of the first earphone and the state information of the second earphone, and determines a master equipment and a slave equipment in the equipment group according to the state information of the first earphone and the state information of the second earphone; after the data source equipment determines that the main equipment in the equipment group is the first earphone, the data source equipment sends the appointed information to the first earphone, wherein the appointed information is used for appointing the first earphone as the main equipment; the first earphone receives the appointed information and switches to the main equipment according to the appointed information; the data source equipment sends first data to the first earphone; the first earphone sends a first reply to the data source device; the data source equipment receives a first reply sent by a first earphone; the first earphone sends first data to a second earphone in the equipment set, wherein the second earphone is slave equipment; the second earphone receives first data sent by the first earphone; the second earphone sends a second reply to the first earphone after receiving the first data; the first earphone receives a second reply sent by the slave device; the first earphone sends first switching request information to the data source equipment, wherein the first switching request information is used for requesting master-slave switching; the data source equipment acquires the state information of at least two equipment in the equipment group again according to the first switching request information, and redetermines the master equipment and the slave equipment according to the state information of the at least two equipment; when the data source equipment determines that the second earphone is the main equipment, the data source equipment sends second switching information to the second earphone, wherein the second switching information is used for enabling the second earphone to perform master-slave switching; the second earphone receives second switching information and switches from the slave device to the master device according to the second switching information; the data source equipment sends first switching information to the first earphone, wherein the first switching information is used for enabling the first earphone to perform master-slave switching; the first earphone receives the first switching information and is switched from the master device to the slave device according to the first switching information. In the process, the data source equipment sends the second switching information to the second earphone and sends the first switching information to the first earphone, so that the reliability of the first data transmission is effectively guaranteed.
Based on the foregoing embodiments, the following further describes, with reference to the embodiment of fig. 4, a data transmission method described in the present application by taking an example that a device group includes two devices, where the two devices are a first earphone and a second earphone, and a slave device in the first earphone and the second earphone listens to first data.
Fig. 4 is a flowchart illustrating a data transmission method according to an embodiment of the present invention. As shown in fig. 4, when the first earphone and the second earphone are respectively wirelessly linked with the data source device, the data transmission method includes:
s401: a first earpiece in the device group sends status information of the first earpiece to the data source device.
S402: and the second earphone in the device group sends the state information of the second earphone to the data source device.
S403: the data source equipment receives the state information corresponding to the first earphone and the second earphone respectively, and determines the master equipment and the slave equipment in the equipment group according to the state information corresponding to the first earphone and the second earphone respectively.
S404: after the data source device determines that the master device in the device group is the first earphone, the data source device sends the specified information to the first earphone, and the specified information is used for specifying the first earphone as the master device.
S405: the first earphone receives the specified information and switches to the main equipment according to the specified information.
Specifically, the execution method of S401 to S405 is correspondingly the same as the execution process of S301 to S305. Here, the execution process of S401 to S405 will not be described in detail.
S406: the data source device sends link information between the first earpiece and the data source device to the second earpiece.
Optionally, the link information includes a master device identification, a MAC address, an IP address, key information, and the like.
Alternatively, the link information has a frame format as shown below.
Figure BDA0002250464960000111
S407: the second earpiece receives link information between the first earpiece and the data source device.
S408: the data source device sends first data to the first earpiece.
S409: the first earpiece sends a first reply to the data source device.
S410: the data source device receives a first reply sent by the first earphone.
S411: and the second earphone listens to the first data according to the link information and then obtains the interception data.
Specifically, if the parsed frame identifier in the listening data has a hole (for example, only 1,3,5 is received), which means that there is a data frame that is not heard, then a data request is sent to the first earphone.
Specifically, the frame identification herein requires an upper layer application to add, unlike the frame sequence number of WiFi.
S412: the second earphone sends a data request to the first earphone according to the interception data, wherein the data request carries a frame identifier which exists in the first data and does not exist in the interception data.
It should be noted that, the frame identifier in the data request is added to the frame data by the upper layer application of the data source device.
Optionally, the data request has a frame format as shown below.
Figure BDA0002250464960000121
The frame identification table comprises all frame identifications in the first data.
In practical application, after combining the frame identifier and the frame identifier table, it may be determined that the second earphone does not receive the frame identifier.
S413: the first earphone receives the data request and determines a frame identification according to the data request.
S414: the first earphone sends frame data corresponding to the frame identification to the second earphone.
S415: the second earphone sends a second reply to the first earphone according to the frame data.
The data transmission method provided by the application comprises the following steps: a first earphone in the equipment group is set to send state information of the first earphone to the data source equipment; a second earphone in the equipment group sends state information of the second earphone to the data source equipment; the data source equipment receives the state information corresponding to the first earphone and the second earphone respectively, and determines a master equipment and a slave equipment in the equipment group according to the state information corresponding to the first earphone and the second earphone respectively; after the data source equipment determines that the main equipment in the equipment group is the first earphone, the data source equipment sends the appointed information to the first earphone, wherein the appointed information is used for appointing the first earphone as the main equipment; the first earphone receives the appointed information and switches to the main equipment according to the appointed information; the data source equipment sends link information of the first earphone to the second earphone; the second earphone receives the link information of the first earphone; the data source equipment sends first data to the first earphone; the first earphone sends a first reply to the data source device; the data source equipment receives a first reply sent by a first earphone; the second earphone acquires interception data after intercepting the first data according to the link information; the second earphone sends a data request to the first earphone according to the interception data, wherein the data request carries a frame identifier which exists in the first data and does not exist in the interception data; the first earphone receives the data request and determines a frame identification according to the data request; the first earphone sends frame data corresponding to the frame identification to the second earphone; the second earphone sends a second reply to the first earphone according to the frame data. In the process, the data source device sends the first data to the first earphone (the master earphone), and the second earphone (the slave earphone) listens to the first data, so that the bandwidth of an air interface of the first earphone is reduced.
Based on the embodiment of fig. 2, the data transmission method described in the present application will be described in further detail below by taking an example that two devices in the device group are included, and the two devices are a first earphone and a second earphone. Specifically, please refer to fig. 5.
Fig. 5 is a flowchart illustrating a data transmission method according to an embodiment of the present invention. As shown in fig. 5, when the first earphone is wirelessly linked with the data source device, the second earphone is wirelessly linked with the data source device, and the first earphone and the second earphone are wirelessly linked, the data transmission method includes:
s501: the first earphone sends state information of the first earphone and link information between the first earphone and the data source device to the second earphone.
The link information is the link information between the first earphone and the data source device. The content is the same as the information mentioned in S406, and will not be described here again.
S502: the second earphone receives the state information of the first earphone and the link information between the first earphone and the data source device, and determines that the second earphone is a slave device according to the state information of the first earphone and the state information of the second earphone.
Optionally, the second earphone is determined as the slave device when the remaining power of the state information of the second earphone is smaller than the remaining power of the first earphone, or the received power of the state information of the second earphone is smaller than the received power of the first earphone.
Optionally, if the remaining power of the state information of the second earphone is smaller than the preset remaining power, or the received power of the state information of the second earphone is smaller than the preset received power, the second earphone is determined to be the slave device.
S503: the second earphone sends state information of the second earphone to the first earphone.
S504: the first earphone receives the state information of the second earphone, and determines that the first earphone is the main device according to the state information of the first earphone and the state information of the second earphone.
Optionally, when the remaining power of the state information of the second earphone is smaller than the remaining power of the first earphone, or the received power of the state information of the second earphone is smaller than the received power of the first earphone, the first earphone is determined as the master device.
Optionally, if the remaining power of the state information of the first earphone is greater than the preset remaining power, or the received power of the state information of the first earphone is greater than the preset received power, the first earphone is determined to be the master device.
S505: the data source device sends first data to the first earpiece.
S506: the first earpiece sends a first reply to the data source device.
S507: the data source device receives a first reply sent by the first earphone.
S508: the first earpiece transmits first data to the second earpiece.
S509: the second earphone receives the first data sent by the first earphone.
S510: the second earpiece receives the first data and then sends a second reply to the first earpiece.
S511: the first earphone receives a second reply sent by the second earphone.
The execution methods of S505 to S511 are the same as those of S202 to S208. Here, the execution process of S505 to S511 is not described in detail.
S512: and the first earphone performs master-slave switching according to the state information of the first earphone and the state information of the second earphone.
Specifically, in S512, if the first earphone determines that the remaining power of the state information of the first earphone is smaller than the remaining power of the state information of the second earphone, the first earphone is switched from the master device to the slave device. Or if the first earphone determines that the receiving power of the state information of the first earphone is smaller than the receiving power of the state information of the second earphone, the first earphone is switched from the master device to the slave device.
S513: the first earphone sends third switching information to the second earphone, and the third switching information is used for indicating the second earphone to conduct master-slave switching.
Specifically, the third switching information is used for indicating that the second earphone is switched from the slave device to the master device.
Optionally, the second earphone may acquire the state information of the first earphone, and automatically perform master-slave switching according to the state information of the first earphone and the state information of the second earphone. For example, when the second earphone determines that the remaining power of the state information of the first earphone is smaller than the remaining power of the state information of the second earphone, the second earphone may be automatically switched from the slave device to the master device. Or if the second earphone determines that the receiving power of the state information of the first earphone is smaller than the receiving power of the state information of the second earphone, the second earphone is automatically switched from the slave device to the master device.
Optionally, in the negotiation process of the master-slave device in S501-S504, a period (for example, 100 ms) of master-slave automatic switching may be negotiated, where each period automatically switches the master-slave identity, and the master device is cut into the slave device, and the slave device is cut into the master device, so that the switching process of the master-slave device is not required to be performed.
S514: the data source device sends second data to the first earpiece.
Specifically, since the first earphone is not the master device, the first earphone does not need to send a reply to the data source device, and at this time, the data source device cannot confirm whether the first earphone correctly receives data, so that the received data of the first earphone is forwarded to the first earphone by the second earphone (master device).
S515: the second earphone listens to the second data according to the link information.
S516: the second earpiece sends a third reply to the data source device.
The third reply is an acknowledgement frame (may be an ACK, BA, etc. frame).
S517: the second earphone sends the second data to the first earphone.
S518: the first earpiece receives the second data and then sends a fourth reply to the second earpiece.
S519: the second earpiece receives the fourth reply sent by the first earpiece.
In the data transmission method provided by the embodiment of the invention, when the first earphone is in wireless link with the data source device, the second earphone is not in wireless link with the data source device, and the first earphone and the second earphone are in wireless link, the data source device sends first data to the first earphone, and if the first earphone is the main device, the first earphone receives the first data and sends the first data to the second earphone. And after the first earphone receives the first data, the first earphone sends a first reply to the data source equipment, so that the first earphone is ensured to correctly receive the first data. After the second earphone receives the first data, the second earphone sends a second reply to the first earphone, so that the second earphone is guaranteed to correctly receive the first data. Further, after the first earphone is switched to the slave device and the second earphone is switched to the master device, the data source device sends second data to the first earphone, and the second earphone listens to the second data and forwards the second data to the first earphone. And after the second earphone listens to the second data, sending a third reply to the data source equipment, so that the second earphone is ensured to correctly receive the second data. After the first earphone receives the second data sent by the second earphone, the fourth reply is sent to the second earphone, so that the first earphone is guaranteed to correctly receive the second data. In addition, in the process, the data source equipment sends data to the first earphone, so that the air interface resource for sending the data by the data source equipment is reduced.
Based on the foregoing embodiments, the following further describes, with reference to the embodiment of fig. 6, a data transmission method described in the present application by taking an example that a device group includes two devices, where the two devices are a first earphone and a second earphone, and a slave device in the first earphone and the second earphone listens to first data.
Fig. 6 is a flowchart of a data transmission method according to an embodiment of the present invention. As shown in fig. 6, the first earphone and the data source device have wireless links, and the second earphone and the data source device have no wireless links, and the data transmission method includes:
s601: the first earphone sends state information of the first earphone and link information between the first earphone and the data source device to the second earphone.
S602: the second earphone receives the state information of the first earphone and the link information between the first earphone and the data source device, and determines that the second earphone is a slave device according to the state information of the first earphone and the state information of the second earphone.
S603: the second earphone sends state information of the second earphone to the first earphone.
S604: the first earphone receives the state information of the second earphone, and determines that the first earphone is the main device according to the state information of the first earphone and the state information of the second earphone.
Specifically, the execution method of S601 to S604 corresponds to the same execution process of S501 to S504. Here, the execution process of S501 to S504 is not described in detail.
S605: the data source device sends first data to the first earpiece.
S606: the first earpiece sends a first reply to the data source device.
S607: the data source device receives a first reply sent by the first earphone.
S608: and the second earphone listens to the first data according to the link information and then obtains the interception data.
S609: the second earphone sends a data request to the first earphone according to the interception data, wherein the data request carries a frame identifier which exists in the first data and does not exist in the interception data.
S610: the first earphone receives the data request and determines a frame identification according to the data request.
S611: the first earphone sends frame data corresponding to the frame identification to the second earphone.
S612: the second earphone sends a second reply to the first earphone according to the frame data.
Specifically, the execution method of S608 to S612 is correspondingly the same as the execution process of S411 to S415. Here, the execution process of S608-S612 is not repeated.
In the data transmission method provided by the embodiment of the invention, when the first earphone is in wireless link with the data source equipment, the second earphone is not in wireless link with the data source equipment, and the first earphone and the second earphone are in wireless link, the first earphone sends the link information between the first earphone and the data source equipment to the second earphone. The data source equipment sends first data to the first earphone, if the first earphone is the main equipment, the first earphone receives the first data and sends a first reply to the data source equipment, so that the first earphone is ensured to correctly receive the first data. The second earphone acquires interception data after intercepting the first data according to the link information; the second earphone sends a data request to the first earphone according to the interception data, wherein the data request carries a frame identifier which exists in the first data and does not exist in the interception data; the first earphone receives the data request and determines a frame identification according to the data request; the first earphone sends frame data corresponding to the frame identification to the second earphone; the second earphone sends a second reply to the first earphone according to the frame data, so that the second earphone is ensured to correctly receive the first data. In the process, the data source device sends the first data to the first earphone (the master earphone), and the second earphone (the slave earphone) listens to the first data, so that the air interface bandwidth when the first earphone forwards the data is reduced.
Based on the embodiment of fig. 4, a method for transmitting data among the data source device, the first earphone, and the second earphone will be described below by taking the example that the first data includes 2 frames of data as an example, with reference to fig. 7.
Fig. 7 is a frame transmission schematic diagram of a data transmission method according to an embodiment of the present invention. As shown in fig. 7, for example, the first earphone is a master device, the second earphone is a slave device, and the first data sent to the first earphone by the data source device includes first frame data and second frame data. The first earpiece receives the first frame data and the second frame data. The second earphone listens to the first frame data and the second frame data, and only listens to the first frame data. The second earphone sends a data request to the first earphone, wherein the data request carries a frame identifier of second frame data; after the first earphone receives the data request, forwarding the second frame data to the second earphone according to the frame identification of the second frame data, so that the second earphone receives the second frame data.
Based on the embodiment of fig. 4, a method for transmitting data among the data source device, the first earphone, and the second earphone will be described below by taking the example that the first data includes 4 frames of data, with reference to fig. 8.
Fig. 8 is a second frame transmission schematic diagram of a data transmission method according to an embodiment of the present invention. As shown in fig. 8, for example, the first earphone is a master device, the second earphone is a slave device, and the first data sent to the first earphone by the data source device includes first frame data, second frame data, third frame data, and fourth frame data. The first earpiece receives the first frame data, the second frame data, the third frame data, and the fourth frame data. The second earphone listens to the first frame data, the second frame data, the third frame data and the fourth frame data, and only listens to the first frame data and the fourth frame data. The second earphone sends a data request to the first earphone, wherein the data request carries a frame identifier of the second frame data and a frame identifier of the third frame data. After the first earphone receives the data request, the second frame data and the third frame data are forwarded to the second earphone according to the frame identification of the second frame data and the frame identification of the third frame data, so that the second earphone receives the second frame data and the third frame data.
Specifically, the symbols in fig. 7 to 8, the solid line box indicates transmission data, the broken line box indicates reception or interception of data, and the X flag indicates that no data is intercepted.
It should be noted that the frame transmission shown in fig. 7 and 8 may be applied to a process in which the slave device listens for data and requests the master device to forward the first data that the slave device does not hear.
In this application, the frame transmission manner between the data source device and at least two devices in the device group in the embodiments of fig. 2 to 8 is any manner based on the WIFI protocol (for example, through an active frame transmission manner). Specifically, the present application adds a vendor specific Action frame (vendor specific Action frame) applied to the data transmission system in the present application, where the vendor specific Action frame has the following format:
Figure BDA0002250464960000181
fig. 9 is a schematic structural diagram of a data transmission device according to an embodiment of the present invention. The data transmission apparatus 10 may be applied to a data source device in a data transmission system, the data transmission system further including a device group including at least two devices, the at least two devices being wirelessly linked in pairs, the data transmission apparatus 10 including: a determination module 11, a transmission module 12 and a reception module 13, wherein,
The determining module 11 is configured to determine a first device in the device group, where the first device is wirelessly linked to the data source device;
the sending module 12 is configured to send first data to a first device, so that the first data is sent to a slave device when the first device is a master device, where the master device is a master device in the device group, and the slave device is a device other than the master device in the device group;
the receiving module 13 is configured to receive a first reply sent by the master device, where the first reply indicates that the master device receives the first data.
The device provided in this embodiment may be used to execute the technical scheme executable by the data source device in the foregoing method embodiment, and its implementation principle and technical effect are similar, which is not described herein again.
In one possible design, the transmitting module 12 is specifically configured to:
and transmitting the first data to the first device in a unicast mode, a multicast mode or a broadcast mode.
In another possible design, the receiving module 13 is further configured to receive status information sent by at least two devices in the device group before the sending module 12 sends the first data to the first device, where the data source device is wirelessly linked with the at least two devices;
The determining module 11 is further configured to determine a master device and a slave device in the device group according to status information sent by the at least two devices.
In another possible design, the determining module 11 is specifically configured to:
if the device with the largest residual electric quantity in the state information of the at least two devices is determined to be a first device, the first device is determined to be a master device, and the devices except the first device in the device group are determined to be slave devices; or alternatively, the process may be performed,
and if the device with the largest receiving power in the state information of the at least two devices is determined to be the first device, the first device is determined to be the master device, and the devices except the first device in the device group are determined to be the slave devices.
In another possible design, the illustrated transmit module 12 is also configured to:
and according to the state information of the at least two devices, after the main device and the auxiliary device are determined in the device group, the link information of the main device is sent to the auxiliary device, so that the auxiliary device listens to the first data according to the link information.
In another possible design, the receiving module 13 is further configured to receive first handover request information sent by the master device, where the first handover request information is used to request a master-slave handover;
The sending module 12 is further configured to passively send first switching information to the master device according to the first switching request information, where the first switching information is used to enable the master device to perform master-slave switching.
In another possible design, the sending module 12 is further configured to actively send first switching information to the master device, where the first switching information is used to enable the master device to perform a master-slave switching.
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 transceiving devices.
Fig. 10 is a schematic structural diagram of another data transmission device according to an embodiment of the present invention. As shown in fig. 10, the data transmission apparatus 20 is applied to a first device in a device group in a data transmission system, the device group including at least two devices, the at least two devices being wirelessly linked in pairs, the data transmission system further including a data source device, the data transmission apparatus 20 including: a receiving module 21, a transmitting module 22, wherein,
the receiving module 21 is configured to receive first data sent by a data source device, where the first device is wirelessly linked with the data source device;
The sending module 22 is configured to send a first reply to the data source device when the first device is a master device, where the first reply indicates that the first device receives the first data;
the sending module 22 is further configured to send the first data to a slave device in the device group, where the slave device is a device other than the first device in the device group;
the receiving module 21 is further configured to receive a second reply sent by the slave device, where the second reply indicates that the slave device receives the first data.
The device provided in this embodiment may be used to execute the technical scheme executable by the first device in the foregoing method embodiment, and its implementation principle and technical effect are similar, and this embodiment is not repeated here.
In one possible design, the transmitting module 22 is further configured to, prior to the transmitting module 22 transmitting the first data to a slave device in the device group,
transmitting state information of a 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 at least two devices are respectively and wirelessly linked with the data source device.
In one possible design, the sending module 22 is further configured to send link information between the first device and the data source device to a device other than the first device in the device group, where the device other than the first device and the data source device are not wirelessly connected.
In one possible design, the sending module 22 is further configured to send first handover request information to the data source device, where the first handover request information is used to request a master-slave handover;
the receiving module 22 is further configured to receive first switching information sent by the data source device according to the first switching request information, where the first switching information is used to instruct the first device to perform master-slave switching.
In one possible design, the receiving module 21 is further configured to receive, when the first device is a slave device, the first data sent by the master device;
the sending module 22 is further configured to send the second reply to the master device according to the received first data.
In one possible design, the receiving module 21 is further configured to:
and receiving link information between the main equipment and the data source equipment, which are sent by the data source equipment, wherein the at least two equipment are respectively and wirelessly linked with the data source equipment.
In one possible design, the transmitting module 22 is further configured to:
and transmitting link information between the first device and the data source device to devices except the first device in the device group, wherein the devices except the first device in the device group and the data source device have no wireless link.
In one possible design, the transmitting module 22 is further configured to:
and 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 except the first device in the device group, and the devices except the first device in the device group are in wireless connection with the data source device.
In one possible design, the receiving module 21 is further configured to:
and receiving second switching information sent by the data source equipment, wherein the second switching information is used for enabling the first equipment to perform master-slave switching.
In one possible design, the receiving module 21 is further configured to:
and receiving third switching information sent by the master device, wherein the third switching information is used for indicating the first device to perform master-slave switching.
In one possible design, the wireless link is a WIFI link.
In one possible design, the data source device and the at least two devices are wireless transceiving devices.
Fig. 11 is a schematic diagram of a second data transmission device according to an embodiment of the present invention. On the basis of fig. 10, as shown in fig. 11, the data transmission device 20 further includes: a determination module 23, wherein,
the sending module 22 is further configured to send status information of the first device to the slave device before the receiving module 21 receives the first data sent by the data source device;
the receiving module 21 is further configured to receive status information of a slave device sent by the slave device;
the determining module 23 is configured to determine, according to the state information of the first device and the state information of the slave device, the first device as a master device, where the first device is wirelessly linked with the data source device, and the slave device is wirelessly linked with the data source device.
The device provided in this embodiment may be used to execute the technical scheme executable by the first device in the method embodiment, and its implementation principle and technical effect are similar, and this embodiment is not repeated here.
In one possible design, the receiving module 21 is further configured to receive status information of the master device sent by the master device;
The determining module 23 is further configured to determine, according to the state information of the master device and the state information of the first device, that a slave device is connected to a device other than the first device in the device group and the data source device in a wireless manner.
Fig. 12 is a schematic diagram of another data transmission device according to an embodiment of the present invention. On the basis of fig. 11, the data transmission device 20 as shown in fig. 12 further includes: a switching module 24, wherein,
the switching module 24 is configured to perform a master-slave switching according to the state information of the first device and the state information of the slave device;
the sending module is used for sending third switching information to the slave equipment, and the third switching information is used for indicating the slave equipment to perform master-slave switching.
The device provided in this embodiment may be used to execute the technical scheme executable by the first device in the foregoing method embodiment, and its implementation principle and technical effect are similar, and this embodiment is not repeated here.
Fig. 13 is a schematic structural diagram of another data transmission device according to an embodiment of the present invention. On the basis of fig. 12, as shown in fig. 13, the data transmission device 20 further includes: a listening module 25, which, among other things,
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 the master device and obtain intercepted data;
the sending module 22 is further configured to send a data request to the master device according to the interception data, where the data request carries a frame identifier, and the frame identifier exists in the first data and does not exist in the interception data;
the receiving module 21 is further configured to receive frame data corresponding to the frame identifier sent by the master device according to the frame identifier;
the sending module 22 is further configured to send a second reply to the master device according to the frame data corresponding to the frame identifier.
The device provided in this embodiment may be used to execute the technical scheme executable by the first device in the foregoing method embodiment, and its implementation principle and technical effect are similar, and this embodiment is not repeated here.
Fig. 14 is a schematic hardware structure of a data transmission device provided in the present application. Referring to fig. 14, 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; by way of example, the memory 31, the processor 32, the transceiver 33 and the transmitter 34 may communicate via a communication bus 35, the memory 31 being adapted to store a computer program, the processor 32 executing the computer program to carry out the data transmission method described above. For example, the processor 32 performs the relevant steps performed by the data source device in the method embodiments described above.
Fig. 15 is a schematic hardware structure of another data transmission device provided in the present application. Referring to fig. 14, 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 adapted to store a computer program, the processor 42 executing the computer program to implement the data transmission method described above. For example, the processor 42 performs the relevant steps performed by the first device in the method embodiments described above.
All or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a readable memory. The program, when executed, performs steps including 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 modifications and variations can be made to 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 and the equivalents thereof, the present application is intended to encompass such modifications and variations.
In the present application, the term "include" and variations thereof may refer to non-limiting inclusion; the term "or" and variations thereof may refer to "and/or". The terms "first," "second," and the like in this application are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. In the present application, "plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "three kinds generally indicates that the front-rear association object is an or relationship.

Claims (30)

1. A data transmission method, applied to a data source device in a data transmission system, the data transmission system further comprising a device group, the device group comprising at least two devices, the at least two devices being linked wirelessly in pairs, the method comprising:
the data source device determines a first device in the device group, and the first device and the data source device are in wireless link;
the data source device sends first data to a first device, so that the first data is forwarded to a slave device when the first device is a master device, wherein the master device is the master device in the device group, and the slave device is a device except the master device in the device group; the first data comprises at least one frame of data, each frame of data has a corresponding frame identifier, and the frame identifiers of the at least one frame of data are continuous;
the data source device receives a first reply sent by the main device, and the first reply indicates that the main device receives the first data.
2. The method of claim 1, wherein the data source device sending the first data to the master device comprises:
and transmitting the first data to the first device in a unicast mode, a multicast mode or a broadcast mode.
3. The method of claim 1, wherein when the data source device has a wireless link with the at least two devices, the data source device further comprises, prior to transmitting the first data to the first device:
receiving state information sent by at least two devices in the device group;
and determining a master device and a slave device in the device group according to the state information sent by the at least two devices.
4. A method according to claim 3, wherein said determining a master device and a slave device in said group of devices based on status information sent by said at least two devices comprises:
if the device with the largest residual electric quantity in the state information of the at least two devices is determined to be a first device, the first device is determined to be a master device, and the devices except the first device in the device group are determined to be slave devices; or alternatively, the process may be performed,
and if the device with the largest receiving power in the state information of the at least two devices is determined to be the first device, the first device is determined to be the master device, and the devices except the first device in the device group are determined to be the slave devices.
5. A method according to claim 3, wherein after determining the master device and the slave device in the device group according to the status information corresponding to each of the at least two devices, the method further comprises:
And transmitting link information between the master device and the data source device to the slave device so that the slave device listens for the first data according to the link information.
6. The method of claim 1, when the data source device has a wireless link with the at least two devices, further comprising:
receiving first switching request information sent by a main device, wherein the first switching request information is used for requesting master-slave switching;
and sending first switching information to the master device according to the first switching request information, wherein the first switching information is used for enabling the master device to perform master-slave switching.
7. The method as recited in claim 1, further comprising:
and actively transmitting first switching information to the master device, wherein the first switching information is used for enabling the master device to perform master-slave switching.
8. The method according to claim 6 or 7, further comprising:
and sending second switching information to the slave device, wherein the second switching information is used for enabling the slave device to perform master-slave switching.
9. The method of any one of claims 1 to 8, wherein the wireless link is a WIFI link.
10. The method of claim 9, wherein the data source device and the at least two devices are wireless transceiving devices.
11. A data transmission method, characterized in that the method is applied to a first device in a device group in a data transmission system, the device group including at least two devices, the at least two devices being linked wirelessly in pairs, 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 a data source device, and the first device is in wireless link with the data source device; the first data comprises at least one frame of data, each frame of data has a corresponding frame identifier, and the frame identifiers of the at least one frame of data are continuous;
the first device sends a first reply to the data source device, the first reply indicating that the first device received the first data;
the first device forwards the first data to a slave device in the device group, wherein the slave device is a device except the first device in the device group;
the first device receives a second reply sent by the slave device, wherein the second reply indicates that the slave device receives the first data;
when the first device is a slave device, the first device listens to the first data sent by the data source device to the master device and then obtains interception data;
The first device sends a data request to a master device according to the interception data, wherein the data request carries a frame identifier, and the frame identifier exists in the first data and does not exist in the interception data;
receiving frame data corresponding to the frame identifier sent by the main equipment according to the frame identifier;
and sending a second reply to the main equipment according to the frame data corresponding to the frame identification.
12. The method of claim 11, wherein when the at least two devices are each wirelessly linked to the data source device, the first device further comprises, prior to transmitting the first data to a slave device in the device group:
and 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 the slave device.
13. The method of claim 11, wherein when a device other than the first device in the device group is not wirelessly linked to the data source device, the first device further comprises, prior to receiving the first data sent by the data source device:
Transmitting state information of the first device to the slave device;
receiving state information of slave equipment sent by the slave equipment;
and determining the first device as a master device according to the state information of the first device and the state information of the slave device.
14. The method as recited in claim 13, further comprising:
and transmitting the link information between the first device and the data source device to devices except the first device in the device group.
15. The method as recited in claim 12, further comprising:
transmitting first switching request information to the data source equipment, wherein the first switching request information is used for requesting master-slave switching;
and receiving first switching information sent by the data source equipment according to the first switching request information, wherein the first switching information is used for indicating the first equipment to perform master-slave switching.
16. The method as recited in claim 12, further comprising:
and receiving first switching information actively sent by the data source equipment, wherein the first switching information is used for indicating the first equipment to perform master-slave switching.
17. The method as recited in claim 13, further comprising:
Performing master-slave switching according to the state information of the first equipment and the state information of the slave equipment;
and sending third switching information to the slave equipment, wherein the third switching information is used for indicating the slave equipment to perform master-slave switching.
18. The method as recited in claim 11, further comprising:
when the first device is a slave device, receiving the first data sent by the master device;
and sending the second reply to the main equipment according to the received first data.
19. The method of claim 18, wherein when the at least two devices are each wirelessly linked to the data source device, further comprising:
and 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 except the first device in the device group.
20. The method as recited in claim 19, further comprising:
and receiving link information between the main equipment and the data source equipment, wherein the link information is sent by the data source equipment.
21. The method of claim 18, wherein when a device of the group of devices other than the first device is not wirelessly linked to the data source device, further comprising:
Receiving state information of a main device sent by the main device;
and determining the slave equipment by the first equipment according to the state information of the master equipment and the state information of the first equipment.
22. The method as recited in claim 21, further comprising:
and transmitting link information between the first device and the data source device to devices except the first device in the device group.
23. The method as recited in claim 19, further comprising:
and receiving second switching information sent by the data source equipment, wherein the second switching information is used for enabling the first equipment to perform master-slave switching.
24. The method as recited in claim 21, further comprising:
and receiving third switching information sent by the master device, wherein the third switching information is used for indicating the first device to perform master-slave switching.
25. The method of any one of claims 10 to 24, wherein the wireless link is a WIFI link.
26. The method of claim 25, wherein the data source device and the at least two devices are wireless transceiving devices.
27. A data transmission apparatus for use with a data source device in a data transmission system, the data transmission system further comprising a device group, the device group comprising at least two devices, the at least two devices being wirelessly linked in pairs, the apparatus comprising: a determining module, a transmitting module and a receiving module, wherein,
The determining module is used for determining a first device in the device group, and the first device is in wireless link with the data source device;
the sending module is used for sending first data to a first device, so that the first data is forwarded to a slave device when the first device is the master device, wherein the master device is the master device in the device group, and the slave device is a device except the master device in the device group; the first data comprises at least one frame of data, each frame of data has a corresponding frame identifier, and the frame identifiers of the at least one frame of data are continuous;
the receiving module is configured to receive a first reply sent by the master device, where the first reply indicates that the master device receives the first data.
28. A data transmission apparatus for use with a first device in a group of devices in a data transmission system, the group of devices including at least two devices, the at least two devices being linked wirelessly in pairs, the data transmission system further including a data source device, the apparatus comprising: a receiving module, a transmitting module, wherein,
the receiving module is used for receiving first data sent by the data source equipment;
the sending module is configured to send a first reply to the data source device when the first device is a master device, where the first reply indicates that the first device receives the first data; the first data comprises at least one frame of data, each frame of data has a corresponding frame identifier, and the frame identifiers of the at least one frame of data are continuous;
The sending module is further configured to send the first data to a slave device, where the slave device is a device of the device group other than the first device;
the receiving module is further configured to receive a second reply sent by the slave device, where the second reply indicates that the slave device receives the first data;
the interception module is used for intercepting the first data sent by the data source equipment to the master equipment to obtain interception data when the first equipment is the slave equipment;
the sending module is further configured to send a data request to a master device according to the interception data, where the data request carries a frame identifier, and the frame identifier exists in the first data and does not exist in the interception data;
the receiving module is further used for receiving frame data corresponding to the frame identifier, which is sent by the main equipment according to the frame identifier;
the sending module is further configured to send a second reply to the master device according to the frame data corresponding to the frame identifier.
29. A data transmission device is characterized by 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.
30. A data transmission device is characterized by comprising a memory and a processor,
the processor executing program instructions in the memory for implementing the data transmission method of any one of claims 11-26.
CN201911032141.0A 2019-10-28 2019-10-28 Data transmission method and device Active CN110769445B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911032141.0A CN110769445B (en) 2019-10-28 2019-10-28 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911032141.0A CN110769445B (en) 2019-10-28 2019-10-28 Data transmission method and device

Publications (2)

Publication Number Publication Date
CN110769445A CN110769445A (en) 2020-02-07
CN110769445B true CN110769445B (en) 2023-05-26

Family

ID=69332958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911032141.0A Active CN110769445B (en) 2019-10-28 2019-10-28 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN110769445B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111447603A (en) * 2020-06-18 2020-07-24 展讯通信(上海)有限公司 Data transmission method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107894881A (en) * 2017-10-18 2018-04-10 恒玄科技(上海)有限公司 The method that principal and subordinate link switching, conversation monitoring and the Mike of bluetooth earphone switch
WO2019144343A1 (en) * 2018-01-25 2019-08-01 深圳市为通博科技有限责任公司 Networking method, chip, and wireless network system
KR102362156B1 (en) * 2018-04-28 2022-02-14 1모어 주식회사 Earphone wireless communication method, master earphone, slave earphone and earphone system
CN109922540B (en) * 2019-03-01 2021-12-03 展讯通信(上海)有限公司 Wireless transceiver group communication method, device group, system and storage medium

Also Published As

Publication number Publication date
CN110769445A (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN110831246B (en) Data transmission method and device
EP3301997B1 (en) Enhanced multimedia broadcast and multicast service embms system and management method therefor
EP3573390A1 (en) Paging message sending method and related device
EP3010298A1 (en) Resource allocation method and device for data radio bearer (drb)
EP3817292B1 (en) Topology switching methods and apparatus based on synchronous link
EP3334225A1 (en) Wireless configuration method for wearable device, relevant device and base station
EP4030846A1 (en) Method and device for multicasting network slice
CN110769445B (en) Data transmission method and device
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
EP3499834B1 (en) Key negotiation method and apparatus
WO2015081552A1 (en) Method and apparatus for accessing base station by terminal
WO2016112496A1 (en) Method and apparatus for processing group service
CN112533154B (en) Data processing method, device and storage medium
CN111586666B (en) Device discovery method, device and system
JP6472889B2 (en) Terminal device, network device, and group communication method
WO2020238684A1 (en) Communication method, apparatus and device, and computer-readable storage medium
EP3843495B1 (en) Communication method and apparatus, and device
CN110858965B (en) Data transmission method and device, terminal and storage medium
JP2023536000A (en) Method and apparatus for multicast and broadcast services
CN107006065A (en) A kind of method and device for transmitting data
WO2018205945A1 (en) Information processing method and device
CN113973268B (en) Data receiving method, data sending method, resource updating method, device and equipment
CN107211405B (en) Data transmission method and device
WO2017054284A1 (en) Communication method and related 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