Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
Reference herein to "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
It should be noted that, the information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data for analysis, stored data, presented data, etc.), and signals related to the present application are all authorized by the user or are fully authorized by the parties, and the collection, use, and processing of the related data is required to comply with the relevant laws and regulations and standards of the relevant countries and regions. For example, in the present application, the data transmitted between the communication chip or the bluetooth communication device is acquired under the condition of sufficient authorization.
Fig. 1 is a schematic diagram of a communication chip 100 according to an embodiment of the present application. Referring to fig. 1, the communication chip 100 includes a control unit 101 and a plurality of transmission units 102 (two transmission units 102 are exemplified in fig. 1), wherein the control unit 101 is connected to each transmission unit 102 of the plurality of transmission units 102, respectively.
The control unit 101 responds to a connection instruction from the bluetooth host, and controls the plurality of transmission units 102 to respectively establish bluetooth communication links with corresponding bluetooth communication devices, and then each transmission unit 102 performs data transmission with the corresponding bluetooth communication device based on the corresponding bluetooth communication link.
The bluetooth host is configured to issue an instruction to the control unit 101, and the control unit 101 executes an operation corresponding to the instruction in response to the instruction. For example, the instruction is a connection instruction, and the control unit 101 controls the transmission unit 102 to establish a bluetooth communication link with the corresponding bluetooth communication device in response to the connection instruction. For example, the instruction is a data transmission instruction, and the control unit 101 acquires data to be transmitted in response to the data transmission instruction, instructs the transmission unit 102 to transmit the data based on the established bluetooth communication link. Optionally, the bluetooth host is located in a CPU (Central Processing Unit, central processor) of the bluetooth communication device. Alternatively, the control unit 101 is an LC (Link Controller) or other control unit 101. Optionally, any of the transmission units 102 includes a PHY (PHYSICAL LAYER ) and an RF (Radio Frequency) module. Wherein the PHY is used to encode or decode data transmitted between the communication chips 100. The RF module is used to transmit or receive data.
Optionally, the control unit 101 controls, in response to a connection instruction from the bluetooth host, at least two transmission units 102 corresponding to the connection instruction to respectively establish bluetooth communication links with corresponding bluetooth communication devices.
Optionally, the connection instruction includes unit identifiers of at least two transmission units 102 and connection information of bluetooth communication devices corresponding to each unit identifier, where the unit identifiers indicate that the corresponding transmission units 102 need to establish a bluetooth communication link. Correspondingly, for any unit identifier, the control unit 101 controls the transmission unit 102 to which the unit identifier belongs to establish a bluetooth communication link with the bluetooth communication device based on the connection information of the bluetooth communication device corresponding to the unit identifier. For example, the control unit 101 controls the transmission unit 102 to transmit a connection request to the bluetooth communication device based on the connection information of the bluetooth communication device, and the bluetooth communication device establishes a bluetooth communication link with the transmission unit 102 upon receiving the connection request.
After the plurality of transmission units 102 establish bluetooth communication links with one bluetooth communication device, respectively, the communication chip 100 can simultaneously perform data transmission with the plurality of bluetooth communication devices based on the established plurality of bluetooth communication links. For example, the bluetooth host sends a data transmission instruction to the control unit 101, where the data transmission instruction carries a plurality of data to be transmitted and bluetooth communication devices corresponding to each data to be transmitted, and accordingly, for any data to be transmitted, the control unit 101 forwards the data to be transmitted to a corresponding transmission unit 102, that is, a transmission unit 102 having an established bluetooth communication link between bluetooth communication devices corresponding to the data to be transmitted, where the transmission unit 102 sends the received data to the connected peer communication chip based on the established bluetooth communication link. As another example, any transmission unit 102, when receiving data sent by a corresponding bluetooth communication device, sends the data to the control unit 101, and the control unit 101 forwards the data to the bluetooth host, so that the bluetooth host processes the data.
Optionally, any two transmission units 102 among the plurality of transmission units 102 in the communication chip 100 are connected, so that data interaction between the two transmission units 102 is facilitated. For example, with continued reference to fig. 1, where a connection is made between two transmission units 102, the two transmission units 102 can share current data transmission power, data reception power, etc. with each other.
In a possible implementation manner, the control unit 101 determines the frequency bands corresponding to the plurality of transmission units 102 respectively, and instructs each transmission unit 102 to perform data transmission on the corresponding frequency band based on the corresponding bluetooth communication link, so that the interference degree between the plurality of transmission units 102 when performing data transmission can be effectively reduced, and the success rate of data transmission is improved. Alternatively, the control unit 101 performs this step in the case of receiving a data transmission instruction. The control unit 101 determines a frequency band corresponding to the transmission unit 102 in an ISM (Industrial SCIENTIFIC MEDICAL, industrial, scientific, medical) frequency band. Wherein the ISM frequency band comprises 2402 MHz-2480 MHz.
Alternatively, for any one transmission unit 102 of the plurality of transmission units 102, the control unit 101 determines a frequency band corresponding to the transmission unit 102, that is, a frequency band used when data transmission is performed by a bluetooth communication link established by the transmission unit 102, based on an AFH (Adaptive Frequency Hopping ) algorithm. Alternatively, the AFH algorithms corresponding to the plurality of transmission units 102 are independent, that is, for any transmission unit 102, the control unit 101 determines the frequency band corresponding to the transmission unit 102 without considering the frequency bands corresponding to other transmission units 102. Optionally, the AFH algorithms corresponding to the plurality of transmission units 102 are coordinated, that is, if the control unit 101 determines a frequency band corresponding to any one transmission unit 102, from other frequency bands except the frequency band, determines a frequency band corresponding to another transmission unit 102, and so on until the frequency band corresponding to each transmission unit 102 is determined. Alternatively, the AFH algorithms corresponding to the plurality of transmission units 102 are the same, that is, when the control unit 101 determines the frequency band corresponding to any one transmission unit 102, the control unit takes the frequency band as the frequency band corresponding to the other transmission unit 102. The AFH algorithm described above is merely exemplary, and in other embodiments, other frequency hopping algorithms can be employed, and embodiments of the present application are not limited in this regard.
Optionally, after determining the frequency bands corresponding to the plurality of transmission units 102, the control unit 101 sends the corresponding frequency bands to each transmission unit 102, and each transmission unit 102 receives the corresponding frequency band and performs data transmission with the corresponding bluetooth communication device on the corresponding frequency band based on the established bluetooth communication link. That is, data transmission is performed by a frequency division multiplexing method.
In a possible implementation manner, after determining the frequency bands corresponding to the plurality of transmission units 102, the control unit 101 instructs the transmission units 102 corresponding to two different frequency bands with a frequency band interval to transmit data in an asynchronous mode, so that the data transmission moments of the transmission units 102 corresponding to the two different frequency bands do not need to be aligned, and the complexity of data transmission is reduced.
Alternatively, the control unit 101 determines a band interval between every two frequency bands, and instructs the transmission units 102 corresponding to the two frequency bands having the band interval to transmit data in an asynchronous mode, in which the data transmission timings of the transmission units 102 corresponding to the two frequency bands are independent from each other, in the case where any of the band intervals satisfies the interval condition. Wherein the band interval satisfying the interval condition indicates that the band interval is large. Optionally, the interval condition is that the band interval is greater than or equal to the reference interval. The reference interval can be set to any value as desired, and embodiments of the present application are not limited in this regard.
Optionally, the transmission unit 102 for transmitting data in the asynchronous mode includes a first transmission unit and a second transmission unit, and the control unit 101 instructs the first transmission unit and the second transmission unit to transmit data in the asynchronous mode in such a manner that: the control unit 101 determines the data transmission time corresponding to the first transmission unit and the data transmission time corresponding to the second transmission unit, respectively, where the data transmission time corresponding to the first transmission unit and the data transmission time corresponding to the second transmission unit are the same or different. The first transmission unit and the second transmission unit transmit data at corresponding data transmission moments after receiving the corresponding data transmission moments.
In the embodiment of the present application, the frequency band interval between two frequency bands satisfies the interval condition, which means that the frequency band interval between the two frequency bands is larger, and data transmission is performed on the two frequency bands, and the interference degree between the two frequency bands is smaller.
In another possible implementation manner, after determining the frequency bands corresponding to the plurality of transmission units 102, the control unit 101 instructs the transmission units 102 corresponding to two different frequency bands with a frequency band interval to transmit data in a synchronous mode, so that when the frequency band interval between the frequency bands corresponding to the two transmission units 102 is smaller, the interference degree between the two frequency bands when data transmission is performed on the two frequency bands can be effectively reduced, and the success rate of data transmission is improved.
Alternatively, the control unit 101 determines a band interval between every two frequency bands, and instructs the transmission units 102 corresponding to the two frequency bands having the band interval to transmit data in a synchronous mode, in which the data transmission timings of the transmission units 102 corresponding to the two frequency bands are the same, in the case where any one of the band intervals does not satisfy the interval condition. Wherein a band interval that does not satisfy the interval condition indicates that the band interval is small.
Optionally, the implementation manner of the control unit 101 controlling the transmission units 102 corresponding to the two frequency bands to transmit data in the synchronous mode is as follows: the control unit 101 determines the data transmission time, then transmits the data transmission time to the transmission units 102 corresponding to the two frequency bands, and after any transmission unit 102 receives the data transmission time, transmits data at the data transmission time.
It should be noted that, since the data transmission power is far greater than the data reception power, if the frequency band interval between two frequency bands is small and the data transmission moments of the transmission units 102 corresponding to the two frequency bands are different, when one of the transmission units 102 has transmitted data to the corresponding bluetooth communication device, and when the bluetooth communication device is transmitting response data, if the bluetooth communication device corresponding to the other transmission unit 102 is receiving data, the bluetooth communication device is affected by the data transmission power of the other bluetooth communication device, and cannot receive data or erroneously receive data, therefore, in the embodiment of the present application, when the frequency band interval between the two frequency bands does not meet the interval condition, the transmission units 102 corresponding to the two frequency bands are controlled to transmit data in a synchronous mode, so that the interference degree between the two frequency bands when data transmission is performed on the two frequency bands can be effectively reduced, and the success rate of data transmission is improved.
The above-described determination manner of the data transmission mode corresponding to the transmission unit 102 is merely an exemplary illustration, and in other embodiments, the data transmission mode corresponding to the transmission unit 102 can be determined by other manners, for example, the control unit 101 instructs the corresponding transmission units 102 with the same frequency band to transmit data in the synchronous mode.
In one possible implementation, the control unit 101 uses a first frequency hopping algorithm over a first bluetooth communication link and a second frequency hopping algorithm over a second bluetooth communication link, the first frequency hopping algorithm and the second frequency hopping algorithm acting together such that: the first frequency band corresponding to the first bluetooth communication link maintains a frequency band separation from the second frequency band corresponding to the second bluetooth communication link. Wherein the first bluetooth communication link and the second bluetooth communication link are bluetooth communication links established by two different transmission units 102, respectively. The first frequency band corresponding to the first bluetooth communication link is a frequency band used by the first bluetooth communication link when data transmission is performed. The second frequency band corresponding to the second bluetooth communication link is a frequency band used by the second bluetooth communication link when data transmission is performed. The first frequency hopping algorithm and the second frequency hopping algorithm are arbitrary frequency hopping algorithms, and the embodiment of the present application is not limited thereto.
In the embodiment of the application, the frequency band interval between the two frequency bands is considered to influence the transmission quality of data on the two frequency bands, so that a first frequency hopping algorithm is used on a first Bluetooth communication link, and a second frequency hopping algorithm is used on a second Bluetooth communication link, so that the frequency band interval between the first frequency band corresponding to the first Bluetooth communication link and the second frequency band corresponding to the second Bluetooth communication link is kept, and the influence of the frequency band interval change between the first frequency band and the second frequency band on the data transmission quality of the first Bluetooth communication link and the second Bluetooth communication link is avoided.
In a possible implementation, the transmission unit 102 for transmitting data in the synchronous mode includes a first transmission unit and a second transmission unit, and in the case of continuously transmitting data, the transmission unit 102 that has transmitted one frame of data first waits for the other transmission unit 102 to transmit one frame of data before transmitting the next frame of data. That is, the control unit 101 instructs the first transmission unit and the second transmission unit to transmit data at the same transmission time, and in the case that the first transmission unit successfully transmits one frame of data, controls the first transmission unit to stop transmitting data until the second transmission unit successfully transmits one frame of data, and instructs the first transmission unit and the second transmission unit to transmit the next frame of data.
The transmission unit 102 successfully transmitting a frame of data means that after the transmission unit 102 transmits a frame of data, a first response signal returned by the bluetooth communication device corresponding to the transmission unit 102 is received, where the first response signal indicates that the bluetooth communication device successfully receives the frame of data. For example, the first Acknowledgement signal is an ACK (Acknowledgement) signal. After the transmission unit 102 transmits a frame of data to the corresponding bluetooth communication device, the bluetooth communication device may not receive the frame of data due to a channel quality problem, where the bluetooth communication device returns a second response signal to the transmission unit 102, where the second response signal indicates that the bluetooth communication device does not receive the frame of data, and where the transmission unit 102 retransmits the frame of data to the bluetooth communication device until receiving the first response signal returned by the bluetooth communication device, which indicates that the transmission unit 102 successfully transmits a frame of data. For example, the second reply signal is NACK (Negative Acknowledgement) signal. In another case, after the transmission unit 102 sends a frame of data to the corresponding bluetooth communication device, the transmission unit 102 does not receive a response signal returned by the bluetooth communication device within a preset period of time, and so on, until receiving a first response signal returned by the bluetooth communication device, which indicates that the transmission unit 102 successfully sends a frame of data.
In the embodiment of the application, after the first transmission unit successfully transmits one frame of data preferentially to the second transmission unit, the first transmission unit is most likely to be due to the fact that the second transmission unit generates data retransmission, and in this case, the first transmission unit is instructed to wait for the second transmission unit to successfully transmit one frame of data and then transmit the next frame of data, so that interference caused by the transmission of the next frame of data to the data retransmission of the second transmission unit can be avoided, and the success rate of data transmission is improved.
Optionally, in the data transmission instruction sent by the bluetooth host to the control unit 101, the data transmission instruction carries multi-frame data corresponding to the first transmission unit and multi-frame data corresponding to the second transmission unit, where one frame of data is data sent by the transmission unit 102 at a time, and the one frame of data can also be referred to as a data packet. The length of one frame of data corresponding to the first transmission unit is the same as or different from that of one frame of data corresponding to the second transmission unit, for example, the length of one frame of data corresponding to the first transmission unit is 2 bytes, and the length of one frame of data corresponding to the second transmission unit is 1 byte. In addition, the lengths of the multi-frame data corresponding to any transmission unit 102 are the same or different, for example, the length of the first frame data corresponding to the first transmission unit is 2 bytes, and the length of the corresponding second frame data is 1 byte, which is not limited in the embodiment of the present application.
According to the technical scheme provided by the embodiment of the application, under the condition of small interference of ISM frequency band, the Bluetooth communication equipment provided with the communication chip 100 can establish a link with at least two Bluetooth communication equipment and perform data transmission, and the success rate of the data transmission is high. From the perspective of the bluetooth communication device in which the communication chip 100 is configured, the data throughput rate of the bluetooth communication device itself is doubled, that is, large data volume communication based on a bluetooth communication link, such as video, picture, and high fidelity audio transmission, is achieved. Alternatively, the bluetooth communication device in which the communication chip 100 is configured is a bluetooth low energy communication device.
In the technical solution provided in the embodiment of the present application, the communication chip 100 includes a plurality of transmission units 102, so that the communication chip 100 can respectively establish bluetooth communication links with a plurality of bluetooth communication devices based on the plurality of transmission units 102, and respectively perform data transmission with the plurality of bluetooth communication devices through the plurality of established bluetooth communication links, that is, achieve multilink communication, thereby greatly improving data transmission efficiency.
In the embodiment of the present application, the control unit 101 determines the frequency bands corresponding to the plurality of transmission units 102, and instructs each transmission unit 102 to perform data transmission on the corresponding frequency band based on the established bluetooth communication link, so that the interference degree between the plurality of transmission units 102 during data transmission can be effectively reduced, and the success rate of data transmission is improved.
In the embodiment of the present application, after determining the frequency bands corresponding to the plurality of transmission units 102, the control unit 101 instructs the transmission units 102 corresponding to two different frequency bands with a frequency band interval to transmit data in an asynchronous mode, so that it is not necessary to align the data transmission moments of the transmission units 102 corresponding to the two different frequency bands, and the complexity of data transmission is reduced.
In the embodiment of the present application, after determining the frequency bands corresponding to the plurality of transmission units 102, the control unit 101 instructs the transmission units 102 corresponding to two different frequency bands with a frequency band interval to transmit data in a synchronous mode, so that when the frequency band interval between the frequency bands corresponding to the two transmission units is smaller, the interference degree between the two frequency bands can be effectively reduced when the data is transmitted on the two frequency bands, and the success rate of the data transmission is improved.
In the embodiment of the application, the frequency band interval between the two frequency bands is considered to influence the transmission quality of data on the two frequency bands, so that a first frequency hopping algorithm is used on a first Bluetooth communication link, and a second frequency hopping algorithm is used on a second Bluetooth communication link, so that the frequency band interval between the first frequency band corresponding to the first Bluetooth communication link and the second frequency band corresponding to the second Bluetooth communication link is kept, and the influence of the frequency band interval change between the first frequency band and the second frequency band on the data transmission quality of the first Bluetooth communication link and the second Bluetooth communication link is avoided.
In the embodiment of the application, after the first transmission unit successfully transmits one frame of data preferentially to the second transmission unit, the first transmission unit is most likely to be due to the fact that the second transmission unit generates data retransmission, and in this case, the first transmission unit is instructed to wait for the second transmission unit to successfully transmit one frame of data and then transmit the next frame of data, so that interference caused by the transmission of the next frame of data to the data retransmission of the second transmission unit can be avoided, and the success rate of data transmission is improved.
Fig. 2 is a schematic diagram of a bluetooth communication device 200 according to an embodiment of the present application. Referring to fig. 2, the bluetooth communication device 200 includes a bluetooth host 201 and a communication chip including a control unit 202 and a plurality of transmission units 203 (two transmission units 203 are exemplified in fig. 2). Wherein the bluetooth host 201 is connected to a control unit 202 in the communication chip, and the control unit 202 is connected to each of the plurality of transmission units 203. The communication chip is the communication chip shown in fig. 1.
The control unit 202 controls the plurality of transmission units 203 to establish bluetooth communication links with the corresponding bluetooth communication devices, respectively, in response to a connection instruction from the bluetooth host 201. Each transmission unit 203 then performs data transmission with the corresponding bluetooth communication device based on the corresponding bluetooth communication link. For specific implementation, please refer to the embodiment shown in fig. 1, and details are not repeated here.
Fig. 3 is a schematic diagram of a data transmission method according to an embodiment of the present application. The data transmission method is performed by a bluetooth communication device comprising a bluetooth host and a communication chip comprising a control unit and a plurality of transmission units. Referring to fig. 3, the method includes:
301. The Bluetooth communication equipment responds to a connection instruction from the Bluetooth host through the control unit, and controls the plurality of transmission units to respectively establish Bluetooth communication links with the corresponding Bluetooth communication equipment.
302. The Bluetooth communication equipment performs data transmission with the corresponding Bluetooth communication equipment through each transmission unit based on the corresponding Bluetooth communication link.
The implementation of steps 301-302 is described with reference to the embodiment shown in fig. 1 and will not be repeated here.
Fig. 4 is a schematic diagram of a communication chip 400 according to an embodiment of the present application. Referring to fig. 4, the communication chip 400 includes a plurality of bluetooth cores 401 (two bluetooth cores 401 are exemplified in fig. 4), each of the bluetooth cores 401 includes a first control unit 402 and a transmission unit 403, and the first control unit 402 is connected to the transmission unit 403. Optionally, any two bluetooth cores 401 may be connected to each other, for example, two bluetooth cores 401 in fig. 4 are connected to each other.
The first control unit 402 controls the transmission unit 403 in the same bluetooth core to establish a bluetooth communication link with a corresponding bluetooth communication device in response to a connection instruction from the bluetooth host. The transmission unit 403 then performs data transmission with the corresponding bluetooth communication device based on the respective bluetooth communication link.
The bluetooth host is configured to issue a connection instruction to at least two first control units 402, and control, based on the connection instruction, a transmission unit 403 in the same bluetooth kernel to establish a bluetooth communication link with a corresponding bluetooth communication device by using the first control unit 402 that receives the connection instruction. Optionally, the connection instruction sent by the bluetooth host to any one of the first control units 402 includes connection information of one bluetooth communication device, and accordingly, the first control unit 402 that receives the connection instruction controls the transmission unit 403 in the same bluetooth core to establish a bluetooth communication link with one bluetooth communication device based on the connection information in the connection instruction. For example, the first control unit 402 that receives the connection instruction controls the transmission unit 403 to transmit a connection request to a bluetooth communication device that establishes a bluetooth communication link with the transmission unit 403 upon receiving the connection request, based on the connection information in the connection instruction.
After the transmission units 403 corresponding to the at least two first control units 402 respectively establish bluetooth communication links with one bluetooth communication device, the communication chip 400 can simultaneously perform data transmission with the at least two bluetooth communication devices based on the established at least two bluetooth communication links. For example, the bluetooth host simultaneously sends a data sending instruction to at least two first control units 402, where the data sending instruction carries data to be sent, and accordingly, the first control unit 402 that receives the data sending instruction forwards the data carried by the data sending instruction to a transmission unit 403 in the same bluetooth kernel, where the transmission unit 403 sends the received data to the corresponding bluetooth communication device based on the corresponding bluetooth communication link. As another example, in the case that any transmission unit 403 receives data sent by the bluetooth communication device, the data is sent to the first control unit 402 in the same bluetooth core, and the first control unit 402 forwards the data to the bluetooth host, so that the bluetooth host processes the data.
Optionally, the first control units 402 in the two connected bluetooth cores 401 in the communication chip 400 are connected to each other, so that data interaction between the first control units 402 in the two bluetooth cores 401 is facilitated. Optionally, the transmission units 403 in the two connected bluetooth cores 401 in the communication chip 400 are connected to each other, so that data interaction between the transmission units 403 in the two bluetooth cores 401 is facilitated.
In a possible implementation manner, the first control unit 402 further determines a frequency band corresponding to the transmission unit 403 in the same bluetooth core, and instructs the transmission unit 403 to perform data transmission on the frequency band corresponding to the transmission unit 403 based on a corresponding bluetooth communication link, so that the interference degree between the multiple transmission units 403 during data transmission can be effectively reduced, and the success rate of data transmission is improved. Alternatively, the first control unit 402 performs this step upon receiving a data transmission instruction from the bluetooth host.
Alternatively, each first control unit 402 determines, based on the AFH algorithm, a frequency band corresponding to the corresponding transmission unit 403, that is, a frequency band used by the bluetooth communication link established by the transmission unit 403 when data transmission is performed. Alternatively, the AFH algorithms used by the plurality of first control units 402 are independent from each other, i.e. each first control unit 402 determines the frequency band of the transmission unit 403 in the same bluetooth core, irrespective of the frequency bands determined by the other control units. Optionally, the AFH algorithms corresponding to the plurality of first control units 402 are coordinated, that is, in the case that any one first control unit 402 determines the frequency band of the corresponding transmission unit 403, the determined frequency band is sent to another first control unit 402, the first control unit 402 that receives the frequency band determines the frequency band of the transmission unit 403 in the same bluetooth core from other frequency bands outside the frequency band, then the first control unit 402 sends the two determined frequency bands to another first control unit 402, the first control unit 402 that receives the frequency band determines the frequency band of the transmission unit 403 in the same bluetooth core from other frequency bands outside the two frequency bands, and so on until each first control unit 402 determines the frequency band of the transmission unit 403 in the same bluetooth core. Alternatively, each of the plurality of first control units 402 uses the AFH algorithm identically, that is, if any first control unit 402 determines the frequency band of the corresponding transmission unit 403, the frequency band is sent to the other first control units 402, and the first control unit 402 that receives the frequency band uses the frequency band as the frequency band of the transmission unit 403 in the same bluetooth core.
Alternatively, each first control unit 402 sends the frequency band corresponding to each transmission unit 403, and then each transmission unit 403 performs data transmission on the corresponding frequency band based on the corresponding bluetooth communication link.
In a possible implementation, referring to fig. 5, the communication chip 400 further includes a second control unit 404, where the second control unit 404 is connected to the plurality of bluetooth cores 401 in the communication chip 400, respectively. Optionally, the second control unit 404 is connected to the first control unit 402 in each bluetooth core 401, respectively.
After determining the frequency band, each first control unit 402 transmits the determined frequency band to the second control unit 404. The second control unit 404 determines the data transmission mode of each transmission unit 403 based on the received frequency band, transmits the data transmission mode of each transmission unit 403 to each first control unit 402, and then each first control unit 402 instructs each transmission unit 403 to transmit data in the data transmission mode. Wherein, for any transmission unit 403, the second control unit 404 sends the data sending mode of the transmission unit 403 to the first control unit 402 in the same bluetooth core as the transmission unit 403. In view of the different requirements of different data transmission modes for the frequency band intervals, the second control unit 404 determines the data transmission mode of each transmission unit 403 based on the frequency band corresponding to each transmission unit 403, and transmits the data transmission mode of each transmission unit 403 to each first control unit 402, so that each first control unit 402 instructs each transmission unit 403 to transmit data in the data transmission mode, and the success rate of data transmission can be improved.
Alternatively, the second control unit 404 determines the frequency band interval between every two frequency bands, and determines the data transmission mode of each transmission unit 403 based on the frequency band interval between every two frequency bands. The data transmission modes include an asynchronous mode and a synchronous mode, and the asynchronous mode is a mode in which the data transmission timings of the transmission units 403 are independent of each other. The synchronization mode is a mode in which the data transmission timings of the plurality of transmission units 403 are the same.
In the embodiment of the present application, considering that the requirements of different data transmission modes for the frequency band intervals are different, the second control unit 404 determines the data transmission mode of each transmission unit 403 based on the frequency band interval between every two frequency bands, and sends the data transmission mode of each transmission unit 403 to each first control unit 402, so that each first control unit 402 instructs each transmission unit 403 to send data in the data transmission mode, and the success rate of data transmission can be improved.
In a possible implementation manner, the second control unit 404 determines that the data transmission mode of the transmission unit 403 corresponding to two different frequency bands with a frequency band interval is an asynchronous mode, so that the data transmission time of the transmission unit 403 corresponding to the two different frequency bands does not need to be aligned, and the complexity of data transmission is reduced.
Alternatively, the second control unit 404 determines that the data transmission mode of the transmission unit corresponding to the two frequency bands having any one frequency band interval satisfies the interval condition as the asynchronous mode, which is a mode in which the data transmission timings of the transmission units 403 corresponding to the two frequency bands are independent from each other. Wherein the band interval satisfying the interval condition indicates that the band interval is large. Optionally, the interval condition is that the band interval is greater than or equal to the reference interval. The reference interval can be set to any value as desired, and embodiments of the present application are not limited in this regard.
Optionally, the transmission unit for transmitting data in the asynchronous mode includes a first transmission unit and a second transmission unit, where the implementation manner of transmitting data in the asynchronous mode by the first transmission unit and the second transmission unit is: the third control unit determines the data transmission time of the first transmission unit, transmits the data transmission time to the first transmission unit, the fourth control unit determines the data transmission time of the second transmission unit, transmits the data transmission time to the second transmission unit, and the first transmission unit and the second transmission unit respectively transmit data when receiving the data transmission, wherein the third control unit is a first control unit which is in the same Bluetooth core as the first transmission unit, and the fourth control unit is a first control unit which is in the same Bluetooth core as the second transmission unit.
In the embodiment of the present application, the frequency band interval between any two frequency bands satisfies the interval condition, which means that the frequency band interval between the two frequency bands is larger, and data transmission is performed on the two frequency bands, and the interference degree between the two frequency bands is smaller.
In a possible implementation manner, the second control unit 404 determines that the data transmission modes of the transmission units corresponding to the two different frequency bands with the frequency band intervals are synchronous modes, so that when the frequency band intervals between the frequency bands corresponding to the two transmission units 403 are smaller, the interference degree between the two frequency bands when the data transmission is performed on the two frequency bands can be effectively reduced, and the success rate of the data transmission is improved.
Alternatively, if any one of the frequency band intervals does not satisfy the interval condition, the second control unit 404 determines that the data transmission modes of the transmission units 403 corresponding to the two frequency bands having the frequency band interval are synchronous modes, and the synchronous modes are modes in which the data transmission timings of the transmission units corresponding to the two frequency bands are the same. Wherein a band interval that does not satisfy the interval condition indicates that the band interval is small.
Optionally, the transmission unit for transmitting data in the synchronous mode includes a first transmission unit and a second transmission unit, where the implementation manner of transmitting data in the synchronous mode by the first transmission unit and the second transmission unit is: the third control unit determines a target sending time and sends the target sending time to the fourth control unit, or the fourth control unit determines the target sending time and sends the target sending time to the third control unit, the third control unit sends the target sending time to the first transmission unit, the fourth control unit sends the target sending time to the second transmission unit, and then the first transmission unit and the second transmission unit send data at the target sending time respectively. The third control unit is a first control unit which is in the same Bluetooth core as the first transmission unit, and the fourth control unit is a first control unit which is in the same Bluetooth core as the second transmission unit.
It should be noted that, since the data transmission power is far greater than the data reception power, if the band interval between two frequency bands is small and the data transmission moments of the transmission units 403 corresponding to the two frequency bands are different, when one of the transmission units 403 has transmitted data to the corresponding bluetooth communication device, and when the bluetooth communication device is transmitting response data, if the bluetooth communication device corresponding to the other transmission unit 403 is receiving data, the bluetooth communication device is affected by the data transmission power of the other bluetooth communication device, and cannot receive data or erroneously receive data, therefore, in the embodiment of the present application, when the band interval between the two frequency bands does not meet the interval condition, the transmission units 403 corresponding to the two frequency bands are instructed to transmit data in a synchronous mode, so that the interference degree between the two frequency bands when data transmission is performed on the two frequency bands can be effectively reduced, and the success rate of data transmission is improved.
The above-described determination manner of the data transmission mode corresponding to the transmission unit 403 is merely an example, and in other embodiments, the data transmission mode corresponding to the transmission unit 403 can be determined by other manners, for example, the second control unit 404 determines that the data transmission mode of the corresponding transmission unit 403 with the same frequency band is the synchronization mode.
In one possible implementation, the third control unit uses a first frequency hopping algorithm over the first bluetooth communication link and the fourth control unit uses a second frequency hopping algorithm over the second bluetooth communication link, the first frequency hopping algorithm and the second frequency hopping algorithm acting together such that: the first frequency band corresponding to the first bluetooth communication link maintains a frequency band separation from the second frequency band corresponding to the second bluetooth communication link. Wherein the first bluetooth communication link and the second bluetooth communication link are bluetooth communication links respectively established by two different transmission units 403. The third control unit and the fourth control unit are any one of the first control units in the communication chip. For example, the third control unit and the fourth control unit are each the first control unit in the same bluetooth core as the two different transmission units 403. The first frequency band corresponding to the first bluetooth communication link is a frequency band used by the first bluetooth communication link when data transmission is performed. The second frequency band corresponding to the second bluetooth communication link is a frequency band used by the second bluetooth communication link when data transmission is performed. The first frequency hopping algorithm and the second frequency hopping algorithm are arbitrary frequency hopping algorithms, and the embodiment of the present application is not limited thereto.
In the embodiment of the application, the frequency band interval between the two frequency bands is considered to influence the transmission quality of data on the two frequency bands, so that a first frequency hopping algorithm is used on a first Bluetooth communication link, and a second frequency hopping algorithm is used on a second Bluetooth communication link, so that the frequency band interval between the first frequency band corresponding to the first Bluetooth communication link and the second frequency band corresponding to the second Bluetooth communication link is kept, and the influence of the frequency band interval change between the first frequency band and the second frequency band on the data transmission quality of the first Bluetooth communication link and the second Bluetooth communication link is avoided.
In a possible implementation, the transmission unit 403 for transmitting data in the synchronous mode includes a first transmission unit and a second transmission unit, where in the case of continuously transmitting data, the transmission unit 403 that has transmitted one frame of data first waits for the other transmission unit 403 to transmit the next frame of data after the other transmission unit 403 has transmitted the one frame of data. Taking the first transmission unit as an example, the first transmission unit sends a frame of data successfully preferentially, the third control unit instructs the first transmission unit to send a frame of data at the target sending moment, and the third control unit is the first control unit which is in the same Bluetooth kernel as the first transmission unit. The fourth control unit instructs the second transmission unit to transmit a frame of data at the target transmission time, and the fourth control unit is the first control unit in the same bluetooth core as the second transmission unit. The third control unit transmits a success notification to the fourth control unit and instructs the first transmission unit to stop transmitting data, in the case where the first transmission unit successfully transmits one frame of data. The fourth control unit receives the success notification, and in case that the second transmission unit successfully transmits one frame of data, transmits the success notification to the third control unit, and instructs the second transmission unit to transmit the next frame of data. The third control unit instructs the first transmission unit to transmit next frame data in case of receiving the success notification from the fourth control unit.
Optionally, the data transmission instruction sent by the bluetooth host to each first control unit 402 carries multi-frame data. Each first control unit 402 forwards the multi-frame data to a transmission unit 403 in the same bluetooth core.
Wherein, the transmission unit 403 successfully transmitting a frame of data means that after the transmission unit 403 transmits a frame of data, a first response signal returned by the bluetooth communication device corresponding to the transmission unit 403 is received, where the first response signal indicates that the bluetooth communication device successfully receives the frame of data.
In the embodiment of the application, after the first transmission unit successfully transmits one frame of data preferentially to the second transmission unit, the first transmission unit is most likely to be due to the fact that the second transmission unit generates data retransmission, and in this case, the first transmission unit is instructed to wait for the second transmission unit to successfully transmit one frame of data and then transmit the next frame of data, so that interference caused by the transmission of the next frame of data to the data retransmission of the second transmission unit can be avoided, and the success rate of data transmission is improved.
In the technical solution provided in the embodiment of the present application, the communication chip 400 includes a plurality of bluetooth cores 401, and each bluetooth core 401 includes a first control unit 402 and a transmission unit 403, so that the communication chip 400 can control each transmission unit 403 to establish a bluetooth communication link with one bluetooth communication device based on each first control unit 402, and perform data transmission with a plurality of bluetooth communication devices through the established plurality of bluetooth communication links, that is, achieve multilink communication, thereby greatly improving data transmission efficiency.
In the embodiment of the present application, the first control unit 402 further determines the frequency band of the transmission unit 403 in the same bluetooth core, and instructs the transmission unit 403 to perform data transmission on the frequency band corresponding to the transmission unit 403 based on the corresponding bluetooth communication link, so that the interference degree between the multiple transmission units 403 during data transmission can be effectively reduced, and the success rate of data transmission is improved.
In the embodiment of the present application, considering that the requirements of different data transmission modes for the frequency band interval are different, the second control unit 404 determines the data transmission mode of each transmission unit 403 based on the frequency band corresponding to each transmission unit 403, and transmits the data transmission mode of each transmission unit 403 to each first control unit 402, so that each first control unit 402 controls each transmission unit 403 to transmit data in the data transmission mode, and the success rate of data transmission can be improved.
In the embodiment of the present application, the second control unit 404 determines that the data transmission mode of the transmission unit 403 corresponding to two different frequency bands with a frequency band interval is an asynchronous mode, so that the data transmission time of the transmission unit 403 corresponding to the two different frequency bands does not need to be aligned when data is transmitted, and the complexity of data transmission is reduced.
In the embodiment of the present application, the second control unit 404 determines that the data transmission modes of the transmission units corresponding to the two different frequency bands with the frequency band intervals are synchronous modes, so that the interference degree between the two frequency bands can be effectively reduced when the data transmission is performed on the two frequency bands under the condition that the frequency band intervals between the frequency bands corresponding to the two transmission units 403 are smaller, and the success rate of the data transmission is improved.
In the embodiment of the application, after the first transmission unit successfully transmits one frame of data preferentially to the second transmission unit, the first transmission unit is most likely to be due to the fact that the second transmission unit generates data retransmission, and in this case, the first transmission unit is instructed to wait for the second transmission unit to successfully transmit one frame of data and then transmit the next frame of data, so that interference caused by the transmission of the next frame of data to the data retransmission of the second transmission unit can be avoided, and the success rate of data transmission is improved.
Fig. 6 is a schematic diagram of a bluetooth communication device 600 according to an embodiment of the present application. Referring to fig. 6, the bluetooth communication device 600 includes a bluetooth host 601 and a communication chip including a plurality of bluetooth cores 602 (two bluetooth cores 602 are exemplified in fig. 6), each bluetooth core 602 including a first control unit and a transmission unit, the first control unit being connected to the transmission unit. Optionally, any two bluetooth cores 602 may be connected, such as the two bluetooth cores 602 in fig. 6.
The first control unit responds to the connection instruction from the bluetooth host 601 to control the transmission unit in the same bluetooth core to establish a bluetooth communication link with the corresponding bluetooth communication device. The transmission unit then performs data transmission with the corresponding bluetooth communication device based on the respective bluetooth communication link. For specific implementation, please refer to the embodiments shown in fig. 4 and fig. 5, and details are not repeated here.
In a possible implementation, referring to fig. 7, the bluetooth communication device 600 further includes a second control unit 603, where the second control unit 603 is connected to the bluetooth host 601 and the plurality of bluetooth cores 602, respectively. The second control unit 603 is configured to determine a data transmission mode of each transmission unit. For specific implementation, please refer to the embodiments shown in fig. 4 and fig. 5, and details are not repeated here.
Fig. 8 is a schematic diagram of a data transmission method according to an embodiment of the present application. The method is performed by a bluetooth communication device comprising a bluetooth host and a communication chip comprising a plurality of bluetooth cores, each bluetooth core comprising a first control unit and a transmission unit. Referring to fig. 8, the method includes:
801. The Bluetooth communication device responds to a connection instruction from the Bluetooth host through the first control unit, and controls the transmission unit in the same Bluetooth kernel to establish a Bluetooth communication link with the corresponding Bluetooth communication device.
802. The Bluetooth communication device performs data transmission with the corresponding Bluetooth communication device through the transmission unit based on the corresponding Bluetooth communication link.
The implementation of steps 801-802 is described with reference to the embodiments shown in fig. 4 and 5, and will not be described here again.
Fig. 9 is a schematic diagram of a bluetooth communication device 900 according to an embodiment of the present application. Referring to fig. 9, the bluetooth communication device 900 includes a bluetooth host 901 and a plurality of communication chips 902 connected to the bluetooth host 901, each communication chip 902 including a first control unit and a transmission unit, the first control unit being connected to the corresponding transmission unit.
Each first control unit responds to the connection instruction from the Bluetooth host 901 to control each transmission unit to establish a Bluetooth communication link with the corresponding Bluetooth communication device; any first control unit also determines the frequency band corresponding to each transmission unit, and sends the frequency band corresponding to each transmission unit to each first control unit. Then, each first control unit instructs each transmission unit to perform data transmission with the corresponding bluetooth communication device on the corresponding frequency band based on the corresponding bluetooth communication link.
The bluetooth host 901 is configured to issue a connection instruction to each first control unit, and the first control unit that receives the connection instruction controls a transmission unit in the same communication chip to establish a bluetooth communication link with a bluetooth communication device based on the connection instruction. Optionally, the connection instruction sent by the bluetooth host 901 to each first control unit includes connection information of one bluetooth communication device, and accordingly, the first control unit that receives the connection instruction controls the transmission unit in the same communication chip to establish a bluetooth communication link with one bluetooth communication device based on the connection information in the connection instruction. For example, the first control unit that receives the connection instruction controls the transmission unit in the same communication chip to send a connection request to a bluetooth communication device based on the connection information in the connection instruction, and the bluetooth communication device establishes a bluetooth communication link with the transmission unit when receiving the connection request.
Optionally, a connection is made between the first control units of any two communication chips 902 in the bluetooth host 901. For example, in fig. 9, the first control units in two communication chips 902 are connected. Optionally, the plurality of first control units in the bluetooth communication device 900 perform data interaction to determine a first control unit for determining a frequency band corresponding to each transmission unit, where the first control unit for determining the frequency band corresponding to each transmission unit is any one of the plurality of first control units.
Optionally, any of the first control units determines the frequency band of each transmission unit based on the AFH algorithm, that is, the frequency band used by the bluetooth communication link established by each transmission unit when transmitting data. Optionally, the AFH algorithms corresponding to the transmission units are independent, that is, for any transmission unit, the first control unit determines the frequency band of the transmission unit without considering the frequency bands of other transmission units. Optionally, the AFH algorithms corresponding to the transmission units are coordinated, that is, when the first control unit determines the frequency band of any transmission unit, determines the frequency band of another transmission unit from other frequency bands except the frequency band, and so on until the frequency band of each transmission unit is determined. Optionally, the AFH algorithms corresponding to the transmission units are identical, that is, when the first control unit determines the frequency band of any transmission unit, the first control unit uses the frequency band as the frequency band of other transmission units.
After each transmission unit establishes a bluetooth communication link with one bluetooth communication device, respectively, and determines a corresponding frequency band, the bluetooth communication device 900 can simultaneously perform data transmission with a plurality of bluetooth communication devices based on the bluetooth communication links established by the transmission units in each communication chip 902. For example, the bluetooth host 901 simultaneously sends a data sending instruction to the first control units of the plurality of communication chips 902, where the data sending instruction carries data to be sent, and accordingly, the first control unit that receives the data sending instruction forwards the data carried by the data sending instruction to a transmission unit in the same communication chip, where the transmission unit sends the received data to the corresponding bluetooth communication device based on the corresponding bluetooth communication link. As another example, in the case that any transmission unit receives data sent by a connected bluetooth communication device, the data is sent to a first control unit in the same communication chip, and the first control unit forwards the data to the bluetooth host 901, so that the bluetooth host 901 processes the data.
In one possible implementation, each communication chip further includes a second control unit. Any one of the second control units receives the frequency bands from the respective first control units, determines the data transmission mode of the respective transmission units based on the received frequency bands, transmits the data transmission mode of the respective transmission units to the respective first control units, and then instructs the respective transmission units to transmit data in the data transmission mode. Wherein, for any transmission unit, the second control unit transmits the data transmission mode of the transmission unit to the first control unit which is in the same communication chip as the transmission unit. In consideration of different requirements of different data transmission modes for the frequency band intervals, the second control unit determines the data transmission mode of each transmission unit based on the frequency band corresponding to each transmission unit, and transmits the data transmission mode of each transmission unit to each first control unit, so that each first control unit instructs each transmission unit to transmit data in the data transmission mode, and the success rate of data transmission can be improved.
Optionally, the second control unit determines a frequency band interval between every two frequency bands, determines a data transmission mode of each transmission unit based on the frequency band interval between every two frequency bands, and transmits the data transmission mode of each transmission unit to each first control unit; each of the first control units then instructs each of the transmission units to transmit data in the data transmission mode. The data transmission mode comprises an asynchronous mode and a synchronous mode, and the asynchronous mode is a mode in which the data transmission time of each transmission unit is independent. The synchronization mode is a mode in which data transmission timings of a plurality of transmission units are the same.
Optionally, a connection is made between the second control units of any two communication chips 902 in the bluetooth host 901. For example, in fig. 9, the second control units in the two communication chips 902 are connected. Optionally, the plurality of second control units in the bluetooth communication device 900 perform data interaction to determine a second control unit for determining a data transmission mode of each transmission unit, where the second control unit for determining the data transmission mode of each transmission unit is any one of the plurality of second control units. Optionally, after each first control unit obtains the frequency band of the corresponding transmission unit, the frequency band is sent to a second control unit in the same communication chip, and the second control unit forwards the frequency band to the second control unit for determining the data sending mode of each transmission unit.
Optionally, after determining the data transmission mode of each transmission unit, the second control unit determines the data transmission mode of each transmission unit to the second control unit that is located in the same communication chip with each transmission unit, and each second control unit forwards the received data transmission mode to the first control unit in the same communication chip.
In the embodiment of the application, the requirement of different data transmission modes on the frequency band interval is considered to be different, so that the second control unit determines the data transmission mode of each transmission unit based on the frequency band interval between every two frequency bands and respectively transmits the data transmission mode of each transmission unit to each first control unit, so that each first control unit instructs each transmission unit to transmit data in the data transmission mode, and the success rate of data transmission can be improved.
In one possible implementation manner, any one of the second control units determines that the data transmission mode of the transmission units corresponding to two different frequency bands with the frequency band interval is an asynchronous mode, so that the data transmission time of the transmission units corresponding to the two different frequency bands does not need to be aligned, and the complexity of data transmission is reduced.
Optionally, the second control unit determines that the data transmission mode of the transmission unit corresponding to the two frequency bands having the frequency band interval is an asynchronous mode, and the asynchronous mode is a mode in which the data transmission moments of the two transmission units are independent, when any frequency band interval satisfies the interval condition. Wherein the band interval satisfying the interval condition indicates that the band interval is large. Optionally, the interval condition is that the band interval is greater than or equal to the reference interval. The reference interval can be set to any value as desired, and embodiments of the present application are not limited in this regard.
Optionally, the transmission unit for transmitting data in the asynchronous mode includes a first transmission unit and a second transmission unit, where the implementation manner of transmitting data in the asynchronous mode by the first transmission unit and the second transmission unit is: the third control unit determines the data transmission time of the first transmission unit, transmits the data transmission time to the first transmission unit, the fourth control unit determines the data transmission time of the second transmission unit, transmits the data transmission time to the second transmission unit, and the first transmission unit and the second transmission unit respectively transmit data when receiving the data transmission, wherein the third control unit is a first control unit which is in the same communication chip as the first transmission unit, and the fourth control unit is a first control unit which is in the same communication chip as the second transmission unit.
In the embodiment of the application, the frequency band interval between any two frequency bands meets the interval condition, which means that the frequency band interval between the two frequency bands is larger, and data transmission is performed on the two frequency bands, and the interference degree between the two frequency bands is smaller.
In one possible implementation manner, the above-mentioned any one of the second control units determines that the data transmission modes of the transmission units corresponding to two different frequency bands with a frequency band interval are synchronous modes, so that when the frequency band interval between the frequency bands corresponding to the two transmission units is smaller, the interference degree between the two frequency bands can be effectively reduced when the data transmission is performed on the two frequency bands, and the success rate of the data transmission is improved.
Optionally, the second control unit determines, when any frequency band interval does not satisfy the interval condition, that the data transmission modes of the transmission units corresponding to the two frequency bands having the frequency band interval are synchronous modes, where the synchronous modes are modes in which the data transmission times of the two transmission units are the same. Wherein a band interval that does not satisfy the interval condition indicates that the band interval is small.
Optionally, the transmission unit for transmitting data in the synchronous mode includes a first transmission unit and a second transmission unit, where the implementation manner of transmitting data in the synchronous mode by the first transmission unit and the second transmission unit is: the third control unit determines a target sending time and sends the target sending time to the fourth control unit, or the fourth control unit determines the target sending time and sends the target sending time to the third control unit, the third control unit sends the target sending time to the first transmission unit, the fourth control unit sends the target sending time to the second transmission unit, and then the first transmission unit and the second transmission unit send data at the target sending time respectively. The third control unit is a first control unit which is positioned on the same communication chip as the first transmission unit, and the fourth control unit is a first control unit which is positioned on the same communication chip as the second transmission unit.
It should be noted that, since the data transmission power is far greater than the data reception power, if the frequency band interval between two frequency bands is small and the data transmission moments of the transmission units corresponding to the two frequency bands are different, when one of the transmission units has transmitted data to the corresponding bluetooth communication device, and when the bluetooth communication device is transmitting response data, if the bluetooth communication device corresponding to the other transmission unit is receiving data, the bluetooth communication device is affected by the data transmission power of the other bluetooth communication device, and cannot receive data or erroneously receive data, therefore, in the embodiment of the application, when the frequency band interval between the two frequency bands does not meet the interval condition, the transmission units corresponding to the two frequency bands are instructed to transmit data in a synchronous mode, so that the interference degree between the two frequency bands when data transmission is performed on the two frequency bands can be effectively reduced, and the success rate of data transmission is improved.
The above-mentioned determination manner of the data transmission mode corresponding to the transmission unit is merely an exemplary illustration, and in other embodiments, the data transmission mode corresponding to the transmission unit can be determined by other manners, for example, the second control unit determines that the data transmission mode of the corresponding transmission unit with the same frequency band is the synchronous mode.
In one possible implementation, the third control unit uses a first frequency hopping algorithm over the first bluetooth communication link and the fourth control unit uses a second frequency hopping algorithm over the second bluetooth communication link, the first frequency hopping algorithm and the second frequency hopping algorithm acting together such that: the first frequency band corresponding to the first bluetooth communication link maintains a frequency band separation from the second frequency band corresponding to the second bluetooth communication link. Wherein the first bluetooth communication link and the second bluetooth communication link are bluetooth communication links established by two different transmission units, respectively. The third control unit and the fourth control unit are any first control unit in the Bluetooth communication device. For example, the third control unit and the fourth control unit are each a first control unit on the same communication chip as the two different transmission units. The first frequency band corresponding to the first bluetooth communication link is a frequency band used by the first bluetooth communication link when data transmission is performed. The second frequency band corresponding to the second bluetooth communication link is a frequency band used by the second bluetooth communication link when data transmission is performed. The first frequency hopping algorithm and the second frequency hopping algorithm are arbitrary frequency hopping algorithms, and the embodiment of the present application is not limited thereto.
In the embodiment of the application, the frequency band interval between the two frequency bands is considered to influence the transmission quality of data on the two frequency bands, so that a first frequency hopping algorithm is used on a first Bluetooth communication link, and a second frequency hopping algorithm is used on a second Bluetooth communication link, so that the frequency band interval between the first frequency band corresponding to the first Bluetooth communication link and the second frequency band corresponding to the second Bluetooth communication link is kept, and the influence of the frequency band interval change between the first frequency band and the second frequency band on the data transmission quality of the first Bluetooth communication link and the second Bluetooth communication link is avoided.
In one possible implementation, the transmission unit for transmitting data in the synchronous mode includes a first transmission unit and a second transmission unit, where in the case of continuously transmitting data, the transmission unit that has transmitted one frame of data first waits for the other transmission unit to transmit the next frame of data after the other transmission unit has transmitted the one frame of data. Taking the first transmission unit as an example, the first transmission unit is prioritized to successfully transmit a frame of data, and the third control unit instructs the first transmission unit to transmit a frame of data at the target transmission time, where the third control unit is the first control unit located in the same communication chip as the first transmission unit. A fourth control unit indicates the second transmission unit to transmit one frame of data at the target transmission time, wherein the fourth control unit is a first control unit which is positioned on the same communication chip as the second transmission unit; the third control unit sends a success notice to the fourth control unit and instructs the first transmission unit to stop sending data under the condition that the first transmission unit successfully sends one frame of data; the fourth control unit receives the success notification, and sends the success notification to the third control unit and instructs the second transmission unit to send the next frame data when the second transmission unit successfully sends the next frame data; the third control unit instructs the first transmission unit to transmit the next frame data, upon receiving a success notification from the fourth control unit.
Alternatively, the bluetooth host 901 carries multi-frame data in a data transmission instruction sent to the first control unit of each communication chip 902. Each first control unit forwards the multi-frame data to a transmission unit in the same communication chip.
The transmission unit successfully transmitting a frame of data means that after the transmission unit transmits a frame of data, a first response signal returned by the bluetooth communication device corresponding to the transmission unit is received, where the first response signal indicates that the bluetooth communication device successfully receives the frame of data.
In the embodiment of the application, after the first transmission unit successfully transmits one frame of data preferentially to the second transmission unit, the first transmission unit is most likely to be due to the fact that the second transmission unit generates data retransmission, and in this case, the first transmission unit is instructed to wait for the second transmission unit to successfully transmit one frame of data and then transmit the next frame of data, so that interference caused by the transmission of the next frame of data to the data retransmission of the second transmission unit can be avoided, and the success rate of data transmission is improved.
In the technical solution provided in the embodiment of the present application, the bluetooth communication device 900 includes a plurality of communication chips 902, and each communication chip 902 includes a first control unit and a transmission unit, so that the bluetooth communication device 900 can respectively instruct each transmission unit to establish a bluetooth communication link with one bluetooth communication device based on the first control unit in each communication chip 902, and respectively perform data transmission with a plurality of bluetooth communication devices through the established plurality of bluetooth communication links, that is, achieve multilink communication, thereby greatly improving the efficiency of data transmission. And the corresponding frequency band of each transmission unit is determined, and the transmission units are instructed to perform data transmission with the corresponding Bluetooth communication equipment on the corresponding frequency band based on the corresponding Bluetooth communication link, so that the interference degree of a plurality of transmission units during data transmission can be effectively reduced, and the success rate of data transmission is improved.
In the embodiment of the application, the second control unit determines the data transmission mode of each transmission unit based on the frequency band corresponding to each transmission unit in consideration of different requirements of different data transmission modes on the frequency band interval, and transmits the data transmission mode of each transmission unit to each first control unit so that the first control unit instructs each transmission unit to transmit data in the data transmission mode, thereby improving the success rate of data transmission.
In the embodiment of the application, the second control unit determines that the data transmission mode of the transmission unit corresponding to the two different frequency bands with the frequency band interval is an asynchronous mode, so that the data transmission time of the transmission unit corresponding to the two different frequency bands is not required to be aligned when the data is transmitted, and the complexity of data transmission is reduced.
In the embodiment of the application, the second control unit determines that the data transmission mode of the transmission unit corresponding to the two different frequency bands with the frequency band interval is the synchronous mode, so that the interference degree between the two frequency bands can be effectively reduced when the data transmission is carried out on the two frequency bands under the condition that the frequency band interval between the frequency bands corresponding to the two transmission units is smaller, and the success rate of the data transmission is improved.
In the embodiment of the application, after the first transmission unit successfully transmits one frame of data preferentially to the second transmission unit, the first transmission unit is most likely to be due to the fact that the second transmission unit generates data retransmission, and in this case, the first transmission unit is instructed to wait for the second transmission unit to successfully transmit one frame of data and then transmit the next frame of data, so that interference caused by the transmission of the next frame of data to the data retransmission of the second transmission unit can be avoided, and the success rate of data transmission is improved.
Fig. 10 is a schematic diagram of a multilink data transmission procedure according to an embodiment of the present application. Referring to fig. 10, the master device includes a plurality of communication chips, wherein a link 1 is established between a communication chip 1 and a communication chip in the slave device 1, and a link 2 is established between a communication chip 2 and a communication chip in the slave device 2. The master device is able to send data to slave device 1 and slave device 2 based on link 1 and link 2, respectively. The length of data transmitted from the master to the slave 1 is the same as that of data transmitted to the slave 2, and the transmission timing of the data is also the same. After receiving the data, the slave device 1 and the slave device 2 respectively return first response signals to the master device under the condition of meeting the time condition of the frame interval, and the first response signals represent successful data receiving. The master device is a bluetooth communication device for actively initiating connection, and the slave device is a bluetooth communication device for receiving connection.
Fig. 11 is a schematic diagram of another multilink data transmission procedure according to an embodiment of the present application. Referring to fig. 11, the master device includes a plurality of communication chips, wherein a link 1 is established between a communication chip 1 and a communication chip in the slave device 1, and a link 2 is established between a communication chip 2 and a communication chip in the slave device 2. The master device is able to send data to slave device 1 and slave device 2 based on link 1 and link 2, respectively. The first frame data transmitted from the master device to the slave device 1 is different from the first frame data transmitted to the slave device 2 in length, but the transmission timing of the data is the same. After receiving the first frame data, the slave device 1 and the slave device 2 respectively return first response signals to the master device under the condition of meeting the time condition of the frame interval, and the first response signals indicate that the data is successfully received. Then, the master device transmits the second frame data to the slave device 1 and the slave device 2 at the other transmission timing, and the second frame data transmitted to the slave device 1 is the same as the second frame data transmitted to the slave device 2 in length.
Fig. 12 is a schematic diagram of still another multilink data transmission procedure according to an embodiment of the present application. Referring to fig. 12, the master device includes a plurality of communication chips, wherein a link 1 is established between the communication chip 1 and the communication chip in the slave device 1, and a link 2 is established between the communication chip 2 and the communication chip in the slave device 2. The master device is able to send data to slave device 1 and slave device 2 based on link 1 and link 2, respectively. The data transmitted from the master device to the slave device 1 is the same as the data transmitted to the slave device 2 in length, and the transmission timing of the data is the same. After receiving the data, the slave device 2 returns a first response signal to the master device under the condition that the time of the frame interval is satisfied, which indicates that the data is successfully received. The slave 1 does not receive data and therefore returns a second reply signal to the master indicating that no data has been received. And under the condition that the time condition of the frame interval is met, a first response signal is returned to the main equipment, and the first response signal indicates that the data is successfully received. Then, the master device resends the data to the slave device 1, and then receives the first response signal returned by the slave device 1, which indicates that the slave device successfully receives the data. Wherein, in the process of retransmitting data from the master device to the slave device 1, the master device stops transmitting data to the slave device 2 so as to avoid causing interference to data retransmission.
Fig. 13 is a schematic diagram of a multilink data transmission procedure according to an embodiment of the present application. Referring to fig. 13, the master device includes a plurality of communication chips, wherein a link 1 is established between the communication chip 1 and the communication chip in the slave device 1, and a link 2 is established between the communication chip 2 and the communication chip in the slave device 2. The master device is able to send data to slave device 1 and slave device 2 based on link 1 and link 2, respectively. The length of data transmitted by the master device to the slave device 1 is the same as that of data transmitted to the slave device 2, but the transmission timings of the data are independent from each other, that is, the timings of the master device transmitting the data to the slave device 1 and the slave device 2 each time need not be the same. After each time of receiving data, the slave device 1 and the slave device 2 respectively return first response signals to the master device under the time condition of meeting the frame interval, so that the successful data reception is indicated.
Fig. 14 is a schematic diagram of a data transmission method according to an embodiment of the present application. The method is performed by a bluetooth communication device comprising a bluetooth host and a plurality of communication chips connected with the bluetooth host, each communication chip comprising a first control unit and a transmission unit; the method comprises the following steps:
1401. The Bluetooth communication equipment responds to a connection instruction from the Bluetooth host through each first control unit, and each transmission unit is controlled to establish a Bluetooth communication link with the corresponding Bluetooth communication equipment.
1402. The Bluetooth communication device determines the frequency bands corresponding to the transmission units through any one of the first control units, and sends the frequency bands corresponding to the transmission units to the first control units respectively.
1403. The Bluetooth communication device instructs each transmission unit to perform data transmission on the corresponding frequency band based on the corresponding Bluetooth communication link through each first control unit.
Please refer to the embodiment shown in fig. 9 for the implementation of steps 1401-1403, which is not described here.
Fig. 15 is a schematic diagram of a bluetooth communication device 150 according to an embodiment of the present application. The bluetooth communication device 150 includes a plurality of bluetooth hosts 151 (two bluetooth hosts 151 are illustrated in fig. 15) and communication chips 152 respectively connected to the plurality of bluetooth hosts 151, each communication chip 152 includes a first control unit and a transmission unit, and the first control unit is connected to the transmission unit.
Each first control unit controls each transmission unit to establish a bluetooth communication link with a corresponding bluetooth communication device in response to a connection instruction from the connected bluetooth host 151. Any first control unit determines the frequency band of each transmission unit and sends the frequency band of each transmission unit to each first control unit. Each first control unit then instructs each transmission unit to transmit data with the corresponding bluetooth communication device on the corresponding frequency band based on the corresponding bluetooth communication link.
For specific implementation, please refer to the embodiment shown in fig. 9, and details are not repeated here. Note that the bluetooth communication device 150 shown in fig. 15 is different from the bluetooth communication device 900 shown in fig. 9 in that: since the bluetooth communication device 150 shown in fig. 15 includes a plurality of bluetooth hosts 151, each bluetooth host 151 is capable of transmitting an instruction to the connected communication chip 152 and performing data interaction with the connected communication chip 152, respectively. In addition, in the case where any two communication chips 152 of the plurality of communication chips 152 need to perform data interaction, the two communication chips 152 can transmit the data to be interacted to the connected bluetooth host 151, and the connected bluetooth host 151 forwards the data to the bluetooth host 151 connected to the other communication chip 152, and then the bluetooth host 151 forwards the data to the connected communication chip 152. Referring to fig. 15, the upper communication chip 152 transmits data to be transmitted to the lower communication chip 152 to the upper bluetooth host 151, the upper bluetooth host 151 forwards the data to the lower bluetooth host 151, and the lower bluetooth host 151 forwards the data to the lower communication chip 152. Optionally, a plurality of communication chips 152 in the bluetooth communication device 150 are connected. For example, the upper communication chip 152 is connected to the lower communication chip 152, and thus the upper communication chip 152 and the lower communication chip 152 can directly perform data interaction. Alternatively, the first control unit in the upper communication chip 152 is connected with the first control unit in the lower communication chip 152. Alternatively, in the case where both the upper communication chip 152 and the lower communication chip 152 include the second control unit, the second control unit in the upper communication chip 152 can be connected with the second control unit in the lower communication chip 152. Where each communication chip 152 includes a second control unit, the first control unit and the second control unit in each communication chip 152 are connected.
In the technical solution provided in the embodiment of the present application, the bluetooth communication device 150 includes a plurality of bluetooth hosts 151 and communication chips 152 respectively connected to each bluetooth host 151, and each communication chip 152 includes a first control unit and a transmission unit, so that the bluetooth communication device 150 can instruct the first control unit in each communication chip 152 to control the transmission unit to establish a bluetooth communication link with a corresponding bluetooth communication device based on each bluetooth host 151, and perform data transmission with a plurality of bluetooth communication devices through the established plurality of bluetooth communication links respectively, that is, achieve multilink communication, thereby greatly improving efficiency of data transmission. And the frequency band of each transmission unit is determined, and the transmission units are instructed to perform data transmission with the corresponding Bluetooth communication equipment on the corresponding frequency band based on the corresponding Bluetooth communication link, so that the interference degree of a plurality of transmission units during data transmission can be effectively reduced, and the success rate of data transmission is improved.
Fig. 16 is a schematic diagram of a data transmission method according to an embodiment of the present application. The method is executed by a Bluetooth communication device, the Bluetooth communication device comprises a plurality of Bluetooth hosts and communication chips respectively connected with the Bluetooth hosts, and each communication chip comprises a first control unit and a transmission unit; the method comprises the following steps:
1601. the Bluetooth communication equipment responds to a connection instruction from a connected Bluetooth host through each first control unit, and each transmission unit is controlled to establish a Bluetooth communication link with the corresponding Bluetooth communication equipment.
1602. The Bluetooth communication device determines the frequency bands corresponding to the transmission units through any one of the first control units, and sends the frequency bands corresponding to the transmission units to the first control units respectively.
1603. The Bluetooth communication device instructs each transmission unit to perform data transmission on the corresponding frequency band based on the corresponding Bluetooth communication link through each first control unit.
The implementation of steps 1601-1603 is described with reference to the embodiments shown in fig. 9 and 15 and is not repeated here.
Note that the data transmitted between the above-described bluetooth communication devices or between the communication chips can be any data, such as image data, audio data, video data, control data, and the like. And the data are authorized by the user, for example, the Bluetooth communication device displays a popup window, the popup window comprises data to be sent, and the Bluetooth communication device sends the data to the opposite Bluetooth communication device after the user performs the determining operation. The bluetooth communication device can be any device, for example, a mobile phone, a computer, a vehicle-mounted terminal, a sound box, a computer, a watch, a household appliance, etc., which is not limited in the embodiment of the present application.
The various embodiments provided by the present application can be combined in any manner, and the embodiments of the present application are not limited in this regard.
The scheme provided by the embodiment of the application can be applied to a scene of playing music. For example, the user performs a connection operation on the mobile phone, controls the mobile phone (master device) to respectively establish a bluetooth communication link with the earphone (slave device) and the audio box (slave device) through the scheme provided by the embodiment of the application, and the mobile phone respectively sends music selected by the user to the earphone and the audio box based on the established two bluetooth communication links, so that the earphone and the audio box can play the music simultaneously.
The scheme provided by the embodiment of the application can also be applied to the scene of controlling the household appliances. For example, the user performs a connection operation on the mobile phone, controls the mobile phone (master device) to respectively establish a bluetooth communication link with the television (slave device) and the washing machine (slave device) through the scheme provided by the embodiment of the application, and the mobile phone sends a control instruction determined by the user, for example, a video switching instruction, to the television based on the bluetooth communication link established with the television so as to control the television to switch the currently played video. The mobile phone transmits a control command, for example, a start command, determined by a user to the television based on the bluetooth communication link established with the washing machine, so as to control the starting of the washing machine.
The embodiment of the application can also be applied to other scenes, and the embodiment of the application is not limited to the above.