WO2023082691A1 - 蓝牙通信方法、通信设备及系统 - Google Patents
蓝牙通信方法、通信设备及系统 Download PDFInfo
- Publication number
- WO2023082691A1 WO2023082691A1 PCT/CN2022/106778 CN2022106778W WO2023082691A1 WO 2023082691 A1 WO2023082691 A1 WO 2023082691A1 CN 2022106778 W CN2022106778 W CN 2022106778W WO 2023082691 A1 WO2023082691 A1 WO 2023082691A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- packet
- bluetooth
- private
- time slot
- standard bluetooth
- Prior art date
Links
- 230000006854 communication Effects 0.000 title claims abstract description 163
- 238000004891 communication Methods 0.000 title claims abstract description 161
- 238000000034 method Methods 0.000 title claims abstract description 101
- 230000005540 biological transmission Effects 0.000 claims abstract description 72
- 238000007906 compression Methods 0.000 claims abstract description 4
- 230000006835 compression Effects 0.000 claims abstract description 4
- 238000013467 fragmentation Methods 0.000 claims abstract 2
- 238000006062 fragmentation reaction Methods 0.000 claims abstract 2
- 238000001514 detection method Methods 0.000 claims description 42
- 230000008569 process Effects 0.000 claims description 6
- 238000010276 construction Methods 0.000 claims description 3
- 230000002457 bidirectional effect Effects 0.000 claims 1
- 230000008054 signal transmission Effects 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 10
- 230000003993 interaction Effects 0.000 description 7
- 238000013144 data compression Methods 0.000 description 6
- 230000001934 delay Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 230000018109 developmental process Effects 0.000 description 3
- 238000004806 packaging method and process Methods 0.000 description 3
- 238000012856 packing Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000011664 signaling Effects 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/06—Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L5/00—Arrangements affording multiple use of the transmission path
- H04L5/003—Arrangements for allocating sub-channels of the transmission path
- H04L5/0078—Timing of allocation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/06—Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
- H04W28/065—Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/04—Wireless resource allocation
- H04W72/044—Wireless resource allocation based on the type of the allocated resource
- H04W72/0446—Resources in time domain, e.g. slots or frames
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/12—Wireless traffic scheduling
- H04W72/1221—Wireless traffic scheduling based on age of data to be sent
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/20—Control channels or signalling for resource management
- H04W72/25—Control channels or signalling for resource management between terminals via a wireless link, e.g. sidelink
Definitions
- the invention belongs to the technical field of wireless communication, and more specifically relates to a bluetooth communication method, communication equipment and system.
- Bluetooth communication technology has become one of the main communication methods in the field of wireless communication, which has the advantages of low power consumption and long communication distance.
- the existing Bluetooth communication technology often has a certain delay in the signal interaction process, and the delay time is tens of milliseconds or even more than 100 milliseconds. Therefore, it cannot meet the requirements of high real-time and low-latency signal transmission, such as audio and video.
- Communication applications especially wireless audio applications that require audio and video synchronization, such as wireless microphones for karaoke, gaming headsets, etc.
- the purpose of the present invention is to provide a Bluetooth communication method, communication device and system, which is used to solve the problem that the existing Bluetooth communication method has a large delay and cannot be applied to high real-time and low delay application scenarios and other issues.
- the present invention provides a bluetooth communication method in the first aspect, which is suitable for a device end connected by a point-to-point link;
- the bluetooth communication method includes: first signal data according to the first time Segmentation and compression coding are carried out according to the chip size to construct each first private chain packet; construct each first standard bluetooth packet, and send each described first private chain packet, so that the other end of the link obtains the corresponding first signal data by decoding the first private chain packet.
- the device includes a first private link packet grouping unit, and the construction of each first private link packet in the Bluetooth communication method includes: passing the first private link packet group The package unit constructs each of the first private chain packages.
- the constructing each first standard Bluetooth packet in the Bluetooth communication method includes: constructing the first standard Bluetooth packet in each transmission time slot.
- the information data used to construct the first standard bluetooth packet is loaded through an array, and then the implementation of constructing the first standard bluetooth packet in each transmission time slot includes: Input information data into the array, so that the depth of the array is greater than the payload length in a single first standard bluetooth packet at any time.
- the Bluetooth communication method further includes: before sending the first private link packet, determining the corresponding first private link packet in the same time slot based on the first standard Bluetooth packet type Signal modulation method.
- the Bluetooth communication method further includes: reducing the frequency of sending command-type Bluetooth packets in the link while constructing each of the first standard Bluetooth packets.
- the present invention provides another bluetooth communication method in the second aspect, which is applicable to a device end in a point-to-point link two-way connection;
- the bluetooth communication method includes: receiving each first standard bluetooth packet sent by the other end, and receiving another One end decodes the first private link packets sent in the idle time of each first standard bluetooth packet transmission time slot to obtain the first private link packets corresponding to the first private link packets.
- a signal data
- the Bluetooth communication method further includes: segmenting and compressing the second signal data according to the size of the second time slice, so as to construct each second private chain packet; wherein, the second time The slice size is the same as the first time slice size corresponding to when the other end constructs the first private link packet; after receiving the first standard Bluetooth packet in the current time slot, construct and send it in the next time slot The second standard bluetooth packet, and send the second private chain packet in the idle time of sending each of the second standard bluetooth packet time slots, so that the other end decodes the second private chain packet to obtain the corresponding The second signal data.
- the Bluetooth communication method further includes: before sending the second private link packet, determining the second private link packet corresponding to the same time slot based on the second standard Bluetooth packet type Signal modulation method.
- the Bluetooth communication method further includes: after decoding the first private link packet in the current time slot, performing retransmission detection on the decoded first signal data, and obtaining The detection result information is added to the second private chain packet in the next time slot, so that the other end can determine whether in the next time slot by decoding the detection result information obtained after the second private chain packet Perform a retransmission.
- the present invention provides a bluetooth communication device, which is suitable for point-to-point link communication.
- the bluetooth communication device includes: a standard bluetooth packet grouping unit, which is used to construct each first standard bluetooth packet, and each of the The first standard bluetooth packet is output to the sending unit; the private chain packet grouping unit is used to compress and encode the input first signal data according to the size of the first time slice to form each first private chain packet, and Each of the first private link packets is output to the sending unit; the sending unit is used to send each of the first standard Bluetooth packets, and send each of the Describe the first private chain package.
- the bluetooth communication device further includes: a receiving unit, configured to receive each second standard bluetooth packet sent by the other end of the link, and receive each second standard bluetooth packet received by the other end from the second standard bluetooth The second private chain packet sent in the idle time of the packet transmission time slot; and the private chain packet unpacking unit, configured to decode each of the second private chain packets to obtain the second private chain packet corresponding to the second private chain packet signal data
- the Bluetooth communication device further includes: a grouping control unit, configured to control the standard Bluetooth packet grouping unit to construct the first standard Bluetooth packet in each transmission time slot; and signal A modulation unit, configured to determine a signal modulation method corresponding to the first private link packet in the same time slot based on the first standard Bluetooth packet type before sending the first private link packet.
- a grouping control unit configured to control the standard Bluetooth packet grouping unit to construct the first standard Bluetooth packet in each transmission time slot
- signal A modulation unit configured to determine a signal modulation method corresponding to the first private link packet in the same time slot based on the first standard Bluetooth packet type before sending the first private link packet.
- the present invention provides another bluetooth communication device, which is suitable for two-way communication of a point-to-point link.
- the bluetooth communication device includes: a receiving unit for receiving each first standard bluetooth packet sent by the other end of the link, and receiving the first private link packet sent by the other end in the idle time of each first standard bluetooth packet transmission time slot; the private link packet unpacking unit is used to decode each of the first private link packets to Obtain first signal data corresponding to the first private link package.
- the Bluetooth communication device further includes: a standard Bluetooth packet grouping unit, configured to construct a second standard Bluetooth packet, and output each of the second standard Bluetooth packets to the sending unit;
- a chain packet grouping unit configured to compress and encode the input second signal data according to the size of the second time slice to form each second private chain packet, and output each second private chain packet to the sending unit; wherein, the size of the second time slice is the same as the size of the first time slice corresponding to when the other end constructs the first private chain package;
- the sending unit is used to receive the first standard in the current time slot After the bluetooth packet, send the second standard bluetooth packet in the next time slot, and send the second private link packet in the idle time of each time slot for sending the second standard bluetooth packet.
- the Bluetooth communication device further includes: a grouping control unit, which is used to control the standard Bluetooth packet grouping unit to construct the second standard Bluetooth packet in each transmission time slot; signal modulation A unit, used to determine the signal modulation method corresponding to the second private link packet in the same time slot based on the second standard Bluetooth packet type before sending the second private link packet; a retransmission detection unit, used for After decoding the first private chain packet in the current time slot, perform retransmission detection on the decoded first signal data, and add the obtained detection result information to the second private chain packet in the next time slot , so that the other end determines whether to perform retransmission in the next time slot through the detection result information obtained after decoding the second private link packet.
- a grouping control unit which is used to control the standard Bluetooth packet grouping unit to construct the second standard Bluetooth packet in each transmission time slot
- signal modulation A unit used to determine the signal modulation method corresponding to the second private link packet in the same time slot based on the second standard Bluetooth packet type before sending the second private link packet
- the present invention provides a bluetooth communication system in a fifth aspect: comprising: a first collection device, used to collect the first signal data and output it to the first bluetooth communication device; a second collection device, used to collect the second signal data and output it To the second Bluetooth communication device;
- the first Bluetooth communication device is the Bluetooth communication device provided in the third aspect of the present invention, and is used to transmit the first signal data to the second Bluetooth communication device;
- the second Bluetooth communication device is the Bluetooth communication device provided in the fourth aspect of the present invention, configured to transmit the second signal data to the first Bluetooth communication device.
- the Bluetooth communication method, communication device and system provided by the present invention construct each private link packet by constructing the input signal data, and send the private link packet during the idle time of the time slot for sending each standard Bluetooth packet. packet, so that the receiving end can obtain the corresponding signal data according to the private link packet received, and make full use of the idle time of the time slot for signal data transmission, thereby reducing signal delay during communication.
- Fig. 1 is a schematic flow chart of the Bluetooth communication method provided in an embodiment in the present invention
- Fig. 2 utilizes the bluetooth communication method in the present invention to carry out the schematic diagram (one-way transmission) of master-slave device interaction in an embodiment
- FIG. 3 is a schematic flowchart of another Bluetooth communication method provided by the present invention in this embodiment.
- Fig. 4 the present invention utilizes another kind of bluetooth communication method to carry out the schematic diagram (two-way transmission) of master-slave device interaction in an embodiment
- Fig. 5 the present invention utilizes another kind of bluetooth communication method to carry out the schematic diagram (retransmission detection 1) of master-slave device interaction in an embodiment
- Fig. 6 the present invention utilizes another kind of bluetooth communication method to carry out the schematic diagram (retransmission detection 2) of master-slave device interaction in an embodiment
- FIG. 7 is a schematic structural diagram of an embodiment of the Bluetooth communication device provided by the present invention.
- FIG. 8 is a schematic structural diagram of another bluetooth communication device in an embodiment provided by the present invention.
- FIG. 9 is a schematic structural diagram of an embodiment of the Bluetooth communication system provided by the present invention.
- the present invention provides a Bluetooth communication method in Embodiment 1, which is suitable for one-way signal data transmission between a master device and a slave device; that is, the master device transmits data to the slave device The device sends signaling data, or the slave sends signaling data to the master.
- the master device establishes a point-to-point link connection with the slave device based on a standard Bluetooth protocol and a custom Bluetooth protocol.
- the self-defined bluetooth protocol includes self-defined packing rules and unpacking rules.
- both the master device and the slave device are bluetooth devices, both of which include a custom packaging unit and a custom unpacking unit; wherein, the custom packaging unit is based on a custom packaging rule , compressing and encoding the signal data to form a corresponding private chain packet; then the self-defined unpacking unit decodes the private chain packet based on a self-defined unpacking rule to obtain the corresponding signal data.
- FIG. 1 is a schematic flowchart of the bluetooth communication method in this embodiment, which is applied to the master device.
- the bluetooth communication method comprises the steps:
- the master device slices and compresses the first signal data according to the self-defined packet rule and based on the size of the first time slice, so as to construct each first private chain packet;
- the first time slice is the time size of the first signal data transmitted by the master device end once, which is determined by the custom Bluetooth protocol; optionally, the first time slice size can be The duration of n slots.
- n is 2, so as to increase the transmission frequency and reduce the signal delay in a single transmission.
- n is 4 or 6, so as to increase the bandwidth of signal transmission, thereby increasing the transmission amount of the first signal data at a single moment.
- the first time slice is the duration of two time slots; in this embodiment, the duration of a single time slot is 625us, then the first time slice is 1.25ms.
- the master device slices and compresses the first signal data according to the size of the first time slice, and according to the organization of each part of the data packet included in the custom packet rule, Each first private link packet arranged based on time sequence is formed, and output to the sending unit through a hardware channel for sending.
- the specific grouping method of the self-defined packet rule may be the same as or different from the standard Bluetooth protocol, which is not limited here.
- the master device constructs each first standard Bluetooth packet, and sends the first private link packet during the idle time of the corresponding transmission time slot for sending each of the first standard Bluetooth packets, so that the slave device receives Each of the first private link packets received obtains the first signal data;
- the transmission time slot is a data transmission window for the master device in the link to transmit signals in one direction; optionally, the size of the transmission time slot is the same as the size of the first time slice, and each of the first private chain
- the packet corresponds to each of the transmission time slots; then the master device sends the first private link packet corresponding to the transmission time slot during the idle time of the transmission time slot for sending each of the first standard Bluetooth packets .
- the type of the first standard bluetooth packet is determined based on the size of the first time slice, and is a type of bluetooth packet whose occupied time slot size is not larger than the size of the first time slice.
- the master device determines the type of the first standard Bluetooth packet according to the number of time slots included in the first time slice; for example, when the size of the first time slice is 2 When the slot length is short, then the first standard bluetooth packet is a bluetooth packet that only occupies 1 time slot; when the first time slice size is 4 time slot lengths, then the first standard bluetooth packet is 3 time slot Bluetooth packets.
- the method for determining the first standard Bluetooth packet type also includes: the master device determines the first standard Bluetooth packet type based on the standard Bluetooth protocol; when the When the master device establishes a connection with the slave device, determine the type of the first standard Bluetooth packet that is allowed to be transmitted in the link in the standard Bluetooth protocol, so as to determine the first standard Bluetooth packet based on the standard Bluetooth protocol type; for example, when a command interaction requirement occurs on the link, it is determined that the first standard Bluetooth package corresponding to the current time slot is a command-type Bluetooth package DM1.
- the master device selects the first standard Bluetooth packet type as a Bluetooth packet type with a smaller payload length.
- the type of the first standard bluetooth packet includes but not limited to DH, DM1, Poll and Null packets, and other bluetooth packets with smaller payloads.
- the first standard Bluetooth packet sent by the master device is a DH1 packet with a payload length of 0 or 1Byte, and the packet length is shorter , and there is no FEC encoding, so that more idle time can be reserved to ensure the communication of the private chain packet.
- the master device determines that the first standard Bluetooth packet is a DH3 packet.
- the master device includes a first private link packet grouping unit, which is independent of the standard bluetooth packet grouping unit; the first private chain packet The grouping unit and the grouping unit of the standard bluetooth package can be the same or different; then the bluetooth communication method of the present invention, when executing S11, includes: according to the self-defined bluetooth protocol, and based on the first The packet grouping unit of the private chain packet constructs the first private chain packet corresponding to the transmission time slot in each transmission time slot, so that the sending unit in the master device sends the all transmission time slots in idle time slots of each transmission time slot.
- the first private link package constructed in the current time slot; compared to the prior art according to the standard Bluetooth protocol, and based on the existing standard Bluetooth packet grouping unit for Bluetooth packet grouping, it will cause the The master device needs to start scheduling preparations at least 2 time slots in advance.
- the corresponding first private link packet is constructed in each transmission time slot.
- a private chain package can avoid communication delays caused by scheduling and grouping in advance.
- the master device is controlled to construct and send the first standard in each transmission time slot Bluetooth packets, so as to ensure that the first standard Bluetooth packets and the corresponding first private link packets can be sent in each transmission time slot.
- the information data used to construct the first standard Bluetooth package is data loaded in the form of an array in the master device; the information data may be any data. Based on the standard bluetooth protocol, pack the input information data into each of the first standard bluetooth packets.
- the master device In order to ensure that the first standard Bluetooth packet is sent in each transmission time slot, the master device generates and inputs the information data into the array, and makes the array depth greater than a single The payload length in the first standard bluetooth packet; the master device splits the content in the array into several first standard bluetooth packets of the same type, and sends them through the sending unit to ensure that each of the transmitted Each time slot can realize the transmission of the first standard bluetooth packet.
- the Bluetooth communication method further includes:
- the modulation method corresponding to the private link packet sent in the same time slot is determined according to the type of the first standard Bluetooth packet, and the first private link packet is sent according to the modulation method.
- the master device determines the modulation mode corresponding to the first private link packet in the same time slot based on the first standard Bluetooth packet type, so as to speed up the transmission of signal data , to further reduce the communication delay.
- the type of the first standard Bluetooth packet is a Bluetooth packet with fewer time slots, such as DH1/DM1/null packets, etc., and the time for private link packet transmission is basically the same and relatively small, then The first private link packet in the same time slot is modulated by the same modulation method, so as to simplify the bluetooth communication scheme design.
- the type of the first standard bluetooth packet is a multi-slot bluetooth packet.
- the The first private link packet is modulated by a modulation method with better anti-interference, such as GFSK modulation method, to increase the transmission rate and reduce communication delay;
- the time left for private chain packet transmission in the slot is relatively short.
- the modulation mode of the first private chain packet in the current time slot is switched to a modulation mode with higher adjustment density, such as ⁇ /4DPSK or 8DPSK modulation method to increase transmission rate and reduce communication delay.
- the Bluetooth communication method It also includes: while constructing each of the first standard bluetooth packets, reducing the communication frequency of the command type bluetooth packets in the link.
- the communication frequency of the command-type Bluetooth packets in the link is controlled.
- the Bluetooth communication method further includes:
- step S22 determine the data compression method corresponding to the private link packet sent in the same time slot according to the type of the first standard Bluetooth packet;
- the master device determines the data of the first signal data corresponding to the first private link packet in the same time slot based on the type of the first standard Bluetooth packet Compression method to ensure that when the amount of signal data to be transmitted in a certain time slot is large, the length of the private link data packet can be shortened by increasing the data compression rate, thereby ensuring the real-time performance of signal data transmission and reducing delay .
- the slave device receives the first standard bluetooth packet and the first private link packet, and decodes each of the received first private link packets based on the custom unpacking rule, so as to obtain the first signal data.
- the slave device sends the second standard Bluetooth packets corresponding to the first standard Bluetooth packets in the time slots of the two adjacent transmission time slots, or no reply.
- the master device sends the first standard bluetooth packet (DH1) when slot K
- the slave device replies with the slot K+1
- the second standard bluetooth package (NULL) corresponding to the first standard bluetooth package or do not reply any content.
- the Bluetooth communication method provided in this embodiment is not only applicable to the master device side, but also applicable to the slave device side; when the slave device executes the Bluetooth communication method, the execution of the method
- the main body is the device end, that is, the slave device is the sending end, and the master device is the receiving end.
- the present invention provides another bluetooth communication method in this embodiment, which is suitable for two-way signal data transmission between the master device and the slave device; When the device transmits the first signal data, the slave data transmits the second signal data to the master device.
- the second signal data is data that the slave device needs to transmit to the master device.
- FIG. 3 is a schematic flowchart of the Bluetooth communication method in this embodiment.
- described bluetooth communication method comprises the steps:
- the master device slices and compresses the first signal data according to the custom packet rule and according to the first time slice size, so as to construct each first private chain packet; and the slave device
- the second signal data is segmented and compressed according to the second time slice size according to the self-defined packet rules, so as to construct each second private chain packet;
- the first time slice is the acquisition time corresponding to the single transmission of the first signal data by the master device
- the second time slice is the acquisition time corresponding to the single transmission of the second signal data by the slave device
- the length of the collection time; the first time slice and the second time slice are preset in the custom Bluetooth protocol, and both have the same size.
- the size of the first time slot and the second time slot are both n time slots, and n can be 2, 6, or 10.
- n is 2, so as to increase the transmission frequency and reduce the signal delay in a single transmission.
- n is 6 or 10, so as to increase the transmission amount of the signal data sent in a single time.
- the master device sends each first standard Bluetooth packet, and sends the first private link packet during the idle time in the time slot for sending each first standard Bluetooth packet, so that the slave device according to the received Each of the first private chain packets obtains the first signal data; and the slave device constructs and sends a second standard Bluetooth packet in the next time slot after receiving the first standard Bluetooth packet, and sends the The second private link packet is sent during the idle time of the second standard Bluetooth packet time slot, so that the master device obtains the second signal data according to the received second private link packets.
- the master device sends the first standard Bluetooth packet in each transmission time slot based on the standard Bluetooth protocol, and sequentially sends the first private link packet in the idle time of each transmission time slot It is the same as that in Embodiment 1, and will not be repeated here.
- the slave device When the type of the first standard Bluetooth packet is not a command packet, the slave device generates each second standard Bluetooth packet based on the standard Bluetooth protocol and according to the size of the second time slice.
- the first standard bluetooth packet is a bluetooth packet occupying only 1 time slot; when the size of the first time slice is 6 When the time slot length is short, the first standard Bluetooth package is a Bluetooth package occupying 3 time slots.
- the second Bluetooth device when the type of the first standard Bluetooth packet is a command packet, the second Bluetooth device, after receiving the first standard Bluetooth packet, Size, determine the type of the second standard bluetooth packet corresponding to the first standard bluetooth packet; and send the second standard bluetooth packet in the next time slot after receiving the first standard bluetooth packet, and at the same time In the idle time of a time slot, the second private link packet corresponding to the time slot is sent.
- the master device (device 1) sends a DH1 packet to the slave device (device 2) at slot K, and at slot K Send the first private link packet L1 during the idle time; in slot K, the slave device determines that the second standard bluetooth packet type to reply is a Null packet according to the DH1 packet, and decodes the L1 packet; then in slot K+1 , the slave device (device 2) replies a Null packet to the master device (device 1), and in the idle time of slot K+1, the slave device (device 2) sends the second private link packet R1 to the master device (device 1).
- the master device (device 1) when there is a command packet interaction requirement in the link, as shown in Figure 4, the master device (device 1) sends a DM1 packet to the slave device (device 2) at slot N, and in the idle time of slot N, the master The device (device 1) sends the first private link packet Ln to the slave device (device 2); in slot N, the slave device (device 2) determines according to the DM1 packet that the type of the second standard Bluetooth packet replied is a Null packet or a DM1 packet, And decode the Ln packet; at slot N+1, the slave device (device 2) replies to the master device (device 1) with a Null packet or DM1 packet, and in the idle time of slot N+1, the slave device (device 2) Send the second private chain packet Rn to the master device (device 1); in slot N+1, the master device (device 1) decodes the second private chain packet Rn.
- the Bluetooth communication method further includes:
- step S22 determine the corresponding modulation method corresponding to the private link packet sent in the same time slot according to the type of the standard bluetooth packet;
- the master device determines the modulation mode corresponding to the first private link packet in the same time slot based on the first standard Bluetooth packet type; and, before the slave Before the device sends the second private link packet, based on the second standard Bluetooth packet type, determine the modulation mode corresponding to the second private link packet in the same time slot, so as to select the adapted one based on the standard Bluetooth packet type Private chain packet modulation to speed up the transmission of signal data and further reduce communication delays.
- the type of the first/second standard Bluetooth packet is a Bluetooth packet with fewer time slots, such as DH1/DM1/null packets, etc., and the time for private chain packet transmission is basically the same and relatively less , the same modulation method is used to modulate the private link packets for the first/second private link packets in the same time slot, so as to simplify the bluetooth communication scheme design.
- the type of the first/second standard bluetooth packet is a multi-slot bluetooth packet, such as when a DH3/DH5 packet is used for a longer time for private chain packet transmission, then the same time slot
- the first private chain packet is modulated by a modulation method with better anti-interference, such as GFSK modulation; when both master and slave devices interact with command-type Bluetooth packets, such as DM1, it is reserved for the private chain packet in the current time slot
- GFSK modulation when both master and slave devices interact with command-type Bluetooth packets, such as DM1, it is reserved for the private chain packet in the current time slot
- the transmission time is relatively short, in order to ensure continuous data transmission, the modulation mode of the first/second private chain packet in the current time slot is switched to a modulation mode with higher adjustment density, such as ⁇ /4DPSK or 8DPSK modulation mode, In order to increase the transmission rate and reduce the communication delay.
- the Bluetooth communication method also includes:
- step S22 determine the data compression method corresponding to the private link packet sent in the same time slot according to the type of the standard bluetooth packet;
- the master device determines the data compression of the first signal data corresponding to the first private link packet in the same time slot based on the first standard Bluetooth packet type way; and, before the slave device sends the second private link packet, based on the second standard Bluetooth packet type, determine the second signal corresponding to the second private link packet in the same time slot
- Data compression method to ensure that when the amount of signal data to be transmitted in a certain time slot is large, the length of the private link data packet can be shortened by increasing the data compression rate, thereby ensuring the real-time performance of signal data transmission. Reduce latency.
- the present invention provides another bluetooth communication method in this embodiment, which is suitable for two-way signal data transmission between a master device and a slave device.
- the execution steps of the Bluetooth communication method are basically the same as those in Embodiment 2, the difference is that in this embodiment, the Bluetooth communication method is executed on the master device and the slave device In the two-way signal data transmission between, private chain retransmission detection and execution retransmission process are also included.
- the execution steps of the Bluetooth communication method are different from those in Embodiment 2 in that:
- step S22 in Embodiment 2 it further includes: the slave device decodes the first private link packet received in the same time slot in the current time slot, and decodes the decoded first The signal data is retransmitted and detected, and the obtained detection result information is added to the second private link packet corresponding to the next time slot, so that the master device The detection result information determines whether to perform retransmission in the next time slot; and/or, the master device decodes the second private link packet received in the same time slot in the current time slot, and decodes Retransmission detection is performed on the last second signal data, and the obtained detection result information is added to the first private link packet corresponding to the next time slot, so that the slave device The detection result information in the private link packet is determined whether to resend in the next time slot.
- the detection result information includes two kinds of information: retransmission required and retransmission not required.
- FIG. 5 it shows a schematic diagram of master-slave interaction in a specific embodiment using the Bluetooth communication method in the present invention; wherein, the detection result information that needs to be retransmitted is NAK, and the detection result information that does not need to be retransmitted is ACK .
- the second private link packet R1 sent from the slave device (device 2) to the master device (device 1) contains the information received by the slave device in the previous time slot slot K
- the first detection result of whether the received first private chain packet L1 needs to be retransmitted the example in the figure is no retransmission (ACK);
- the master device receives the second private chain packet R1, Obtain the first detection result after decoding, and perform retransmission detection on the second private chain packet R1 to obtain the second detection result, then in the next time slot slot K+2, the master device continues to send to the slave device A new first private chain packet L2, the new first private chain packet L2 contains the second detection result; in the time slot slot K+2, the slave device receives the new first private chain packet L2, decodes Then obtain the second detection result information therein, and perform retransmission detection on the new first private chain packet L2 to obtain a new first detection result; then in the next slot K+3, repeat the above process.
- the master device lost the second standard Bluetooth packet and the second private link packet R2 sent by the slave device in the previous time slot slot K+2 when receiving, then In the next time slot slot K+4, the first detection result contained in the new first private link packet L2 sent by the master device is a need for retransmission (NAK), then in the time slot K+5, from The device resends the lost second private chain packet R2, that is, resends the second private chain packet R2 sent from the device in slot K+2.
- NAK retransmission
- the Bluetooth communication method includes another private link retransmission method, which is a fixed number of retransmission method.
- the number of retransmissions is not greater than 2.
- the master device sends the first private chain packet L1 to the slave device at slot K and slot K+2.
- the same first private chain packet is used twice as long as the data is received correctly once. If 2 times are incorrect, the packet is discarded.
- the retransmission detection is performed on the private link packet, and when retransmission is required, the retransmission process is performed to achieve serious interference and communication
- the packet loss rate can be reduced and the communication quality can be improved through private link packet detection and resending.
- the present invention provides a bluetooth communication device in this embodiment, which is suitable for point-to-point link communication, and the link is constructed based on standard bluetooth protocol and custom bluetooth protocol.
- the self-defining bluetooth protocol includes self-defining packing rules and unpacking rules; the self-defining packing rules are used to compress and encode signal data to form corresponding private chain packets; the self-defining unpacking rules , used to decode the private link packet to obtain corresponding signal data.
- the bluetooth communication device 4 includes:
- a standard bluetooth packet grouping unit 41 configured to construct each first standard bluetooth packet, and output each of the first standard bluetooth packets to the sending unit;
- the private chain packet grouping unit 42 is used to segment and compress the input first signal data according to the size of the first time slice, and form each first private chain packet according to the self-defined packet rules, and divide each The first private chain packet is output to the sending unit;
- the sending unit 43 is configured to send each of the first standard bluetooth packets, and send each of the first private link packets during the idle time of the time slot for sending the first standard bluetooth packets.
- the bluetooth communication device also includes a receiving unit 44 and a private link packet unpacking unit 45;
- the receiving unit 44 is used to receive each second standard bluetooth packet sent by the other end in the link, and receive the second bluetooth packet sent by the other end in the idle time of each described second standard bluetooth packet transmission time slot. Private chain package.
- the private chain packet unpacking unit 45 is configured to decode each of the second private chain packets to obtain second signal data corresponding to the second private chain packets.
- the Bluetooth communication device also includes: a packet control unit 46 and a signal modulation unit 47;
- the grouping control unit 46 is used to control the standard Bluetooth packet grouping unit to construct the first standard Bluetooth packet in each transmission time slot.
- the information data used to construct the first standard bluetooth packet is data loaded in the form of an array; the information data can be any data; A standard bluetooth packet, then the group packet control unit 46 generates the information data into the array, and makes the depth of the array greater than the payload length in a single first standard bluetooth packet at any time, so that the standard bluetooth packet grouping unit 41 can package the input information data into each of the first standard bluetooth packets based on the standard bluetooth protocol, and send them out through the sending unit to ensure that each of the transmitted The first standard bluetooth packet transmission is implemented in all time slots.
- the signal modulation unit 47 is configured to determine a signal modulation method corresponding to the first private link packet in the same time slot based on the first standard Bluetooth packet type before sending the first private link packet.
- the implementation of determining the signal modulation method corresponding to the first private link packet in the same time slot based on the first standard Bluetooth packet type is the same as that in the above-mentioned embodiment 1, and will not be repeated here. .
- each unit cooperates to execute the Bluetooth communication method as described in Embodiment 1 above, and transmits the received first signal data to another device for link communication by constructing a first private link packet In order to improve the real-time performance of signal output and reduce the transmission delay of signals.
- the present invention provides another bluetooth communication device in this embodiment, which is suitable for two-way communication of point-to-point links, and the link is constructed based on standard bluetooth protocol and custom bluetooth protocol .
- the bluetooth communication device 5 includes:
- the receiving unit 51 is configured to receive each first standard Bluetooth packet sent by the other end of the link, and receive the first private packet sent by the other end in the idle time of each described first standard Bluetooth packet transmission time slot. chain bag;
- the private chain packet unpacking unit 52 is configured to decode each of the first private chain packets according to a custom unpacking rule, so as to obtain the first signal data corresponding to the first private chain packet;
- a standard bluetooth packet grouping unit 53 configured to construct a corresponding second standard bluetooth packet according to the first standard bluetooth packet, and output each of the second standard bluetooth packets to the sending unit;
- the private chain packet grouping unit 54 is used to segment and compress the input second signal data according to the size of the second time slice, and form each second private chain packet according to the self-defined packet rules, and divide each said The second private chain packet is output to the sending unit;
- the size of the second time slice is the same as the size of the first time slice corresponding to when the other end constructs the first private chain package.
- the sending unit 55 is used to send the second standard bluetooth package in the next time slot after receiving the first standard bluetooth package in the current time slot, and send each of the second standard bluetooth package time slots Send the second private chain package in the free time.
- the bluetooth communication device also includes:
- Packet control unit 56 used to control the standard bluetooth packet pack unit to construct the first standard bluetooth packet in each transmission time slot;
- the implementation manner of controlling the standard Bluetooth packet grouping unit to construct the first standard Bluetooth in each transmission time slot is the same as that in the above-mentioned embodiment 1, and will not be repeated here.
- a signal modulation unit 57 configured to determine a signal modulation method corresponding to the first private link packet in the same time slot based on the first standard Bluetooth packet type before sending the first private link packet;
- the implementation of determining the signal modulation method corresponding to the first private link packet in the same time slot based on the first standard Bluetooth packet type is the same as that in the above-mentioned embodiment 1, and will not be repeated here. .
- the retransmission detection unit 58 is configured to perform retransmission detection on the first signal data obtained by decoding after decoding the first private link packet in the current time slot, and add the obtained detection result information to the next time slot In the second private link packet of the time slot, the other end determines whether to perform retransmission in the next time slot through the detection result information obtained after decoding the second private link packet.
- the implementation manner performed by the retransmission detection unit is the same as the implementation manner of the retransmission detection step in Embodiment 3 above, and details are not repeated here.
- the present invention provides a bluetooth communication system in this embodiment, which is used to realize two-way communication of a point-to-point link, and the link is constructed based on a standard bluetooth protocol and a custom bluetooth protocol.
- the Bluetooth communication system 6 includes: a first collection device 61, a second collection device 62, a first Bluetooth communication device 63 and a second Bluetooth communication device 64; wherein,
- the first Bluetooth communication device 63 and the second Bluetooth communication device 64 correspond to a master device and a slave device respectively, and establish a point-to-point link connection based on a standard Bluetooth protocol and a custom Bluetooth protocol.
- the first collection device 61 is connected with the first bluetooth communication device 63 for collecting the first signal data and outputting to the first bluetooth communication device 63; the second collection device 62 and the second bluetooth communication device 64 connection, used to collect the second signal data and output to the second bluetooth communication device 64; the first signal data and the second signal data include but not limited to audio data, video data or other real-time transmission requirements high data.
- the first bluetooth communication device adopts the bluetooth communication device in the above embodiment 4, and the second bluetooth communication device adopts the bluetooth communication device in the above embodiment 5, so as to realize the first Interactive communication between a bluetooth communication device and the second bluetooth communication device.
- the Bluetooth communication method, communication device and system construct the signal data to be transmitted into each private link packet, and send the standard Bluetooth packet in the idle time of each sending time slot while sending the standard Bluetooth packet.
- Each of the private link packets so that the receiving end obtains corresponding signal data according to the received private link packets, so as to make full use of the idle time of the time slot for signal data transmission, thereby reducing signal delay during communication; and , through the private chain packet grouping directly by the independent private chain packet grouping unit, thereby avoiding the data packet scheduling delay in the existing Bluetooth scheduling, further improving the signal transmission efficiency, and reducing the communication delay;
- the method provided by the present invention can make full use of the existing and common standard Bluetooth protocol without rebuilding a complete set of Bluetooth protocol, which not only saves development costs, improves development efficiency, but also has better adaptability and scalability .
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明提供一种蓝牙通信方法、通信设备及系统;其中,所述方法包括:对第一信号数据,按照第一时间片大小进行分片及压缩编码,以形成各第一私链包;构建各第一标准蓝牙包,于发送各所述第一标准蓝牙包的时隙空闲时间中,发送各所述第一私链包,以使链路中另一端通过解码所述第一私链包获取对应的所述第一信号数据;本发明通过利用时隙的空闲时间进行信号数据传输,从而可以提高信号传输的效率,减少通信延迟。
Description
本发明属于无线通信技术领域,更具体地涉及一种蓝牙通信方法、通信设备及系统。
目前,蓝牙通信技术已成为无线通信领域内的主要通信方式之一,具有功耗低、通信距离远等优点。然而,现有的蓝牙通信技术在信号交互过程中往往会存在一定的延迟,延迟时间为几十毫秒甚至100毫秒以上,因而,无法满足高实时和低延时的信号传输要求,例如音视频的通信应用,尤其是需要音视频同步的无线音频应用,如卡拉OK的无线话筒,游戏耳机等。
鉴于现有的蓝牙通信中存在延时大的问题,目前已提出了较多低延时音频交互的方案,然后,这些方案往往基于应用场景各自开发适配的无线控制方法/系统,与目前普遍使用的标准蓝牙协议等通用协议并不兼容,导致开发的无线控制方法/系统的兼容性不足,可适用范围窄,且不同控制方法/系统下的蓝牙设备无法实现连接和通信,以及存在开发成本高、周期长等缺点。
发明内容
鉴于以上现有技术中存在的缺点,本发明的目的在于提供一种蓝牙通信方法、通信设备及系统,用于解决现有的蓝牙通信方法存在延迟较大,无法适用于高实时、低延时的应用场景等问题。
为实现上述目的及其他相关目的,本发明于第一方面提供一种蓝牙通信方法,适用于点对点链路连接的一设备端中;所述蓝牙通信方法包括:对第一信号数据按照第一时间片大小进行分片及压缩编码,以构建各第一私链包;构建各第一标准蓝牙包,于发送各所述第一标准蓝牙包的时隙空闲时间中,发送各所述第一私链包,以使链路中另一端通过解码所述第一私链包获取对应的所述第一信号数据。
于本发明一实施例中,所述设备端中包括第一私链包组包单元,所述蓝牙通信方法中所述构建各第一私链包,包括:通过所述第一私链包组包单元构建各所述第一私链包。
于本发明一实施例中,所述蓝牙通信方法中所述构建各第一标准蓝牙包,包括:于各发射时隙中均构建所述第一标准蓝牙包。
于本发明一实施例中,用于构建所述第一标准蓝牙包中的信息数据通过数组装载,则所述于各发射时隙中均构建所述第一标准蓝牙包的实现方式,包括:输入信息数据至所述数组中,使所述数组的深度于任意时刻均大于单个所述第一标准蓝牙包中的payload长度。
于本发明一实施例中,所述蓝牙通信方法还包括:于发送所述第一私链包之前,基于所述第一标准蓝牙包类型确定对应同一时隙中所述第一私链包的信号调制方式。
于本发明一实施例中,所述蓝牙通信方法还包括:于构建各所述第一标准蓝牙包的同时,降低链路中命令类蓝牙包的发送频次。
本发明于第二方面提供另一种蓝牙通信方法,适用于点对点链路双向连接中的一设备端中;所述蓝牙通信方法包括:接收另一端发送的各第一标准蓝牙包,和接收另一端于各所述第一标准蓝牙包发射时隙的空闲时间中发送的第一私链包,对各所述第一私链包进行解码,以获得与所述第一私链包对应的第一信号数据。
于本发明一实施例中,所述蓝牙通信方法还包括:对第二信号数据按照第二时间片大小进行分片及压缩编码,以构建各第二私链包;其中,所述第二时间片大小,与所述另一端构建所述第一私链包时对应的第一时间片大小相同;于当前时隙接收到所述第一标准蓝牙包后,于下一时隙中,构建并发送第二标准蓝牙包,并于发送各所述第二标准蓝牙包时隙的空闲时间中发送第二私链包,以使所述另一端对所述第二私链包解码后获得对应的所述第二信号数据。
于本发明一实施例中,所述蓝牙通信方法还包括:于发送所述第二私链包之前,基于所述第二标准蓝牙包类型确定对应同一时隙中所述第二私链包的信号调制方式。
于本发明一实施例中,所述蓝牙通信方法还包括:于当前时隙中对所述第一私链包解码后,对解码获得的所述第一信号数据进行重传检测,并将获得的检测结果信息添加至下一时隙的所述第二私链包中,以使所述另一端通过解码所述第二私链包后获得的所述检测结果信息,确定于再下一时隙是否执行重传。
本发明于第三方面提供一种蓝牙通信设备,适用于点对点链路通信中,所述蓝牙通信设备包括:标准蓝牙包组包单元,用于构建各第一标准蓝牙包,并将各所述第一标准蓝牙包输出至所述发送单元;私链包组包单元,用于将输入的第一信号数据,按照第一时间片大小进行压缩编码,以形成各第一私链包,并将各所述第一私链包输出至所述发送单元;发送单元,用于发送各所述第一标准蓝牙包,并于发送所述第一标准蓝牙包时隙的空闲时间中,发送各所述第一私链包。
于本发明一实施例中,所述蓝牙通信设备还包括:接收单元,用于接收链路中另一端发送的各第二标准蓝牙包,和接收所述另一端于各所述第二标准蓝牙包发射时隙的空闲时间中发送的第二私链包;和私链包解包单元,用于解码各所述第二私链包,以获得与所述第二私链包对应的第二信号数据
于本发明一实施例中,所述蓝牙通信设备还包括:组包控制单元,用于控制所述标准蓝牙包组包单元于各发射时隙中均构建所述第一标准蓝牙包;和信号调制单元,用于于发送所述第一私链包之前,基于所述第一标准蓝牙包类型确定对应同一时隙中所述第一私链包的信号调制方式。
本发明于第四方面提供另一种蓝牙通信设备,适用于点对点链路双向通信中,所述蓝牙通信设备包括:接收单元,用于接收链路中另一端发送的各第一标准蓝牙包,和接收所述另一端于各所述第一标准蓝牙包发射时隙的空闲时间中发送的第一私链包;私链包解包单元,用于解码各所述第一私链包,以获得与所述第一私链包对应的第一信号数据。
于本发明一实施例中,所述蓝牙通信设备还包括:标准蓝牙包组包单元,用于构建第二标准蓝牙包,并将各所述第二标准蓝牙包输出至所述发送单元;私链包组包单元,用于将输入的第二信号数据按照第二时间时间片大小进行压缩编码,以形成各第二私链包,并将各所述第二私链包输出至所述发送单元;其中,所述第二时间片大小与所述另一端构建所述第一私链包时对应的第一时间片大小相同;发送单元,用于于当前时隙接收到所述第一标准蓝牙包后,于下一时隙中,发送所述第二标准蓝牙包,并于发送各所述第二标准蓝牙包时隙的空闲时间中发送第二私链包。
于本发明一实施例中,所述蓝牙通信设备还包括:组包控制单元,用于控制所述标准蓝牙包组包单元于各发射时隙中均构建所述第二标准蓝牙包;信号调制单元,用于于发送所述第二私链包之前,基于所述第二标准蓝牙包类型确定对应同一时隙中所述第二私链包的信号调制方式;重传检测单元,用于于当前时隙中对所述第一私链包解码后,对解码获得的所述第一信号数据进行重传检测,并将获得的检测结果信息添加至下一时隙的所述第二私链包中,以使所述另一端通过解码所述第二私链包后获得的所述检测结果信息,确定于再下一时隙是否执行重传。
本发明于第五方面提供一种蓝牙通信系统:包括:第一采集设备,用于采集第一信号数据并输出至第一蓝牙通信设备;第二采集设备,用于采集第二信号数据并输出至第二蓝牙通信设备;第一蓝牙通信设备,为本发明于第三方面提供的所述蓝牙通信设备,用于传输所述 第一信号数据至第二蓝牙通信设备中;第二蓝牙通信设备,为本发明于第四方面提供的所述蓝牙通信设备,用于传输所述第二信号数据至所述第一蓝牙通信设备中。
如上所述,本发明提供的所述蓝牙通信方法、通信装置及系统,通过将输入的信号数据构建为各私链包,并于发送各标准蓝牙包的时隙空闲时间中发送所述私链包,以使接收端根据接收到的所述私链包获得对应的信号数据,充分利用了时隙空闲时间进行信号数据传输,从而可以减少通信过程中信号的延迟。
图1本发明提供的所述蓝牙通信方法于一实施例中的流程示意图;
图2本发明中利用所述蓝牙通信方法于一实施例中进行主从设备交互的示意图(单向传输);
图3本发明提供的另一种所述蓝牙通信方法于本实施例中的流程示意图;
图4本发明利用另一种所述蓝牙通信方法于一实施例中进行主从设备交互的示意图(双向传输);
图5本发明利用另一种所述蓝牙通信方法于一实施例中进行主从设备交互的示意图(重传检测1);
图6本发明利用另一种所述蓝牙通信方法于一实施例中进行主从设备交互的示意图(重传检测2);
图7本发明提供的所述蓝牙通信设备于一实施例中的结构示意图;
图8本发明提供的另一种所述蓝牙通信设备于一实施例中的结构示意图;
图9本发明提供的所述蓝牙通信系统于一实施例中的结构示意图。
以下通过特定的具体实例说明本发明的实施方式,本领域技术人员可由本说明书所揭露的内容轻易地了解本发明的其他优点与功效。本发明还可以通过另外不同的具体实施方式加以实施或应用,本说明书中的各项细节也可以基于不同观点与应用,在没有背离本发明的精神下进行各种修饰或改变。需说明的是,在不冲突的情况下,以下实施例及实施例中的特征可以相互组合。
需要说明的是,以下实施例中所提供的图示仅以示意方式说明本发明的基本构想,遂图式中仅显示与本发明中有关的组件而非按照实际实施时的组件数目、形状及尺寸绘制,其实 际实施时各组件的型态、数量及比例可为一种随意的改变,且其组件布局型态也可能更为复杂。
实施例1
为解决现有技术中存在的技术问题,本发明于实施例1提供了一种蓝牙通信方法,适用于主设备与从设备之间的单向信号数据传输;即所述主设备向所述从设备发送信号数据,或者所述从数据向所述主设备发送信号数据。其中,所述主设备与所述从设备基于标准蓝牙协议和自定义蓝牙协议建立点对点的链路连接。所述自定义蓝牙协议中包括自定义的封包规则和解包规则。
于本实施例中,所述主设备和所述从设备均为蓝牙设备,均包括自定义组包单元和自定义解包单元;其中,所述自定义组包单元为基于自定义的封包规则,对信号数据进行压缩编码,以形成对应的私链包;则所述自定义解包单元为基于自定义的解包规则,对所述私链包进行解码,以获得对应的信号数据。
请参阅图1,示出为所述蓝牙通信方法于本实施例中的流程示意图,应用于所述主设备端中。如图1所示,所述蓝牙通信方法包括如下步骤:
S11,所述主设备将第一信号数据根据所述自定义的封包规则,并基于第一时间片大小进行分片及压缩编码,以构建各第一私链包;
其中,所述第一时间片为所述主设备端单次传输的所述第一信号数据的时间大小,由所述自定义蓝牙协议确定;可选的,所述第一时间片大小可以为n个时隙的时长。
于一具体实施方式中,n为2,以提高传输频率,减少单次传输中的信号延迟。
于另一具体实施方式中,n为4或6,以提高信号传输的带宽,从而提高单一时刻下所述第一信号数据的传输量大小。
示例性的,所述第一时间片为2个时隙slot的时长;于本实施例中,单个时隙slot的时长为625us,则所述第一时间片为1.25ms。
具体的,所述主设备将所述第一信号数据,按照所述第一时间片大小进行分片及压缩编码,并根据所述自定义封包规则中所包含的数据包各部分的组织方式,以形成基于时序排列的各第一私链包,通过硬件通路输出至发送单元中进行发送。
需要说明的是,所述自定义封包规则的具体组包方式,可以和所述标准蓝牙协议相同,也可以不同的,在此不做限定。
S12,所述主设备构建各第一标准蓝牙包,于发送各所述第一标准蓝牙包的对应发射时隙的空闲时间中发送所述第一私链包,以使所述从设备根据接收到的各所述第一私链包获得所述第一信号数据;
其中,所述发射时隙为链路中主设备单向传输信号的数据发送窗口;可选的,所述发射时隙的大小与所述第一时间片大小相同,各所述第一私链包与各所述发射时隙相对应;则所述主设备于发送各所述第一标准蓝牙包的发射时隙的空闲时间中,发送与该发射时隙对应的所述第一私链包。
所述第一标准蓝牙包的类型为基于所述第一时间片大小确定,为所占时隙大小不大于所述第一时间片大小的蓝牙包类型。
具体的,所述主设备根据所述第一时间片中所包含的时隙个数来确定所述第一标准蓝牙包的类型;示例性的,当所述第一时间片大小为2个时隙长短时,则所述第一标准蓝牙包为只占1个时隙的蓝牙包;当所述第一时间片大小为4个时隙长短时,则所述第一标准蓝牙包为占3个时隙的蓝牙包。
需要注意的是,于本实施例中,所述第一标准蓝牙包类型的确定方式,还包括:所述主设备基于所述标准蓝牙协议,确定所述第一标准蓝牙包类型;当所述主设备和所述从设备建立连接时,于所述标准蓝牙协议中确定链路中允许传输的所述第一标准蓝牙包的类型,以基于所述标准蓝牙协议确定所述第一标准蓝牙包类型;例如,当链路出现命令交互需求时,则确定当前时隙对应所述第一标准蓝牙包为命令类蓝牙包DM1。
进一步的,为保证单个时隙能留出较多的空闲时间用于私链包通信以降低通讯延迟,所述主设备选择所述第一标准蓝牙包类型为payload长度较小的蓝牙包类型。于本实施例中,所述第一标准蓝牙包的类型包括但不限于DH,DM1,Poll和Null包,以及其他的payload长度较小的蓝牙包。示例性的,当所述第一时间片大小为2个时隙长短时,则所述主设备发送的所述第一标准蓝牙包为payload长度为0或1Byte的DH1包,其包长较短,且没有FEC编码,从而可以留出更多的空闲以保证所述私链包的通信。示例性,当所述第一时间片大小为4个时隙长短时,则所述主设备确定所述第一标准蓝牙包为DH3包。
为提高信号数据传输的实时性,降低通信延迟,进一步的,所述主设备中包括第一私链包的组包单元,独立于标准蓝牙包的组包单元;所述第一私链包的组包单元和所述标准蓝牙包的组包单元可以相同,也可以不同;则本发明所述蓝牙通信方法于执行S11时,包括:,根据所述自定义蓝牙协议,并基于所述第一私链包的组包单元,于各发射时隙内构建与该发射时隙对应所述第一私链包,使所述主设备中的发送单元于各发射时隙的时隙空闲中发送所 述当前时隙内构建的所述第一私链包;相比于现有技术中根据所述标准蓝牙协议,并基于现有的标准蓝牙包组包单元进行蓝牙包组包,会导致所述主设备需至少提前2个时隙开始执行调度准备,本实施例中基于所述自定义蓝牙协议和所述第一私链包的组包单元,于各发射时隙中构建对应的所述第一私链包,可以避免因提前调度和组包而导致的通信延迟。
为进一步提高各时隙空闲时间的使用频率,以降低通信延迟,进一步的,于主从设备的通信交互过程中,控制所述主设备于各发射时隙中均构建并发送所述第一标准蓝牙包,以保证于各发射时隙中均可以发送所述第一标准蓝牙包和对应的所述第一私链包。
于本实施例中,用于构建所述第一标准蓝牙包中的信息数据为在所述主设备中为以数组形式装载的数据;所述信息数据可以为任意数据。基于所述标准蓝牙协议,将输入的信息数据组包为各所述第一标准蓝牙包。
为保证各发射时隙中均有发送所述第一标准蓝牙包,则所述主设备生成并输入所述信息数据至所述数组中,并使得所述数组深度于任意时刻均大于单个所述第一标准蓝牙包中的payload长度;所述主设备将所述数组中内容拆分成同类型的若干个所述第一标准蓝牙包,并通过所述发送单元发出,以确保各所述发射时隙均能实现所述第一标准蓝牙包的传输。
进一步的,于本实施例中,所述蓝牙通信方法还包括:
于执行所述步骤S12时,根据所述第一标准蓝牙包的类型确定同一时隙中发送的私链包对应的调制方式,并根据所述调制方式发送所述第一私链包。
具体的,所述主设备于发送所述第一私链包之前,基于所述第一标准蓝牙包类型确定对应同一时隙中所述第一私链包的调制方式,以加快信号数据的传输,进一步降低通讯延迟。
于一具体实施方式中,所述第一标准蓝牙包的类型为时隙较少的蓝牙包,如DH1/DM1/null包等,用于私链包传输的时间基本相同且相对较少,则对同一时隙中的所述第一私链包采用相同的调制方式进行调制,以简化蓝牙通信方案设计。
于另一具体实施方式中,所述第一标准蓝牙包的类型为多时隙蓝牙包,如DH3/DH5包时,用于私链包传输的时间较长,则对同一时隙中的所述第一私链包采用抗干扰性更好的调制方式进行调制,如GFSK调制方式,以提高传输速率,降低通信延迟;主从设备双方出现命令类蓝牙包交互时,例如DM1,则于当前时隙中留给私链包传输的时间较短,为了保证数据传输连续,将当前时隙中的所述第一私链包的调制方式切换为调整密度更高的调制方式,如Π/4DPSK或8DPSK调制方式,以提高传输速率,降低通信延迟。
进一步的,为确保以较高效率的调制方式对所述私链包数据进行调制,减少私链包通信过程中调制方式的更换,以使私链的通信时间更长,则所述蓝牙通信方法还包括:于构建各所述第一标准蓝牙包的同时,降低链路中包类型为命令类蓝牙包的通信频次。
示例性的,通过关闭或减少自适应跳频,或关闭功率控制等控制方式,控制链路中所述命令类蓝牙包的通信频次。
进一步的,于本实施例中,所述蓝牙通信方法还包括:
于执行所述步骤S22时,根据所述第一标准蓝牙包的类型确定对应同一时隙中发送的私链包所对应的数据压缩方式;
具体的,所述主设备于发送所述第一标准蓝牙包之前,基于所述第一标准蓝牙包类型,确定同一时隙中所述第一私链包对应的所述第一信号数据的数据压缩方式,以确保当某一时隙待传输的信号数据量较大时,可通过加大数据压缩率的方式缩短所述私链数据包的长度,进而确保信号数据传输的实时性,减少延时。
所述从设备接收所述第一标准蓝牙包和所述第一私链包,并基于所述自定义解包规则,对接收到的各所述第一私链包进行解码,以获得所述第一信号数据。
所述从设备根据接收到的各所述第一标准蓝牙包,于相邻两个所述发射时隙中的时隙发送与所述第一标准蓝牙包对应的第二标准蓝牙包,也可以不回复。示例性的,如图2所示,所述主设备(设备1)于slot K时发送所述第一标准蓝牙包(DH1),所述从设备(设备2)于slot K+1回复与所述第一标准蓝牙包对应的第二标准蓝牙包(NULL)或者不回复任何内容。
需要注意的是,本实施例中提供的所述蓝牙通信方法,不仅适用于主设备端,也同样适用于从设备端;当所述从设备执行该蓝牙通信方法时,则所述方法的执行主体为设备端,即所述从设备为发送端,所述主设备为接收端。
实施例2
为解决现有技术中存在的技术问题,本发明于本实施例提供了另一种蓝牙通信方法,适用于主设备与从设备之间双向的信号数据传输;即所述主设备向所述从设备传输第一信号数据的同时,所述从数据向所述主设备传输第二信号数据。
其中,所述第二信号数据为所述从设备需要传输至所述主设备的数据。
请参阅图3,示出为所述蓝牙通信方法于本实施例中的流程示意图。如图3所示,所述蓝牙通信方法包括如下步骤:
S21,所述主设备将所述第一信号数据根据所述自定义封包规则,并按照第一时间片大小进行分片及压缩编码,以构建各第一私链包;以及所述从设备将所述第二信号数据根据所述自定义封包规则,并按照第二时间片大小进行分片及压缩编码,以构建各第二私链包;
其中,所述第一时间片为所述主设备单次传输所述第一信号数据对应的采集时间长短,所述第二时间片为所述从设备单次传输所述第二信号数据对应的采集时间长短;所述第一时间片和所述第二时间片于所述自定义蓝牙协议中预先设定,且两者大小相同。
具体的,当所述主从设备为经典蓝牙传输时,则所述第一时间片和所述第二时间片大小均为n个时隙的时长,n可选为2,6,10。
于一具体实施方式中,n为2,以提高传输频率减少单次传输中的信号延迟。
于另一具体实施方式中,n为6或10,以提高单次发送的所述信号数据的传输量大小。
S22,所述主设备发送各第一标准蓝牙包,并于发送各所述第一标准蓝牙包时隙中的空闲时间中发送所述第一私链包,使所述从设备根据接收到的各所述第一私链包获得所述第一信号数据;以及所述从设备于接收到所述第一标准蓝牙包后的下一时隙,构建并发送第二标准蓝牙包,以及于发送所述第二标准蓝牙包时隙的空闲时间中发送所述第二私链包,使所述主设备根据接收到的各所述第二私链包获得所述第二信号数据。
其中,所述主设备基于所述标准蓝牙协议,于各发射时隙发送第一标准蓝牙包,并于各所述发射时隙中的空闲时间中依次发送所述第一私链包的实现方式于实施例1中的相同,在此不再赘述。
当所述第一标准蓝牙包的类型非命令包时,则所述从设备基于所述标准蓝牙协议,根据所述第二时间片大小,生成各第二标准蓝牙包。
示例性的,当所述第一时间片大小为2个时隙长短时,则所述第一标准蓝牙包为只占1个时隙的蓝牙包;当所述第一时间片大小为6个时隙长短时,则所述第一标准蓝牙包为占3个时隙的蓝牙包。
需要注意的是,当所述第一标准蓝牙包的类型为命令包时,则所述第二蓝牙设备于接收到所述第一标准蓝牙包后,基于标准蓝牙协议和所述第二时间片大小,确定与所述第一标准蓝牙包对应的第二标准蓝牙包的类型;并于接收到所述第一标准蓝牙包后的下一个时隙发送所述第二标准蓝牙包,以及于同一个时隙的空闲时间中,发送与该时隙对应的所述第二私链包。
示例性的,当链路中不存在命令包交互需求和插包需求时,如图4所示,主设备(设备1)于slot K向从设备(设备2)发送DH1包,并于slot K中的空闲时间发送第一私链包L1; 于slot K中,所述从设备根据DH1包确定回复的第二标准蓝牙包类型为Null包,以及对L1包解码;则于slot K+1时,从设备(设备2)向主设备(设备1)回复Null包,并于slot K+1的空闲时间,从设备(设备2)向主设备(设备1)发送第二私链包R1。
示例性的,当链路中存在命令包交互需求时,如图4所示,主设备(设备1)于slot N向从设备(设备2)发送DM1包,并于slot N的空闲时间,主设备(设备1)向从设备(设备2)发送第一私链包Ln;于slot N中,从设备(设备2)根据DM1包确定回复的第二标准蓝牙包类型为Null包或者DM1包,以及对Ln包解码;在slot N+1时,则从设备(设备2)向主设备(设备1)回复Null包或者DM1包,并在slot N+1的空闲时间,从设备(设备2)向主设备(设备1)发送第二私链包Rn;于slot N+1中,主设备(设备1)对第二私链包Rn解码。
进一步的,于本实施例中,所述蓝牙通信方法还包括:
于执行所述步骤S22时,根据标准蓝牙包的类型确定对应同一时隙中发送的私链包所对应的调制方式;
具体的,所述主设备于发送所述第一私链包之前,基于所述第一标准蓝牙包类型确定对应同一时隙中所述第一私链包的调制方式;以及,于所述从设备于发送所述第二私链包之前,基于所述第二标准蓝牙包类型,确定对应同一时隙中所述第二私链包的调制方式,以通过基于标准蓝牙包类型选择适配的私链包调制方式,以加快信号数据的传输,进一步降低通讯延迟。
于一具体实施方式中,所述第一/二标准蓝牙包的类型为时隙较少的蓝牙包,如DH1/DM1/null包等,用于私链包传输的时间基本相同且相对较少,则对同一时隙中的所述第一/二私链包采用相同的调制方式对私链包进行调制,以简化蓝牙通信方案设计。
于另一具体实施方式中,所述第一/二标准蓝牙包的类型为多时隙蓝牙包,如DH3/DH5包时,用于私链包传输的时间较长,则对同一时隙中的所述第一私链包采用抗干扰性更好的调制方式进行调制,如GFSK调制方式;当主从设备双方出现命令类蓝牙包交互时,例如DM1,则于当前时隙中留给私链包传输的时间较短,为了保证数据传输连续,则将当前时隙中的所述第一/二私链包的调制方式切换为调整密度更高的调制方式,如Π/4DPSK或8DPSK调制方式,以提高传输速率,降低通信延迟。
更进一步的,于本实施例中,所述蓝牙通信方法还包括:
于执行所述步骤S22时,根据标准蓝牙包的类型确定同一时隙中发送的私链包所对应的数据压缩方式;
具体的,所述主设备于发送所述第一私链包之前,基于所述第一标准蓝牙包类型,确定同一时隙所述第一私链包对应的所述第一信号数据的数据压缩方式;以及,于所述从设备于发送所述第二私链包之前,基于所述第二标准蓝牙包类型,确定对应同一时隙中所述第二私链包对应的所述第二信号数据的数据压缩方式,以确保当某一时隙待传输的信号数据量较大时,可通过加大数据压缩率的方式缩短所述私链数据包的长度,进而确保信号数据传输的实时性,减少延时。
实施例3
为解决现有技术中存在的技术问题,本发明于本实施例提供了又一种蓝牙通信方法,适用于主设备与从设备之间双向的信号数据传输。
于本实施例中,所述蓝牙通信方法的执行步骤和实施例2中的基本相同,不同之处在于,于本实施例中,所述蓝牙通信方法于执行所述主设备和所述从设备之间的双向信号数据传输中,还包括私链重传检测和执行重传过程。
具体的,于本实施例中,所述蓝牙通信方法的执行步骤和实施例2中的不同之处在于:
于执行实施例2中所述步骤S22时,还包括:所述从设备于当前时隙中,对同一时隙接收到的所述第一私链包进行解码,对解码后的所述第一信号数据进行重传检测,并将获得的检测结果信息添加至下个时隙对应的所述第二私链包中,以使所主设备根据接收到的所述第二私链包中的所述检测结果信息,确定于再下个时隙是否执行重传;和/或,所述主设备于当前时隙中,对同一时隙接收到的所述第二私链包进行解码,对解码后的所述第二信号数据进行重传检测,并将获得的检测结果信息添加至下个时隙对应的所述第一私链包中,以使所从设备根据接收到的所述第一私链包中的所述检测结果信息,确定于再下个时隙是否重新发送。
其中,所述检测结果信息包括需要重传,和不需要重传两种信息。
参阅图5,示出于本发明利用所述蓝牙通信方法于一具体实施例中进行主从交互的示意图;其中,需要重传的检测结果信息为NAK,不需要重传的检测结果信息为ACK。
如图5所示,于时隙slot K+1中,从设备(设备2)向主设备(设备1)发送的第二私链包R1,其中包含有从设备在上一时隙slot K所接收到的第一私链包L1是否需要重传的第一检测结果,图中示例为不需重传(ACK);于时隙slot K+1中,主设备接收该第二私链包R1,解码后获取其中的所述第一检测结果,以及对该第二私链包R1进行重传检测,获得第二检测结果,则在下一个时隙slot K+2中,主设备继续向从设备发送新的第一私链包L2,该新的第一私链包L2中包含所述第二检测结果;于时隙slot K+2中,从设备接收该新的第一私链包 L2,解码后获取其中的所述第二检测结果信息,以及对该新的第一私链包L2进行重传检测,获得新的第一检测结果;则于下一个slot K+3中,重复以上过程。
如图5所示,于当前时隙slot K+3中,主设备于接收时丢失了从设备于上一时隙slot K+2中发送的第二标准蓝牙包和第二私链包R2,则在下一时隙slot K+4中,主设备发送的新的第一私链包L2中所包含的所述第一检测结果为需要重传(NAK),则于时隙slot K+5中,从设备重新发送丢失的第二私链包R2,即重新发送从设备于slot K+2中发送的第二私链包R2。
需要注意的是,于其他的实施例中,所述蓝牙通信方法包括另一种私链重传方式,为采取固定次数重传方式。优选的,重传次数不大于2。
在图6中所示,主设备在slot K和slot K+2向从设备发送第一私链包L1,同一个第一私链包两次只要有1次数据接收正确就使用这个数据,如果2次均不正确,该包被丢弃。
于本实施例中,于所述主设备和所述从设备的通信过程中,通过对私链包进行重传检测,以及当需要重传时,执行重传过程,以实现在干扰严重,通信质量差环境中,可以通过私链包检测和重新发送的方法,降低丢包率,改善通信质量。
实施例4
为解决现有技术中存在的技术问题,本发明于本实施例提供了一种蓝牙通信设备,适用于点对点链路通信中,该链路为基于标准蓝牙协议和自定义蓝牙协议构建。
其中,所述自定义蓝牙协议中包括自定义的封包规则和解包规则;所述自定义封包规则,用于对信号数据进行压缩编码,以形成对应的私链包;所述自定义解包规则,用于对所述私链包进行解码,以获得对应的信号数据。
如图7所示,所述蓝牙通信设备4包括:
标准蓝牙包组包单元41,用于构建各第一标准蓝牙包,并将各所述第一标准蓝牙包输出至所述发送单元;
私链包组包单元42,用于将输入的第一信号数据按照所述第一时间片大小进行分片及压缩编码,并根据自定义封包规则形成各第一私链包,并将各所述第一私链包输出至所述发送单元;
发送单元43,用于发送各所述第一标准蓝牙包,并于发送所述第一标准蓝牙包的时隙的空闲时间中,发送各所述第一私链包。
进一步的,所述蓝牙通信设备还包括接收单元44和私链包解包单元45;
其中,所述接收单元44用于接收链路中另一端发送的各第二标准蓝牙包,和接收所述另一端于各所述第二标准蓝牙包发射时隙的空闲时间中发送的第二私链包。
所述私链包解包单元45用于解码各所述第二私链包,以获得与所述第二私链包对应的第二信号数据。
进一步的,所述蓝牙通信设备还包括:组包控制单元46和信号调制单元47;
其中,所述组包控制单元46用于控制所述标准蓝牙包组包单元于各发射时隙中均构建所述第一标准蓝牙包。
于本实施例中,用于构建所述第一标准蓝牙包中的信息数据为以数组形式装载的数据;所述信息数据可以为任意数据;为保证各发射时隙中均有发送所述第一标准蓝牙包,则所述组包控制单元46,生成所述信息数据至所述数组中,并使得所述数组深度于任意时刻均均大于单个所述第一标准蓝牙包中的payload长度,以使所述标准蓝牙包组包单元41能基于所述标准蓝牙协议,将输入的信息数据组包为各所述第一标准蓝牙包,并通过所述发送单元发出,以确保各所述发射时隙中均实现所述第一标准蓝牙包传输。
所述信号调制单元47用于于发送所述第一私链包之前,基于所述第一标准蓝牙包类型确定对应同一时隙中所述第一私链包的信号调制方式。
具体的,所述基于所述第一标准蓝牙包类型确定对应同一时隙中所述第一私链包的信号调制方式的实施方式于如上述实施例1中实施方式相同,在此不再赘述。
于本实施例中,各单元协同执行如上述实施例1中所述的蓝牙通信方法,将接收到的第一信号数据通过构建第一私链包的方式,传输至链路通信的另一设备端中,以提高信号输出的实时性,降低信号的传输延迟。
实施例5
为解决现有技术中存在的技术问题,本发明于本实施例提供了又一种蓝牙通信设备,适用于点对点链路的双向通信中,该链路为基于标准蓝牙协议和自定义蓝牙协议构建。
如图8所示,所述蓝牙通信设备5包括:
接收单元51,用于接收链路中另一端发送的各第一标准蓝牙包,和接收所述另一端于各所述所述第一标准蓝牙包发射时隙的空闲时间中发送的第一私链包;
私链包解包单元52,用于根据自定义解包规则,解码各所述第一私链包,以获得与所述第一私链包对应的第一信号数据;
标准蓝牙包组包单元53,用于根据所述第一标准蓝牙包,构建对应的第二标准蓝牙包,并将各所述第二标准蓝牙包输出至所述发送单元;
私链包组包单元54,用于将输入的第二信号数据按照第二时间时间片大小进行分片及压缩编码,并根据自定义封包规则形成各第二私链包,并将各所述第二私链包输出至所述发送单元;
其中,所述第二时间片大小,与所述另一端构建所述第一私链包时对应的第一时间片大小相同。
发送单元55,用于于当前时隙接收到所述第一标准蓝牙包后,于下一时隙中,发送与所述第二标准蓝牙包,并于发送各所述第二标准蓝牙包时隙的空闲时间中发送第二私链包。
进一步的,所述蓝牙通信设备还包括:
组包控制单元56,用于控制所述标准蓝牙包组包单元于各发射时隙中均构建所述第一标准蓝牙包;
具体的,所述控制所述标准蓝牙包组包单元于各发射时隙中均构建所述第一标准蓝牙的实施方式于如上述实施例1中实施方式相同,在此不再赘述。
信号调制单元57,用于于发送所述第一私链包之前,基于所述第一标准蓝牙包类型确定对应同一时隙中所述第一私链包的信号调制方式;
具体的,所述基于所述第一标准蓝牙包类型确定对应同一时隙中所述第一私链包的信号调制方式的实施方式于如上述实施例1中实施方式相同,在此不再赘述。
重传检测单元58,用于于当前时隙中对所述第一私链包解码后,对解码获得的所述第一信号数据进行重传检测,并将获得的检测结果信息添加至下一时隙的所述第二私链包中,以使所述另一端通过解码所述第二私链包后获得的所述检测结果信息,确定于再下一时隙是否执行重传。
具体的,所述重传检测单元所执行的实施方式与如上述实施例3中重传检测步骤的实施方式相同,在此不再赘述。
实施例6
本发明于本实施例中提供一种蓝牙通信系统,用于实现点对点链路双向通信,该链路为基于标准蓝牙协议和自定义蓝牙协议构建。
如图9所示,所述蓝牙通信系统6包括:第一采集设备61、第二采集设备62、第一蓝牙通信设备63和第二蓝牙通信设备64;其中,
所述第一蓝牙通信设备63和所述第二蓝牙通信设备64分别对应为主设备和从设备,并基于标准蓝牙协议和自定义蓝牙协议构建了点对点的链路连接。
所述第一采集设备61和所述第一蓝牙通信设备63连接,用于采集第一信号数据并输出至第一蓝牙通信设备63;所述第二采集设备62和所述第二蓝牙通信设备64连接,用于采集第二信号数据并输出至第二蓝牙通信设备64;所述第一信号数据和所述第儿信号数据包括但不限于音频数据、视频数据或其他对传输实时性要求较高的数据。
于具体实施例中,所述第一蓝牙通信设备采用如上实施例4中的所述蓝牙通信设备,以及所述第二蓝牙通信设备采用如上实施例5中的所述蓝牙通信设备,以实现第一蓝牙通信设备和所述第二蓝牙通信设备之间的交互通信。
综上所述,本发明提供的蓝牙通信方法、通信设备及系统,通过将待传输的信号数据构建为各私链包,于发送标准蓝牙包的同时,于各发送时隙的空闲时间中发送各所述私链包,以使接收端根据接收到的所述私链包获得对应的信号数据,以充分利用了时隙空闲时间进行信号数据传输,从而可以减少通信过程中信号的延迟;并且,通过直接由独立的私链包组包单元来进行私链包的组包,从而避免了现有蓝牙调度中存在的数据包调度延迟,进一步提高了信号传输效率,降低了通信延迟;此外,本发明提供的方法可以充分利用现有且通用的标准蓝牙协议,无需重新构建一套完全的蓝牙协议,不仅节省了开发成本,提高了开发效率,而且方法具有更好的适应性和可拓展性。
上述实施例仅例示性说明本发明的原理及其功效,而非用于限制本发明。任何熟悉此技术的人士皆可在不违背本发明的精神及范畴下,对上述实施例进行修饰或改变。因此,举凡所属技术领域中具有通常知识者在未脱离本发明所揭示的精神与技术思想下所完成的一切等效修饰或改变,仍应由本发明的权利要求所涵盖。
Claims (17)
- 一种蓝牙通信方法,其特征在于,适用于点对点链路连接的一设备端中;所述蓝牙通信方法包括:对第一信号数据按照第一时间片大小进行分片及压缩编码,以构建各第一私链包;构建各第一标准蓝牙包,于发送各所述第一标准蓝牙包的时隙空闲时间中,发送所述第一私链包,以使链路中另一端通过解码所述第一私链包获取对应的所述第一信号数据。
- 根据权利要求1所述的蓝牙通信方法,其特征在于,所述设备端中包括第一私链包组包单元,则所述构建各第一私链包,包括:通过所述第一私链包组包单元构建各所述第一私链包。
- 根据权利要求1所述的蓝牙通信方法,其特征在于,所述构建各第一标准蓝牙包,包括:于各发射时隙中均构建所述第一标准蓝牙包。
- 根据权利要求1或3所述的蓝牙通信方法,其特征在于,用于构建所述第一标准蓝牙包的信息数据通过数组装载,则所述构建各第一标准蓝牙包,包括:输入信息数据至所述数组中,使所述数组的深度于任意时刻均大于单个所述第一标准蓝牙包中的payload长度。
- 根据权利要求1所述的蓝牙通信方法,其特征在于,还包括:于发送所述第一私链包之前,基于所述第一标准蓝牙包类型确定对应同一时隙中所述第一私链包的信号调制方式。
- 根据权利要求1所述的蓝牙通信方法,其特征在于,还包括:于构建各所述第一标准蓝牙包的同时,降低链路中命令类蓝牙包的发送频次。
- 一种蓝牙通信方法,其特征在于,适用于点对点链路双向连接中的一设备端中;所述蓝牙通信方法包括:接收另一端发送的各第一标准蓝牙包,和接收另一端于各所述第一标准蓝牙包发射时隙的空闲时间中发送的第一私链包,对各所述第一私链包进行解码,以获得与所述第一私链包对应的第一信号数据。
- 根据权利要求7所述的蓝牙通信方法,其特征在于,还包括:对第二信号数据按照第二时间片大小进行分片及压缩编码,以构建各第二私链包;其中,所述第二时间片大小,与所述另一端构建所述第一私链包时对应的第一时间片大小相同;于当前时隙接收到所述第一标准蓝牙包后,于下一时隙中,构建并发送第二标准蓝牙包,并于发送各所述第二标准蓝牙包时隙的空闲时间中发送所述第二私链包,以使所述另一端对所述第二私链包解码后获得对应的所述第二信号数据。
- 根据权利要求8所述的蓝牙通信方法,其特征在于,还包括:于发送所述第二私链包之前,基于所述第二标准蓝牙包类型确定对应同一时隙中所述第二私链包的信号调制方式。
- 根据权利要求8所述的蓝牙通信方法,其特征在于,还包括:于当前时隙中对所述第一私链包解码后,对解码获得的所述第一信号数据进行重传检测,并将获得的检测结果信息添加至下一时隙的所述第二私链包中,以使所述另一端通过解码所述第二私链包后获得的所述检测结果信息,确定于再下一时隙是否执行重传。
- 一种蓝牙通信设备,其特征在于,适用于点对点链路通信中,所述蓝牙通信设备包括:标准蓝牙包组包单元,用于构建各第一标准蓝牙包,并将各所述第一标准蓝牙包输出至发送单元;私链包组包单元,用于将输入的第一信号数据,按照第一时间片大小进行分片及压缩编码,以形成各第一私链包,并将各所述第一私链包输出至发送单元;发送单元,用于发送各所述第一标准蓝牙包,并于发送所述第一标准蓝牙包时隙的空闲时间中,发送各所述第一私链包。
- 根据权利要求11所述的蓝牙通信设备,其特征在于,还包括:接收单元,用于接收链路中另一端发送的各第二标准蓝牙包,和接收所述另一端于各所述第二标准蓝牙包发射时隙的空闲时间中发送的第二私链包;和,私链包解包单元,用于解码各所述第二私链包,以获得与所述第二私链包对应的第二信号数据。
- 根据权利要求12所述的蓝牙通信设备,其特征在于,还包括:组包控制单元,用于控制所述标准蓝牙包组包单元于各发射时隙中均构建所述第一标准蓝牙包;和,信号调制单元,用于于发送所述第一私链包之前,基于所述第一标准蓝牙包类型确定对应同一时隙中所述第一私链包的信号调制方式。
- 一种蓝牙通信设备,其特征在于,适用于点对点链路双向通信中,所述蓝牙通信设备包括:接收单元,用于接收链路中另一端发送的各第一标准蓝牙包,和接收所述另一端于各所述第一标准蓝牙包发射时隙的空闲时间中发送的第一私链包;私链包解包单元,用于解码各所述第一私链包,以获得与所述第一私链包对应的第一信号数据。
- 根据权利要求14所述的蓝牙通信设备,其特征在于,还包括:标准蓝牙包组包单元,用于构建第二标准蓝牙包,并将各所述第二标准蓝牙包输出至所述发送单元;私链包组包单元,用于将输入的第二信号数据按照第二时间片大小进行分片及压缩编码,以构建各第二私链包,并将各所述第二私链包输出至所述发送单元;其中,所述第二时间片大小与所述另一端构建所述第一私链包时对应的第一时间片大小相同;发送单元,用于于当前时隙接收到所述第一标准蓝牙包后,于下一时隙中,发送所述第二标准蓝牙包,并于发送各所述第二标准蓝牙包时隙的空闲时间中发送所述第二私链包。
- 根据权利要求15所述的蓝牙通信设备,其特征在于,还包括:组包控制单元,用于控制所述标准蓝牙包组包单元于各发射时隙中均构建所述第二标准蓝牙包;信号调制单元,用于于发送所述第二私链包之前,基于所述第二标准蓝牙包类型确定对应同一时隙中所述第二私链包的信号调制方式;重传检测单元,用于于当前时隙中对所述第一私链包解码后,对解码获得的所述第一信号数据进行重传检测,并将获得的检测结果信息添加至下一时隙的所述第二私链包中,以使所述另一端通过解码所述第二私链包后获得的所述检测结果信息,确定于再下一时隙是否执行重传。
- 一种蓝牙通信系统,其特征在于,包括:第一采集设备,用于采集第一信号数据并输出至第一蓝牙通信设备;第二采集设备,用于采集第二信号数据并输出至第二蓝牙通信设备;第一蓝牙通信设备,为如权利要求12或13所述的蓝牙通信设备,用于传输所述第一信号数据至第二蓝牙通信设备中;第二蓝牙通信设备,为如权利要求15或16所述的蓝牙通信设备,用于传输所述第二信号数据至所述第一蓝牙通信设备中。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US18/573,425 US20240267787A1 (en) | 2021-11-10 | 2022-07-20 | Bluetooth communication method, device and system |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111353804.6 | 2021-11-10 | ||
CN202111353804.6A CN114025430B (zh) | 2021-11-10 | 2021-11-10 | 蓝牙通信方法、通信设备及系统 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023082691A1 true WO2023082691A1 (zh) | 2023-05-19 |
Family
ID=80064336
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/106778 WO2023082691A1 (zh) | 2021-11-10 | 2022-07-20 | 蓝牙通信方法、通信设备及系统 |
Country Status (3)
Country | Link |
---|---|
US (1) | US20240267787A1 (zh) |
CN (1) | CN114025430B (zh) |
WO (1) | WO2023082691A1 (zh) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113873486B (zh) * | 2021-09-23 | 2022-07-12 | 上海山景集成电路股份有限公司 | 蓝牙通信方法、通信设备及系统 |
CN114025430B (zh) * | 2021-11-10 | 2022-07-19 | 上海山景集成电路股份有限公司 | 蓝牙通信方法、通信设备及系统 |
CN114827974B (zh) * | 2022-06-29 | 2022-11-29 | 成都市安比科技有限公司 | 一种tws系统的带宽优化方法 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160249356A1 (en) * | 2015-02-23 | 2016-08-25 | Intricon Corporation | Enabling Concurrent Proprietary Audio And Bluetooth Low Energy Using Enhanced LE Link Layer For Hearing Device |
CN109327829A (zh) * | 2018-11-22 | 2019-02-12 | 重庆物奇科技有限公司 | 蓝牙设备、蓝牙通信系统及设备间传输指令的方法 |
CN111901730A (zh) * | 2020-06-22 | 2020-11-06 | 芯原微电子(上海)股份有限公司 | Tws耳机交互方法及系统、tws耳机 |
CN114025430A (zh) * | 2021-11-10 | 2022-02-08 | 上海山景集成电路股份有限公司 | 蓝牙通信方法、通信设备及系统 |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8989667B2 (en) * | 2012-03-28 | 2015-03-24 | Debanjan Mukherjee | Apparatus and methods for a bandwidth efficient scheduler |
CN105657646A (zh) * | 2016-01-29 | 2016-06-08 | 南京悦控智能科技有限公司 | 一种基于蓝牙4.0的设备间大数据通信方法 |
CN109495867B (zh) * | 2018-11-22 | 2021-09-10 | 重庆物奇科技有限公司 | 蓝牙设备、蓝牙设备间信息传输的方法和蓝牙通信系统 |
CN111405534B (zh) * | 2020-03-11 | 2023-08-25 | 锐迪科微电子(上海)有限公司 | 信息传输方法、第一终端及计算机存储介质 |
CN113056008B (zh) * | 2021-02-04 | 2023-04-07 | 浙江大华技术股份有限公司 | 数据传输方法及装置 |
-
2021
- 2021-11-10 CN CN202111353804.6A patent/CN114025430B/zh active Active
-
2022
- 2022-07-20 WO PCT/CN2022/106778 patent/WO2023082691A1/zh unknown
- 2022-07-20 US US18/573,425 patent/US20240267787A1/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160249356A1 (en) * | 2015-02-23 | 2016-08-25 | Intricon Corporation | Enabling Concurrent Proprietary Audio And Bluetooth Low Energy Using Enhanced LE Link Layer For Hearing Device |
CN109327829A (zh) * | 2018-11-22 | 2019-02-12 | 重庆物奇科技有限公司 | 蓝牙设备、蓝牙通信系统及设备间传输指令的方法 |
CN111901730A (zh) * | 2020-06-22 | 2020-11-06 | 芯原微电子(上海)股份有限公司 | Tws耳机交互方法及系统、tws耳机 |
CN114025430A (zh) * | 2021-11-10 | 2022-02-08 | 上海山景集成电路股份有限公司 | 蓝牙通信方法、通信设备及系统 |
Also Published As
Publication number | Publication date |
---|---|
CN114025430B (zh) | 2022-07-19 |
CN114025430A (zh) | 2022-02-08 |
US20240267787A1 (en) | 2024-08-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2023082691A1 (zh) | 蓝牙通信方法、通信设备及系统 | |
CN111294783B (zh) | 音频数据传输的方法、装置、芯片和电子设备 | |
CN104471891B (zh) | 用于块确收压缩的装置和方法 | |
CN109995479A (zh) | 一种音频数据通信方法、系统及音频通信设备 | |
US20230276515A1 (en) | Low-latency wireless audio transmitting and receiving method and device | |
US20090217119A1 (en) | Method, system and relay station for realizing hybrid automatic retransmission | |
TWI418171B (zh) | 無線通訊系統執行狀態報告程序的方法及其相關裝置 | |
WO2022052507A1 (zh) | 蓝牙低功耗音频数据传输方法以及装置、设备 | |
US10454626B2 (en) | Transmitter defragmentation for data unit fragments | |
CN110519019B (zh) | 一种发送、接收码本信息的方法及装置 | |
TWI396398B (zh) | 管理傳輸時間間隔集束傳輸之方法及通訊裝置 | |
WO2016029747A1 (zh) | 一种数据传输方法、相关装置及系统 | |
WO2021223243A1 (zh) | 音频数据传输的方法、装置、芯片和电子设备 | |
US20200145145A1 (en) | Acknowledgment data unit for data unit fragment | |
CN104618260A (zh) | 一种基于udp的可配策略数据传输方法 | |
WO2023045454A1 (zh) | 蓝牙通信方法、通信设备及系统 | |
CN111836209A (zh) | 提升LoRa单通道数据传输效率的方法及系统 | |
WO2017004814A1 (zh) | 一种用户及网络侧设备、确定对数据包的处理模式的方法 | |
TWI384826B (zh) | 無線通訊系統提升傳輸效率的方法及其相關裝置 | |
CN114928791A (zh) | 多点到单点的无线音频传输方法、系统和可读存储介质 | |
CN105242908A (zh) | 一种基于串口硬流控的甚高频电台大文件传输方法 | |
US20230412321A1 (en) | Data transmission methods and devices | |
WO2024016161A1 (zh) | 一种数据传输方法及装置 | |
WO2020238638A1 (zh) | 一种数据传输方法及装置 | |
US20240146443A1 (en) | Communication method, apparatus, and device, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22891500 Country of ref document: EP Kind code of ref document: A1 |