WO2023050128A1 - 数据传输方法和装置 - Google Patents

数据传输方法和装置 Download PDF

Info

Publication number
WO2023050128A1
WO2023050128A1 PCT/CN2021/121620 CN2021121620W WO2023050128A1 WO 2023050128 A1 WO2023050128 A1 WO 2023050128A1 CN 2021121620 W CN2021121620 W CN 2021121620W WO 2023050128 A1 WO2023050128 A1 WO 2023050128A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
time slots
retransmission
sub
slave
Prior art date
Application number
PCT/CN2021/121620
Other languages
English (en)
French (fr)
Inventor
谢子晨
王蓉
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2021/121620 priority Critical patent/WO2023050128A1/zh
Priority to CN202180099256.0A priority patent/CN117501725A/zh
Publication of WO2023050128A1 publication Critical patent/WO2023050128A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive loop type

Definitions

  • the present application relates to the technical field of short-distance wireless communication, and in particular to a data transmission method and device.
  • the mobile phone is provided with a bluetooth chip, and the audio signal can be transmitted to the bluetooth earphone through the bluetooth chip, so as to realize the function of playing music through the bluetooth earphone.
  • the Bluetooth low energy (Bluetooth low energy, BLE) protocol can be used for data transmission between mobile phones and Bluetooth headsets and other devices with Bluetooth wireless communication functions.
  • a pair of earphones usually includes two bluetooth earphones.
  • the BLE protocol when data is transmitted through the BLE protocol, data is transmitted between the two Bluetooth headsets and the mobile phone according to the set event (event) cycle.
  • event cycle In an event cycle, the two Bluetooth headsets communicate with Transfer data between phones.
  • the number of transmission time slots of the two Bluetooth headsets is average.
  • the two Bluetooth earphones are the first earphone and the second earphone respectively.
  • the mobile phone performs data new transmission and data retransmission with the first earphone through the transmission time slot of the first earphone, and transmits data through the second earphone.
  • the transmission time slot of the earphone performs data new transmission and data retransmission with the second earphone.
  • data new transmission refers to the first transmission of any audio data
  • data retransmission refers to non-first transmission of audio data.
  • the corresponding transmission time slots of the two Bluetooth headsets are preset and fixed, if the transmission quality of the communication channel corresponding to a Bluetooth headset is better, less audio data needs to be retransmitted , the remaining part of the transmission slot will be called the air interface. Since the remaining transmission time slots cannot be effectively used, a large amount of air interface resources are wasted.
  • Embodiments of the present application provide a data transmission method and device to reduce waste of air interface resources.
  • the embodiment of the present application provides a data transmission method, the method includes: the master device transmits data to at least two slave devices respectively on multiple first time slots of the first sub-period of the event cycle, and receiving indication information respectively fed back by at least two slave devices according to their respective data reception conditions, and selectively providing at least two of the above-mentioned Slave devices configure retransmission time slots respectively.
  • any one of the above-mentioned at least two slave devices is referred to as a first slave device, and if it is determined according to the indication information fed back by the first slave device that there is data that has not been successfully received by the first slave device, then a plurality of second time slots At least one of them is configured as a retransmission time slot of the first slave device.
  • data is transmitted between the master device and at least two slave devices according to event cycles, and each event cycle includes a first sub-period and a second sub-period.
  • each event cycle includes a first sub-period and a second sub-period.
  • the master device The configured transmission time slots corresponding to each slave device transmit data to each slave device respectively, and receive indication information fed back by each slave device according to their respective data reception conditions.
  • the retransmission time slots corresponding to each slave device in the second sub-period may be consecutive time slots, thereby helping to reduce the waste of air interface resources.
  • the second time slots not configured for any slave device may be referred to as remaining time slots.
  • the above method of dynamically configuring retransmission time slots for each slave device in the second sub-cycle can make the retransmission time slots corresponding to each slave device in the second sub-cycle continuous.
  • the remaining time slots are also connected time slots, which is beneficial to the effective use of the remaining time slots and reduces the waste of air interface resources.
  • the master control device may transmit communication control signaling to at least two slave devices, or transmit communication control signaling to communication devices other than the at least two slave devices. business data.
  • the remaining time slots of the second sub-period refer to the second time slots not allocated to any slave device.
  • the master control device can respectively establish Bluetooth synchronous communication links for data transmission with the above-mentioned at least two slave devices.
  • the Bluetooth synchronous communication link corresponding to the device transmits data to at least two slave devices.
  • the master control device may transmit communication control signaling to one or more of the at least two slave devices through the Bluetooth asynchronous communication link, or the master control device may transmit communication control signaling through the Bluetooth
  • An asynchronous communication link transmits business data to other communication devices.
  • the update data package can be downloaded through the main control device.
  • the smart watch can be connected to the main control device through the Bluetooth chip, and a Bluetooth asynchronous communication link can be established with the main control device road.
  • the main control device can use the idle time slot of the Bluetooth synchronous communication link, that is, the remaining time slot of the second sub-cycle, to send the data in the update data packet to the smart watch through the Bluetooth asynchronous communication link.
  • the utilization rate of air interface resources can be improved, the main control device can be connected with more devices, and the ability of the main control device to send more business data concurrently is improved, which is beneficial to the coexistence of multiple devices.
  • the master control device sets retransmission data queues for each slave device respectively.
  • the master device transmits newly transmitted data through at least two slave devices, and receives indication information fed back by at least two slave devices according to their respective data reception conditions . Any one of the above at least two slave devices is referred to as the first slave device.
  • the data that was not successfully received by the first slave device will be The data is stored in the first retransmission data queue, the data volume of the first retransmission data stored in the first retransmission data queue is obtained, and according to the data volume of the first retransmission data, part of the multiple second time slots, Configured as the retransmission slot for the first slave.
  • the retransmission time slot can be accurately assigned to each slave device in the second sub-cycle, avoiding Too many retransmission time slots are configured for each slave device, resulting in waste of air interface resources.
  • the master control device respectively transmits data to the at least two slave devices in a serial manner.
  • the retransmission time slots respectively configured for the at least two slave devices are arranged in a serial manner.
  • the master device transmits data to the first slave device and the second slave device respectively in a serial manner, assuming that the first sub-period contains 2K first time slots, wherein the previous K adjacent time slots are used to transmit data to the first slave device, and the last K adjacent time slots are used to transmit data to the second slave device.
  • N second retransmission time slots are configured for the second slave device, wherein the M first retransmission time slots A retransmission time slot does not overlap with N second retransmission time slots, and the first time slot of the M first retransmission time slots is the first time slot of the second sub-period, and the M first retransmission time slots
  • the last time slot in the transmission time slot and the first time slot in the N second retransmission time slots are adjacent time slots.
  • the master control device on multiple first time slots of the first sub-period of the event period, the master control device respectively transmits data to the at least two slave devices in an interleaved manner.
  • the retransmission time slots respectively configured for the at least two slave devices are arranged in an interleaved manner.
  • the master device transmits data to the first slave device and the second slave device in an interleaved manner, assuming that the first sub-period contains 2K first time slots, in which K Data is transmitted to the first slave device on the first new transmission time slot corresponding to K first slave devices, and data is transmitted to the second slave device on the second new transmission time slot corresponding to the other K second slave devices.
  • K first new transmission time slots and K second new transmission time slots are arranged at intervals.
  • M first retransmission time slots are configured for the first slave device
  • N second retransmission time slots are configured for the second slave device, where M is less than N .
  • the configured M first retransmission time slots are spaced apart from the M second retransmission time slots in the N second retransmission time slots, and the N-M second retransmission time slots in the N second retransmission time slots Transmission time slots are adjacent time slots.
  • the transmission time slot corresponding to each slave device is a preset fixed parameter in each event cycle
  • the transmission time slot corresponding to each slave device is a preset fixed parameter in each event cycle
  • the retransmission time slots corresponding to each slave device are arranged in a serial or interleaved manner, so that all retransmission time slots in the second sub-cycle are connected time slots
  • the remaining time slots in the second sub-period are also contiguous time slots, which facilitates effective use of the remaining time slots.
  • the embodiment of the present application provides a data transmission method, the method includes: the first slave device receives the master device in the first time slot corresponding to the first slave device in the first sub-period of the event cycle
  • Retransmitting data wherein the first type of indication information is used to indicate that the first slave device has data that has not been successfully received, and at least one second time slot is for the first slave device according to the indication information fed back by the first slave device.
  • the retransmission time slot configured by the device; if the indication information does not contain the first type of indication information, then in the second sub-period, the first slave device does not need to perform data monitoring, and the first slave device can turn off the second sub-period of the event cycle Data monitoring on multiple second time slots, thereby saving power consumption.
  • the embodiment of the present application further provides a data transmission device, including: a transceiver and a processor; wherein, the transceiver is configured to, under the control of the processor, transmit In one time slot, transmit data to at least two slave devices respectively, and receive instruction information fed back by at least two slave devices according to their respective data receiving conditions; the processor is used to, according to the received instruction information, in the event period In the plurality of second time slots in the second sub-period, retransmission time slots are selectively configured for at least two slave devices respectively.
  • the processor is specifically configured to: if it is determined according to the indication information fed back by the first slave device that there is data that has not been successfully received by the first slave device, at least one of the multiple second time slots , configured as a retransmission time slot of the first slave device; the first slave device is any one of at least two slave devices.
  • the transceiver is further configured to: transmit communication control signaling to at least two slave devices in the remaining time slots of the second subcycle, or transmit communication control signaling to at least two slave devices
  • the device transmits service data; wherein, the remaining time slot refers to a second time slot that is not allocated to any slave device.
  • the processor is specifically configured to: if it is determined according to the indication information fed back by the first slave device that there is data that has not been successfully received by the first slave device, save the data that has not been successfully received by the first slave device To the first retransmission data queue; obtain the data volume of the first retransmission data stored in the first retransmission data queue; according to the data volume of the first retransmission data, configure at least one of the multiple second time slots is the retransmission time slot of the first slave device.
  • the transceiver is specifically configured to: send audio data to at least two slave devices respectively in a serial manner or an interleaved manner on multiple first time slots.
  • the processor in the plurality of second time slots, is The retransmission time slots respectively configured by at least two slave devices are arranged in a serial manner.
  • the transceiver transmits data to at least two slave devices in an interleaved manner on multiple first time slots
  • the processor transmits data to at least two slave devices in multiple second time slots
  • the retransmission time slots respectively configured by the slave devices are arranged in an interleaved manner.
  • the transceiver is further configured to communicate with at least two slave devices before transmitting data to at least two slave devices on multiple first time slots of the first sub-period of the event cycle Bluetooth synchronous communication links for data transmission are respectively established.
  • the embodiment of the present application further provides a data transmission device, including: a transceiver and a processor; wherein, the transceiver is configured to, under the control of the processor, transmit the data in the first sub-period of the event cycle In the first time slot corresponding to the transmission device, the data sent by the main control device is received; the processor is used to generate the instruction information fed back to the main control device according to the receiving situation of the data; the transceiver is also used to send instructions to the main control device information; and when the indication information contains the first type of indication information, on multiple second time slots in the second sub-period of the event cycle, continuously monitor the data, and monitor the master control on at least one second time slot The retransmission data sent by the device; then, on multiple second time slots in the second sub-period of the event cycle, data monitoring is continued, and the retransmission data sent by the master device is monitored on at least one second time slot; At least one second time slot is a retransmission time slot configured by
  • the embodiment of the present application also provides a data transmission device, the data transmission device includes corresponding functional modules, respectively used to implement the steps in the methods provided in the first aspect, for details, refer to the detailed description in the method examples, I won't go into details here.
  • the functions may be implemented by hardware, or may be implemented by executing corresponding software through hardware.
  • Hardware or software includes one or more modules corresponding to the above-mentioned functions.
  • the data transmission device may include a sending unit, a receiving unit and a configuring unit.
  • the sending unit is used to transmit data to at least two slave devices on multiple first time slots of the first sub-period of the event cycle; the receiving unit is used to receive feedback from at least two slave devices according to the reception of data The indication information; the configuration unit is configured to selectively configure retransmission time slots for at least two slave devices in multiple second time slots of the second sub-period of the event cycle according to the indication information.
  • the embodiment of the present application also provides a data transmission device, the data transmission device includes corresponding functional modules, respectively used to implement the steps in the methods provided in the first aspect, for details, refer to the detailed description in the method examples, I won't go into details here.
  • the functions may be implemented by hardware, or may be implemented by executing corresponding software through hardware.
  • Hardware or software includes one or more modules corresponding to the above-mentioned functions.
  • the data transmission device may include a first listening unit and a second listening unit. Wherein, the first listening unit is used to receive the data sent by the master device on the first time slot corresponding to the first slave device in the first sub-period of the event cycle, and send the data to the master device according to the receiving situation of the data.
  • the second monitoring unit is configured to continuously monitor data on multiple second time slots in the second sub-period of the event cycle if the indication information includes the first type of indication information, and perform data monitoring in at least one first time slot
  • the retransmission data sent by the master device is monitored on the second time slot; at least one second time slot is the retransmission time slot configured by the master device for the first slave device according to the indication information fed back by the first slave device; the first type of indication
  • the information is used to indicate that there is data that has not been successfully received by the first slave device.
  • the embodiment of the present application further provides a data transmission system, including any data transmission device provided in the third aspect and at least two data transmission devices provided in the fourth aspect.
  • the present application provides a computer-readable storage medium, in which a computer program or instruction is stored, and when the computer program or instruction is executed by a terminal device, the terminal device executes the above-mentioned first aspect. Either method or the method provided in the second aspect.
  • the present application provides a computer program product, the computer program product includes a computer program or an instruction, and when the computer program or instruction is executed by a terminal device, any method or the second aspect provided in the above-mentioned first aspect is implemented provided method.
  • FIG. 1 is a schematic diagram of an application scenario of an embodiment of the present application
  • Fig. 2 is the interactive diagram of mobile phone and two bluetooth earphones in the embodiment of the present application
  • FIG. 3 is a schematic diagram of an arrangement of time slots included in an event cycle provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of another arrangement of time slots included in an event cycle provided by the embodiment of the present application.
  • FIG. 5 is a flowchart of a data transmission method provided by an embodiment of the present application.
  • FIG. 6 is a flow chart of another data transmission method provided by the embodiment of the present application.
  • FIG. 7 is a schematic diagram of an example of a data transmission device provided in an embodiment of the present application.
  • FIG. 8 is a schematic diagram of another example of a data transmission device provided in an embodiment of the present application.
  • FIG. 9 is a schematic diagram of another example of a data transmission device provided by an embodiment of the present application.
  • BLE protocol also known as Bluetooth Low Energy Protocol
  • the BLE protocol may include a connected isochronous stream (CIS) protocol for point-to-point communication, and a corresponding connected isochronous group (CIG) protocol composed of multiple CISs.
  • CIS connected isochronous stream
  • CCG connected isochronous group
  • New transmission time slot the time slot used for the first transmission of audio data, that is, the time slot used for new data transmission.
  • Retransmission time slot a time slot used for non-first transmission of audio data, that is, a time slot used for data retransmission.
  • “Multiple” in the embodiment of the present application refers to two or more, in view of this, “multiple” can also be understood as “at least two” in the embodiment of the present application.
  • “At least one” can be understood as one or more, such as one, two or more. For example, including at least one means including one, two or more, and does not limit which ones are included, for example, including at least one of A, B and C, then what is included can be A, B, C, A and B, A and C, B and C, or A and B and C.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently.
  • the character "/" unless otherwise specified, generally indicates that the associated objects before and after are in an "or” relationship.
  • ordinal numerals such as “first” and “second” mentioned in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the order, timing, priority or importance of multiple objects.
  • the master device 100 establishes a short-distance wireless communication connection with the first slave device 200 and the second slave device 201 through a Bluetooth wireless communication link, and then conducts communication within a short distance.
  • Wireless transmission of data wherein the Bluetooth wireless communication link may include a Bluetooth synchronous communication link, such as a CIS link based on the CIS protocol, and may also include a Bluetooth asynchronous communication link, such as an asynchronous connection link (ACL).
  • the master device 100 may establish a Bluetooth wireless communication connection with the first slave device 200 through the first CIS link, and establish a Bluetooth wireless communication connection with the second slave device 201 through the second CIS link.
  • the first slave device 200 and the second slave device 201 can receive audio data from the master device 100 based on a short-distance wireless communication protocol, so as to realize playing of the audio data.
  • the short-distance wireless communication protocol may be the BLE protocol.
  • the application scenario shown in Figure 1 includes a master device 100 and two slave devices.
  • the master device 100 can establish short-distance wireless communication connections with more slave devices.
  • the number of devices is not limited.
  • the main control device 100 shown in FIG. 1 is a mobile phone provided with a Bluetooth chip.
  • the main control device may also be other audio devices that provide Bluetooth wireless communication functions, such as vehicle-mounted terminals, wearable terminals, personal digital assistants (personal digital assistant, PDA), televisions, computers and other electronic devices.
  • vehicle-mounted terminals wearable terminals
  • personal digital assistants personal digital assistant, PDA
  • televisions computers and other electronic devices.
  • the first slave device 200 and the second slave device 201 shown in FIG. 1 are Bluetooth headsets, which may also be called binaural true wireless stereo (TWS) Bluetooth headsets.
  • the first slave device 200 and the second slave device 201 may also be audio playback devices with a Bluetooth wireless communication function, such as loudspeakers, speakers, and the like.
  • the first slave device 200 may be the left channel device in the two-channel audio playback equipment
  • the second slave device 201 may be the right channel device in the two-channel audio playback equipment
  • the two-channel audio playback equipment It can be stereo headphones, stereo car audio equipment, stereo home audio equipment, etc.
  • the master device as a mobile phone and the two slave devices as Bluetooth headsets as an example to describe the embodiment of the present application in detail, but it should not be understood that the present application
  • the data transmission method provided in the embodiment must use the mobile phone as the master device to transmit data to the Bluetooth headset, and it should not be understood that the Bluetooth headset must be used as the slave device to receive the data transmitted by the master device, and should not It is understood that there can only be two slave devices.
  • FIG. 2 shows a flow chart of interaction between a mobile phone and a Bluetooth headset during data transmission.
  • the first headset and the second headset in FIG. 2 are both Bluetooth headsets.
  • the mobile phone and the first earphone and the second earphone respectively establish bluetooth synchronous communication links for data transmission.
  • the user when the user expects to listen to songs or other audio played by the mobile phone through the Bluetooth headset, the user can turn on the Bluetooth function of the mobile phone, and the mobile phone establishes a connection with the first headset and the second headset through the Bluetooth chip, that is, the first headset and the second headset.
  • the two earphones respectively establish a Bluetooth synchronous communication link, wherein the Bluetooth synchronous communication link may be a CIS link.
  • the mobile phone may establish a first CIS link with the first earphone based on the BLE protocol, and establish a second CIS link with the second earphone.
  • the first CIS link and the second CIS link form a CIG.
  • the mobile phone can first establish a Bluetooth synchronous communication link for data transmission with the first earphone, and then establish a Bluetooth synchronous communication link for data transmission with the second earphone; it can also first establish a Bluetooth synchronous communication link for data transmission with the second earphone. Synchronize the communication link, and then establish a Bluetooth synchronous communication link for data transmission with the first earphone.
  • the process of establishing a Bluetooth synchronous communication link for data transmission between the mobile phone and the first earphone, and the process of establishing a Bluetooth synchronous communication link for data transmission between the mobile phone and the second earphone can also be performed simultaneously.
  • the data transmission process between the mobile phone and the Bluetooth headset may include the following steps:
  • the mobile phone transmits audio data to the first earphone within the transmission time slot configured for the first earphone.
  • S202 The first earphone feeds back indication information to the mobile phone according to the data receiving situation.
  • S203 The mobile phone transmits audio data to the second earphone within the transmission time slot configured for the second earphone.
  • S204 The second earphone feeds back indication information to the mobile phone according to the data receiving situation.
  • data transmission is performed between the mobile phone and the first earphone and the second earphone based on the BLE protocol, that is, data is transmitted between the mobile phone and the two Bluetooth earphones according to a set event period.
  • the mobile phone can determine the duration of the event cycle according to the amount of data that needs to be transmitted to the first earphone and the second earphone during the event cycle, or in other words, the mobile phone can determine the duration of the event cycle according to the , the size of the data packet that needs to be transmitted to the first earphone and the second earphone, determine the total number of transmission times, and determine the total number of transmission time slots included in the event period according to the total number of transmission times.
  • an event period includes a first sub-period and a second sub-period.
  • the first sub-cycle includes a plurality of first time slots, a part of the first time slots is used for data transmission between the mobile phone and the first earphone, and another part of the first time slots is used for data transmission between the mobile phone and the second earphone;
  • the second sub-period includes a plurality of second time slots.
  • the first sub-period is used for new transmission of data, that is, for the first transmission of data, the first time slot can also be called a new transmission time slot, of course, other names can also be used, and this application does not make specific reference to it. limited.
  • the second sub-period is used to retransmit the unsuccessfully transmitted data in the first sub-period.
  • the second time slot can also be called a retransmission time slot.
  • other names can also be used. This application does not make any reference to this Specific limits.
  • the two Bluetooth earphones transmit data with the mobile phone in their corresponding new transmission time slots. Specifically, on the new transmission time slot corresponding to the first earphone, the mobile phone transmits data to the first earphone, the first earphone receives the data sent by the mobile phone, and feeds back indication information to the mobile phone according to the data reception status, and the mobile phone receives the first earphone according to the The indication information fed back by the data reception status; on the new transmission time slot corresponding to the second earphone, the mobile phone transmits data to the second earphone, the second earphone receives the data sent by the mobile phone, and feeds back indication information to the mobile phone according to the data reception status, The mobile phone receives the indication information fed back by the second earphone according to the data receiving situation.
  • the mobile phone selectively configures the retransmission timing for the first earphone and the second earphone in multiple second time slots of the second sub-period of the event cycle according to the indication information fed back by the first earphone and the second earphone.
  • the mobile phone selectively configures a retransmission time slot for the first earphone in multiple second time slots of the second sub-period of the event cycle according to the indication information fed back by the first earphone.
  • the mobile phone determines that there is data that was not successfully received by the first headset according to the indication information fed back by the first headset, then the data that is not successfully received by the first headset is stored in the first retransmission data queue, and the mobile phone obtains the first retransmission data According to the data volume of the first retransmission data stored in the queue, a part of the multiple second time slots is configured as the retransmission time slots of the first earphone.
  • the mobile phone selectively configures a retransmission time slot for the second earphone in multiple second time slots in the second sub-period of the event cycle according to the indication information of the second earphone.
  • the mobile phone determines that the second earphone has data that has not been successfully received according to the indication information fed back by the second earphone, then the data that is not successfully received by the second earphone is stored in the second retransmission data queue, and the mobile phone obtains the second retransmission data According to the data volume of the second retransmission data stored in the queue, a part of the multiple second time slots is configured as the retransmission time slots of the second earphone.
  • the above event cycle can also be called CIG event.
  • the mobile phone is used as the master device, which is represented by G in the following; the first earphone is used as the first slave device, which is represented by T1 in the following; the second earphone is used as the second slave device, which is represented by T2 in the following express.
  • the first sub-period may be called a reserved time interval (reserve interval)
  • the second sub-period may be called a retransmission interval (retry interval).
  • the first sub-cycle includes a plurality of new transmission time slots, and the number of new transmission time slots in the first sub-cycle can be preset.
  • the mobile phone can set the first sub-cycle according to the amount of audio data to be transmitted. The duration of the cycle, or in other words, the number of new transmission time slots included in the first sub-cycle is set.
  • the mobile phone can send audio data to the first earphone and the second earphone respectively in a serial manner or in an interleaved manner.
  • the mobile phone sending audio data to two earphones in a serial manner on a new transmission time slot as an example.
  • the mobile phone can send the same audio data to the first earphone and the second earphone.
  • the mobile phone sends audio data to the first earphone and receives the first new transmission time slot Instruction information fed back by an earphone according to the data reception situation; on the second new transmission time slots corresponding to K second mobile phones, audio data is sent to the second earphone, and the instruction information fed back by the first earphone according to the data reception situation is received .
  • K first new transmission time slots are adjacent time slots
  • K second new transmission time slots are adjacent time slots
  • the first new transmission time slots and the second new transmission time slots do not overlap.
  • the first sub-cycle contains 10 new transmission time slots, as shown in Figure 3, the first 5 new transmission time slots in the 10 new transmission time slots are the first new transmission time slots corresponding to the first mobile phone T1,
  • the mobile phone G sends audio data to the first earphone T1 through the first CIS link, which is represented as G ⁇ T1 in Figure 3;
  • the first earphone T1 transmits audio data in the 5 first new transmission time slots Monitor the first CIS link, receive the audio data sent by the mobile phone G, and feed back instruction information to the mobile phone G according to the data reception situation, which is represented as T1 ⁇ G in FIG. 3 .
  • the indication information sent by the first earphone T1 to the mobile phone G includes ACK information, Indicates that the first earphone T1 has successfully received the audio data on the first new transmission time slot; if the first earphone T1 receives the audio data sent by the mobile phone G, but the data is incorrect and has not passed the verification, or, if the first earphone T1 If the audio data sent by the mobile phone G is not received, the indication information sent by the first earphone T1 to the mobile phone G includes NACK information, indicating that the first earphone T1 has not successfully received the audio data in the first new transmission time slot.
  • the mobile phone G receives the indication information fed back by the first earphone T1. On any first new transmission time slot, if the indication information received by the mobile phone G contains ACK information, there is no need to transmit the information on the first new transmission time slot.
  • the audio data is stored in the first retransmission data queue, and if the indication information received by the mobile phone G contains NACK information, the audio data transmitted on the first new transmission time slot is stored in the first retransmission data queue.
  • the mobile phone G receives all indication information fed back by the first earphone T1 including ACK information, then all audio data does not need to be retransmitted, and there is no need to save any audio data to the first retransmission data queue,
  • the first retransmission data queue may be empty, that is, the data amount of the first retransmission data in the first retransmission data queue is 0.
  • the last 5 new transmission time slots in the above-mentioned 10 new transmission time slots are the second new transmission time slots corresponding to the second mobile phone T2.
  • the mobile phone G communicates to The second earphone T2 sends audio data, represented as G ⁇ T2 in Fig. 3;
  • the second earphone T2 monitors the second CIS link on 5 second new transmission time slots, receives the audio data sent by the mobile phone G, and according to The receiving status of the data feeds back indication information to the mobile phone G, which is represented as T2 ⁇ G in FIG. 3 .
  • the indication information sent by the second earphone T2 to the mobile phone G includes ACK information, Indicates that the second earphone T2 has successfully received audio data on the second new transmission time slot; if the second earphone T2 receives the audio data sent by the mobile phone G, but the data is incorrect and has not passed the verification, or if the second earphone T2 If the audio data sent by the mobile phone G is not received, the indication information sent by the second earphone T2 to the mobile phone G includes NACK information, indicating that the second earphone T2 has not successfully received the audio data in the second new transmission time slot.
  • the mobile phone G receives the indication information fed back by the second earphone T2. On any second new transmission time slot, if the indication information received by the mobile phone G contains ACK information, there is no need to transmit the information on the second new transmission time slot.
  • the audio data is stored in the second retransmission data queue, and if the indication information received by the mobile phone G contains NACK information, the audio data transmitted on the second new transmission time slot is stored in the second retransmission data queue.
  • the mobile phone G receives all indication information fed back by the second earphone T2 including ACK information, then all audio data does not need to be retransmitted, and there is no need to save any audio data to the second retransmission data queue,
  • the second retransmission data queue may be empty, that is, the data amount of the second retransmission data in the second retransmission data queue is 0.
  • the second sub-period may include a plurality of second slots.
  • the number of the second time slots included in the second sub-cycle can also be pre-set, in the same way as the setting method of the first sub-cycle, and the mobile phone can also set the second time slot according to the amount of audio data to be transmitted.
  • the number of second slots included in the cycle may include a plurality of second slots.
  • the number of time slots included in the second sub-cycle is the same as that of the first sub-cycle, that is, 2K second time slots are included.
  • the number of new transmission time slots included in the first sub-cycle may also be different from the number of second time slots included in the second sub-cycle.
  • the mobile phone G in the 2K second time slots of the second sub-period of the event cycle, can selectively select the first retransmission data according to the amount of first retransmission data stored in the first retransmission data queue
  • a headset T1 is configured with a retransmission time slot; similarly, the mobile phone G may selectively configure a retransmission time slot for the second headset T2 according to the amount of second retransmission data stored in the second retransmission data queue.
  • the retransmission time slots configured by the mobile phone G for the first earphone T1 and the second earphone T2 are arranged in series.
  • the number of first retransmission time slots configured for the first earphone T1 may be different from the number of second retransmission time slots configured for the second earphone T2.
  • M first retransmission data for the first earphone T1 in the 2K second time slots of the second subcycle Transmission time slot:
  • N second retransmissions for the second earphone T2 in the 2K second time slots of the second subcycle Time slots, wherein the M first retransmission time slots and the N second retransmission time slots do not overlap, and the first time slot of the M first retransmission time slots is the first of the second sub-period time slots, the last time slot among the M first retransmission time slots and the first time slot among the N second retrans
  • the second sub-period contains 10 second time slots
  • 2 second time slots for the first earphone T1 in the 10 second time slots of the second sub-period.
  • One retransmission time slot according to the data volume of the second retransmission data, it is necessary to configure 4 second retransmission time slots for the second earphone T2 in the 2K second time slots of the second subcycle.
  • the first 2 second time slots in the 10 second time slots are the first retransmission time slots
  • the next 4 second time slots are the second retransmission time slots
  • the 2 first time slots are the second retransmission time slots.
  • the retransmission time slot and the 4 second retransmission time slots are 6 consecutive time slots, and there is no idle time slot in between.
  • the mobile phone G sends the first retransmission data to the first earphone T1 through the first CIS link
  • the mobile phone G sends the first retransmission data to the second earphone T1 through the first CIS link T2 sends the second retransmission data.
  • the number of transmission time slots included in the first sub-cycle and the second sub-cycle and the number of remaining time slots in the second sub-cycle above are all exemplary illustrations. In actual use, the remaining time slots in an event cycle The number of may be more, and the remaining time slots are all connected time slots at the end of the event period, so it is more conducive to be used.
  • the first earphone T1 cannot determine its corresponding retransmission time slot, therefore, if in the first sub-period, the first earphone T1 has data that is not successfully received, that is, the first earphone T1 sends a message to the mobile phone G.
  • At least one of the indication information fed back contains NACK information, then in the multiple second time slots of the second sub-period, the first earphone T1 continues to monitor the data of the first CIS link, and at least one of the first CIS link
  • the retransmission data sent by the mobile phone G is monitored on the second time slot; the at least one second time slot is the retransmission time slot configured by the mobile phone G for the first earphone T1 according to the indication information fed back by the first earphone T1.
  • the first earphone T1 If in the first sub-period, the first earphone T1 has no unsuccessfully received data, that is, all the indication information fed back by the first earphone T1 to the mobile phone G includes ACK information, then in the second sub-period, the first The earphone T1 does not need to monitor the data of the first CIS link, which can save power consumption.
  • the mobile phone can send the same audio data to the first earphone and the second earphone.
  • the mobile phone can send the same audio data to the first earphone and the second earphone.
  • the mobile phone sends audio data to the first earphone and receives the first new transmission time slot
  • Instruction information fed back by an earphone according to the data reception situation on the second new transmission time slots corresponding to K second mobile phones, audio data is sent to the second earphone, and the instruction information fed back by the first earphone according to the data reception situation is received .
  • K first new transmission time slots and K second new transmission time slots are arranged at intervals.
  • the first sub-cycle contains 10 new transmission time slots, as shown in Figure 4, in the first new transmission time slot, the mobile phone G sends audio data to the first headset T1 through the first CIS link, as shown in Figure 4 where it is expressed as G ⁇ T1; the first earphone T1 monitors the first CIS link in the first new transmission time slot, receives the audio data sent by the mobile phone G, and feeds back indication information to the mobile phone G according to the receiving situation of the data, It is expressed as T1 ⁇ G in FIG. 4 .
  • the mobile phone G sends audio data to the second earphone T2 through the second CIS link, which is represented as G ⁇ T2 in Fig.
  • the second CIS link monitors, receives the audio data sent by the mobile phone G, and feeds back indication information to the mobile phone G according to the data reception situation, which is represented as T2 ⁇ G in FIG. 4 .
  • the mobile phone G sends audio data to the first earphone T1 through the first CIS link
  • the mobile phone G sends audio data to the second earphone T2 through the second CIS link Send audio data, and so on.
  • the time slot corresponding to the first earphone T1 may be called a first new transmission time slot
  • the time slot corresponding to the second earphone T2 may be called a second new transmission time slot.
  • the indication information sent by the first earphone T1 to the mobile phone G contains ACK information, Indicates that the first earphone T1 has successfully received the audio data on the first new transmission time slot; if the first earphone T1 receives the audio data sent by the mobile phone G, but the data is incorrect and has not passed the verification, or, if the first earphone T1 If the audio data sent by the mobile phone G is not received, the indication information sent by the first earphone T1 to the mobile phone G includes NACK information, indicating that the first earphone T1 has not successfully received the audio data in the first new transmission time slot.
  • the mobile phone G receives the indication information fed back by the first earphone T1. On any first new transmission time slot, if the indication information received by the mobile phone G contains ACK information, there is no need to transmit the information on the first new transmission time slot.
  • the audio data is stored in the first retransmission data queue, and if the indication information received by the mobile phone G contains NACK information, the audio data transmitted on the first new transmission time slot is stored in the first retransmission data queue.
  • the mobile phone G saves the audio data not successfully received by the second earphone T2 to the second retransmission data queue according to the indication information fed back by the second earphone T2.
  • the second sub-period may include a plurality of second slots.
  • the number of the second time slots included in the second sub-cycle can also be pre-set, in the same way as the setting method of the first sub-cycle, and the mobile phone can also set the second time slot according to the amount of audio data to be transmitted.
  • the number of second slots included in the period can be pre-set, in the same way as the setting method of the first sub-cycle, and the mobile phone can also set the second time slot according to the amount of audio data to be transmitted.
  • the number of second slots included in the period may include a plurality of second slots.
  • the number of time slots included in the second sub-cycle is the same as that of the first sub-cycle, that is, 2K second time slots are included.
  • the number of new transmission time slots included in the first sub-cycle may also be different from the number of second time slots included in the second sub-cycle.
  • the mobile phone G in the 2K second time slots of the second sub-period of the event cycle, can selectively select the first retransmission data according to the amount of first retransmission data stored in the first retransmission data queue
  • a headset T1 is configured with a retransmission time slot; similarly, the mobile phone G may selectively configure a retransmission time slot for the second headset T2 according to the amount of second retransmission data stored in the second retransmission data queue.
  • the retransmission time slots configured by the mobile phone G for the first earphone T1 and the second earphone T2 are arranged in an interleaved manner.
  • the number of first retransmission time slots configured for the first earphone T1 may be different from the number of second retransmission time slots configured for the second earphone T2.
  • M first retransmission data for the first earphone T1 in the 2K second time slots of the second subcycle Transmission time slot According to the data volume of the second retransmission data stored in the second retransmission data queue, it is necessary to configure N second retransmissions for the second earphone T2 in the 2K second time slots of the second subcycle time slots, where M is less than N.
  • the configured M first retransmission time slots are spaced apart from the M second retransmission time slots in the N second retransmission time slots, and the N-M second retransmission time slots in the N second retransmission time slots Transmission time slots are adjacent time slots.
  • the second sub-period contains 10 second time slots
  • the first retransmission time slot and the second retransmission time slot are arranged at intervals, that is, 2 first retransmission time slots and 2
  • the second retransmission time slots are arranged at intervals, and there are two adjacent second retransmission time slots next to each other.
  • the 2 first retransmission time slots and the 4 second retransmission time slots are 6 consecutive time slots, and there is no idle time slot in between.
  • the mobile phone G sends the first retransmission data to the first earphone T1 through the first CIS link
  • the mobile phone G sends the first retransmission data to the second earphone T1 through the first CIS link T2 sends the second retransmission data.
  • the 10 second time slots of the second sub-period after selectively configuring the retransmission time slots for the first earphone T1 and the second earphone T2, there are 4 remaining second time slots, called remaining time slots, 4 The remaining time slots are connected time slots, called remaining time slots, and the 4 remaining time slots are connected time slots.
  • the number of transmission time slots included in the first sub-cycle and the second sub-cycle and the number of remaining time slots in the second sub-cycle above are all exemplary illustrations. In actual use, the remaining time slots in an event cycle The number of may be more, and the remaining time slots are all connected time slots at the end of the event period, so it is more conducive to be used.
  • the transmission time slots corresponding to the first earphone T1 and the second earphone T2 in each event period are preset fixed parameters. For example, when the transmission time slots corresponding to the first earphone T1 in each event period are preset When the transmission time slots and the transmission time slots corresponding to the second earphone T2 are arranged at intervals, if the transmission quality of the communication channel of the first earphone T1 is good, and the audio data to be retransmitted is less, in one event cycle, the first earphone T1 After all the audio data that needs to be retransmitted are transmitted, the transmission time slot corresponding to the first earphone T1 becomes an idle time slot.
  • the mobile phone G since the transmission time slot corresponding to the first earphone T1 and the transmission time slot corresponding to the second earphone T2 are still arranged at intervals, the mobile phone G still sends retransmission data to the second earphone T2 on the transmission time slot corresponding to the second earphone T2 , there will be a phenomenon that the idle time slots are arranged at intervals with the transmission time slots corresponding to the second earphone T2, that is, the idle time slots are separated by the transmission time slots corresponding to the second earphone T2, rather than connected time slots, so they cannot be effectively used use.
  • the mobile phone G configures retransmission time slots for the first earphone T1 and the second earphone T2 respectively, Regardless of whether the retransmission time slots corresponding to the first earphone T1 and the second earphone T2 are arranged in a serial manner or in an interleaved manner, all the retransmission time slots in the second sub-cycle can be connected time slots, and the second The remaining time slots in the sub-period are also consecutive time slots, which facilitates effective use of the remaining time slots.
  • the remaining time slots in the second sub-period can be used to transmit other service data.
  • the mobile phone G in the remaining second time slot, can transmit communication control signaling to the first earphone T1 or the second earphone T2 through an asynchronous link, and the asynchronous link also belongs to Bluetooth wireless communication One of the links, used to transmit control signaling that does not require synchronous transmission, etc.
  • the mobile phone G and the first earphone T1 can use the remaining time slots in the second sub-period to transmit communication control signaling and negotiate updated communication parameters to better transmit data.
  • the mobile phone G in the remaining second time slot, can transmit service data to other communication devices except the first earphone T1 and the second earphone T2, for example, based on the short-distance wireless communication protocol, with
  • the devices connected to the mobile phone G include a third device in addition to the first earphone T1 and the second earphone T2, and the third device may be a smart watch or a health monitoring device.
  • the mobile phone G can use the remaining time slots in the second sub-period to transmit data between the smart watch or the health monitoring device through the ACL link.
  • the update data package can be downloaded through the mobile phone G, at this time, the smart watch can establish an ACL link with the mobile phone G through the Bluetooth chip.
  • the mobile phone G can use the idle time slot of the CIS link, that is, the remaining time slot of the second sub-cycle of each event cycle, to send the data in the update data packet to the smart watch through the ACL link. Since the software upgrade service does not have high time requirements, when there are no remaining time slots or the number of remaining time slots is small in a certain event cycle, in this event cycle, the data in the update data packet may not be sent to the smart watch, Wait until the next event cycle, and then use the remaining time slots to send the data in the update packet to the smart watch.
  • the mobile phone G can also use the idle time slot of the CIS link to send an instruction to monitor user health indicators to the health monitoring device through the ACL link, and receive user health data returned by the health monitoring device through the ACL link .
  • the number of time slots included in the second sub-period of an event cycle may be different from that in the first sub-period. For example, suppose that in an event period, the first sub-period includes 14 new transmission time slots, and the second sub-period includes 8 retransmission time slots. According to the data amount of the first retransmission data, it is necessary to configure two first retransmission time slots for the first earphone T1 in the second subcycle; according to the data amount of the second retransmission data, it is necessary to configure , configure six second retransmission time slots for the second headset T2.
  • an event cycle since the transmission time slots corresponding to the first earphone T1 and the second earphone T2 are average, in the above case, the first earphone T1 needs to retransmit less data, and there will be some remaining There are idle time slots, and the second earphone T2 needs to retransmit more data, but the number of transmission time slots is less, and some of the retransmitted data cannot be transmitted.
  • an event cycle is divided into a first sub-cycle and a second sub-cycle.
  • the amount of data to be retransmitted according to the first earphone T1 and the second earphone T2 is the first
  • the earphone T1 and the second earphone T2 are configured with retransmission time slots.
  • This method of link hybrid transmission in view of the above situation, when the first earphone T1 needs to retransmit less data, more second time slots can be allocated to The second earphone T2 is used to transmit the data that needs to be retransmitted by the second earphone T2. Compared with related technologies, it can increase the retransmission chance of data and improve the reliability of data transmission.
  • this embodiment of the present application provides a data transmission method, which can be executed by a master control device, for example, can be executed by the master control device 100 shown in FIG. 1 .
  • the method may include the following steps:
  • the master device establishes Bluetooth synchronous communication links for data transmission with at least two slave devices, and transmits serially or interleavedly to at least Two slave devices transfer data.
  • the first slave device may be any one of at least two slave devices. If the master device determines that the first slave device has unsuccessfully received data according to the indication information fed back by the first slave device, then configure at least one of the plurality of second time slots as a retransmission time slot of the first slave device.
  • the master device saves the data that has not been successfully received by the first slave device to the first retransmission data queue.
  • the master control device obtains the data volume of the first retransmission data stored in the first retransmission data queue, and configures at least one of the plurality of second time slots as the first slave device according to the data volume of the first retransmission data retransmission time slot.
  • the retransmission time slots configured for at least two slave devices are serially configured. way to arrange. If data is transmitted to at least two slave devices in an interleaved manner on multiple first time slots, then in multiple second time slots, the retransmission time slots configured for at least two slave devices are arranged in an interleaved manner .
  • the remaining time slot refers to the second time slot that is not allocated to any slave device.
  • the embodiments of the present application further provide a data transmission method, the method may be executed by a first slave device, and the first slave device may be any one of at least two slave devices. For example, it may be executed by the first slave device 200 as shown in FIG. 1 . As shown in Figure 6, the method may include the following steps:
  • the indication information includes the first type of indication information, continuously monitor data on multiple second time slots in the second sub-period of the event cycle, and monitor the master control device on at least one second time slot The retransmission data sent.
  • the first type of indication information is used to indicate that the first slave device has unsuccessfully received data; at least one second time slot is when the master control device configures retransmission for the first slave device according to the indication information fed back by the first slave device Gap.
  • the embodiments of the present application further provide a data transmission device, which can be applied to a master device, such as the master device 100 shown in FIG. 1 .
  • the main control device may include a bluetooth chip, and the data transmission device may also be applied to the bluetooth chip of the main control device.
  • the data transmission device can be used to realize the functions of the above method embodiments, and thus can realize the beneficial effects possessed by the above method embodiments.
  • the data transmission device may include a sending unit, a receiving unit and a configuration unit.
  • the data transmission device is used to realize the functions in the above method embodiment shown in FIG. 5 .
  • the sending unit may be used to perform S501
  • the receiving unit may be used to perform S502
  • the configuration unit may be used to perform S503.
  • the sending unit is used to transmit data to at least two slave devices respectively on multiple first time slots of the first sub-period of the event cycle;
  • the receiving unit is used to receive at least two slave devices according to the reception of data Indication information fed back separately;
  • a configuration unit configured to selectively configure retransmission time slots for at least two slave devices in multiple second time slots in the second sub-period of the event cycle according to the indication information.
  • the configuration unit is specifically configured to: if it is determined according to the indication information fed back by the first slave device that there is data that has not been successfully received by the first slave device, at least one of the multiple second time slots , configured as a retransmission time slot of the first slave device; the first slave device is any one of at least two slave devices.
  • the sending unit is further configured to: transmit communication control signaling to at least two slave devices in the remaining time slots of the second subcycle, or transmit communication control signaling to at least two slave devices
  • the device transmits service data; wherein, the remaining time slot refers to a second time slot that is not allocated to any slave device.
  • the configuration unit is specifically configured to: if it is determined according to the indication information fed back by the first slave device that there is data that has not been successfully received by the first slave device, save the data that has not been successfully received by the first slave device To the first retransmission data queue; obtain the data volume of the first retransmission data stored in the first retransmission data queue; according to the data volume of the first retransmission data, configure at least one of the multiple second time slots is the retransmission time slot of the first slave device.
  • the sending unit is specifically configured to: after the master device establishes Bluetooth synchronous communication links for data transmission with at least two slave devices, on multiple first time slots, In serial mode or interleaved mode, transmit data to at least two slave devices respectively. If data is transmitted to at least two slave devices in a serial manner on multiple first time slots, then in multiple second time slots, the retransmission time slots configured for at least two slave devices are serially configured. way to arrange. If data is transmitted to at least two slave devices in an interleaved manner on multiple first time slots, then in multiple second time slots, the retransmission time slots configured for at least two slave devices are arranged in an interleaved manner .
  • the embodiment of the present application also provides a data transmission device, which can be applied to any slave device, such as the first slave device 200 shown in FIG. 1 .
  • the first slave device 200 may include a Bluetooth chip, and the data transmission device may also be applied to a Bluetooth chip of any slave device.
  • the data transmission device can be used to realize the functions of the above method embodiments, and thus can realize the beneficial effects possessed by the above method embodiments.
  • the data transmission device may include a first listening unit and a second listening unit.
  • the data transmission device is used to implement the functions in the above method embodiment shown in FIG. 6 .
  • the first monitoring unit may be used to perform S601
  • the second monitoring unit may be used to perform S602.
  • the first monitoring unit is used to receive the data sent by the master device on the first time slot corresponding to the first slave device in the first sub-period of the event cycle, and send the data to the master device according to the receiving situation of the data Feedback indication information;
  • the second monitoring unit is configured to continuously monitor data on multiple second time slots in the second sub-period of the event cycle if the indication information includes the first type of indication information, and perform data monitoring in at least one first time slot
  • the retransmission data sent by the master device is monitored on the second time slot; at least one second time slot is the retransmission time slot configured by the master device for the first slave device according to the indication information fed back by the first slave device; the first type of indication
  • the message is used to indicate that there is data that was not successfully received by the first slave.
  • the embodiment of the present application also provides a data transmission device, which can be a Bluetooth chip in the master device or any slave device, or a master device or any slave device. from the device.
  • the data transmission device can be used to realize the functions of the above method embodiments, and thus can realize the beneficial effects possessed by the above method embodiments.
  • the data transmission device may be a Bluetooth chip.
  • the Bluetooth chip 700 may include a processor 701 and a transceiver 702 connected to the processor 701 .
  • the processor 701 and the transceiver 702 may be connected to each other through a bus, and the processor 701 may be a general-purpose processor, such as a microprocessor, or other conventional processors.
  • the bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus or the like.
  • PCI peripheral component interconnect
  • EISA extended industry standard architecture
  • the bus can be divided into address bus, data bus, control bus and so on.
  • the transceiver 702 when the data transmission device is the Bluetooth chip in the master device, the transceiver 702 is configured to, under the control of the processor, perform multiple first time slots in the first sub-period of the event cycle , respectively transmit data to at least two slave devices, and receive instruction information fed back by at least two slave devices according to their respective data receiving conditions; processor 701 is configured to, according to the received instruction information, in the second sub-second of the event cycle In the multiple second time slots of the period, selectively configure retransmission time slots for at least two slave devices respectively.
  • the processor 701 is specifically configured to: if it is determined according to the indication information fed back by the first slave device that there is data that has not been successfully received by the first slave device, at least One, configured as a retransmission time slot of the first slave device; the first slave device is any one of at least two slave devices.
  • the transceiver 702 is further configured to: transmit communication control signaling to at least two slave devices in the remaining time slots of the second subcycle, or transmit communication control signaling to at least two slave devices other than the at least two slave devices
  • the communication device transmits service data; wherein, the remaining time slot refers to a second time slot that is not allocated to any slave device.
  • the transceiver 702 when the data transmission device is a Bluetooth chip in the slave device, the transceiver 702 is configured to, under the control of the processor, in the first sub-period of the event cycle, in the corresponding In the first time slot, the data sent by the master control device is received; the processor 701 is used to generate indication information fed back to the master control device according to the reception of the data; the transceiver 702 is also used to send the indication information to the master control device; And when the indication information contains the first type of indication information, continuously monitor the data on a plurality of second time slots in the second sub-period of the event cycle, and listen to the master device sending a message in at least one second time slot The retransmission data; then in the second sub-period of the event period, continue to monitor the data on multiple second time slots, and monitor the retransmission data sent by the master device in at least one second time slot; at least one The second time slot is a retransmission time slot configured by the master control device for the data
  • the data transmission device may be a main control device, and the main control device may be a mobile phone, or other sound source equipment that provides Bluetooth wireless communication functions, such as electronic equipment such as vehicle terminals, wearable terminals, TVs, and computers.
  • the main control device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, battery 142 , transceiver 150 , audio module 160 , and display screen 170 .
  • the transceiver 150 may include a Bluetooth chip for short-distance data transmission with the slave device.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the main control device 100 .
  • the main control device 100 may include more or fewer components than shown in the illustration, or combine some components, or separate some components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a controller, a digital signal processor (digital signal processor, DSP), baseband processor, etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the interface may include an inter-integrated circuit (I2C) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, and/or a universal serial bus (universal serial bus, USB) interface, etc.
  • I2C inter-integrated circuit
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • USB universal serial bus
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 can receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through the wireless charging coil of the main control device 100 . While the charging management module 140 is charging the battery 142 , it can also supply power to the main control device through the power management module 141 .
  • the transceiver 150 can implement a mobile communication function and a wireless communication function.
  • the transceiver 150 may include a mobile communication component for implementing a mobile communication function.
  • the mobile communication component may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication component can receive electromagnetic waves through the antenna, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication component can also amplify the signal modulated by the modem processor, and convert it into electromagnetic wave and radiate it through the antenna.
  • the transceiver 150 may include a wireless communication component for implementing a wireless communication function.
  • the wireless communication component may include a bluetooth chip for transmitting data with each slave device.
  • the Bluetooth chip can receive the data or signaling signal to be sent from the processor 110, perform frequency modulation on it, amplify it, and convert it into electromagnetic wave and radiate it through the antenna.
  • the main control device 100 can implement an audio function through an audio module 160, such as a speaker. For example music playback etc.
  • the master control device 100 can also send the audio data to be played to slave devices such as a Bluetooth headset or a speaker providing a Bluetooth wireless communication device through the transceiver 150, and can also play music.
  • Touch sensor also known as "touch device”.
  • the touch sensor can be disposed on the display screen 170, and the touch sensor and the display screen 170 form a touch screen, also called “touch screen”.
  • the touch sensor is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 170 .
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the main control device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the storage program area can store an operating system, at least one application required by a function (such as a music playing application) and the like.
  • the storage data area can store data (such as audio files or audio and video files) created during the use of the main control device 100 .
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the processor 110 executes various functional applications and data processing of the main control device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor. Corresponding program codes for controlling the transceiver 150 to communicate with other devices may also be stored in the internal memory 121 . When the corresponding program code stored in the internal memory 121 is executed by the processor 110, the steps of the data transmission method shown in FIG. 5 can be implemented. Of course, the relevant audio data and program codes provided by the embodiments of the present application may also be stored in an external memory. In this case, the processor 110 can run corresponding program codes stored in the external memory through the external memory interface 120, so as to implement the steps of the data transmission method shown in FIG. 5 .
  • the data transmission device may be any slave device, and the slave device may be a bluetooth earphone, or an audio playback device with a bluetooth wireless communication function, such as a loudspeaker, a sound box, and the like.
  • the first slave device 200 may include a processor 210 , a memory 220 , a transceiver 230 and an audio module 240 .
  • the transceiver 230 may include a Bluetooth chip for short-distance data transmission with the main control device.
  • the processor 210, memory 220, transceiver 230 and audio module 240 are interconnected.
  • the memory 220, the processor 210, the transceiver 230, and the audio module 240 are connected to each other through a bus, the memory 220 is used to store program codes, and the processor 210 can acquire program codes from the memory 220 and execute corresponding deal with.
  • the bus can be a PCI bus or an EISA bus or the like.
  • the bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 9 , but it does not mean that there is only one bus or one type of bus.
  • the transceiver 230 may include a Bluetooth chip for transmitting data with the master device.
  • the first slave device 200 receives the audio data sent by the master device through the Bluetooth chip, transmits the audio data to the processor 210 for processing, and then plays the audio data to the user through the audio module 240 .
  • the memory 220 is used to store program instructions, data, and the like.
  • the program instructions may include program codes including computer operation instructions.
  • the memory 220 may include a random access memory (random access memory, RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
  • the processor 210 executes the program instructions stored in the memory 220, thereby realizing the steps in the data transmission method shown in FIG. 6 .
  • an embodiment of the present application further provides a computer program, which, when the computer program is run on a computer, causes the computer to execute any one of the data transmission methods provided in the above embodiments.
  • the embodiments of the present application also provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a computer, the computer can perform any of the functions provided in the above embodiments.
  • a data transfer method is provided in the above embodiments.
  • the storage medium may be any available medium that can be accessed by a computer.
  • computer-readable media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or may be used to carry or store information in the form of instructions or data structures desired program code and any other medium that can be accessed by a computer.
  • an embodiment of the present application further provides a chip, the chip is used to read a computer program stored in a memory, and implement any one of the data transmission methods provided in the above embodiments.
  • an embodiment of the present application provides a chip system, which includes a processor, configured to support a computer device to implement the functions involved in the master control device or the slave device in the above embodiments.
  • the chip system further includes a memory, and the memory is used to store necessary programs and data of the computer device.
  • the system-on-a-chip may consist of chips, or may include chips and other discrete devices.
  • the embodiment of the present application provides a data transmission method and device.
  • data is transmitted between the master device and at least two slave devices according to the event cycle, and each event cycle includes the first sub-cycle And the second sub-cycle, in the first sub-cycle, the master device transmits data to each slave device in the pre-configured transmission time slot corresponding to each slave device, and receives each slave device according to its own data reception status Instructions for separate feedback.
  • the indication information fed back by the slave device indicates that the slave device has data that has not been successfully received, then in the second sub-period, configure a retransmission time slot for the slave device; If the indication information fed back by the slave device indicates that the slave device has no unsuccessfully received data, in the second sub-period, no retransmission time slot needs to be configured for the slave device.
  • the second time slots not configured for any slave device may be referred to as remaining time slots.
  • each slave device in the first sub-cycle dynamically configure the retransmission time slot for each slave device in the second sub-cycle, so that the retransmission time slot corresponding to each slave device in the second sub-cycle is For the connected time slots, the remaining time slots in the second sub-period are also connected time slots, which facilitates the effective use of the remaining time slots and reduces the waste of air interface resources.
  • the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions
  • the device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

Abstract

本申请公开了一种数据传输方法和装置,属于短距离无线通信技术领域。本申请的主控设备与至少两个从设备之间按照事件周期传输数据,每个事件周期包括第一子周期和第二子周期,在第一子周期中,主控设备分别向各个从设备传输数据,并接收各个从设备根据各自的数据接收情况分别反馈的指示信息。根据第一子周期中各个从设备的指示信息,动态地在第二子周期中为各个从设备配置重传时隙的方式,可以使第二子周期中各个从设备对应的重传时隙是相连的时隙,第二子周期中的剩余时隙也是相连的时隙,从而有利于剩余时隙被有效利用,减少空口资源的浪费现象。

Description

数据传输方法和装置 技术领域
本申请涉及短距离无线通信技术领域,具体涉及一种数据传输方法和装置。
背景技术
近年来,随着无线通信技术的发展,提供蓝牙无线通信功能的电子设备逐渐普及,手机、车载终端、穿戴式终端等电子设备均可提供蓝牙无线通信功能。例如,手机内设置有蓝牙芯片,可以通过蓝牙芯片向蓝牙耳机传输音频信号,实现通过蓝牙耳机播放音乐的功能。
手机和蓝牙耳机等具备蓝牙无线通信功能的设备之间,可以通过蓝牙低功耗(bluetooth low energy,BLE)协议进行数据传输。一副耳机通常包括两个蓝牙耳机。目前,在通过BLE协议进行数据传输时,两个蓝牙耳机与手机之间按照设定的事件(event)周期传输数据,在一个event周期中,两个蓝牙耳机在各自对应的传输时隙内与手机之间传输数据。在一个event周期中,两个蓝牙耳机的传输时隙的个数是平均的。
两个蓝牙耳机分别为第一耳机和第二耳机,示例性地,在一个event周期中,手机通过第一耳机的传输时隙与第一耳机进行数据新传和数据重传,并通过第二耳机的传输时隙与第二耳机进行数据新传和数据重传。其中,数据新传指任意一个音频数据的首次传输,数据重传指音频数据的非首次传输。
由于在一个event周期中,两个蓝牙耳机各自对应的传输时隙是预先设定的且是固定的,如果一个蓝牙耳机对应的通信信道的传输质量较好,其需要重传的音频数据较少,则会剩余部分传输时隙,剩余的传输时隙称为空口。由于剩余的传输时隙无法被有效利用,导致大量的空口资源浪费。
发明内容
本申请实施例提供一种数据传输方法和装置,用以减少空口资源的浪费现象。
第一方面,本申请实施例提供一种数据传输方法,该方法包括:主控设备在事件周期的第一子周期的多个第一时隙上,分别向至少两个从设备传输数据,并接收至少两个从设备根据各自的数据接收情况分别反馈的指示信息,根据接收到的指示信息,在事件周期的第二子周期的多个第二时隙中,选择性地为上述至少两个从设备分别配置重传时隙。例如,将上述至少两个从设备中的任意一个称为第一从设备,如果根据第一从设备反馈的指示信息确定第一从设备存在未成功接收的数据,则将多个第二时隙中的至少一个,配置为该第一从设备的重传时隙。
本申请实施例中,主控设备与至少两个从设备之间按照事件周期传输数据,每个事件周期包括第一子周期和第二子周期,在第一子周期中,主控设备在预先配置的各个从设备对应的传输时隙上,分别向各个从设备传输数据,并接收各个从设备根据各自的数据接收情况分别反馈的指示信息。根据第一子周期中各个从设备的指示信息,动态地在第二子周期中为各个从设备配置重传时隙的方式,与相关技术在事件周期中各个从设备对应的传输时隙均是预先设定的固定时隙相比,可以使第二子周期中各个从设备对应的重传时隙是相 连的时隙,从而有利于减少空口资源的浪费现象。
例如,对于至少两个从设备中的任意一个从设备,如果该从设备反馈的指示信息指示该从设备存在未成功接收的数据,则在第二子周期中,为该从设备配置重传时隙;如果该从设备反馈的指示信息指示该从设备不存在未成功接收的数据,则在第二子周期中,不需为该从设备配置重传时隙。在第二子周期中,未配置给任意一个从设备的第二时隙可以称为剩余时隙。上述在第二子周期中,动态地为各个从设备配置重传时隙的方式,可以使第二子周期中各个从设备对应的重传时隙是相连的时隙,第二子周期中的剩余时隙也是相连的时隙,从而有利于剩余时隙被有效利用,减少空口资源的浪费现象。
在一种可能的实现方式中,在第二子周期的剩余时隙上,主控设备可以向至少两个从设备传输通信控制信令,或向上述至少两个从设备之外的通信设备传输业务数据。其中,第二子周期的剩余时隙指未配置给任意一个从设备的第二时隙。例如,主控设备可以与上述至少两个从设备分别建立用于传输数据的蓝牙同步通信链路,在事件周期的第一子周期的多个第一时隙上,主控设备分别通过各个从设备对应的蓝牙同步通信链路向至少两个从设备传输数据。在第二子周期的剩余时隙上,主控设备可以通过蓝牙异步通信链路向上述至少两个从设备中的一个或多个从设备传输通信控制信令,或者,主控设备可以通过蓝牙异步通信链路向其它通信设备传输业务数据。示例性地,当智能手表中的软件需要升级时,可以通过主控设备下载更新数据包,此时,智能手表可以通过蓝牙芯片与主控设备连接,与主控设备之间建立蓝牙异步通信链路。主控设备可以利用蓝牙同步通信链路的空闲时隙,即第二子周期的剩余时隙,通过蓝牙异步通信链路向智能手表发送更新数据包中的数据。
通过上述方法,可以提高空口资源的利用率,使主控设备可以与更多设备连接,提高主控设备并发更多业务数据的能力,有利于多设备之间的共存。
在一种可能的实现方式中,主控设备为各个从设备分别设置重传数据队列。在事件周期的第一子周期的多个第一时隙上,主控设备分别通过至少两个从设备传输新传数据,并接收至少两个从设备根据各自的数据接收情况分别反馈的指示信息。将上述至少两个从设备中的任意一个称为第一从设备,如果根据第一从设备反馈的指示信息确定第一从设备存在未成功接收的数据,则将第一从设备未成功接收的数据保存至第一重传数据队列,获取第一重传数据队列中保存的第一重传数据的数据量,根据第一重传数据的数据量,将多个第二时隙中的一部分,配置为第一从设备的重传时隙。
通过为各个从设备分别设置重传数据队列,根据各个从设备对应的重传数据队列中需要重传的数据量,在第二子周期中可以准确地为各个从设备分配重传时隙,避免为各个从设备配置过多的重传时隙,导致空口资源浪费。
在一种可能的实现方式中,在事件周期的第一子周期的多个第一时隙上,主控设备以串行方式分别向上述至少两个从设备传输数据。在第二子周期的多个第二时隙中,为上述至少两个从设备分别配置的重传时隙以串行方式排列。例如,在事件周期的第一子周期中,主控设备以串行方式分别向第一从设备和第二从设备传输数据,假设第一子周期中包含2K个第一时隙,其中,前K个相邻的时隙,用于向第一从设备传输数据,后K个相邻的时隙,用于向第二从设备传输数据。在第二子周期的多个第二时隙中,如果为第一从设备配置M个第一重传时隙,为第二从设备配置N个第二重传时隙,其中,M个第一重传时隙和N个第二重传时隙不重叠,且M个第一重传时隙中的第一个时隙为第二子周期的第一个时隙,M个第一重传时隙中的最后一个时隙与N个第二重传时隙中的第一个时隙为相邻的时隙。
在另一种可能的实现方式中,在事件周期的第一子周期的多个第一时隙上,主控设备以交织方式分别向上述至少两个从设备传输数据。在第二子周期的多个第二时隙中,为上述至少两个从设备分别配置的重传时隙以交织方式排列。例如,在事件周期的第一子周期中,主控设备以交织方式分别向第一从设备和第二从设备传输数据,假设第一子周期中包含2K个第一时隙,在其中的K个第一从设备对应的第一新传时隙上,向第一从设备传输数据,在另外K个第二从设备对应的第二新传时隙上,向第二从设备传输数据。其中,K个第一新传时隙和K个第二新传时隙间隔排列。在第二子周期的多个第二时隙中,如果为第一从设备配置M个第一重传时隙,为第二从设备配置N个第二重传时隙,其中,M小于N。则配置得到的M个第一重传时隙与N个第二重传时隙中的M个第二重传时隙间隔排列,且N个第二重传时隙中的N-M个第二重传时隙为相邻的时隙。
与相关技术在各事件周期中每个从设备对应的传输时隙均是预先设定的固定参数相比,本申请实施例在第二子周期中,根据第一子周期中各个从设备的数据接收情况分别为各个从设备配置重传时隙,各个从设备对应的重传时隙以串行方式或交织方式排列,从而使第二子周期中的所有重传时隙为相连的时隙,第二子周期中的剩余时隙也是相连的时隙,从而有利于剩余时隙被有效利用。
第二方面,本申请实施例提供一种数据传输方法,该方法包括:第一从设备在事件周期的第一子周期中,在第一从设备对应的第一时隙上,接收主控设备发送的数据,并根据数据的接收情况向主控设备反馈指示信息,以使主控设备在事件周期的第二子周期的多个第二时隙中,选择性地为第一从设备配置重传时隙。如果指示信息中包含第一类指示信息,则在事件周期的第二子周期的多个第二时隙上,持续进行数据监听,并在至少一个第二时隙上监听到主控设备发送的重传数据,其中,第一类指示信息用于指示所述第一从设备存在未成功接收的数据,至少一个第二时隙是主控设备根据第一从设备反馈的指示信息为第一从设备配置的重传时隙;如果指示信息中不包含第一类指示信息,则在第二子周期,第一从设备无需进行数据监听,第一从设备可以关闭在事件周期的第二子周期的多个第二时隙上的数据监听,从而节约功耗。
第三方面,本申请实施例还提供一种数据传输装置,包括:收发机以及处理器;其中,收发机,用于在处理器的控制下,在事件周期的第一子周期的多个第一时隙上,分别向至少两个从设备传输数据,并接收至少两个从设备根据各自的数据接收情况分别反馈的指示信息;处理器,用于根据接收到的指示信息,在事件周期的第二子周期的多个第二时隙中,选择性地为至少两个从设备分别配置重传时隙。
在一种可能的实现方式中,处理器,具体用于:若根据第一从设备反馈的指示信息确定第一从设备存在未成功接收的数据,则将多个第二时隙中的至少一个,配置为第一从设备的重传时隙;第一从设备为至少两个从设备中的任意一个。
在一种可能的实现方式中,收发机,还用于:在第二子周期的剩余时隙上,向至少两个从设备传输通信控制信令,或向至少两个从设备之外的通信设备传输业务数据;其中,剩余时隙指未配置给任意一个从设备的第二时隙。
在一种可能的实现方式中,处理器,具体用于:若根据第一从设备反馈的指示信息确定第一从设备存在未成功接收的数据,则将第一从设备未成功接收的数据保存至第一重传数据队列;获取第一重传数据队列中保存的第一重传数据的数据量;根据第一重传数据的数据量,将多个第二时隙中的至少一个,配置为第一从设备的重传时隙。
在一种可能的实现方式中,收发机,具体用于:在多个第一时隙上,以串行方式或交织方式,分别向至少两个从设备发送音频数据。
在一种可能的实现方式中,若收发机在所述多个第一时隙上,以串行方式分别向至少两个从设备传输数据,则处理器在多个第二时隙中,为至少两个从设备分别配置的重传时隙以串行方式排列。
在一种可能的实现方式中,若收发机在多个第一时隙上,以交织方式分别向至少两个从设备传输数据,则处理器在多个第二时隙中,为至少两个从设备分别配置的重传时隙以交织方式排列。
在一种可能的实现方式中,收发机,还用于:在事件周期的第一子周期的多个第一时隙上,分别向至少两个从设备传输数据之前,与至少两个从设备分别建立用于传输数据的蓝牙同步通信链路。
第四方面,本申请实施例还提供一种数据传输装置,包括:收发机以及处理器;其中,收发机,用于在处理器的控制下,在事件周期的第一子周期中,在数据传输装置对应的第一时隙上,接收主控设备发送的数据;处理器,用于根据数据的接收情况生成向主控设备反馈的指示信息;收发机,还用于向主控设备发送指示信息;以及当指示信息中包含第一类指示信息时,在事件周期的第二子周期的多个第二时隙上,持续进行数据监听,并在至少一个第二时隙上监听到主控设备发送的重传数据;则在事件周期的第二子周期的多个第二时隙上,持续进行数据监听,并在至少一个第二时隙上监听到主控设备发送的重传数据;至少一个第二时隙是主控设备根据所述数据传输装置反馈的指示信息为数据传输装置配置的重传时隙;第一类指示信息用于指示数据传输装置存在未成功接收的数据。
第五方面,本申请实施例还提供一种数据传输装置,该数据传输装置包括相应的功能模块,分别用于实现第一方面提供的各方法中的步骤,具体参见方法示例中的详细描述,此处不做赘述。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块。例如,数据传输装置可以包括发送单元、接收单元和配置单元。发送单元,用于在事件周期的第一子周期的多个第一时隙上,分别向至少两个从设备传输数据;接收单元,用于接收至少两个从设备根据数据的接收情况分别反馈的指示信息;配置单元,用于根据指示信息,在事件周期的第二子周期的多个第二时隙中,选择性地为至少两个从设备分别配置重传时隙。
第六方面,本申请实施例还提供一种数据传输装置,该数据传输装置包括相应的功能模块,分别用于实现第一方面提供的各方法中的步骤,具体参见方法示例中的详细描述,此处不做赘述。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块。例如,数据传输装置可以包括第一监听单元和第二监听单元。其中,第一监听单元,用于在事件周期的第一子周期中,在第一从设备对应的第一时隙上,接收主控设备发送的数据,并根据数据的接收情况向主控设备反馈指示信息;第二监听单元,用于若指示信息中包含第一类指示信息,则在事件周期的第二子周期的多个第二时隙上,持续进行数据监听,并在至少一个第二时隙上监听到主控设备发送的重传数据;至少一个第二时隙是主控设备根据第一从设备反馈的指示信息为第一从设备配置的重传时隙;第一类指示信息用于指示所述第一从设备存在未成功接收的数据。
第七方面,本申请实施例还提供一种数据传输系统,包括第三方面提供的任一种数据传输装置和至少两个第四方面提供的数据传输装置。
第八方面,本申请提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序或指令,当计算机程序或指令被终端设备执行时,使得该终端设备执行上述第一方面提供的任一种方法或第二方面提供的方法。
第九方面,本申请提供一种计算机程序产品,该计算机程序产品包括计算机程序或指令,当该计算机程序或指令被终端设备执行时,实现上述第一方面提供的任一种方法或第二方面提供的方法。
上述第三方面至第九方面中任一方面可以达到的技术效果可以参照上述第一方面或第二方面中有益效果的描述,此处不再重复赘述。
附图说明
图1为本申请实施例的一种应用场景的示意图;
图2为本申请实施例中手机与两个蓝牙耳机的交互图;
图3为本申请实施例提供的一个事件周期包含的各个时隙的一种排列方式示意图;
图4为本申请实施例提供的一个事件周期包含的各个时隙的另一种排列方式示意图;
图5为本申请实施例提供的一种数据传输方法的流程图;
图6为本申请实施例提供的另一种数据传输方法的流程图;
图7为本申请实施例提供的数据传输装置的一种示例的示意图;
图8为本申请实施例提供的数据传输装置的另一种示例的示意图;
图9为本申请实施例提供的数据传输装置的另一种示例的示意图。
具体实施方式
为了使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图,对本申请实施例进行详细描述。本申请的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。显然,所描述的实施例仅仅是本申请一部分实施例,并不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
在介绍本申请实施例提供的具体方案之前,对本申请中的部分用语进行通用解释说明,以便于本领域技术人员理解,并不对本申请中的用语进行限定。
(1)BLE协议:又称为蓝牙低功耗协议,是具有蓝牙无线通信功能的电子设备之间进行数据传输的一种短距离无线通信协议。BLE协议可以包括点到点通信的连接同步数据流(connected isochronous stream,CIS)协议,以及相对应的由多路CIS构成的连接同步数据流组(connected isochronous group,CIG)协议。BLE协议的特点是:在固定的通信间隔内有限多次发送编码后的音频数据,该通信间隔在本申请实施例中称为事件周期。
(2)新传时隙:用于对音频数据进行首次传输所使用的时隙,即数据新传所使用的时隙。
(3)重传时隙:用于对音频数据进行非首次传输所使用的时隙,即数据重传所使用的时隙。
本申请实施例中“多个”是指两个或两个以上,鉴于此,本申请实施例中也可以将“多个”理解为“至少两个”。“至少一个”,可理解为一个或多个,例如理解为一个、两个或更多个。 例如,包括至少一个,是指包括一个、两个或更多个,而且不限制包括的是哪几个,例如,包括A、B和C中的至少一个,那么包括的可以是A、B、C、A和B、A和C、B和C、或A和B和C。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,字符“/”,如无特殊说明,一般表示前后关联对象是一种“或”的关系。
除非有相反的说明,本申请实施例提及“第一”、“第二”等序数词用于对多个对象进行区分,不用于限定多个对象的顺序、时序、优先级或者重要程度。
本申请实施例的一个典型应用场景如图1所示,主控设备100与第一从设备200和第二从设备201通过蓝牙无线通信链路建立短距离无线通信连接,进而在短距离内进行数据的无线传输,其中,蓝牙无线通信链路可以包括蓝牙同步通信链路,如基于CIS协议的CIS链路,还可以包括蓝牙异步通信链路,如异步链路(asynchronous connection link,ACL)。示例性地,主控设备100可以通过第一CIS链路与第一从设备200建立蓝牙无线通信连接,通过第二CIS链路与第二从设备201建立蓝牙无线通信连接。第一从设备200和第二从设备201可以基于短距离无线通信协议从主控设备100接收音频数据,以实现音频数据的播放。其中,短距离无线通信协议可以是BLE协议。
图1所示的应用场景中包括主控设备100和两个从设备,在另一些应用场景中,主控设备100可以与更多的从设备建立短距离无线通信连接,本申请实施例对从设备的数量不作限定。
图1中所示的主控设备100为设置有蓝牙芯片的手机。在另一些实施例中,主控设备也可以是提供蓝牙无线通信功能的其它音源设备,如车载终端、穿戴式终端、个人数字助理(personal digital assistant,PDA)、电视、计算机等电子设备。
图1中所示的第一从设备200和第二从设备201为蓝牙耳机,也可以称为双耳真无线(true wireless stereo,TWS)蓝牙耳机。在另一些实施例中,第一从设备200和第二从设备201也可以是具有蓝牙无线通信功能的音频播放设备,如扩音喇叭、音箱等。示例性地,第一从设备200可以是双声道音频播放器材中的左声道设备,第二从设备201可以是双声道音频播放器材中的右声道设备,双声道音频播放器材可以是立体声耳机、立体声车载音响设备、立体声家用音响设备等。
为了更加清楚的描述本申请实施例所提供的数据传输方法,下文以主控设备为手机,两个从设备为蓝牙耳机为例,对本申请实施例进行具体描述,但不应理解为,本申请实施例所提供的数据传输方法必须由手机作为主控设备,向蓝牙耳机传输数据,以及,也不应理解为,必须由蓝牙耳机作为从设备接收主控设备传输的数据,以及,也不应理解为从设备只能为两个。
图2示出了一种在进行数据传输时,手机与蓝牙耳机之间的交互流程图,图2中的第一耳机和第二耳机均为蓝牙耳机。在进行数据传输之前,手机与第一耳机和第二耳机分别建立用于传输数据的蓝牙同步通信链路。
示例性地,在用户期望通过蓝牙耳机收听手机播放的歌曲或其他音频时,用户可以打开手机的蓝牙功能,手机通过蓝牙芯片与第一耳机和第二耳机建立连接,即与第一耳机和第二耳机分别建立蓝牙同步通信链路,其中,蓝牙同步通信链路可以是CIS链路。具体地,手机可以基于BLE协议与第一耳机之间建立第一CIS链路,与第二耳机之间建立第二CIS链路。第一CIS链路和第二CIS链路组成一个CIG。
手机可以先与第一耳机建立用于传输数据的蓝牙同步通信链路,再与第二耳机建立用于传输数据的蓝牙同步通信链路;也可以先与第二耳机建立用于传输数据的蓝牙同步通信链路,再与第一耳机建立用于传输数据的蓝牙同步通信链路。手机与第一耳机建立用于传输数据的蓝牙同步通信链路的过程,以及,手机与第二耳机建立用于传输数据的蓝牙同步通信链路的过程,也可以同时进行。
如图2所示,手机与蓝牙耳机之间的数据传输过程,可以包括如下步骤:
S201:手机在为第一耳机配置的传输时隙内,向第一耳机传输音频数据。
S202:第一耳机根据数据接收情况向手机反馈指示信息。
S203:手机在为第二耳机配置的传输时隙内,向第二耳机传输音频数据。
S204:第二耳机根据数据接收情况向手机反馈指示信息。
示例性地,手机与第一耳机和第二耳机之间基于BLE协议进行数据传输,即手机与两个蓝牙耳机之间按照设定的事件周期传输数据。比如,对于某一个事件周期,手机可以根据在该事件周期中,需要向第一耳机和第二耳机传输的数据的数据量确定该事件周期的时长,或者说,手机可以根据在该事件周期中,需要向第一耳机和第二耳机传输的数据包的大小,确定总的发送次数,根据总的发送次数,确定该事件周期包含的传输时隙的总个数。
在本申请实施例中,一个事件周期包括第一子周期和第二子周期。其中,第一子周期包括多个第一时隙,一部分第一时隙用于手机与第一耳机之间传输数据,另一部分第一时隙用于手机与第二耳机之间传输数据;第二子周期包括多个第二时隙。进一步地说,第一子周期用于对数据进行新传,即对数据进行首次传输,第一时隙也可以称为新传时隙,当然也可以采用其它的称呼,本申请对此不作具体限定。第二子周期用于对第一子周期传输的数据中未传输成功的数据进行重传,第二时隙也可以称为重传时隙,当然也可以采用其它的称呼,本申请对此不作具体限定。
在第一子周期内,两个蓝牙耳机在各自对应的新传时隙上与手机之间传输数据。具体地,在第一耳机对应的新传时隙上,手机向第一耳机传输数据,第一耳机接收手机发送的数据,并根据数据的接收情况向手机反馈指示信息,手机接收第一耳机根据数据的接收情况反馈的指示信息;在第二耳机对应的新传时隙上,手机向第二耳机传输数据,第二耳机接收手机发送的数据,并根据数据的接收情况向手机反馈指示信息,手机接收第二耳机根据数据的接收情况反馈的指示信息。
进一步地,手机根据第一耳机和第二耳机反馈的指示信息,在事件周期的第二子周期的多个第二时隙中,选择性地为第一耳机和第二耳机分别配置重传时隙。示例性地,手机根据第一耳机反馈的指示信息,在事件周期的第二子周期的多个第二时隙中,选择性地为第一耳机配置重传时隙。例如,如果手机根据第一耳机反馈的指示信息,确定第一耳机存在未成功接收的数据,则将第一耳机未成功接收的数据保存至第一重传数据队列,手机获取第一重传数据队列中保存的第一重传数据的数据量,根据第一重传数据的数据量,将多个第二时隙中的一部分,配置为第一耳机的重传时隙。并且,手机根据第二耳机的指示信息,在事件周期的第二子周期的多个第二时隙中,选择性地为第二耳机配置重传时隙。例如,如果手机根据第二耳机反馈的指示信息,确定第二耳机存在未成功接收的数据,则将第二耳机未成功接收的数据保存至第二重传数据队列,手机获取第二重传数据队列中保存的第二重传数据的数据量,根据第二重传数据的数据量,将多个第二时隙中的一部分,配置为第二耳机的重传时隙。
上述事件周期也可以称为CIG event,手机作为主控设备,在下文中采用G表示;第一耳机作为第一从设备,在下文中采用T1表示;第二耳机作为第二从设备,在下文中采用T2表示。
在一些实施例中,如图3和图4所示,在任一个事件周期CIG event x中,包括第一子周期和第二子周期,第一子周期可以称为预留时间间隔(reserve interval),第二子周期可以称为重传时间间隔(retry interval)。第一子周期中包括多个新传时隙,第一子周期中新传时隙的数量可以是预先设定的,例如,手机可以根据需要传输的音频数据的数据量,设定第一子周期的时长,或者说,设定第一子周期包含的新传时隙的个数。
在第一子周期中的多个新传时隙上,手机可以以串行方式或者交织方式分别向第一耳机和第二耳机发送音频数据。
一种可能的示例中,以手机在新传时隙上采用串行方式向两个耳机发送音频数据为例。手机可以向第一耳机和第二耳机发送相同的音频数据。假设第一子周期中包含2K个新传时隙,则在第一子周期内,在K个第一手机对应的第一新传时隙上,手机向第一耳机发送音频数据,并接收第一耳机根据数据的接收情况反馈的指示信息;在K个第二手机对应的第二新传时隙上,向第二耳机发送音频数据,并接收第一耳机根据数据的接收情况反馈的指示信息。其中,K个第一新传时隙为相邻的时隙,K个第二新传时隙为相邻的时隙,且第一新传时隙和第二新传时隙不重叠。
例如,第一子周期中包含10个新传时隙,如图3所示,10个新传时隙中的前5个新传时隙为第一手机T1对应的第一新传时隙,在5个第一新传时隙上,手机G通过第一CIS链路向第一耳机T1发送音频数据,图3中表示为G→T1;第一耳机T1在5个第一新传时隙上对第一CIS链路进行监听,接收手机G发送的音频数据,并根据数据的接收情况向手机G反馈指示信息,图3中表示为T1→G。在任意一个第一新传时隙上,如果第一耳机T1接收到手机G发送的音频数据,且接收到的音频数据正确,则第一耳机T1向手机G发送的指示信息中包含ACK信息,表示第一耳机T1在该第一新传时隙上成功接收到音频数据;如果第一耳机T1接收到手机G发送的音频数据,但数据不正确,未通过验证,或者,如果第一耳机T1未接收到手机G发送的音频数据,则第一耳机T1向手机G发送的指示信息中包含NACK信息,表示第一耳机T1在该第一新传时隙上未成功接收到音频数据。手机G接收第一耳机T1反馈的指示信息,在任意一个第一新传时隙上,如果手机G接收到的指示信息中包含ACK信息,则不需要将该第一新传时隙上传输的音频数据保存至第一重传数据队列,如果手机G接收到的指示信息中包含NACK信息,则将该第一新传时隙上传输的音频数据保存至第一重传数据队列。
如果在第一子周期中,手机G接收到第一耳机T1反馈的所有指示信息均包含ACK信息,则所有音频数据均不需要重传,无需将任何音频数据保存至第一重传数据队列,第一重传数据队列可能为空,即第一重传数据队列中的第一重传数据的数据量为0。
上述10个新传时隙中的后5个新传时隙为第二手机T2对应的第二新传时隙,在5个第二新传时隙上,手机G通过第二CIS链路向第二耳机T2发送音频数据,图3中表示为G→T2;第二耳机T2在5个第二新传时隙上对第二CIS链路进行监听,接收手机G发送的音频数据,并根据数据的接收情况向手机G反馈指示信息,图3中表示为T2→G。在任意一个第二新传时隙上,如果第二耳机T2接收到手机G发送的音频数据,且接收到的音频数据正确,则第二耳机T2向手机G发送的指示信息中包含ACK信息,表示第二耳机 T2在该第二新传时隙上成功接收到音频数据;如果第二耳机T2接收到手机G发送的音频数据,但数据不正确,未通过验证,或者,如果第二耳机T2未接收到手机G发送的音频数据,则第二耳机T2向手机G发送的指示信息中包含NACK信息,表示第二耳机T2在该第二新传时隙上未成功接收到音频数据。手机G接收第二耳机T2反馈的指示信息,在任意一个第二新传时隙上,如果手机G接收到的指示信息中包含ACK信息,则不需要将该第二新传时隙上传输的音频数据保存至第二重传数据队列,如果手机G接收到的指示信息中包含NACK信息,则将该第二新传时隙上传输的音频数据保存至第二重传数据队列。
如果在第一子周期中,手机G接收到第二耳机T2反馈的所有指示信息均包含ACK信息,则所有音频数据均不需要重传,无需将任何音频数据保存至第二重传数据队列,第二重传数据队列可能为空,即第二重传数据队列中的第二重传数据的数据量为0。
第二子周期可以包括多个第二时隙。第二子周期中包括的第二时隙的数量也可以是预先设定的,与第一子周期的设定方式相同,手机也可以根据需要传输的音频数据的数据量,设定第二子周期包含的第二时隙的个数。
在本实施例中,假设第二子周期包含的时隙的个数与第一子周期相同,即包含2K个第二时隙。在另一些实施例中,第一子周期包含的新传时隙的个数与第二子周期中包含的第二时隙的个数也可以不同。本申请实施例中,在事件周期的第二子周期的2K个第二时隙中,手机G可以根据第一重传数据队列中保存的第一重传数据的数据量,选择性地为第一耳机T1配置重传时隙;同样,手机G可以根据第二重传数据队列中保存的第二重传数据的数据量,选择性地为第二耳机T2配置重传时隙。在2K个第二时隙中,手机G为第一耳机T1和第二耳机T2分别配置的重传时隙以串行方式排列。
在第二子周期中,为第一耳机T1配置的第一重传时隙的个数与为第二耳机T2配置的第二重传时隙的个数可以不同。示例性地,假设根据第一重传数据队列中保存的第一重传数据的数据量,需要在第二子周期的2K个第二时隙中,为第一耳机T1配置M个第一重传时隙;根据第二重传数据队列中保存的第二重传数据的数据量,需要在第二子周期的2K个第二时隙中,为第二耳机T2配置N个第二重传时隙,其中,M个第一重传时隙和N个第二重传时隙不重叠,且M个第一重传时隙中的第一个时隙为第二子周期的第一个时隙,M个第一重传时隙中的最后一个时隙与N个第二重传时隙中的第一个时隙为相邻的时隙。如果第一重传数据队列中保存的第一重传数据的数据量为0,则在第二子周期中,无需为第一耳机T1配置重传时隙,即M可以为0;如果第二重传数据队列中保存的第二重传数据的数据量为0,则在第二子周期中,无需为第二耳机T2配置重传时隙,即N可以为0。
例如,假定第二子周期中包含10个第二时隙,根据第一重传数据的数据量,需要在第二子周期的10个第二时隙中,为第一耳机T1配置2个第一重传时隙;根据第二重传数据的数据量,需要在第二子周期的2K个第二时隙中,为第二耳机T2配置4个第二重传时隙。如图3所示,10个第二时隙中的前2个第二时隙为第一重传时隙,然后紧邻的4个第二时隙为第二重传时隙,2个第一重传时隙和4个第二重传时隙是相连的6个时隙,中间不存在空闲时隙。在第一重传时隙上,手机G通过第一CIS链路向第一耳机T1发送第一重传数据,在第二重传时隙上,手机G通过第一CIS链路向第二耳机T2发送第二重传数据。在第二子周期的10个第二时隙中,选择性地为第一耳机T1和第二耳机T2配置重传时隙后,剩余4个第二时隙,4个剩余时隙是相连的时隙,称为剩余时隙,4个剩余时隙 是相连的时隙。
上述对第一子周期和第二子周期分别包含的传输时隙的个数以及第二子周期中剩余时隙的个数均是示例性说明,在实际使用中,一个事件周期中剩余时隙的个数可能更多,且剩余时隙均是位于事件周期的尾部的相连的时隙,因此更有利于被利用。
由于在第二子周期中,第一耳机T1无法确定自身对应的重传时隙,因此,如果在第一子周期中,第一耳机T1存在未成功接收的数据,即第一耳机T1向手机G反馈的指示信息中至少有一个指示信息包含NACK信息,则在第二子周期的多个第二时隙上,第一耳机T1持续对第一CIS链路进行数据监听,并在至少一个第二时隙上监听到手机G发送的重传数据;该至少一个第二时隙是手机G根据第一耳机T1反馈的指示信息为第一耳机T1配置的重传时隙。如果在第一子周期中,第一耳机T1不存在未成功接收的数据,即第一耳机T1向手机G反馈的指示信息中所有指示信息均包含ACK信息,则在第二子周期,第一耳机T1无需对第一CIS链路进行数据监听,可以节约功耗。
另一种可能的示例中,以手机在新传时隙上采用交织方式向两个耳机发送音频数据为例。可选地,手机可以向第一耳机和第二耳机发送相同的音频数据。假设第一子周期中包含2K个新传时隙,则在第一子周期内,在K个第一手机对应的第一新传时隙上,手机向第一耳机发送音频数据,并接收第一耳机根据数据的接收情况反馈的指示信息;在K个第二手机对应的第二新传时隙上,向第二耳机发送音频数据,并接收第一耳机根据数据的接收情况反馈的指示信息。其中,K个第一新传时隙和K个第二新传时隙间隔排列。
例如,第一子周期中包含10个新传时隙,如图4所示,在第1个新传时隙上,手机G通过第一CIS链路向第一耳机T1发送音频数据,图4中表示为G→T1;第一耳机T1在第1个新传时隙上对第一CIS链路进行监听,接收手机G发送的音频数据,并根据数据的接收情况向手机G反馈指示信息,图4中表示为T1→G。在第2个新传时隙上,手机G通过第二CIS链路向第二耳机T2发送音频数据,图4中表示为G→T2;第二耳机T2在第2个新传时隙上对第二CIS链路进行监听,接收手机G发送的音频数据,并根据数据的接收情况向手机G反馈指示信息,图4中表示为T2→G。在第3个新传时隙上,手机G通过第一CIS链路向第一耳机T1发送音频数据,在第4个新传时隙上,手机G通过第二CIS链路向第二耳机T2发送音频数据,依次类推。在第一子周期的10个新传时隙中,第一耳机T1对应的时隙可以称为第一新传时隙,第二耳机T2对应的时隙可以称为第二新传时隙。
在任意一个第一新传时隙上,如果第一耳机T1接收到手机G发送的音频数据,且接收到的音频数据正确,则第一耳机T1向手机G发送的指示信息中包含ACK信息,表示第一耳机T1在该第一新传时隙上成功接收到音频数据;如果第一耳机T1接收到手机G发送的音频数据,但数据不正确,未通过验证,或者,如果第一耳机T1未接收到手机G发送的音频数据,则第一耳机T1向手机G发送的指示信息中包含NACK信息,表示第一耳机T1在该第一新传时隙上未成功接收到音频数据。手机G接收第一耳机T1反馈的指示信息,在任意一个第一新传时隙上,如果手机G接收到的指示信息中包含ACK信息,则不需要将该第一新传时隙上传输的音频数据保存至第一重传数据队列,如果手机G接收到的指示信息中包含NACK信息,则将该第一新传时隙上传输的音频数据保存至第一重传数据队列。
同理,手机G根据第二耳机T2反馈的指示信息,将第二耳机T2未成功接收的音频数据保存至第二重传数据队列。
第二子周期可以包括多个第二时隙。第二子周期中包括的第二时隙的数量也可以是预 先设定的,与第一子周期的设定方式相同,手机也可以根据需要传输的音频数据的数据量,设定第二子周期包含的第二时隙的个数。
在本实施例中,假设第二子周期包含的时隙的个数与第一子周期相同,即包含2K个第二时隙。在另一些实施例中,第一子周期包含的新传时隙的个数与第二子周期中包含的第二时隙的个数也可以不同。本申请实施例中,在事件周期的第二子周期的2K个第二时隙中,手机G可以根据第一重传数据队列中保存的第一重传数据的数据量,选择性地为第一耳机T1配置重传时隙;同样,手机G可以根据第二重传数据队列中保存的第二重传数据的数据量,选择性地为第二耳机T2配置重传时隙。在2K个第二时隙中,手机G为第一耳机T1和第二耳机T2分别配置的重传时隙以交织方式排列。
在第二子周期中,为第一耳机T1配置的第一重传时隙的个数与为第二耳机T2配置的第二重传时隙的个数可以不同。示例性地,假设根据第一重传数据队列中保存的第一重传数据的数据量,需要在第二子周期的2K个第二时隙中,为第一耳机T1配置M个第一重传时隙;根据第二重传数据队列中保存的第二重传数据的数据量,需要在第二子周期的2K个第二时隙中,为第二耳机T2配置N个第二重传时隙,其中,M小于N。则配置得到的M个第一重传时隙与N个第二重传时隙中的M个第二重传时隙间隔排列,且N个第二重传时隙中的N-M个第二重传时隙为相邻的时隙。
例如,假设第二子周期中包含10个第二时隙,根据第一重传数据的数据量,需要在第二子周期的10个第二时隙中,为第一耳机T1配置2个第一重传时隙;根据第二重传数据的数据量,需要在第二子周期的2K个第二时隙中,为第二耳机T2配置4个第二重传时隙。如图4所示,10个第二时隙的前4个第二时隙中,第一重传时隙和第二重传时隙间隔排列,即2个第一重传时隙和2个第二重传时隙间隔排列,然后紧邻的是2个相邻的第二重传时隙。2个第一重传时隙和4个第二重传时隙是相连的6个时隙,中间不存在空闲时隙。在第一重传时隙上,手机G通过第一CIS链路向第一耳机T1发送第一重传数据,在第二重传时隙上,手机G通过第一CIS链路向第二耳机T2发送第二重传数据。在第二子周期的10个第二时隙中,选择性地为第一耳机T1和第二耳机T2配置重传时隙后,剩余4个第二时隙,称为剩余时隙,4个剩余时隙是相连的时隙,称为剩余时隙,4个剩余时隙是相连的时隙。
上述对第一子周期和第二子周期分别包含的传输时隙的个数以及第二子周期中剩余时隙的个数均是示例性说明,在实际使用中,一个事件周期中剩余时隙的个数可能更多,且剩余时隙均是位于事件周期的尾部的相连的时隙,因此更有利于被利用。
在相关技术中,每个事件周期中第一耳机T1和第二耳机T2对应的传输时隙均是预先设定的固定参数,例如,当预先设定每个事件周期中第一耳机T1对应的传输时隙与第二耳机T2对应的传输时隙间隔排列时,如果第一耳机T1的通信信道的传输质量较好,需要重传的音频数据较少,在一个事件周期中,第一耳机T1需要重传的音频数据全部传输完成后,第一耳机T1对应的传输时隙成为空闲时隙。但是,由于第一耳机T1对应的传输时隙与第二耳机T2对应的传输时隙仍然间隔排列,在第二耳机T2对应的传输时隙上,手机G仍向第二耳机T2发送重传数据,会呈现空闲时隙与第二耳机T2对应的传输时隙间隔排列的现象,即空闲时隙被第二耳机T2对应的传输时隙分隔开,而不是相连的时隙,因此无法被有效利用。
本申请实施例在第二子周期中,根据第一子周期中第一耳机T1和第二耳机T2的数据 接收情况,手机G分别为第一耳机T1和第二耳机T2配置重传时隙,无论第一耳机T1和第二耳机T2对应的重传时隙以串行方式排列,还是以交织方式排列,均可以使第二子周期中的所有重传时隙为相连的时隙,第二子周期中的剩余时隙也是相连的时隙,从而有利于剩余时隙被有效利用。
在本申请实施例中,第二子周期中的剩余时隙,可以用于传输其它业务数据。示例性地,在一些实施例中,在剩余的第二时隙上,手机G可以通过异步链路向第一耳机T1或第二耳机T2传输通信控制信令,异步链路也属于蓝牙无线通信链路中的一种,用于传输不需要同步传输的控制信令等。例如,假设在通信过程中,第一耳机T1与手机G之间的距离变大,为了适应二者之间新的距离,手机G与第一耳机T1传输数据时的调制方式或带宽等通信参数需要更新,此时,手机G与第一耳机T1可以利用第二子周期中的剩余时隙传输通信控制信令,协商更新后的通信参数,以更好地传输数据。
在另一些实施例中,在剩余的第二时隙上,手机G可以向除第一耳机T1和第二耳机T2之外的其他通信设备传输业务数据,例如,基于短距离无线通信协议,与手机G连接的设备,除第一耳机T1和第二耳机T2之外,还包括第三设备,第三设备可以是智能手表或健康监测设备等。手机G可以利用第二子周期中的剩余时隙,通过ACL链路与智能手表或健康监测设备之间进行数据传输。
示例性地,在一种实施例中,假如当智能手表中的软件需要升级时,可以通过手机G下载更新数据包,此时,智能手表可以通过蓝牙芯片与手机G之间建立ACL链路。手机G可以利用CIS链路的空闲时隙,即各个事件周期的第二子周期的剩余时隙,通过ACL链路向智能手表发送更新数据包中的数据。由于软件升级业务对时间要求不高,当某个事件周期中没有剩余时隙或剩余时隙的个数较少时,在该事件周期中,可以不向智能手表发送更新数据包中的数据,待到下个事件周期,再利用剩余时隙向智能手表发送更新数据包中的数据。在另一种实施例中,手机G还可以利用CIS链路的空闲时隙,通过ACL链路向健康监测设备发送监测用户健康指标指令,并通过ACL链路接收健康监测设备返回的用户健康数据。
在一些实施例中,一个事件周期的第二子周期包含的时隙的个数可以与第一子周期不同。例如,假设一个事件周期中,第一子周期包含14个新传时隙,第二子周期包含8个重传时隙。根据第一重传数据的数据量,需要在第二子周期中,为第一耳机T1配置2个第一重传时隙;根据第二重传数据的数据量,需要在第二子周期中,为第二耳机T2配置6个第二重传时隙。
在相关技术中,在一个事件周期中,由于第一耳机T1和第二耳机T2对应的传输时隙是平均的,在上述情况下,第一耳机T1需要重传的数据较少,会剩余一部分空闲时隙,而第二耳机T2需要重传的数据较多,而传输时隙的个数较少,会有一部分重传数据不能被传输。而在本申请实施例中,将一个事件周期分为第一子周期和第二子周期,在第二子周期中,根据第一耳机T1和第二耳机T2需要重传的数据量为第一耳机T1和第二耳机T2配置重传时隙,这种链路混合传输的方式,针对上述情况,第一耳机T1需要重传的数据较少时,可以将更多的第二时隙配置给第二耳机T2,用于传输第二耳机T2需要重传的数据,与相关技术相比,可以增加数据的重传机会,提高数据传输的可靠性。
与上述实施例基于相同的发明构思,本申请实施例提供一种数据传输方法,该方法可 以由主控设备执行,例如,可以由如图1所示的主控设备100执行。如图5所示,该方法可以包括如下步骤:
S501,在事件周期的第一子周期的多个第一时隙上,分别向至少两个从设备传输数据。
主控设备与至少两个从设备分别建立用于传输数据的蓝牙同步通信链路,在事件周期的第一子周期的多个第一时隙上,以串行方式或交织方式,分别向至少两个从设备传输数据。
S502,接收至少两个从设备根据数据的接收情况分别反馈的指示信息。
S503,根据指示信息,在事件周期的第二子周期的多个第二时隙中,选择性地为至少两个从设备分别配置重传时隙。
以第一从设备为例进行说明,第一从设备可以是至少两个从设备中的任意一个。如果主控设备根据第一从设备反馈的指示信息确定第一从设备存在未成功接收的数据,则将多个第二时隙中的至少一个,配置为第一从设备的重传时隙。
具体地,如果根据第一从设备反馈的指示信息确定第一从设备存在未成功接收的数据,则主控设备将第一从设备未成功接收的数据保存至第一重传数据队列。主控设备获取第一重传数据队列中保存的第一重传数据的数据量,根据第一重传数据的数据量,将多个第二时隙中的至少一个,配置为第一从设备的重传时隙。
如果在多个第一时隙上,以串行方式分别向至少两个从设备传输数据,则在多个第二时隙中,为至少两个从设备分别配置的重传时隙以串行方式排列。如果在多个第一时隙上,以交织方式分别向至少两个从设备传输数据,则在多个第二时隙中,为至少两个从设备分别配置的重传时隙以交织方式排列。
在为各个从设备配置重传时隙后,在第二子周期的剩余时隙上,向至少两个从设备传输通信控制信令,或向至少两个从设备之外的通信设备传输业务数据;其中,剩余时隙指未配置给任意一个从设备的第二时隙。
与上述实施例基于相同的发明构思,本申请实施例还提供一种数据传输方法,该方法可以由第一从设备执行,第一从设备可以是至少两个从设备中的任意一个。例如,可以由如图1所示的第一从设备200执行。如图6所示,该方法可以包括如下步骤:
S601,在事件周期的第一子周期中,在第一从设备对应的第一时隙上,接收主控设备发送的数据,并根据数据的接收情况向主控设备反馈指示信息。
S602,如果指示信息中包含第一类指示信息,则在事件周期的第二子周期的多个第二时隙上,持续进行数据监听,并在至少一个第二时隙上监听到主控设备发送的重传数据。
其中,第一类指示信息用于指示第一从设备存在未成功接收的数据;至少一个第二时隙是主控设备根据第一从设备反馈的指示信息为第一从设备配置的重传时隙。
与上述实施例基于相同的发明构思,本申请实施例还提供一种数据传输装置,该数据传输装置可以应用于主控设备中,比如应用于图1所示的主控设备100中。主控设备中可以包括蓝牙芯片,该数据传输装置也可以应用于主控设备的蓝牙芯片中。数据传输装置可以用于实现上述方法实施例的功能,因此可以实现上述方法实施例所具备的有益效果。
该数据传输装置可以包括发送单元、接收单元和配置单元。数据传输装置用于实现上述图5中所示的方法实施例中的功能。当数据传输装置用于实现图5所示的方法实施例的功能时:发送单元可以用于执行S501,接收单元可以用于执行S502,配置单元可以用于执行S503。比如:发送单元,用于在事件周期的第一子周期的多个第一时隙上,分别向至 少两个从设备传输数据;接收单元,用于接收至少两个从设备根据数据的接收情况分别反馈的指示信息;配置单元,用于根据指示信息,在事件周期的第二子周期的多个第二时隙中,选择性地为至少两个从设备分别配置重传时隙。
在一种可能的实施方式中,配置单元,具体用于:若根据第一从设备反馈的指示信息确定第一从设备存在未成功接收的数据,则将多个第二时隙中的至少一个,配置为第一从设备的重传时隙;第一从设备为至少两个从设备中的任意一个。
在一种可能的实施方式中,发送单元,还用于:在第二子周期的剩余时隙上,向至少两个从设备传输通信控制信令,或向至少两个从设备之外的通信设备传输业务数据;其中,剩余时隙指未配置给任意一个从设备的第二时隙。
在一种可能的实施方式中,配置单元,具体用于:若根据第一从设备反馈的指示信息确定第一从设备存在未成功接收的数据,则将第一从设备未成功接收的数据保存至第一重传数据队列;获取第一重传数据队列中保存的第一重传数据的数据量;根据第一重传数据的数据量,将多个第二时隙中的至少一个,配置为第一从设备的重传时隙。
在一种可能的实施方式中,发送单元,具体用于:在主控设备与至少两个从设备分别建立用于传输数据的蓝牙同步通信链路之后,在多个第一时隙上,以串行方式或交织方式,分别向至少两个从设备传输数据。若在多个第一时隙上,以串行方式分别向至少两个从设备传输数据,则在多个第二时隙中,为至少两个从设备分别配置的重传时隙以串行方式排列。若在多个第一时隙上,以交织方式分别向至少两个从设备传输数据,则在多个第二时隙中,为至少两个从设备分别配置的重传时隙以交织方式排列。
与上述实施例基于相同的发明构思,本申请实施例还提供一种数据传输装置,该数据传输装置可以应用于任意一个从设备中,比如应用于图1所示的第一从设备200中。第一从设备200中可以包括蓝牙芯片,该数据传输装置也可以应用于任意一个从设备的蓝牙芯片中。数据传输装置可以用于实现上述方法实施例的功能,因此可以实现上述方法实施例所具备的有益效果。
该数据传输装置可以包括第一监听单元和第二监听单元。数据传输装置用于实现上述图6中所示的方法实施例中的功能。当数据传输装置用于实现图6所示的方法实施例的功能时:第一监听单元可以用于执行S601,第二监听单元可以用于执行S602。比如:第一监听单元,用于在事件周期的第一子周期中,在第一从设备对应的第一时隙上,接收主控设备发送的数据,并根据数据的接收情况向主控设备反馈指示信息;第二监听单元,用于若指示信息中包含第一类指示信息,则在事件周期的第二子周期的多个第二时隙上,持续进行数据监听,并在至少一个第二时隙上监听到主控设备发送的重传数据;至少一个第二时隙是主控设备根据第一从设备反馈的指示信息为第一从设备配置的重传时隙;第一类指示信息用于指示第一从设备存在未成功接收的数据。
与上述实施例基于相同的发明构思,本申请实施例还提供一种数据传输装置,该数据传输装置可以是主控设备或任一从设备中的蓝牙芯片,也可以是主控设备或任一从设备。数据传输装置可以用于实现上述方法实施例的功能,因此可以实现上述方法实施例所具备的有益效果。
在一些实施例中,数据传输装置可以是蓝牙芯片,参见图7所示,该蓝牙芯片700可以包括处理器701以及与处理器701连接的收发机702。
可选地,处理器701和收发机702之间可以通过总线相互连接,处理器701可以是通 用处理器,如微处理器,或其他常规的处理器。总线可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。
在一种实施例中,当数据传输装置是主控设备中的蓝牙芯片时,收发机702,用于在处理器的控制下,在事件周期的第一子周期的多个第一时隙上,分别向至少两个从设备传输数据,并接收至少两个从设备根据各自的数据接收情况分别反馈的指示信息;处理器701,用于根据接收到的指示信息,在事件周期的第二子周期的多个第二时隙中,选择性地为至少两个从设备分别配置重传时隙。
在一种可能的实现方式中,处理器701,具体用于:若根据第一从设备反馈的指示信息确定第一从设备存在未成功接收的数据,则将多个第二时隙中的至少一个,配置为第一从设备的重传时隙;第一从设备为至少两个从设备中的任意一个。
在一种可能的实现方式中,收发机702,还用于:在第二子周期的剩余时隙上,向至少两个从设备传输通信控制信令,或向至少两个从设备之外的通信设备传输业务数据;其中,剩余时隙指未配置给任意一个从设备的第二时隙。
在另一种实施例中,当数据传输装置是从设备中的蓝牙芯片时,收发机702,用于在处理器的控制下,在事件周期的第一子周期中,在数据传输装置对应的第一时隙上,接收主控设备发送的数据;处理器701,用于根据数据的接收情况生成向主控设备反馈的指示信息;收发机702,还用于向主控设备发送指示信息;以及当指示信息中包含第一类指示信息时,在事件周期的第二子周期的多个第二时隙上,持续进行数据监听,并在至少一个第二时隙上监听到主控设备发送的重传数据;则在事件周期的第二子周期的多个第二时隙上,持续进行数据监听,并在至少一个第二时隙上监听到主控设备发送的重传数据;至少一个第二时隙是主控设备根据所述数据传输装置反馈的指示信息为数据传输装置配置的重传时隙;第一类指示信息用于指示数据传输装置存在未成功接收的数据。
在另一些实施例中,数据传输装置可以是主控设备,主控设备可以是手机,也可以是提供蓝牙无线通信功能的其它音源设备,如车载终端、穿戴式终端、电视、计算机等电子设备。下文以如图1所示的主控设备100为例进行说明。参见图8所示,该主控设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,收发机150,音频模块160,显示屏170。其中,收发机150中可以包括蓝牙芯片,用于与从设备进行短距离地数据传输。
可以理解的是,本申请实施例示意的结构并不构成对主控设备100的具体限定。在本申请另一些实施例中,主控设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,控制器,数字信号处理器(digital signal processor,DSP),基带处理器等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110 中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口和/或通用串行总线(universal serial bus,USB)接口等。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过主控设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为主控设备供电。
收发机150可以实现移动通信功能和无线通信功能。例如,收发机150可以包括移动通信组件,用于实现移动通信功能。移动通信组件可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信组件可以由天线接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信组件还可以对经调制解调处理器调制后的信号放大,经天线转为电磁波辐射出去。
收发机150可以包括无线通信组件,用于实现无线通信功能。无线通信组件可以包括蓝牙芯片,用于与各个从设备传输数据。例如,蓝牙芯片可以从处理器110接收待发送的数据或信令信号,对其进行调频,放大,经天线转为电磁波辐射出去。
主控设备100可以通过音频模块160,如扬声器等实现音频功能。例如音乐播放等。主控设备100还可以通过收发机150将需要播放的音频数据发送至蓝牙耳机或提供蓝牙无线通信设备的音箱等从设备,也可以实现音乐的播放。
触摸传感器,也称“触控器件”。触摸传感器可以设置于显示屏170,由触摸传感器与显示屏170组成触摸屏,也称“触控屏”。触摸传感器用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏170提供与触摸操作相关的视觉输出。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展主控设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,该可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如音乐播放应用)等。存储数据区可存储主控设备100使用过程中所创建的数据(比如音频文件或音视频文件)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行主控设备100的各种功能应用以及数据处理。内部存储器121中还可以存储用于控制收发机150与其他设备进行通信的相应程序代码。当内部存储器121中存储的相应程序代码被处理器110运行时,可以实现如图5所示的数据传输方法的步骤。当然, 本申请实施例提供的相关音频数据,以及程序代码还可以存储在外部存储器中。这种情况下,处理器110可以通过外部存储器接口120运行存储在外部存储器中的相应程序代码,以实现如图5所示的数据传输方法的步骤。
在另一些实施例中,数据传输装置可以是任意一个从设备,从设备可以是蓝牙耳机,也可以是具有蓝牙无线通信功能的音频播放设备,如扩音喇叭、音箱等。下文以如图1所示的第一从设备200为例进行说明。参见图9所示,该第一从设备200可以包括处理器210,存储器220,收发机230和音频模块240。其中,收发机230中可以包括蓝牙芯片,用于与主控设备进行短距离的数据传输。处理器210,存储器220,收发机230和音频模块240相互连接。
可选地,存储器220、处理器210收发机230以及音频模块240之间通过总线相互连接,存储器220,用于存储程序代码,处理器210则可以根据从存储器220中获取程序代码并执行相应的处理。总线可以是PCI总线或EISA总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图9中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
收发机230可以包括蓝牙芯片,用于与主控设备传输数据。例如,第一从设备200通过蓝牙芯片接收主控设备发送的音频数据后,将音频数据传输至处理器210进行处理,然后通过音频模块240向用户播放。
可以理解,存储器220,用于存放程序指令和数据等。具体地,程序指令可以包括程序代码,该程序代码包括计算机操作指令。存储器220可能包含随机存取存储器(random access memory,RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。处理器210执行存储器220所存放的程序指令,从而实现图6所示的数据传输方法中的步骤。
基于以上实施例,本申请实施例还提供了一种计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行以上实施例提供的任一种数据传输方法。
基于以上实施例,本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,所述计算机程序被计算机执行时,使得计算机执行以上实施例提供的任一种数据传输方法。
其中,存储介质可以是计算机能够存取的任何可用介质。以此为例但不限于:计算机可读介质可以包括RAM、ROM、EEPROM、CD-ROM或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。
基于以上实施例,本申请实施例还提供了一种芯片,所述芯片用于读取存储器中存储的计算机程序,实现以上实施例提供的任一种数据传输方法。
基于以上实施例,本申请实施例提供了一种芯片系统,该芯片系统包括处理器,用于支持计算机装置实现以上实施例中主控设备或从设备所涉及的功能。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存该计算机装置必要的程序和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。
综上所述,本申请实施例提供了一种数据传输方法和装置,在该方案中,主控设备与至少两个从设备之间按照事件周期传输数据,每个事件周期包括第一子周期和第二子周期,在第一子周期中,主控设备在预先配置的各个从设备对应的传输时隙是上,分别向各个从 设备传输数据,并接收各个从设备根据各自的数据接收情况分别反馈的指示信息。对于至少两个从设备中的任意一个从设备,如果该从设备反馈的指示信息指示该从设备存在未成功接收的数据,则在第二子周期中,为该从设备配置重传时隙;如果该从设备反馈的指示信息指示该从设备不存在未成功接收的数据,则在第二子周期中,不需为该从设备配置重传时隙。在第二子周期中,未配置给任意一个从设备的第二时隙可以称为剩余时隙。根据第一子周期中各个从设备的指示信息,动态地在第二子周期中为各个从设备配置重传时隙的方式,可以使第二子周期中各个从设备对应的重传时隙是相连的时隙,第二子周期中的剩余时隙也是相连的时隙,从而有利于剩余时隙被有效利用,减少空口资源的浪费现象。
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的保护范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。

Claims (21)

  1. 一种数据传输方法,其特征在于,包括:
    在事件周期的第一子周期的多个第一时隙上,分别向至少两个从设备传输数据;
    接收所述至少两个从设备根据所述数据的接收情况分别反馈的指示信息;
    根据所述指示信息,在所述事件周期的第二子周期的多个第二时隙中,选择性地为所述至少两个从设备分别配置重传时隙。
  2. 根据权利要求1所述的方法,其特征在于,根据所述指示信息,在所述事件周期的第二子周期的多个第二时隙中,选择性地为所述至少两个从设备分别配置重传时隙,包括:
    若根据第一从设备反馈的指示信息确定所述第一从设备存在未成功接收的数据,则将所述多个第二时隙中的至少一个,配置为所述第一从设备的重传时隙;所述第一从设备为所述至少两个从设备中的任意一个。
  3. 根据权利要求2所述的方法,其特征在于,根据所述指示信息,在所述事件周期的第二子周期的多个第二时隙中,选择性地为所述至少两个从设备分别配置重传时隙之后,所述方法还包括:
    在第二子周期的剩余时隙上,向所述至少两个从设备传输通信控制信令,或向所述至少两个从设备之外的通信设备传输业务数据;其中,所述剩余时隙指未配置给任意一个所述从设备的第二时隙。
  4. 根据权利要求2所述的方法,其特征在于,所述若根据第一从设备反馈的指示信息确定所述第一从设备存在未成功接收的数据,则将所述多个第二时隙中的至少一个,配置为所述第一从设备的重传时隙,包括:
    若根据第一从设备反馈的指示信息确定所述第一从设备存在未成功接收的数据,则将所述第一从设备未成功接收的数据保存至第一重传数据队列;
    获取所述第一重传数据队列中保存的第一重传数据的数据量;
    根据所述第一重传数据的数据量,将所述多个第二时隙中的至少一个,配置为所述第一从设备的重传时隙。
  5. 根据权利要求1~4中任一项所述的方法,其特征在于,所述在事件周期的第一子周期的多个第一时隙上,分别向至少两个从设备传输数据,包括:
    在所述多个第一时隙上,以串行方式或交织方式,分别向所述至少两个从设备传输数据。
  6. 根据权利要求5所述的方法,其特征在于,若在所述多个第一时隙上,以串行方式分别向所述至少两个从设备传输数据,则在所述多个第二时隙中,为所述至少两个从设备分别配置的重传时隙以串行方式排列。
  7. 根据权利要求5所述的方法,其特征在于,若在所述多个第一时隙上,以交织方式 分别向所述至少两个从设备传输数据,则在所述多个第二时隙中,为所述至少两个从设备分别配置的重传时隙以交织方式排列。
  8. 根据权利要求1~7中任一项所述的方法,其特征在于,所述在事件周期的第一子周期的多个第一时隙上,分别向至少两个从设备传输数据之前,所述方法还包括:
    与所述至少两个从设备分别建立用于传输数据的蓝牙同步通信链路。
  9. 一种数据传输方法,其特征在于,所述方法包括:
    在事件周期的第一子周期中,在第一从设备对应的第一时隙上,接收主控设备发送的数据,并根据所述数据的接收情况向所述主控设备反馈指示信息;
    若所述指示信息中包含第一类指示信息,则在所述事件周期的第二子周期的多个第二时隙上,持续进行数据监听,并在至少一个第二时隙上监听到所述主控设备发送的重传数据;所述至少一个第二时隙是所述主控设备根据所述第一从设备反馈的指示信息为所述第一从设备配置的重传时隙;所述第一类指示信息用于指示所述第一从设备存在未成功接收的数据。
  10. 一种数据传输装置,其特征在于,包括:收发机以及处理器;
    所述收发机,用于在所述处理器的控制下,在事件周期的第一子周期的多个第一时隙上,分别向至少两个从设备传输数据,并接收所述至少两个从设备根据所述数据的接收情况分别反馈的指示信息;
    所述处理器,用于根据所述指示信息,在所述事件周期的第二子周期的多个第二时隙中,选择性地为所述至少两个从设备分别配置重传时隙。
  11. 根据权利要求10所述的装置,其特征在于,所述处理器,具体用于:
    若根据第一从设备反馈的指示信息确定所述第一从设备存在未成功接收的数据,则将所述多个第二时隙中的至少一个,配置为所述第一从设备的重传时隙;所述第一从设备为所述至少两个从设备中的任意一个。
  12. 根据权利要求11所述的装置,其特征在于,所述收发机,还用于:
    在第二子周期的剩余时隙上,向所述至少两个从设备传输通信控制信令,或向所述至少两个从设备之外的通信设备传输业务数据;其中,所述剩余时隙指未配置给任意一个所述从设备的第二时隙。
  13. 根据权利要求11所述的装置,其特征在于,所述处理器,具体用于:
    若根据第一从设备反馈的指示信息确定所述第一从设备存在未成功接收的数据,则将所述第一从设备未成功接收的数据保存至第一重传数据队列;
    获取所述第一重传数据队列中保存的第一重传数据的数据量;
    根据所述第一重传数据的数据量,将所述多个第二时隙中的至少一个,配置为所述第一从设备的重传时隙。
  14. 根据权利要求10~13中任一项所述的装置,其特征在于,所述收发机,具体用于:
    在所述多个第一时隙上,以串行方式或交织方式,分别向所述至少两个从设备发送所述音频数据。
  15. 根据权利要求14所述的装置,其特征在于,若所述收发机在所述多个第一时隙上,以串行方式分别向所述至少两个从设备传输数据,则所述处理器在所述多个第二时隙中,为所述至少两个从设备分别配置的重传时隙以串行方式排列。
  16. 根据权利要求14所述的装置,其特征在于,若所述收发机在所述多个第一时隙上,以交织方式分别向所述至少两个从设备传输数据,则所述处理器在所述多个第二时隙中,为所述至少两个从设备分别配置的重传时隙以交织方式排列。
  17. 根据权利要求10~16中任一项所述的装置,其特征在于,所述收发机,还用于:在事件周期的第一子周期的多个第一时隙上,分别向至少两个从设备传输数据之前,与所述至少两个从设备分别建立用于传输数据的蓝牙同步通信链路。
  18. 一种数据传输装置,其特征在于,包括:收发机以及处理器;
    所述收发机,用于在所述处理器的控制下,在事件周期的第一子周期中,在所述数据传输装置对应的第一时隙上,接收主控设备发送的数据;
    所述处理器,用于根据所述数据的接收情况生成向所述主控设备反馈的指示信息;
    所述收发机,还用于向所述主控设备发送所述指示信息;以及当所述指示信息中包含第一类指示信息时,在所述事件周期的第二子周期的多个第二时隙上,持续进行数据监听,并在至少一个第二时隙上监听到所述主控设备发送的重传数据;则在所述事件周期的第二子周期的多个第二时隙上,持续进行数据监听,并在至少一个第二时隙上监听到所述主控设备发送的重传数据;所述至少一个第二时隙是所述主控设备根据所述数据传输装置反馈的指示信息为所述数据传输装置配置的重传时隙;所述第一类指示信息用于指示所述数据传输装置存在未成功接收的数据。
  19. 一种数据传输系统,其特征在于,包括:
    如权利要求10-17中任一项所述的数据传输装置;以及
    至少两个如权利要求18所述的数据传输装置。
  20. 一种计算机可读存储介质,其特征在于,存储有计算机可执行指令,所述计算机可执行指令用于使计算机执行如权利要求1至8中任一项所述的方法,或者执行如权利要求9所述的方法。
  21. 一种计算机程序产品,其特征在于,包含有计算机可执行指令,所述计算机可执行指令用于使计算机执行如权利要求1至8中任一项所述的方法,或者执行如权利要求9所述的方法。
PCT/CN2021/121620 2021-09-29 2021-09-29 数据传输方法和装置 WO2023050128A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2021/121620 WO2023050128A1 (zh) 2021-09-29 2021-09-29 数据传输方法和装置
CN202180099256.0A CN117501725A (zh) 2021-09-29 2021-09-29 数据传输方法和装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/121620 WO2023050128A1 (zh) 2021-09-29 2021-09-29 数据传输方法和装置

Publications (1)

Publication Number Publication Date
WO2023050128A1 true WO2023050128A1 (zh) 2023-04-06

Family

ID=85781015

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/121620 WO2023050128A1 (zh) 2021-09-29 2021-09-29 数据传输方法和装置

Country Status (2)

Country Link
CN (1) CN117501725A (zh)
WO (1) WO2023050128A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117693031A (zh) * 2024-02-04 2024-03-12 奉加微电子(昆山)有限公司 无线通信调度方法、电子设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7133396B1 (en) * 2000-03-06 2006-11-07 Texas Instruments Incorporated Dynamic assignment of retransmission slots for enhanced quality in wireless communication links
CN109547992A (zh) * 2018-12-29 2019-03-29 展讯通信(上海)有限公司 一种无线通信方法、终端、音频组件、装置及存储介质
US10368169B1 (en) * 2018-08-13 2019-07-30 Qualcomm Incorporated Power and bandwidth efficient true wireless stereo speakers
CN110290412A (zh) * 2019-08-26 2019-09-27 恒玄科技(北京)有限公司 一种音频同步播放方法、装置及扬声器设备、无线耳机
WO2021004253A1 (zh) * 2019-07-08 2021-01-14 展讯通信(上海)有限公司 数据传输方法、装置及设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7133396B1 (en) * 2000-03-06 2006-11-07 Texas Instruments Incorporated Dynamic assignment of retransmission slots for enhanced quality in wireless communication links
US10368169B1 (en) * 2018-08-13 2019-07-30 Qualcomm Incorporated Power and bandwidth efficient true wireless stereo speakers
CN109547992A (zh) * 2018-12-29 2019-03-29 展讯通信(上海)有限公司 一种无线通信方法、终端、音频组件、装置及存储介质
WO2021004253A1 (zh) * 2019-07-08 2021-01-14 展讯通信(上海)有限公司 数据传输方法、装置及设备
CN110290412A (zh) * 2019-08-26 2019-09-27 恒玄科技(北京)有限公司 一种音频同步播放方法、装置及扬声器设备、无线耳机

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117693031A (zh) * 2024-02-04 2024-03-12 奉加微电子(昆山)有限公司 无线通信调度方法、电子设备及存储介质

Also Published As

Publication number Publication date
CN117501725A (zh) 2024-02-02

Similar Documents

Publication Publication Date Title
TWI618370B (zh) 經由藍芽低能量傳達之多通道音訊之同步化
US20210400389A1 (en) Tws earphone interaction method and system using residual slots
CN111200769B (zh) 一种用于蓝牙耳机设备的通信方法以及蓝牙耳机设备
US20120171958A1 (en) Method and apparatus for distributing data in a short-range wireless communication system
WO2020132839A1 (zh) 应用于tws耳机单双耳切换的音频数据传输方法及设备
CN105027104B (zh) 用于多分支数字总线的方法和装置
CN111435844A (zh) 双无线蓝牙通信音频数据更正方法、装置、设备及系统
CN107040874A (zh) 蓝牙数据同步操作的方法、装置及蓝牙设备
CN113348685B (zh) 一种建立蓝牙数据通道的方法及装置
KR20200110086A (ko) 무선 통신 링크의 설정 방법 및 이를 지원하는 전자 장치
EP3923608B1 (en) Data transmission method between tws bluetooth devices and tws bluetooth device therefor
WO2023050128A1 (zh) 数据传输方法和装置
WO2023051082A1 (zh) 基于无线网络Wi-Fi的数据传输方法及电子设备
WO2022134716A1 (zh) 蓝牙数据包的广播方法、装置、终端及存储介质
US11917543B2 (en) Bluetooth-based data transmission method and data receiving method, communicating apparatus and computer storage medium
CN111510823B (zh) 麦克风音箱互联的方法、装置、终端和非临时性计算机可读存储介质
TW201025963A (en) Communication device and a communication method thereof
CN114727371A (zh) 通信方法及装置、设备、存储介质
EP3434025A1 (en) Method adapted to be implemented in a master device of a sound system, corresponding method adapted to be implemented in an audio rendering device of a sound system, corresponding master device, audio rendering device, system, computer readable program product and computer readable storage media
CN115175149A (zh) 设备添加方法、装置、蓝牙芯片及设备
CN110460980A (zh) 用于执行蓝牙传输管理的方法,蓝牙电路及电子设备
US20220417637A1 (en) Method and system for wireless transmission of audio data
EP4369747A1 (en) Electronic device, and method of transmitting data in electronic device
CN216134569U (zh) 无线麦克风系统
EP4287649A1 (en) Electronic device for providing audio service, and operation method therefor

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21958718

Country of ref document: EP

Kind code of ref document: A1