Disclosure of Invention
When the wireless communication system of the present invention is used to perform a wireless communication method process in a bluetooth wireless communication environment, first, an operation of forming a bluetooth first piconet (piconet1) and establishing a first Link (Link1) is performed, and a first bluetooth device and one or more second bluetooth devices of the wireless communication system are paired to form a bluetooth first piconet (piconet1) and establish a first Link (Link1), and the first bluetooth device and the one or more second bluetooth devices of the wireless communication system are externally formed as a virtual bluetooth device; then, forming a bluetooth second piconet (piconet2) and establishing a second Link (Link2), wherein the virtual bluetooth Device and a bluetooth Device, such as a mobile phone, form the bluetooth second piconet (piconet2) therebetween and establish the second Link (Link2), and the bluetooth second piconet (piconet2) of the first bluetooth Device and the one or more second bluetooth devices of the wireless communication system are added to the bluetooth Device, such as the mobile phone, by using the same bluetooth Device address BD _ addr (bluetooth Device address); further, the master Bluetooth device of the master control terminal (master) of the virtual Bluetooth device in the Bluetooth first piconet will pass through the Bluetooth second piconet, and establish a connection with the mobile phone according to the Bluetooth audio transmission protocol A2DP and receive audio data according to the Bluetooth audio transmission protocol A2DP, at least more than one slave bluetooth device of the slave (slave) of the virtual bluetooth device in the bluetooth first piconet uses the same bluetooth device address BD _ ADDR as the master bluetooth device, thus, the same Bluetooth Audio Transmission protocol A2DP audio data as received by the master Bluetooth device may be received, therefore, the master Bluetooth device and at least one slave Bluetooth device can play music at the same time, and packet data lost in the receiving process of at least one slave Bluetooth device in the Bluetooth first microgrid can require the master Bluetooth device to retransmit the packet data instead of the mobile phone.
Another objective of the present invention is to provide a wireless communication system and method thereof, which are applied in a bluetooth wireless communication environment, when audio data is transmitted from a bluetooth device, such as a mobile phone, to the wireless communication system of the present invention for wireless communication, most of the audio data is directly transmitted from the mobile phone to the first bluetooth device and one or more second bluetooth devices of the wireless communication system through a bluetooth second piconet, so as to reduce the wasted bandwidth; in addition, since the packet data lost during the receiving process of at least one slave bluetooth device in the bluetooth first piconet is required to be retransmitted by the master bluetooth device rather than by the bluetooth device, such as a mobile phone, the limited bandwidth of bluetooth can be effectively utilized, and therefore, higher-quality audio data can be transmitted using the same bandwidth than in the conventional manner.
Another objective of the present invention is to provide a wireless communication system and method thereof, which is applied in a bluetooth wireless communication environment, in a bluetooth first piconet, a main bluetooth device at a master control end does not need a large buffer area, so that the delay time of playing can be reduced; in addition, the main Bluetooth device is connected with the mobile phone end by adopting a standard Bluetooth audio transmission protocol A2DP, and the mobile phone end does not need to be modified and has no compatibility problem.
Another objective of the present invention is to provide a wireless communication system and method thereof, which is applied in a bluetooth wireless communication environment, in a bluetooth first piconet, audio data missed by more than one slave bluetooth device of a controlled end can request the master bluetooth device of a master end, and the master bluetooth device of the master end can transmit only monaural audio data to the more than one slave bluetooth device of the controlled end, so as to save bluetooth bandwidth.
Another objective of the present invention is to provide a wireless communication system and method thereof, which is applied in a bluetooth wireless communication environment, wherein the master bluetooth device as a master control end and one or more slave bluetooth devices as controlled ends can switch their bluetooth master role and slave role at any time, such as rotating at regular time or switching according to different functions of music or communication; in other words, in the wireless communication system of the present invention, in the first bluetooth piconet, when the first bluetooth device is a master bluetooth device of a master (master), the one or more second bluetooth devices are controlled terminals, and when any one of the one or more second bluetooth devices is a master bluetooth device of the master, the first bluetooth device is a slave bluetooth device of the controlled terminals, and the other one of the one or more second bluetooth devices except the any one of the one or more second bluetooth devices can also be slave bluetooth devices of the controlled terminals, that is, the master and slave roles are determined according to the connection status and are not limited to specific devices.
In accordance with the above-mentioned objectives, the present invention provides a wireless communication system, which is applied in a bluetooth wireless communication environment, the wireless communication system comprises a first bluetooth device and at least one second bluetooth device.
The first bluetooth device and the more than one second bluetooth devices are paired to form a bluetooth first piconet (piconet1), a first Link (Link1) is established between the first bluetooth device and the more than one second bluetooth devices, and the wireless communication system comprising the first bluetooth device and the more than one second bluetooth devices is externally formed into a virtual bluetooth device.
Here, a bluetooth second piconet (piconet2) is formed between the virtual bluetooth device and a bluetooth device, such as a mobile phone, and a second Link (Link2) is established; forming a second bluetooth piconet (piconet2) with the mobile phone for the wireless communication system of the virtual bluetooth device, and establishing a second Link (Link2) of an Audio connection of a bluetooth Audio transmission protocol A2DP (Advanced Audio Distribution Profile); in the bluetooth first piconet, the first bluetooth Device of the wireless communication system and the one or more second bluetooth devices will be joined to the bluetooth second piconet (piconet2) of the handset using the same bluetooth Device address BD _ addr (bluetooth Device address), wherein in the bluetooth first piconet, when the first bluetooth Device is the master bluetooth Device of the master (master), the one or more second bluetooth devices will be slave bluetooth devices of the slave (slave), however, this master and slave role depends on the connection status of the bluetooth first piconet, in other words, in the bluetooth first piconet, when any one of the one or more second bluetooth devices is the master bluetooth Device of the master, the first bluetooth Device is the slave bluetooth Device of the slave, and in other than any one of the one or more second bluetooth devices, the other second bluetooth devices are also slave bluetooth devices of the slave, that is, the master role and the slave role are not limited to a specific device depending on the connection status.
When audio data is transmitted through the bluetooth second piconet, the virtual bluetooth device and the bluetooth device, such as a mobile phone, so as to enable music playing, a first bluetooth device of the wireless communication system (virtual bluetooth device) in the bluetooth first piconet, and one or more of the second bluetooth devices, such as a master bluetooth device (e.g., a first bluetooth device), after establishing a second Link (Link2) of the bluetooth audio transmission protocol A2DP with the mobile phone, the master bluetooth device (e.g., the first bluetooth device) that is the master (master) in the bluetooth first piconet establishes a bluetooth audio transmission protocol A2DP connection with the mobile phone through the bluetooth second piconet and receives the bluetooth audio transmission protocol A2DP audio data, and one or more slave bluetooth devices (e.g., the one or more second bluetooth devices) of the slave (slave) in the bluetooth first piconet, since the same bluetooth device address BD _ ADDR is used as the master bluetooth device, it is also possible to receive the same bluetooth audio transmission protocol A2DP audio data as the master bluetooth device, so as to achieve the function of the wireless communication system as a virtual bluetooth device, and at least more than one slave bluetooth device can play music at the same time, and in addition, packet data lost during reception by more than one slave bluetooth device (e.g., the more than one second bluetooth device) of the slave (slave) in the bluetooth first piconet is requested to the master bluetooth device (e.g., the first bluetooth device) of the master (master) through the first Link (Link1), provided by the master bluetooth device (e.g., the first bluetooth device) of the master (master) rather than being retransmitted by the mobile phone, and the master bluetooth device (e.g., the first bluetooth device) may only transmit monaural audio data to more than one slave bluetooth devices (e.g., the more than one second bluetooth devices) of the slave (slave), in other words, packet data lost during reception by more than one slave bluetooth devices (e.g., the more than one second bluetooth devices) of the slave (slave) in the bluetooth first piconet may require retransmission by the master bluetooth device (e.g., the first bluetooth device) of the master (master) in the bluetooth first piconet, without requiring retransmission by the handset of the bluetooth second piconet of packet data of audio data, and only by the master bluetooth device (e.g., the first bluetooth device) of the master (master); in addition, the master bluetooth device (e.g., the first bluetooth device) of the master (master) and one or more slave bluetooth devices (e.g., the one or more second bluetooth devices) of the slave (slave) in the bluetooth first piconet may receive complete audio data and decode and play the audio data; and only the master bluetooth device (e.g., the first bluetooth device) of the master control end (master) in the first bluetooth piconet can transmit packet data to the mobile phone in the second bluetooth piconet, however, the master role and the slave role of the bluetooth device can be switched at any time, for example, the master role and the slave role are switched in turn at regular time, or the master role and the slave role are switched according to different functions of music or conversation.
When the wireless communication system of the present invention is used to perform the wireless communication method process, first, the operations of forming the bluetooth first piconet (piconet1) and establishing the first Link (Link1) are performed, the first bluetooth device and the at least one second bluetooth device of the wireless communication system are paired to form the bluetooth first piconet (piconet1) and establish the first Link (Link1), and the first bluetooth device and the at least one second bluetooth device of the wireless communication system are externally formed into a virtual bluetooth device.
Then, the operations of forming the bluetooth second piconet (piconet2) and establishing the second Link (Link2) are performed, the virtual bluetooth Device forms the bluetooth second piconet (piconet2) with a bluetooth Device, such as a mobile phone, and establishes the second Link (Link2), and the first bluetooth Device and the one or more second bluetooth devices of the wireless communication system join the bluetooth second piconet (piconet2) of the mobile phone by using the same bluetooth Device address BD _ addr (bluetooth Device address).
Further, performing audio data transmission and music playing operations, the master bluetooth device (the first bluetooth device or one of the more than one second bluetooth devices) at the master (master) of the virtual bluetooth device in the bluetooth first piconet establishing a bluetooth audio transmission protocol A2DP connection with the handset through the bluetooth second piconet and receiving the bluetooth audio transmission protocol A2DP audio data, and at least one of the more than one slave bluetooth devices at the slave (slave) of the virtual bluetooth device in the bluetooth first piconet using the same bluetooth device address BD _ ADDR as the master bluetooth device and thus receiving the same bluetooth audio transmission protocol A2DP audio data as the master bluetooth device received, so that the master bluetooth device and the at least one slave bluetooth device can play music simultaneously, and at least one of the more than one slave bluetooth devices in the bluetooth first piconet losing data during receiving, the master bluetooth device may be required to be resent instead of being resent by the handset.
For those skilled in the art to understand the objects, features and advantages of the present invention, the following detailed description of the present invention is provided in conjunction with the accompanying drawings, wherein:
Detailed Description
Fig. 1 is a system diagram illustrating the system architecture and operation of a wireless communication system according to the present invention. As shown in fig. 1, the wireless communication system 1 includes a first bluetooth device 2 and more than one second bluetooth devices 3.
A first bluetooth device 2 and one or more second bluetooth devices 3, the first bluetooth device 2 and the one or more second bluetooth devices 3 are paired to form a bluetooth first piconet (piconet1), and a first Link (Link1) is established between the first bluetooth device 2 and the one or more second bluetooth devices 3, and the wireless communication system 1 including the first bluetooth device 2 and the one or more second bluetooth devices 3 is externally formed as a virtual bluetooth device 4.
Here, the virtual bluetooth device 4 forms a bluetooth second piconet (piconet2) with a bluetooth device 5 (e.g., a mobile phone 5), and establishes a second Link (Link 2); the wireless communication system 1 for the virtual bluetooth device 4 will form a bluetooth second piconet (piconet2) with the bluetooth device 5 and establish a second Link (Link2) of the bluetooth Audio transmission protocol A2DP (Advanced Audio Distribution Profile) Audio connection.
The first bluetooth Device 2 and the one or more second bluetooth devices 3 of the wireless communication system 1 in the bluetooth first piconet use the same bluetooth Device address BD _ addr (bluetooth Device address) to be added to the bluetooth second piconet (piconet2) of the bluetooth Device 5, wherein in the bluetooth first piconet, when the first bluetooth Device 2 is a master bluetooth Device of a master (master), the one or more second bluetooth devices 3 are slave bluetooth devices of a slave (slave), however, the master and slave roles depend on the connection status of the bluetooth first piconet.
In other words, in the wireless communication system 1 of the present invention, when any one of the one or more second bluetooth devices 3 is the master bluetooth device of the master, the first bluetooth device 2 is the slave bluetooth device of the controlled end, and the other ones of the one or more second bluetooth devices 3 except for the one are also slave bluetooth devices of the controlled end in the bluetooth first piconet, that is, the master/slave roles are not limited to specific devices depending on the connection status.
When the virtual bluetooth apparatus 4 (the wireless communication system 1) and the bluetooth apparatus 5 perform audio data (mono or stereo) transmission via the bluetooth second piconet to enable music playing, the first bluetooth apparatus 2 of the wireless communication system 1 (the virtual bluetooth apparatus 4) in the bluetooth first piconet, and one of the more than one second bluetooth apparatus 3, which is the master (master) (e.g., the first bluetooth apparatus 2), receive the bluetooth audio transmission protocol A2DP audio data after establishing the second Link (Link2) of the bluetooth audio transmission protocol A2DP with the bluetooth apparatus 5, and the more than one slave bluetooth apparatuses (e.g., the more than one second bluetooth apparatus 3) of the slave (slave) in the bluetooth first piconet, using the same bluetooth apparatus address BD _ ADDR as the master bluetooth apparatus, thus, may also receive the bluetooth audio transmission protocol A2DP audio data received by the master bluetooth apparatus, thus, the master Bluetooth device 2 and at least one slave Bluetooth device 3 of the wireless communication system 1, which are the virtual Bluetooth devices 4, can play music at the same time.
More than one slave bluetooth devices (e.g., the more than one second bluetooth devices 3) of the slave (slave) in the bluetooth first piconet receive the lost packet data, and send a request to the master bluetooth device (e.g., the first bluetooth device 2) of the master (master) through the first Link (Link1), the request is provided by the master bluetooth device (e.g., the first bluetooth device 2) of the master (master) rather than being retransmitted by the bluetooth device 5, and the master bluetooth device (e.g., the first bluetooth device 2) of the master (master) can only transmit monaural audio data to the more than one slave bluetooth devices (e.g., the more than one second bluetooth devices 3) of the slave (slave). In other words, the packet data lost during the receiving process of the more than one slave bluetooth device (e.g., the more than one second bluetooth device 3) at the slave (slave) in the bluetooth first piconet may require the master bluetooth device (e.g., the first bluetooth device 2) at the master (master) in the bluetooth first piconet to retransmit the packet data of the audio data without requiring the bluetooth device 5 in the bluetooth second piconet to retransmit the packet data, and only the master bluetooth device (e.g., the first bluetooth device 2) at the master (master) may retransmit the packet data.
In addition, the master bluetooth device (e.g., the first bluetooth device 2) of the master (master) and one or more slave bluetooth devices (e.g., the one or more second bluetooth devices 3) of the slave (slave) in the bluetooth first piconet may receive complete audio data and decode and play the audio data; and only the master bluetooth device (e.g., the first bluetooth device 2) of the master (master) in the first bluetooth piconet can transmit packet data to the bluetooth device 5 in the second bluetooth piconet, however, the master and slave roles of the bluetooth devices can be switched at any time, for example, by timing in turns, or by different functions of music or communication.
In practical implementation, the first bluetooth device 2 and the at least one second bluetooth device 3 of the wireless communication system 1 may be both bluetooth headsets, or the first bluetooth device 2 and the at least one second bluetooth device 3 may be electronic devices with bluetooth communication functions, depending on practical implementation conditions.
In addition, further regarding the network architecture of the wireless communication system 1 and the bluetooth device 5:
1. the first bluetooth device 2, which is the master bluetooth device, and the one or more second bluetooth devices 3, which are slave bluetooth devices, establish a bluetooth first piconet in which the first bluetooth device 2, which is the master bluetooth device, is the master of the bluetooth first piconet and the one or more second bluetooth devices 3, which are slave bluetooth devices, are slave of the bluetooth first piconet.
2. A bi-directional Link1 is established between the first bluetooth device 2, which is a master bluetooth device, and one or more second bluetooth devices 3, which are slave bluetooth devices, to exchange data/command/ACK (data/command/notification); the wireless communication system 1 forms a single virtual bluetooth device 4, and the first bluetooth device 2 and one or more second bluetooth devices 3 have the same bluetooth device address BD _ ADDR (e.g., BD _ ADDR 1).
In other words, the first bluetooth device 2 and the more than one second bluetooth devices 3 establish the bluetooth first piconet, the first bluetooth device 2 is the master bluetooth device master, the more than one second bluetooth devices 3 are the slave bluetooth devices slave, a bidirectional Link first connection (Link1) is established between the first bluetooth device 2 and the more than one second bluetooth devices 3 to exchange data/command/ACK, and a single virtual bluetooth device 4 is externally formed and uses the bluetooth device address BD _ ADDR (e.g., BD _ ADDR 1).
3. The virtual bluetooth device 4 is added to the bluetooth second piconet 12 of the bluetooth device 5 (e.g., cell phone 5), wherein the bluetooth device 5, which is the master bluetooth device, uses another bluetooth device address (e.g., BD _ ADDR2) different from the bluetooth device addresses BD _ ADDR (e.g., BD _ ADDR1) of the first bluetooth device 2 and the one or more second bluetooth devices 3 for the bluetooth second piconet, and the first bluetooth device 2 and the second bluetooth device 3, which are slave bluetooth devices, are both slave bluetooth devices of the second piconet 12 (P2).
The virtual bluetooth device 4 establishes a bi-directional Link2 with the bluetooth device 5 (e.g., the mobile phone 5) to receive audio data transmitted by the bluetooth device 5 (e.g., the mobile phone 5).
4. As for the first bluetooth device 2, in the bluetooth first piconet, the first bluetooth device 2 is the master bluetooth device master; however, in the bluetooth second piconet, the first bluetooth device 2 is a slave bluetooth device slave and has a bluetooth device address (e.g., BD _ ADDR 1).
For more than one second bluetooth device 3, in the bluetooth first piconet 11, the first bluetooth device 2 is the master bluetooth device master and the second bluetooth device 3 is the slave bluetooth device slave; in addition, in the bluetooth second piconet, more than one second bluetooth device 3 is slave and has a bluetooth device address (e.g., BD _ ADDR1), i.e., in the bluetooth second piconet, both the first bluetooth device 2 and the second bluetooth device 3 are slave and have the same bluetooth device address (e.g., BD _ ADDR 1).
With respect to the bluetooth device 5 (e.g., the mobile phone 5), in the bluetooth second piconet, the bluetooth device 5 (e.g., the mobile phone 5) is the master bluetooth device master and has a bluetooth device address (e.g., BD _ ADDR2), and the first bluetooth device 2 and the one or more second bluetooth devices 3 are all slave bluetooth devices slave and have the same bluetooth device address (e.g., BD _ ADDR 1).
In other words, the virtual bluetooth device 4 joins the bluetooth second piconet of the bluetooth device 5 (e.g., the mobile phone 5), wherein the first bluetooth device 2 and the one or more second bluetooth devices 3 are slave bluetooth devices, and the virtual bluetooth device 4 establishes a bi-directional connection second Link (Link2) with the bluetooth device 5 (e.g., the mobile phone 5) to receive the audio data transmitted by the bluetooth device 5 (e.g., the mobile phone 5).
Fig. 2 is a flowchart illustrating steps of a method for wireless communication using the wireless communication system of fig. 1 according to the present invention. As shown in fig. 2, first, in step 101, the operations of forming a bluetooth first piconet (piconet1) and establishing a first Link (Link1) are performed; the first bluetooth device 2 and the one or more second bluetooth devices 3 of the wireless communication system 1 are paired with each other to form a bluetooth first piconet (piconet1) and establish a first Link1, and the first bluetooth device 2 and the one or more second bluetooth devices 3 of the wireless communication system 1 are externally formed as a virtual bluetooth device 4 and the process proceeds to step 102.
In step 102, forming a bluetooth second piconet (piconet2) and establishing a second Link (Link 2); the virtual bluetooth apparatus 4 and the bluetooth apparatus 5 (e.g., the mobile phone 5) form a bluetooth second piconet (piconet2) therebetween and establish a second Link (Link2), and the first bluetooth apparatus 2 and the one or more second bluetooth apparatuses 3 of the wireless communication system 1 join the bluetooth second piconet (piconet2) of the bluetooth apparatus 5 (e.g., the mobile phone 5) using the same bluetooth apparatus address BD _ addr (bluetooth Device address), and then proceed to step 103.
In step 103, performing audio data transmission and music playing; the master bluetooth device (the first bluetooth device 2 and one of the more than one second bluetooth devices 3) of the master (master) of the virtual bluetooth device 4 in the first bluetooth piconet establishes a bluetooth audio transmission protocol A2DP connection with the bluetooth device 5 (e.g., the handset 5) through the second bluetooth piconet and receives bluetooth audio transmission protocol A2DP audio data (mono or stereo), and at least one of the more than one slave bluetooth devices of the slave (slave) of the virtual bluetooth device 4 in the first bluetooth piconet also receives the same bluetooth device address BD _ ADDR as the master bluetooth device, so that the master bluetooth device and the at least one slave bluetooth device can play music simultaneously, and at least one of the more than one slave bluetooth devices in the first bluetooth piconet loses bluetooth packet data during reception, the master bluetooth device may be required to be resent instead of being resent by the bluetooth device 5 (e.g., the handset 5).
In other words, when the wireless communication system is used to perform the wireless communication method:
1. a plurality of bluetooth devices (a first bluetooth device 2 and one or more second bluetooth devices 3) are pre-paired to form a bluetooth first piconet and establish a wired first link.
2. One of the bluetooth devices (the first bluetooth device 2 and the one or more second bluetooth devices 3) in the bluetooth first piconet and the bluetooth device 5 (e.g., the mobile phone 5) form a bluetooth second piconet and establish A2DP audio connection second link, such that the bluetooth device is referred to as a master bluetooth device of the master in the bluetooth first piconet, the other bluetooth devices in the bluetooth first piconet are referred to as slave bluetooth devices of the controlled end, and the master role and the slave role are determined according to the connection state and are not limited to specific devices; here, only the master bluetooth device can transmit packets to the bluetooth device 5 (e.g., the mobile phone 5), and the master and slave roles of the bluetooth device can be switched at any time, for example, periodically and alternately, or different functions can be switched according to music or conversation.
3. The master bluetooth device at the master in the first bluetooth piconet transfers connection information of the second bluetooth piconet, such as the BD _ ADDR and connection password of the bluetooth device 5 (e.g., the mobile phone 5) to the slave bluetooth device (other bluetooth devices) at the controlled end in the first bluetooth piconet through the first connection.
4. The slave bluetooth device of the controlled end in the first piconet adds the same BD _ ADDR to the second bluetooth piconet according to the connection information.
5. The slave bluetooth device of the controlled peer in the first piconet receives audio data that is sent by the connected bluetooth device 5 (e.g., the handset 5) in the second connection to the master bluetooth device of the master peer in the first piconet.
6. The packet data missed by the slave bluetooth device of the controlled end in the first piconet is requested to the master bluetooth device of the master end in the first piconet through the wired first link, and is provided by the master bluetooth device rather than by the bluetooth device 5 (e.g., the mobile phone 5); alternatively, the master bluetooth device may transmit only mono audio data to the slave bluetooth device.
7. According to the above steps, a plurality of bluetooth devices in the bluetooth first piconet (the first bluetooth device 2 and the one or more second bluetooth devices 3) can receive the complete audio data, decode the audio data and broadcast the decoded audio data.
Fig. 3 is a diagram illustrating an embodiment of a wireless communication system and operation thereof according to the present invention. As shown in fig. 3, the wireless communication system 1 includes a first bluetooth device 2 and a second bluetooth device 3, wherein the first bluetooth device 2 and the second bluetooth device 3 are bluetooth headsets, and in the embodiment, the bluetooth device 5 is a mobile phone 5).
A first bluetooth device 2 and a second bluetooth device 3, the first bluetooth device 2 and the second bluetooth device 3 are paired to form a bluetooth first piconet (piconet1)11, and a first Link (Link1) is established between the first bluetooth device 2 and the second bluetooth device 3, and the wireless communication system 1 including the first bluetooth device 2 and the second bluetooth device 3 is externally formed as a virtual bluetooth device 4.
Here, a bluetooth second piconet (piconet2)12 is formed between the virtual bluetooth device 4 and the mobile phone 5, and a second Link2 is established; the wireless communication system 1 for the virtual bluetooth device 4 will form a bluetooth second piconet (piconet2) with the handset 5 and establish a second Link (Link2) of an Audio connection of the bluetooth Audio transmission protocol A2DP (Advanced Audio Distribution Profile).
The first bluetooth Device 2 and the second bluetooth Device 3 in the wireless communication system 1 in the bluetooth first piconet 11 will use the same bluetooth Device address BD _ addr (bluetooth Device address) to be added to the bluetooth second piconet (piconet2)12 of the mobile phone 5, wherein in the bluetooth first piconet 11, when the first bluetooth Device 2 is the master bluetooth Device of the master (master), the second bluetooth Device 3 is the slave bluetooth Device of the slave (slave), however, the master and slave roles depend on the connection status of the bluetooth first piconet 11.
In other words, in the wireless communication system 1 of the present invention, in the bluetooth first piconet 11, when the second bluetooth device 3 is the master bluetooth device of the master, the first bluetooth device 2 is the slave bluetooth device of the controlled end, i.e., the master and slave roles are not limited to specific devices depending on the connection status.
When the virtual bluetooth apparatus 4 (the wireless communication system 1) and the handset 5 perform audio data (mono or stereo) transmission through the second bluetooth piconet 12 to enable music playing, the first bluetooth apparatus 2 of the wireless communication system 1 (the virtual bluetooth apparatus 4) in the first bluetooth piconet 11 is a master bluetooth apparatus of a master (master), after establishing a second Link (Link2) of a bluetooth audio transmission protocol A2DP with the handset 5, the master bluetooth apparatus (the first bluetooth apparatus 2) of the first bluetooth piconet 11, which is a master, establishes a bluetooth audio transmission protocol A2DP with the handset 5 through the second bluetooth apparatus 12 and receives the bluetooth audio transmission protocol A2DP audio data, and the second bluetooth apparatus 3 of the slave bluetooth apparatus, which is a slave, of the first bluetooth piconet 11, uses the same bluetooth apparatus BD _ ADDR as the master bluetooth apparatus, therefore, it is also possible to receive the audio data of the bluetooth audio transmission protocol A2DP identical to that received by the master bluetooth device, so that the master bluetooth device 2 of the wireless communication system 1, which is the virtual bluetooth device 4, and at least one or more slave bluetooth devices 3 can play music at the same time.
In addition, the packet data lost during the receiving process of the second bluetooth device 3 which is the slave bluetooth device at the slave end (slave) in the bluetooth first piconet 11 is requested to the first bluetooth device 2 which is the master bluetooth device at the master end (master) through the first Link (Link1), the first bluetooth device 2 which is the master bluetooth device at the master end (master) is provided instead of being retransmitted by the handset 5, and the first bluetooth device 2 which is the master bluetooth device at the master end (master) can transmit only the monaural audio data to the second bluetooth device 3 which is the slave bluetooth device at the slave end (slave), in other words, the packet data lost during the receiving process of the second bluetooth device 3 which is the slave end (slave) at the master end (slave) in the bluetooth first piconet 11 can be requested to retransmit the first bluetooth device 2 which is the master end (master) in the first piconet 11, the handset 5 in the second piconet 12 is not required to retransmit the packetized data of the audio data, but only the first bluetooth device 2, which is the master bluetooth device, at the master (master).
In addition, the first bluetooth device 2 of the master bluetooth device, which is a master terminal (master), and the second bluetooth device 3 of the slave bluetooth device, which is a slave terminal (slave), in the first bluetooth piconet 11 may receive complete audio data, decode the audio data and broadcast the decoded audio data; and, only the first bluetooth device 2 of the master bluetooth device, which is the master (master) in the first bluetooth piconet 11, can transmit packet data to the mobile phone 5 in the second bluetooth piconet 12, however, the master and slave roles of the bluetooth devices can be switched at any time, for example, by turning at regular time or by switching different functions according to music or communication.
In the embodiment, although the bluetooth device 5 is a mobile phone 5, the bluetooth device 5 is similar to the electronic device with bluetooth communication function in the embodiment in the same manner, and therefore, the detailed description thereof is omitted.
In the embodiment, although the first bluetooth device 2 is a bluetooth headset and the second bluetooth device 3 is only a single bluetooth headset, the same and similar principles as those described in the embodiment are applied to the case where the first bluetooth device 2 is a bluetooth headset and the second bluetooth devices 3 are a plurality of bluetooth headsets, and therefore, the detailed description thereof is omitted here.
In addition, the first bluetooth device 2 and the second bluetooth device 3 are the same as the electronic devices with bluetooth communication functions and similar to those described in this embodiment, and therefore, the details thereof are not repeated herein.
Fig. 4 is a flowchart illustrating a process of performing a wireless communication method using the embodiment of the wireless communication system shown in fig. 3. As shown in fig. 4, first, in step 201, the operations of forming the bluetooth first piconet (piconet1) 12 and establishing the first Link (Link1) are performed; the first bluetooth device 2 and the second bluetooth device 3 of the wireless communication system 1 are paired with each other to form a bluetooth first piconet (piconet1)11 and establish a first Link1, and the wireless communication system 1 is externally formed as a virtual bluetooth device 4 and proceeds to step 202.
In step 202, forming a bluetooth second piconet (piconet2)12 and establishing a second Link 2; the bluetooth second piconet (piconet2)12 is formed between the virtual bluetooth Device 4 (wireless communication system 1) and the mobile phone 5, and a second Link (Link2) is established, and the first bluetooth Device 2 and the second bluetooth Device 3 of the virtual bluetooth Device 4 (wireless communication system 1) will join the bluetooth second piconet (piconet2)12 of the mobile phone 5 using the same bluetooth Device address BD _ addr (bluetooth Device address), and the process proceeds to step 203.
Here, at step 202, a bluetooth second piconet (piconet2)12 is formed between the virtual bluetooth Device 4 and a mobile phone 5, and a second Link (Link2) is established, where the wireless communication system 1 for the virtual bluetooth Device 4 will form a bluetooth second piconet (piconet2)12 with the mobile phone 5 and establish a second Link (Link2) of a bluetooth Audio transmission protocol A2DP (Advanced Audio Distribution Profile) Audio connection, wherein the first bluetooth Device 2 and the second bluetooth Device 3 of the wireless communication system 1 will join the bluetooth second piconet (piconet 32) 12 of the mobile phone 5 using the same bluetooth Device address BD _ addr (bluetooth Device address), wherein, in the bluetooth first piconet 11, the first bluetooth Device 2 may be a master bluetooth Device on a master side (master), and the second bluetooth Device 3 may be a slave bluetooth slave Device 2 on a slave side (slave), however, the master role and the slave role depend on the connection status of the bluetooth first piconet 11, that is, when the second bluetooth device 3 in the bluetooth first piconet 11 is the master bluetooth device of the master, the first bluetooth device 2 is the slave bluetooth device of the slave (slave), i.e., the master role and the slave role are not limited to specific devices depending on the connection status.
In step 203, performing audio data transmission and music playing; the master bluetooth device, which is the master of the virtual bluetooth device 4 in the bluetooth first ss 11, establishes a bluetooth audio transmission protocol A2DP connection with the mobile phone 5 through the bluetooth second ss 12 and receives bluetooth audio transmission protocol A2DP audio data (mono or stereo), and the second bluetooth device 3, which is the slave bluetooth device of the slave bluetooth device (slave) in the bluetooth first ss 11, receives the same bluetooth audio transmission protocol A2DP audio data as the master bluetooth device because it uses the same bluetooth device address BD _ ADDR as the master bluetooth device, so that the master bluetooth device and the slave bluetooth device can play music at the same time; in addition, for the packet data lost in the receiving process of the second Bluetooth device 3 of the slave Bluetooth device, a request is sent to the first bluetooth device 2 of the master bluetooth device, which is the master (master), over a wired first Link (Link1), provided by the first bluetooth device 2 of the master bluetooth device, which is the master, the first bluetooth device 2 of the master (master) being the master bluetooth device can only transmit the monaural audio data to the second bluetooth device 3 of the slave (slave) being the slave bluetooth device, i.e. the packet data lost during the receiving process of the second bluetooth device 3 of the slave (slave) being the slave bluetooth device, the first bluetooth device 2 that is the master bluetooth device of the master (master) may be required to retransmit, instead of requiring the handset 5 to retransmit the packet data of the audio data, the first bluetooth device 2 of the master bluetooth device (master) can retransmit the packet data.
Fig. 5 is a schematic diagram illustrating a network architecture of a wireless communication system and a mobile phone according to an embodiment of the invention shown in fig. 3. As shown in fig. 5, the first bluetooth device 2, which is the master bluetooth device, establishes the bluetooth first piconet 11 with the second bluetooth device 3, which is the slave bluetooth device (P1), wherein the first bluetooth device 2, which is the master bluetooth first piconet 11(P1) and the second bluetooth device 3, which is the slave bluetooth device, is the slave bluetooth first piconet 11 (P1).
A bidirectional Link1 is established between the first bluetooth device 2 as the master bluetooth device and the two bluetooth devices as the second bluetooth device 3 as the slave bluetooth device to exchange data/command/ACK; moreover, the wireless communication system 1 forms a single virtual bluetooth device 4, and the first bluetooth device 2 and the second bluetooth device 3 have the same bluetooth device address BD _ ADDR 1.
In other words, the first bluetooth device 2 and the second bluetooth device 3 establish the bluetooth first piconet 11(P1), the first bluetooth device 2 is the master bluetooth device master, the second bluetooth device 3 is the slave bluetooth device slave, a bidirectional connection first connection (Link1) is established between the first bluetooth device 2 and the second bluetooth device 3 to exchange data/command/ACK, and a single virtual bluetooth device 4 is externally formed and uses the bluetooth device address BD _ ADDR 1.
The virtual bluetooth device 4 is added to the bluetooth second piconet 12(P2) of the mobile phone 5, wherein the mobile phone 5, which is the master bluetooth device, uses the bluetooth device address BD _ ADDR2 for the master of the bluetooth second piconet 12(P2), and the first bluetooth device 2 and the second bluetooth device 3, which are slave bluetooth devices, are both slave of the bluetooth second piconet 12 (P2).
The virtual bluetooth device 4 establishes a bidirectional Link2 with the mobile phone 5 to receive the audio data transmitted by the mobile phone 5.
As for the first bluetooth device 2, in the bluetooth first piconet 11(P1), the first bluetooth device 2 is the master bluetooth device master; however, in the second bluetooth piconet 12(P2), the first bluetooth device 2 is a slave bluetooth device slave and has a bluetooth device address of BD _ ADDR 1.
As for the second bluetooth device 3, in the bluetooth first piconet 11(P1), the first bluetooth device 2 is the master bluetooth device master and the second bluetooth device 3 is the slave bluetooth device slave; in the second bluetooth piconet 12(P2), the second bluetooth device 3 is the slave bluetooth device slave and has a bluetooth device address of BD _ ADDR1, i.e., in the second bluetooth piconet 12(P2), both the first bluetooth device 2 and the second bluetooth device 3 have a slave bluetooth device slave and the same bluetooth device address of BD _ ADDR 1.
In the case of the mobile phone 5, in the bluetooth second piconet 12(P2), the mobile phone 5 is the master bluetooth device master and has a bluetooth device address of BD _ ADDR2, and both the first bluetooth device 2 and the second bluetooth device 3 are slave bluetooth devices slave and have the same bluetooth device address of BD _ ADDR 1.
In other words, the virtual bluetooth device 4 joins the bluetooth second piconet 12 of the mobile phone 5 (P2), wherein the first bluetooth device 2 and the second bluetooth device 3 are both slave bluetooth devices, and the virtual bluetooth device 4 establishes a bi-directional connection second Link (Link2) with the mobile phone 5 to receive the audio data transmitted by the mobile phone 5.
Fig. 6 is a diagram illustrating a lost packet recovery procedure from the bluetooth device according to an embodiment of the wireless communication system shown in fig. 3. As shown in fig. 6, the handset 5 transmits an audio packet N, wherein the audio packet N contains audio data of two channels CH1 and CH 2.
In the bluetooth second piconet 12(P2), the mobile phone 5 is the master bluetooth device master and has a bluetooth device address BD _ ADDR2, and the mobile phone 5 views the virtual bluetooth device 4 as a whole, and the virtual bluetooth device 4 is the slave bluetooth device slave and has a bluetooth device address BD _ ADDR 1.
In other words, for the first bluetooth device 2 and the second bluetooth device 3 of the virtual bluetooth device 4, the mobile phone 5 regards both the first bluetooth device 2 and the second bluetooth device 3 as slave bluetooth devices and has the same bluetooth device address BD _ ADDR 1.
Since the mobile phone 5 (master bluetooth device master and having the bluetooth device address BD _ ADDR2) regards the virtual bluetooth devices 4 (first bluetooth device 2 and second bluetooth device 3) as a whole (slave bluetooth device slave has the bluetooth device address BD _ ADDR1), in the bluetooth second piconet 12(P2), the audio data transmitted by the mobile phone 5 is obtained from the first bluetooth device 2 of the bluetooth device slave, and the audio data transmitted by the mobile phone 5 is obtained from the second bluetooth device 3 of the bluetooth device slave.
When the second bluetooth device 3 loses the audio packet N of the audio data of the channel CH1, that is, when the second bluetooth device 3 of the bluetooth device slave loses the audio packet N (SNK-2lost packet N) of the channel CH1 transmitted by the mobile phone 5, the second bluetooth device 3 does not need to issue a request for resending the audio packet N to the mobile phone 5; in contrast, the second bluetooth device 3, which is a slave bluetooth device in the bluetooth first piconet 11(P1), only needs to issue a request packet N (request packet N) to the first bluetooth device 2, which is a master bluetooth device in the bluetooth first piconet 11(P1), through the first Link (Link 1).
After the first bluetooth device 2, which is the master bluetooth device in the bluetooth first piconet 11(P1), receives the request packet N, the first bluetooth device 2 transmits the audio packet N ' of the channel CH1 to the second bluetooth device 3 through the first Link (Link1), where the audio packet N ' of the channel CH1 is the data of the audio packet N of the channel CH1 stored in the data buffer of the first bluetooth device 2, and thus the audio packet N of the channel CH1 required by the second bluetooth device 3 is the audio packet N '.
In other words, in the bluetooth first piconet 11(P1), the first bluetooth device 2, which is the master bluetooth device, transmits the audio packet N 'to the second bluetooth device 3, which is the slave bluetooth device, via the first Link (Link1), wherein the audio packet N' may include only the mono audio data CH1 required by the second bluetooth device 3, or the dual-channel audio data CH1, CH2, depending on the actual demand condition.
In summary of the above embodiments, when the wireless communication system of the present invention is used in a bluetooth wireless communication environment to perform a wireless communication method, first, an operation of forming a bluetooth first piconet (piconet1) and establishing a first Link (Link1) is performed, and a first bluetooth device and one or more second bluetooth devices of the wireless communication system are paired to form a bluetooth first piconet (piconet1) and establish a first Link (Link1), and the first bluetooth device and the one or more second bluetooth devices of the wireless communication system are externally formed into a virtual bluetooth device; then, forming a bluetooth second piconet (piconet2) and establishing a second Link (Link2), wherein the virtual bluetooth Device forms the bluetooth second piconet (piconet2) with the mobile phone and establishes the second Link (Link2), and the first bluetooth Device and the one or more second bluetooth devices of the wireless communication system join the bluetooth second piconet (piconet2) of the mobile phone by using the same bluetooth Device address BD _ addr (bluetooth Device address); further, the master Bluetooth device of the master control terminal (master) of the virtual Bluetooth device in the Bluetooth first piconet will pass through the Bluetooth second piconet, and establish a connection with the mobile phone according to the Bluetooth audio transmission protocol A2DP and receive audio data according to the Bluetooth audio transmission protocol A2DP, at least more than one slave bluetooth device of the slave (slave) of the virtual bluetooth device in the bluetooth first piconet uses the same bluetooth device address BD _ ADDR as the master bluetooth device, thus, the same Bluetooth audio transmission A2DP audio data as received by the master Bluetooth device may also be received, therefore, the master Bluetooth device and at least one slave Bluetooth device can play music at the same time, and packet data lost in the receiving process of at least one slave Bluetooth device in the Bluetooth first microgrid can be required to be retransmitted by the master Bluetooth device instead of the mobile phone. The wireless communication system and the method thereof of the invention have the following advantages:
1. forming a first Bluetooth piconet (piconet1) and establishing a first Link (Link1), wherein a first Bluetooth device and more than one second Bluetooth devices of the wireless communication system are paired to form a first Bluetooth piconet (piconet1) and establish the first Link (Link1), and the wireless communication system is formed as a virtual Bluetooth device to the outside; then, forming a bluetooth second piconet (piconet2) and establishing a second Link (Link2), wherein the virtual bluetooth Device forms the bluetooth second piconet (piconet2) with the mobile phone and establishes the second Link (Link2), the first bluetooth Device of the wireless communication system and the one or more second bluetooth devices add the bluetooth second piconet (piconet2) of the mobile phone by using the same bluetooth Device address BD _ addr (bluetooth Device address); furthermore, the audio data transmission and music playing actions are performed, one of the first bluetooth device and the one or more second bluetooth devices is a master bluetooth device of a master (master) and establishes a bluetooth audio transmission protocol A2DP connection with the mobile phone to play music, and at least one or more slave bluetooth devices of the first bluetooth device and the one or more second bluetooth devices, which are slave (slave), can also receive the same bluetooth audio transmission protocol A2DP audio data because they use the same bluetooth device address BD _ ADDR, so that the master bluetooth device and the at least one or more slave bluetooth devices can play music at the same time, and packet data lost in the receiving process of the at least one or more slave bluetooth devices can require the master bluetooth device to resend the packet data.
2. When the audio data is transmitted from the mobile phone to the wireless communication system of the invention for carrying out the wireless communication method, most of the audio data is directly transmitted to the first Bluetooth device and the more than one second Bluetooth devices of the wireless communication system by the mobile phone end, thereby reducing the waste of bandwidth; in addition, since the limited bandwidth of bluetooth can be effectively utilized, higher quality audio data can be transmitted than the conventional method using the same bandwidth.
3. The main Bluetooth device of the main control end does not need a larger buffer area, so that the delay time of playing can be reduced; in addition, the main Bluetooth device is connected with the mobile phone end by adopting a standard Bluetooth audio transmission protocol A2DP, and the mobile phone end does not need to be modified and has no compatibility problem.
4. The audio data missed by more than one slave bluetooth device of the controlled end can request the master bluetooth device of the master control end, and the master bluetooth device of the master control end can only transmit single-channel audio data to the more than one slave bluetooth device of the controlled end, so that the bluetooth bandwidth is saved.
5. The master Bluetooth device as the master control end and the slave Bluetooth devices as the controlled end can be switched between master and slave roles of the Bluetooth devices at any time, such as timing rotation, or switching according to different functions of music or conversation; in other words, in the wireless communication system of the present invention, when any one of the more than one second bluetooth devices is the master bluetooth device of the master, the first bluetooth device is the slave bluetooth device of the controlled end, and the other ones of the more than one second bluetooth devices except the any one of the more than one second bluetooth devices can also be the slave bluetooth devices of the controlled end, that is, the master-slave role is not limited to a specific device depending on the connection status.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention; other equivalent changes or modifications which do not depart from the spirit of the invention are intended to be included within the scope of the appended claims.