WO2023045454A1 - 蓝牙通信方法、通信设备及系统 - Google Patents

蓝牙通信方法、通信设备及系统 Download PDF

Info

Publication number
WO2023045454A1
WO2023045454A1 PCT/CN2022/101053 CN2022101053W WO2023045454A1 WO 2023045454 A1 WO2023045454 A1 WO 2023045454A1 CN 2022101053 W CN2022101053 W CN 2022101053W WO 2023045454 A1 WO2023045454 A1 WO 2023045454A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
signal data
bluetooth
standard
data
Prior art date
Application number
PCT/CN2022/101053
Other languages
English (en)
French (fr)
Inventor
黄勤
石惠芳
徐金苟
Original Assignee
上海山景集成电路股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海山景集成电路股份有限公司 filed Critical 上海山景集成电路股份有限公司
Publication of WO2023045454A1 publication Critical patent/WO2023045454A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

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 bluetooth communication method includes: performing fragmentation and compression coding on the first signal data, so as to construct a corresponding data transmission window Each first signal data packet; construct each first standard bluetooth packet; the effective information length in the first standard bluetooth packet is not less than the size of a single first signal data packet; for each of the first standard bluetooth packets, respectively Detect whether each described first standard bluetooth packet is a command class bluetooth packet, if so, then directly send the first standard bluetooth packet; if not, then replace the effective information in the first standard bluetooth packet with the same
  • the first signal data packet corresponding to the data sending window is sent later.
  • the implementation of replacing the valid information in the first standard Bluetooth packet with the first signal data packet corresponding to the same data sending window includes: when the When the first standard bluetooth packet is a classic bluetooth packet, all or part of the content in the packet header and/or PDU in the first standard bluetooth packet is replaced with the first signal data packet corresponding to the same data sending window or when the first standard bluetooth package is a low-power bluetooth package, then replace all or part of the content in the header, payload, CRC and MIC in the first standard bluetooth package with the same data transmission window corresponding The first signal data packet.
  • each first signal data packet corresponding to each data transmission window includes: based on an independently set first signal data packet grouping unit, in each data transmission window, constructing the first signal data packet corresponding to the data transmission window Each of the first signal data packets corresponding to the data sending window.
  • the constructing each of the first standard Bluetooth packets includes: constructing the first standard Bluetooth packets in each data sending window.
  • the information data used to construct the first standard bluetooth package is loaded through an array, then the construction of each of the first standard bluetooth packages includes: inputting information data into the array, using 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: reducing the frequency of sending command-type Bluetooth packets in the link while constructing each of the first standard Bluetooth packets.
  • the detection of whether each of the first standard Bluetooth packets is a command type Bluetooth packet further includes: storing the unsent first signal data packet until the detected When the first standard Bluetooth packet is a non-command Bluetooth packet, the process of reissuing the first signal data packet is performed.
  • the reissue process includes: superimposing the first signal data packet that has not been sent before the current data transmission window to the first signal data corresponding to the current data transmission window to form the The new first signal data corresponding to the current data sending window; and rebuilding a new first signal data packet based on the new first signal data, and sending the new first signal data packet.
  • the reissue process includes: based on the size of the unsent first signal data packet and the number of data windows to be reissued, determining the new first data window corresponding to each of the data windows to be reissued A signal data size; superimposing the unsent first signal data packet into the first signal data corresponding to the current data window to be reissued to form superimposed first signal data; based on the new first signal
  • the amount of data is large, extracting the previous data in the superimposed first signal data as the new first signal data corresponding to the current data window to be reissued, and reconstructing a new first signal based on the new first signal data Data packet, sending the new first signal data packet; and, using the remaining data in the superimposed first signal data except the previous data as a new first signal data packet that has not yet been sent, and
  • the reissue process is executed sequentially in the subsequent data window to be reissued until all the unsent first signal data are sent.
  • the implementation of reconstructing a new first signal data packet based on the new first signal data includes: superimposing the first signal data packet that has not been sent before the current data sending window In the first signal data corresponding to the current data sending window, form new first signal data; determine whether the size of the new first signal data is greater than the effective information size of the first standard bluetooth packet, if so, based on The original data compression rate obtains a new first signal data packet; if not, adjust the data compression rate, and compress the new first signal data based on the new data compression rate, so as to obtain the new first signal packets.
  • the present invention provides another bluetooth communication method, which is suitable for one end of a point-to-point link bidirectional connection;
  • the bluetooth communication method includes: receiving the first standard bluetooth packet sent by the other end; each of the first standard bluetooth The effective information part in the packet includes the first signal data packet; parse each of the first standard Bluetooth packets to obtain the corresponding first signal data packets; decode each of the first signal data packets to obtain First signal data corresponding to the first signal data packet.
  • the Bluetooth communication method further includes: performing fragmentation and compression encoding on the second signal data, so as to construct each second signal data packet corresponding to each second data transmission window; construct each second signal data packet; Two standard bluetooth packets; the effective information length in the second standard bluetooth packet is not less than the size of a single second signal data packet; for each of the second standard bluetooth packets, detect whether each of the second standard bluetooth packets is It is a command class bluetooth packet, if yes, then directly send the second standard bluetooth packet; if not, then replace the valid information in the second standard bluetooth packet with the same second data sending window corresponding to the Second signal packet.
  • the Bluetooth communication method further includes: performing retransmission detection on the first signal data packet in the received first standard Bluetooth packet, so as to obtain the detection of whether retransmission is required As a result, the detection result information is added to the second signal data packet, so that the other end determines whether to perform a retransmission process according to the detection result information in the second signal data packet.
  • the present invention provides another bluetooth communication device, which is suitable for point-to-point link communication.
  • the bluetooth communication device includes: a signal data grouping unit, which is used to segment and compress the input first signal data , to construct each first signal data packet corresponding to each data transmission window, and output each described first signal data packet to the packet replacement unit; the standard packet group packet unit is used to construct each first standard bluetooth packet, and Each of the first standard bluetooth packets is output to the packet replacement unit; wherein, the effective information length in the first standard bluetooth packet is not less than the size of a single first signal data packet; the packet replacement unit is used for respectively Detect whether the first standard bluetooth package is a command class bluetooth package, if so, then directly output the first standard bluetooth package to the sending unit; if not, then replace the valid information in the first standard bluetooth package with The first signal data packet corresponding to the same data sending window, and output the replaced first standard Bluetooth packet to the sending unit; the sending unit is configured to send each of the first standard Bluetooth packets.
  • the Bluetooth communication device further includes: a packet grouping control unit, configured to control the standard packet grouping unit to construct the first standard Bluetooth packet in each data sending window.
  • the Bluetooth communication device further includes: a signal data superposition unit, configured to store the unsent first signal data packet when detecting that the first standard Bluetooth packet is a command Bluetooth packet, until When it is detected that the first standard Bluetooth packet is a non-command Bluetooth packet, a process of reissuing the first signal data packet is performed.
  • a signal data superposition unit configured to store the unsent first signal data packet when detecting that the first standard Bluetooth packet is a command Bluetooth packet, until When it is detected that the first standard Bluetooth packet is a non-command Bluetooth packet, a process of reissuing the first signal data packet is performed.
  • the present invention provides another bluetooth communication device, which is suitable for point-to-point link communication, and the bluetooth communication device includes: a receiving unit for receiving each first standard bluetooth packet sent by the other end of the link; The effective information part in the first standard bluetooth packet contains the first signal data packet; the unpacking unit is used to decode each of the first standard bluetooth packets to obtain the first standard bluetooth packet contained in the first standard bluetooth packet A signal data packet, so as to obtain first signal data corresponding to the first signal data packet.
  • the bluetooth communication device further includes: a signal data grouping unit, configured to segment and compress the input second signal data, so as to construct each corresponding to each second data transmission window.
  • the second signal data packet, and each of the second signal data packets is output to the packet replacement unit;
  • the standard bluetooth packet grouping unit is used to construct each second standard bluetooth packet, and each of the second standard bluetooth packets is output To the packet replacement unit; wherein, the effective information length in the second standard bluetooth packet is not less than the size of a single second signal data packet;
  • the packet replacement unit is used to respectively detect whether the second standard bluetooth packet is command class bluetooth package, if yes, then directly output the second standard bluetooth package to the sending unit; if not, then replace the valid information in the second standard bluetooth package with the same second data transmission window corresponding to the second signal data packets, and output the replaced second standard Bluetooth packets to the sending unit;
  • the sending unit is configured to send each of the second standard Bluetooth packets.
  • the grouping control unit is used to control the standard bluetooth packet grouping unit to construct the second standard bluetooth packet in each of the second data sending windows; and the retransmission detection unit is used to performing retransmission detection on the first signal data packet in the first standard bluetooth packet, and adding the obtained detection result information to the second signal data packet, so that the other end according to the The detection result information in the second signal data packet determines whether to perform retransmission.
  • the present invention provides a bluetooth communication system in a fourth 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 as described in any one of the third aspect above, for transmitting the first signal data to the second bluetooth communication device; the second bluetooth communication The device is the Bluetooth communication device described in any one of the above third aspects, 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 the received signal data into a signal data packet, and replace the valid information in each standard Bluetooth packet with the data corresponding to the same data transmission window.
  • Send the signal data packet information so that the receiving end obtains the signal data packet contained in it by parsing the received standard bluetooth packet, and then obtains the corresponding signal data, so that more Bluetooth packets can be loaded in the standard bluetooth packet
  • the signal data makes full use of the information carrying capacity of the standard Bluetooth package, and improves the transmission efficiency of the standard Bluetooth package to the signal data, thereby reducing the signal delay in the communication process.
  • Fig. 1 is a schematic flow chart of the Bluetooth communication method provided in an embodiment in the present invention
  • the package content in the first standard bluetooth package is replaced with the mode of the first signal data package;
  • the packet content in the first standard bluetooth packet is replaced with the mode of the first signal data packet;
  • Fig. 4 utilizes the schematic diagram of master-slave device one-way data transmission in one embodiment of described bluetooth communication method in the present invention (there is command class interaction);
  • FIG. 5 is a schematic flow chart of the bluetooth communication method provided by the present invention in this embodiment.
  • the present invention utilizes the bluetooth communication method to carry out the schematic diagram of two-way data transmission of master-slave equipment in an embodiment (there is no command class interaction);
  • Fig. 7 the present invention utilizes described bluetooth communication method to carry out the synoptic diagram of two-way data transmission of master-slave equipment in an embodiment (there is command class interaction);
  • Fig. 8 is a schematic diagram of master-slave device interaction (retransmission detection) in an embodiment of the present invention using the Bluetooth communication method;
  • FIG. 9 is a schematic structural diagram of an embodiment of the Bluetooth communication device provided by the present invention.
  • FIG. 10 is a schematic structural diagram of another bluetooth communication device in an embodiment provided by the present invention.
  • FIG. 11 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 use between a bluetooth master device (hereinafter referred to as master device) and a bluetooth slave device (hereinafter referred to as slave device)
  • master device a bluetooth master device
  • slave device a bluetooth slave device
  • the master device and the slave device establish a point-to-point link connection based on a standard Bluetooth protocol and a custom Bluetooth protocol; wherein, the custom Bluetooth protocol includes mutually adapted custom packet rules and custom unpack rules;
  • the self-defined packing rules are used to compress and encode the signal data to be transmitted to form corresponding signal data packets; the self-defined unpacking rules are used to decode the signal data packets to obtain 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 size of the first time slice, and according to the organization mode of each part of the signal data packet included in the custom packet rule , to form each of the first signal data packets arranged based on timing; a single first signal data packet corresponds to a single data sending window in timing.
  • the first time slice is the length of acquisition time corresponding to the signal data of a single transmission, which is preset in the custom Bluetooth protocol, and is positively correlated with the link communication delay; that is, the first time slice The larger the , the longer the communication delay in the link.
  • the size of the first time slice is the duration of n time 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 may be 1.25ms.
  • 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 package based on a standard Bluetooth protocol
  • the packet type of the first standard Bluetooth packet is preset in the standard Bluetooth protocol, which is in the Bluetooth packet
  • the valid information length is not less than the Bluetooth packet type of the size of the first signal data packet to be sent in the first time slice, so as to ensure that a single standard Bluetooth packet can carry the signal data to be sent.
  • the effective information length of the first standard Bluetooth packet is greater than the size of the first signal data packet to be sent in a single first time slice, so as to reserve a certain information bearing space for retransmission of the first signal data packet or reissue process.
  • the size of the signal data to be sent in a single first time slice is determined, and then the type of the standard Bluetooth packet is determined.
  • the standard bluetooth protocol also includes a type of command bluetooth packet, such as DM1, used to meet the link command interaction requirements.
  • control the master device to construct and send the first standard bluetooth packet in each data sending window packet, so as to ensure that the first standard Bluetooth packet can be sent in each data sending window, so as to ensure that each of the first signal data packets can be transmitted in each data sending window.
  • the specific implementation of constructing and sending the first standard Bluetooth packet in each data sending window includes: the master device constructs the first standard Bluetooth packet based on information data loaded in the form of an array.
  • a standard bluetooth packet and the master device generates and inputs 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; wherein, The information data is any data used to construct the first standard Bluetooth package.
  • the master device When the master device detects that the depth of the information data in the array is greater than the length of the payload in the standard bluetooth packet, it extracts the information data with the same length as the payload, and based on the standard bluetooth protocol, converts the data in the array to
  • the information data group package is the standard bluetooth package.
  • the detection and packet replacement process includes: detecting whether the type of the single first standard bluetooth packet is a command class bluetooth packet, if yes, then directly sending the first standard bluetooth packet; if not, then sending the first standard bluetooth packet The valid information in the packet is replaced with the first signal data packet corresponding to the same data sending window to form a new first standard Bluetooth packet.
  • the valid information is a data part in the first standard bluetooth packet structure where the packet content can be replaced.
  • the first standard bluetooth packet when the first standard bluetooth packet is a classic bluetooth packet, as shown in FIG. 2 , replace all or part of the contents of the packet header and/or PDU in the first standard bluetooth packet.
  • the first standard bluetooth package is a low-power bluetooth package, as shown in Figure 3, replace all or part of the header, payload and CRC in the first standard bluetooth package; optional Yes, when the Bluetooth low energy package also includes the MIC, it also includes replacing all or part of the content in the header, payload, CRC, and MIC.
  • the master device sends the new first standard bluetooth package in the data sending window, and the slave device receives the new first standard bluetooth package, and obtains the first standard bluetooth package contained in the first standard bluetooth package.
  • a signal data packet ; and parsing the first signal data packet based on the self-defined unpacking rule to obtain the corresponding first signal data.
  • the Bluetooth communication method executes the step S13, it also includes:
  • the process of resending the unsent first signal data packet is performed.
  • the process of reissuing the first signal data packet includes: superimposing the unsent first signal data packet into the first signal data corresponding to the subsequent data transmission window, so that in the subsequent data transmission window according to The superimposed first signal data reconstructs a new first signal data packet, and sends the new first signal data packet.
  • the execution method of the reissue process includes: superimposing the unsent first signal data packet into the first signal data to be sent to form new first signal data; determining the new first signal data Whether the size of the first signal data is greater than the effective information size of the first standard bluetooth packet, if yes, then directly obtain a new first signal data packet according to the original data compression rate; if not, then according to the new first signal data packet A signal data size, and the data size of the valid information in the first standard bluetooth packet, determine the new data compression rate of the first signal data, the new data compression rate is greater than the previous data compression rate; based on the new data The compression rate compresses the new first signal data to obtain a new first signal data packet.
  • the original data compression rate is the data compression rate used in performing fragmentation and compression coding on the first signal data when performing the step S11.
  • FIG. 4 is a schematic diagram showing command interaction requirements in the link.
  • device 1 sends a command packet DM1 to device 2, then the contents of the DM1 packet will not be replaced, and the untransmitted first signal data in slot k+2 Packet L2 is superimposed into the signal data to be transmitted in slot k+4 in the next data transmission window to form new signal data in slot k+4; then according to the size of the new signal data and the standard bluetooth packet
  • the size of the effective information determines the data compression rate of the new signal data in slot k+4, and based on the new data compression rate, performs data compression on the new signal data in slot k+4 to obtain a new Signal data packet; send the new signal data packet in slot K+4; that is, in slot K+4, the content corresponding to the valid information in the first standard Bluetooth packet sent by device 1 to device 2 is replaced Into L2+L3.
  • the execution method of the reissue process includes: based on the size m of the first signal data that has not yet been sent, and the number n of data windows to be reissued, determine the corresponding reissue in each data window to be reissued.
  • the size of the signaled data volume is m/n, and then it is determined that the data volume of the new first signal corresponding to each of the data windows to be reissued is X+m/n; wherein, X is the first signal to be sent in a single data window
  • the original size of the data volume superimposing the unsent first signal data into the current data window to be reissued to form the superimposed first signal data; according to the size of the new first signal data volume, obtain the superposition
  • the previous segment data in the rear first signal data is used as the new first signal data corresponding to the current data window to be reissued; whether the size of the new first signal data is greater than the effective information size of the first standard bluetooth packet is determined, If yes, then directly obtain a new first signal data packet according to the original data compression rate; if no, then according to the data size of the new first signal and the data size of the effective information in the first standard bluetooth packet, determining a new data compression ratio; compressing the new first signal data based on the new data
  • the preceding data is the data of the superimposed first signal data which is located in the front time sequence and whose data volume is X+m/n.
  • n is not greater than 3.
  • the first signal data packet grouping unit in the master device is a grouping unit independent of standard Bluetooth packets;
  • the grouping unit of the first signal data packet and the grouping unit of the standard bluetooth packet can be the same or different; then the bluetooth communication method also includes:
  • the step S11 When executing the step S11, according to the self-defined Bluetooth protocol and based on the grouping unit of the first signal data packet, construct the first signal data corresponding to the data transmission window in each data transmission window package, to be implemented in the data sending window, if it is detected that the first standard bluetooth package is not a command bluetooth package, the package content of the first standard bluetooth package is replaced by the The first signal data packet; compared with the prior art according to the standard Bluetooth protocol, and based on the existing standard Bluetooth packet grouping unit for grouping, it will cause the master device to start execution at least 2 time slots in advance Scheduling preparation, in this embodiment, based on the self-defined Bluetooth protocol and the first signal packet grouping unit, the corresponding first signal data packet is constructed in each data transmission window, which can avoid due to advance scheduling and grouping. Communication delays caused by packets.
  • the Bluetooth communication method further includes: reducing The transmission frequency of command Bluetooth packets in the link is to increase the transmission frequency of non-command Bluetooth packets, and by replacing the packet content in the first standard Bluetooth packet, real-time transmission of signal data is realized and communication delay is reduced.
  • the frequency of sending the command-type Bluetooth packets in the link is reduced.
  • steps S11 to S13 are executed simultaneously during the entire transmission process of signal data, thereby reducing the delay of signal data in communication transmission; and, in other embodiments, it is also possible to The above steps can be modified, for example: step S11 and step S12 can be executed synchronously, or step S11 can be delayed after step S12, which is not limited here.
  • 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 method The execution subject is a slave device, that is, the slave device is the second device, and the master device is the second device.
  • 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 master device and the slave device establish a point-to-point link connection based on a standard Bluetooth protocol and a custom Bluetooth protocol; wherein, the custom Bluetooth protocol is the same as the custom Bluetooth protocol in Embodiment 1, and is not described here Let me repeat.
  • the master device transmits the first signal data to the slave device in the first data sending window, and the slave device transmits the second signal data to the master device in the second data sending window.
  • FIG. 5 is a schematic flowchart of another Bluetooth communication method in this embodiment.
  • the bluetooth communication method includes the following steps:
  • the master device slices and compresses the first signal data according to the self-defined packet rule and according to the first time slice size, so as to form each first signal data packet; and, the slave The device compresses and encodes the second signal data according to the self-defined packet rule and according to the size of the second time slice to form each second signal data packet; each of the first data packets and each of the first The data sending windows correspond to each other; each of the second data packets corresponds to each of the second data sending windows;
  • 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 size of the first time slice and the second time slice may be 1.25ms.
  • the master device constructs each first standard Bluetooth packet based on the standard Bluetooth protocol in each of the first data sending windows, and sends each of the first standard Bluetooth packets after performing a detection and packet replacement process, so that The slave device obtains the corresponding first signal data according to the received first signal data packets in each of the first standard Bluetooth packets; and, the slave device receives the first standard Bluetooth In the second data sending window after the packet, build a second standard Bluetooth packet based on the standard Bluetooth protocol, and send each second standard Bluetooth packet after performing a detection and packet replacement process, so that the master device according to the received The second signal data packet in the second standard bluetooth packet obtains the corresponding second signal data.
  • the master device constructs each first standard bluetooth packet in each first data sending window in the same manner as the specific implementation of step S12 in Embodiment 1;
  • the implementation of a standard Bluetooth packet detection and packet replacement process is the same as the specific implementation of step S13 in Embodiment 1, and will not be repeated here.
  • the slave device parses the first standard bluetooth packet after receiving it, so as to obtain the first signal data packet contained in the valid information part in the first standard bluetooth packet; based on the custom
  • the unpacking rule is to analyze the first signal data packet to obtain the corresponding first signal data; and, within the second data sending window after receiving the first standard bluetooth packet, based on the
  • the standard bluetooth protocol constructs each second standard bluetooth packet, and performs a detection and packet replacement process on each second standard bluetooth packet before sending it.
  • the implementation manner in which the slave device constructs each of the second standard Bluetooth packets is the same as the specific implementation manner in which the master device constructs each of the first standard Bluetooth packets;
  • the embodiment of the detection and packet replacement process performed by the second standard Bluetooth packet is the same as the specific implementation manner of the detection and packet replacement process performed by the master device on the first standard Bluetooth packet, that is, to detect a single second standard Bluetooth packet Whether the type of package is a command bluetooth package, if so, then directly send the second standard bluetooth package; if not, then replace the valid information in the second standard bluetooth package with the same corresponding second data sending window
  • the second signal data packet is used to form a new second standard Bluetooth packet.
  • the master device After receiving the second standard bluetooth packet, the master device obtains the second signal data packet contained in the second standard bluetooth packet; and processes the second signal data based on the custom unpacking rule The packet is parsed to obtain the corresponding second signal data.
  • the master device (device 1) on the link sends a normal data packet 3DH1 packet to the slave device (device 2), and Replace the packet content of 3DH1 with the first signal data packet L1; in the next slot K+1, the slave device (device 2) replies with the 3DH1 packet to the master device (device 1), and replace the packet content of 3DH1 with the second signal data Packet R1; at slot K+2, the master device (device 1) continues to send 3DH1 packets to the slave device (device 2), and replaces the packet content of 3DH1 with the first signal data packet L2, repeating the process.
  • the second standard Bluetooth packet is a command type Bluetooth packet
  • the second standard Bluetooth packet is directly sent, and the second signal data packet that has not been sent is stored at the same time, until the second standard Bluetooth packet is detected
  • execute the reissue process of the second signal data packet executes the reissue process of the second signal data packet; the reissue process of the second signal data packet is the same as the reissue process of the first signal data packet, and will not be repeated here repeat.
  • the master device (device 1) when receiving the interactive command packet DM1 sent by the slave device (device 2) at slot K+1, it will reply the DM1 packet at slot K+2; similarly, the time slot slot K+2 Store the first signal data packet L2 that has not yet been sent out, and reissue the first signal data packet L2 that has not been sent before when it reaches slot K+4, that is, the master device (device 1) at slot K+4
  • the valid information content of the first standard bluetooth packet sent to the slave device (device 2) is replaced by L2+L3.
  • the master device in order to improve the real-time performance of signal data transmission and reduce communication delay, further, the master device includes a first signal data packet grouping unit, and the slave device includes a second signal data packet The grouping unit of the packet; the grouping unit of the first signal data packet and the grouping unit of the second signal data packet are all independent of the grouping unit of the standard bluetooth packet; the bluetooth communication method also includes: executing In the step S21, the master device constructs the first signal data packet corresponding to the first data transmission window in each of the first data transmission windows through the first signal data packet grouping unit , and the slave device constructs the second signal data packet corresponding to the second data transmission window in each of the second data transmission windows through the grouping unit of the second signal data packet; compared to In the prior art, according to the standard Bluetooth protocol, and based on the existing standard Bluetooth packet grouping unit, the grouping will cause the master device to start scheduling preparations at least 2 time slots in advance. In this embodiment, based on the The above-mentioned custom Bluetooth protocol and an independent data packet
  • grouping unit of the first signal data packet and the grouping unit of the standard Bluetooth packet may be the same or different; and the grouping unit of the second signal data packet is the same as that of the standard Bluetooth
  • the package unit of the package can be the same or different.
  • the bluetooth communication method also includes:
  • the frequency of sending the command-type Bluetooth packets in the link is reduced.
  • 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, that is, when the step S22 in the embodiment 2 is executed, it also includes: after the slave device receives the first standard bluetooth packet in the first data sending window, the receiving Decoding the received first standard bluetooth packet, performing retransmission detection on the first signal data packet obtained after decoding, and adding the obtained detection result information to the second signal corresponding to the second data sending window data packet, so that the master device, in the second data sending window, determines whether in the next first data sending window according to the detection result information in the second signal data packet obtained by parsing Executing the retransmission process of the first signal data packet; and/or, the master device decodes the received second standard Bluetooth packet within the second data sending window, and decodes the received Perform retransmission detection on the second signal data packet, and add the obtained detection result information to the first signal data packet corresponding
  • the retransmission process of the first signal data packet is the same as the reissue process of the first signal data packet in Embodiment 2, which will not be repeated here.
  • the detection result information includes two kinds of information: retransmission required and retransmission not required.
  • FIG. 8 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 standard Bluetooth packet R1 sent from the slave device (device 2) to the master device (device 1) contains the information received by the slave device (device 2) in slot K
  • the first detection result of whether the first standard bluetooth packet L1 needs to be retransmitted the example in the figure is no retransmission (ACK); then the master device (device 1) receives the second standard bluetooth packet R1, and obtains the Described first detection result, and carry out retransmission detection equally to this second standard bluetooth packet, obtain the second detection result, then in slot K+2, master equipment (equipment 1) continues to send from equipment (equipment 2)
  • the first standard bluetooth packet L2, which contains the second detection result; receive the first standard bluetooth packet L2 from the device (device 2), obtain the second detection result information therein after decoding, and the first standard
  • the Bluetooth packet L2 performs retransmission detection to obtain a new first detection result; then the second standard Bluetooth packet R2 is sent in slot K+3, which contains the new first detection result.
  • the master device (device 1) When in slot K+3, the master device (device 1) loses the second standard Bluetooth packet R2 sent by the slave device (device 2) in slot K+2 when receiving, then in slot K+4, the master device
  • the first detection result contained in the first standard bluetooth packet L2 sent by (device 1) needs to be retransmitted (NAK), then in slot K+5, the second lost before from the device (device 2)
  • NAK NAK
  • the second signal data packet corresponding to the standard Bluetooth packet R2 is resent within the current second data sending window.
  • the Bluetooth communication method includes another retransmission method, which is a fixed number of retransmission method.
  • the number of retransmissions is 2.
  • the master device sends the same first standard bluetooth packet L1 in two adjacent first data sending windows, such as slot K and slot K+2, and the same first standard bluetooth packet two As long as one of the times is received correctly by the slave device, the data will be used without retransmission. If the two times are incorrect, the packet will be discarded.
  • the retransmission detection is performed on the standard Bluetooth 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 by standard Bluetooth packet detection and resending methods.
  • 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-defined Bluetooth protocol includes self-defined packing rules and unpacking rules; the self-defining packing rules are used to compress and encode signal data to form corresponding signal data packets; then the self-defining unpacking The rules are used to decode signal data packets to obtain corresponding signal data.
  • the Bluetooth communication device 4 includes: a signal data grouping unit 41 , a standard Bluetooth packet grouping unit 42 , a packet replacement unit 43 and a sending unit 44 .
  • the signal data grouping unit 41 is used for segmenting and compressing the input first signal data according to the preset first time slice size to form each first signal data packet, and The first signal data packet is output to the packet replacement unit 43;
  • each of the first signal data packets corresponds to each data sending window.
  • the signal data grouping unit 41 is configured to be implemented in each data sending window, and construct each of the first signal data packets corresponding to the data sending window.
  • the standard bluetooth packet grouping unit 42 is used to construct each first standard bluetooth packet based on the standard bluetooth protocol, and output each of the first standard bluetooth packets to the packet replacement unit; wherein, the first standard bluetooth The effective information length in the packet is not less than the size of a single said first signal data packet;
  • the implementation manner of this process is the same as the implementation manner of constructing each of the first standard Bluetooth packages in the above-mentioned embodiment 1, and will not be repeated here.
  • the packet replacement unit 43 is used to detect whether the first standard bluetooth packet is a command class bluetooth packet in each data sending window, and if so, the first standard bluetooth packet is not processed and is directly output to the Described sending unit 44; If not, then the effective information in described first standard bluetooth packet is replaced with corresponding first signal data packet, described first standard bluetooth bag after replacement is output to described sending unit 44;
  • the sending unit 44 is configured to send each of the first standard Bluetooth packets.
  • the bluetooth communication device also includes:
  • Signal data superposition unit 45 used in each first data sending window, when detecting that the first standard bluetooth packet is a command class bluetooth packet, then save the first signal data packet that has not yet been sent in the current data sending window , until it is detected that the first standard bluetooth packet is a non-command type bluetooth packet, the process of reissuing the first signal data packet is executed.
  • the reissue process of the first signal data packet includes: superimposing the first signal data packet that has not been sent before into the first signal data corresponding to the subsequent data transmission window, so that the signal data packet unit 41 Construct a new first signal data packet according to the superimposed first signal data.
  • the signal data superposition unit 45 superimposes the first signal data packet that has not been sent before into the corresponding first signal data in the subsequent data transmission window to form a new first signal data packet in the subsequent data transmission window.
  • the implementation manner of a signal data packet is the same as the implementation manner in the above-mentioned embodiment 1, and will not be repeated here.
  • the bluetooth communication device also includes:
  • the grouping control unit 46 is configured to control the standard packet grouping unit to construct the first standard Bluetooth in each data sending window.
  • 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 as to Make the standard bluetooth packet grouping unit 42 based on the standard bluetooth protocol, pack the input information data into each of the first standard bluetooth packets, and send them out through the sending unit, so as to ensure that in each data sending window Both implement the first standard bluetooth packet transmission.
  • each unit cooperates to execute the bluetooth communication method as described in the above-mentioned embodiment 1, and transmits the received first signal data to another link communication by replacing the content of the standard bluetooth packet.
  • the device side 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 one end of the two-way communication of the point-to-point link, and the link is based on the standard bluetooth protocol and the custom bluetooth protocol Construct.
  • the bluetooth device at the other end sends the first signal data to the bluetooth communication device in the first data sending window; the bluetooth communication device sends the second signal data to the bluetooth device at the other end in the second data sending window.
  • the Bluetooth communication device 5 includes: a receiving unit 51, an unpacking unit 52, a signal data grouping unit 53, a standard Bluetooth packet grouping unit 54, a packet replacement unit 55 and a sending unit 56;
  • the receiving unit 51 is configured to receive each first standard bluetooth packet sent by the other end in the link; the effective information part in the first standard bluetooth packet includes the first signal data packet;
  • the first standard bluetooth packet is the bluetooth packet sent by the other end in each first data sending window; and, the first signal data packet is the second pair input by the other end
  • a signal data is constructed after being segmented and compressed according to the first time slice size, and each of the first signal data packets corresponds to each of the first data sending windows.
  • the unpacking unit 52 is used to decode each of the first standard bluetooth packets to obtain the first signal data packet contained in the first standard bluetooth packet, thereby obtaining the first signal data packet corresponding to the first signal data packet. signal data.
  • the signal data grouping unit 53 is used for compressing and encoding the input second signal data according to the size of the second time slice to form each second signal data packet, and each of the second signal data packets output to said packet replacement unit;
  • each of the second signal data packets corresponds to each of the second data sending windows; 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 signal data packet .
  • the signal data grouping unit 53 is configured to be implemented in each of the second data sending windows, and construct each of the second signal data packets corresponding to the second data sending windows.
  • the standard bluetooth packet grouping unit 54 is used to construct a second standard bluetooth packet based on the standard bluetooth protocol in each of the second data sending windows, and output each of the second standard bluetooth packets to the packet replacement unit 55; Wherein, the effective information length in the second standard Bluetooth packet is not less than the size of a single second signal data packet;
  • the packet replacement unit 55 is used to detect whether the second standard bluetooth packet is a command class bluetooth packet in each of the second data sending windows, and if so, does not process the second standard bluetooth packet, and directly Output to the sending unit; if no, then replace the valid information in the second standard bluetooth packet with the corresponding second signal data packet, and output the replaced second standard bluetooth packet to the sending unit 56 ;
  • the sending unit 56 is configured to send each of the second standard Bluetooth packets.
  • the bluetooth communication device 5 also includes:
  • the signal data superposition unit 57 is used in each of the second data sending windows.
  • the second standard bluetooth packet is a command class bluetooth packet
  • the second data that has not yet been sent in the current second data sending window is saved.
  • the process of reissuing the second signal data packet is the same as the process of reissuing the first signal data packet in Embodiment 4, which will not be repeated here.
  • the grouping control unit 58 is used to control the standard bluetooth packet grouping unit 53 to construct the second standard bluetooth packet based on the standard bluetooth protocol in each of the second data sending windows;
  • the information data used to construct the second standard bluetooth package is data loaded in an array; the information data can be any data;
  • the second standard bluetooth package, then the group package control unit 58 generates the information data into the array, and makes the depth of the array greater than the payload length in a single second standard bluetooth package at any time, So that the standard bluetooth packet grouping unit 53 can package the input information data into each second standard bluetooth packet based on the standard bluetooth protocol, and send it through the sending unit, so as to ensure that each of the second standard bluetooth packets
  • the second standard bluetooth packet transmission is implemented in both data sending windows.
  • the retransmission detection unit 59 is configured to perform retransmission detection on the first signal data packet obtained by decoding after decoding the received first standard Bluetooth packet, and add the obtained detection result information to the second data in the second signal data packet corresponding to the sending window, so that the other end determines whether it is within the next first data sending window through the detection result information obtained after decoding the second signal data packet Executing a retransmission process of the first signal data 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 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.
  • both the first Bluetooth communication device and the second Bluetooth communication device use the Bluetooth communication device in Embodiment 5 above to realize the first Bluetooth communication device and the second Bluetooth communication device communication between them.
  • the bluetooth communication method, communication equipment and system replace the package content in the standard bluetooth package constructed with signal data, and send the standard bluetooth package containing the signal data to make the receiving end pass Analyzing the received standard bluetooth packet, obtaining the signal data contained therein, so as to make full use of the information carrying capacity of the standard bluetooth packet for signal data transmission, thereby reducing the delay of the signal in the communication process; and, directly by independent
  • the signal data packet grouping unit is used to group the signal data packets, thereby avoiding the delay of data packet transmission caused by the existing bluetooth scheduling, further improving the signal transmission efficiency, and reducing the communication delay;
  • the present invention provides The method can make full use of the existing and common standard bluetooth protocol without rebuilding a complete bluetooth protocol, which not only saves the development cost and improves the development efficiency, but also has better adaptability and scalability.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明提供一种蓝牙通信方法、通信设备及系统;其中,所述方法包括:对第一信号数据进行分片和压缩编码,以构建与各数据发送窗口对应的各第一信号数据包;构建各第一标准蓝牙包,并分别检测各所述第一标准蓝牙包是否为命令类蓝牙包,如是,则直接发送该第一标准蓝牙包;如否,则将该第一标准蓝牙包中的所述有效信息替代为于同一数据发送窗口对应的所述的第一信号数据包后发送,以使链路中另一端通过解码所述第一标准蓝牙包获取对应的所述第一信号数据;本发明充分利用了标准蓝包的信息承载能力,提高了标准蓝包中对信号数据的传输效率,从而可以提高信号传输的效率,减少通信延迟。

Description

蓝牙通信方法、通信设备及系统 技术领域
本发明属于无线通信技术领域,更具体地涉及一种蓝牙通信方法、通信设备及系统。
背景技术
目前,蓝牙通信技术已成为无线通信领域内的主要通信方式之一,具有功耗低、通信距离远等优点。然而,现有的蓝牙通信技术在信号交互过程中往往会存在一定的延迟,延迟时间为几十毫秒甚至100毫秒以上,因而,无法满足高实时和低延时的信号传输要求,例如音视频的通信应用,尤其是需要音视频同步的无线音频应用,如卡拉OK的无线话筒,游戏耳机等。
鉴于现有的蓝牙通信中存在延时大的问题,目前已提出了较多低延时音频交互的方案,然后,这些方案往往基于应用场景各自开发适配的无线控制方法/系统,与目前普遍使用的标准蓝牙协议等通用协议并不兼容,导致开发的无线控制方法/系统的兼容性不足,可适用范围窄,且不同控制方法/系统下的蓝牙设备无法实现连接和通信,以及存在开发成本高、周期长等缺点。
发明内容
鉴于以上现有技术中存在的缺点,本发明的目的在于提供一种蓝牙通信方法、通信设备及系统,用于解决现有的蓝牙通信方法存在延迟较大,无法适用于高实时、低延时的应用场景等问题。
为实现上述目的及其他相关目的,本发明于第一方面提供一种蓝牙通信方法,所述蓝牙通信方法包括:对第一信号数据进行分片和压缩编码,以构建与各数据发送窗口对应的各第一信号数据包;构建各第一标准蓝牙包;所述第一标准蓝牙包中的有效信息长度不小于单个所述第一信号数据包大小;对于各所述第一标准蓝牙包,分别检测各所述第一标准蓝牙包是否为命令类蓝牙包,如是,则直接发送该第一标准蓝牙包;如否,则将所述第一标准蓝牙包中的所述有效信息替代为于同一数据发送窗口对应的所述第一信号数据包后进行发送。
于本发明一实施例中,所述将所述第一标准蓝牙包中的所述有效信息替代为于同一数据发送窗口对应的所述的第一信号数据包的实现方式,包括:当所述第一标准蓝牙包为经典蓝牙包时,则将所述第一标准蓝牙包中packet header和/或PDU中的全部或部分内容,替换为同一数据发送窗口对应的所述的第一信号数据包;或当所述第一标准蓝牙包为低功耗蓝牙包 时,则将所述第一标准蓝牙包中header、payload、CRC和MIC中的全部或部分内容,替换为同一数据发送窗口对应的所述的第一信号数据包。
于本发明一实施例中,所述构建与各数据发送窗口对应的各第一信号数据包,包括:基于独立设置的第一信号数据包组包单元,于各数据发送窗口中,构建与该数据发送窗口对应的各所述第一信号数据包。
于本发明一实施例中,所述构建各所述第一标准蓝牙包,包括:于各数据发送窗口中,均构建所述第一标准蓝牙包。
于本发明一实施例中,用于构建所述第一标准蓝牙包的信息数据通过数组装载,则所述构建各所述第一标准蓝牙包,包括:输入信息数据至所述数组中,使所述数组的深度于任意时刻均大于单个所述第一标准蓝牙包中的payload长度。
于本发明一实施例中,所述蓝牙通信方法还包括:于所述构建各所述第一标准蓝牙包的同时,降低链路中命令类蓝牙包的发送频次。
于本发明一实施例中,所述检测各所述第一标准蓝牙包是否为命令类蓝牙包,如是,则所述蓝牙通信方法还包括:存储未发送的第一信号数据包,直至检测所述第一标准蓝牙包为非命令类蓝牙包时,执行所述第一信号数据包的补发过程。
于本发明一实施例中,所述补发过程包括:将当前数据发送窗口之前尚未发送的所述第一信号数据包叠加至所述当前数据发送窗口对应的第一信号数据中,以形成所述当前数据发送窗口对应的新的第一信号数据;并基于该新的第一信号数据重新构建新的第一信号数据包,并发送所述新的第一信号数据包。
于本发明一实施例中,所述补发过程包括:基于尚未发送的所述第一信号数据包的大小,和待补发数据窗口数量,确定各所述待补发数据窗口对应新的第一信号数据量大小;将所述尚未发送的第一信号数据包叠加至当前待补发数据窗口对应的第一信号数据中,形成叠加后的第一信号数据;基于所述新的第一信号数据量大小,提取所述叠加后的第一信号数据中的前段数据,作为当前待补发数据窗口对应新的第一信号数据,并基于该新的第一信号数据重新构建新的第一信号数据包,发送所述新的第一信号数据包;以及,将所述叠加后的第一信号数据中除所述前段数据外的剩余数据,作为新的尚未发送第一信号数据包,并于后续的所述待补发数据窗口中依次执行该补发过程,至所述尚未发送的第一信号数据全部发送完。
于本发明一实施例中,所述基于该新的第一信号数据重新构建新的第一信号数据包的实现方式,包括:将当前数据发送窗口之前尚未发送的所述第一信号数据包叠加至当前数据发送窗口对应的第一信号数据中,形成新的第一信号数据;判定该新的第一信号数据大小是否 大于所述第一标准蓝牙包的所述有效信息大小,如是,则基于原数据压缩率获得新的第一信号数据包;如否,则调整数据压缩率,并基于该新的数据压缩率对所述新的第一信号数据进行压缩,以获得新的所述第一信号数据包。
本发明于第二方面提供另一种蓝牙通信方法,适用于点对点链路双向连接中的一端;所述蓝牙通信方法包括:接收另一端发送的第一标准蓝牙包;各所述第一标准蓝牙包中的有效信息部分包含第一信号数据包;解析各所述第一标准蓝牙包,以获得对应的各所述第一信号数据包;对各所述第一信号数据包进行解码,以获得与所述第一信号数据包对应的第一信号数据。
于本发明一实施例中,所述蓝牙通信方法,还包括:对第二信号数据进行分片和压缩编码,以构建与各第二数据发送窗口对应的各第二信号数据包;构建各第二标准蓝牙包;所述第二标准蓝牙包中的有效信息长度不小于单个所述第二信号数据包大小;对于各所述第二标准蓝牙包,分别检测各所述第二标准蓝牙包是否为命令类蓝牙包,如是,则直接发送该第二标准蓝牙包;如否,则将该第二标准蓝牙包中的所述有效信息替代为于同一所述第二数据发送窗口对应的所述第二信号数据包。
于本发明一实施例中,所述蓝牙通信方法,还包括:对接收到的所述第一标准蓝牙包中的所述第一信号数据包进行重传检测,以获得是否需要重传的检测结果,并将所述检测结果信息添加至所述第二信号数据包中,以使所述另一端根据所述第二信号数据包中的所述检测结果信息,确定是否执行重传过程。
本发明于第三方面提供另一种蓝牙通信设备,适用于点对点链路通信中,所述蓝牙通信设备包括:信号数据组包单元,用于将输入的第一信号数据进行分片和压缩编码,以构建与各数据发送窗口对应的各第一信号数据包,并将各所述第一信号数据包输出至包替换单元;标准包组包单元,用于构建各第一标准蓝牙包,并将各所述第一标准蓝牙包输出至所述包替换单元;其中,所述第一标准蓝牙包中的有效信息长度不小于单个所述第一信号数据包大小;包替换单元,用于分别检测所述第一标准蓝牙包是否为命令类蓝牙包,如是,则将所述第一标准蓝牙包直接输出至发送单元;如否,则将所述第一标准蓝牙包中的有效信息替换为同一数据发送窗口对应的所述第一信号数据包,并将替换后的所述第一标准蓝牙包输出至所述发送单元;发送单元,用于发送各所述第一标准蓝牙包。
于本发明一实施例中,所述蓝牙通信设备还包括:组包控制单元,用于控制所述标准包组包单元于各数据发送窗口中均构建所述第一标准蓝牙包。
于本发明一实施例中,所述蓝牙通信设备还包括:信号数据叠加单元,用于当检测所述第一标准蓝牙包为命令类蓝牙包时,存储未发送的第一信号数据包,直至检测所述第一标准蓝牙包为非命令类蓝牙包时,执行所述第一信号数据包的补发过程。
本发明于第三方面提供另一种蓝牙通信设备,适用于点对点链路通信中,所述蓝牙通信设备包括:接收单元,用于接收链路中另一端发送的各第一标准蓝牙包;所述第一标准蓝牙包中的有效信息部分中包含第一信号数据包;解包单元,用于解码各所述第一标准蓝牙包,以获得所述第一标准蓝牙包中包含的所述第一信号数据包,从而获得与所述第一信号数据包对应的第一信号数据。
于本发明一实施例中,所述蓝牙通信设备还包括:信号数据组包单元,用于将输入的第二信号数据进行分片和压缩编码,以构建与各第二数据发送窗口对应的各第二信号数据包,并将各所述第二信号数据包输出至包替换单元;标准蓝牙包组包单元,用于构建各第二标准蓝牙包,并将各所述第二标准蓝牙包输出至所述包替换单元;其中,所述第二标准蓝牙包中的有效信息长度不小于单个所述第二信号数据包大小;包替换单元,用于分别检测所述第二标准蓝牙包是否为命令类蓝牙包,如是,则将所述第二标准蓝牙包直接输出至发送单元;如否,则将所述第二标准蓝牙包中的有效信息替换为同一第二数据发送窗口对应的所述第二信号数据包,并将替换后的所述第二标准蓝牙包输出至所述发送单元;发送单元,用于发送各所述第二标准蓝牙包。
于本发明一实施例中,组包控制单元,用于控制所述标准蓝牙包组包单元于各所述第二数据发送窗口均构建所述第二标准蓝牙包;和重传检测单元,用于对所述第一标准蓝牙包中的所述第一信号数据包进行重传检测,并将获得的检测结果信息添加至所述第二信号数据包中,以使所述另一端根据所述第二信号数据包中的所述检测结果信息,确定是否执行重传。
本发明于第四方面提供一种蓝牙通信系统,包括:第一采集设备,用于采集第一信号数据并输出至第一蓝牙通信设备;第二采集设备,用于采集第二信号数据并输出至第二蓝牙通信设备;第一蓝牙通信设备,为如上第三方面中任意一项所述的蓝牙通信设备,用于传输所述第一信号数据至第二蓝牙通信设备中;第二蓝牙通信设备,为如上第三方面中任意一项所述的蓝牙通信设备,用于传输所述第二信号数据至所述第一蓝牙通信设备中。
如上所述,本发明提供的所述蓝牙通信方法、通信装置及系统,通过将接收到的信号数据构建为信号数据包,并将各标准蓝牙包中的有效信息替换为同一数据发送窗口对应的信号数据包信息后进行发送,以使接收端通过解析接收到的所述标准蓝牙包,获得其包含的所述信号数据包,进而获得对应的信号数据,使标准蓝牙包中能装载更多的信号数据,充分利用 了标准蓝牙包的信息承载能力,并提高了标准蓝牙包对信号数据传输效率,从而可以减少通信过程中信号的延迟。
附图说明
图1本发明提供的所述蓝牙通信方法于一实施例中的流程示意图;
图2本发明中所述第一标准蓝牙包为经典蓝牙包时,所述第一标准蓝牙包中的包内容替换为第一信号数据包的方式;
图3本发明中所述第一标准蓝牙包为低功耗蓝牙包时,所述第一标准蓝牙包中的包内容替换为第一信号数据包的方式;
图4本发明中利用所述蓝牙通信方法一实施例中进行主从设备单向数据传输的示意图(存在命令类交互);
图5本发明提供的所述蓝牙通信方法于本实施例中的流程示意图;
图6本发明利用所述蓝牙通信方法于一实施例中进行主从设备双向数据传输的示意图(不存在命令类交互);
图7本发明利用所述蓝牙通信方法于一实施例中进行主从设备双向数据传输的示意图(存在命令类交互);
图8本发明利用所述蓝牙通信方法于一实施例中进行主从设备交互的示意图(重传检测);
图9本发明提供的所述蓝牙通信设备于一实施例中的结构示意图;
图10本发明提供的另一种所述蓝牙通信设备于一实施例中的结构示意图;
图11本发明提供的所述蓝牙通信系统于一实施例中的结构示意图。
具体实施方式
以下通过特定的具体实例说明本发明的实施方式,本领域技术人员可由本说明书所揭露的内容轻易地了解本发明的其他优点与功效。本发明还可以通过另外不同的具体实施方式加以实施或应用,本说明书中的各项细节也可以基于不同观点与应用,在没有背离本发明的精神下进行各种修饰或改变。需说明的是,在不冲突的情况下,以下实施例及实施例中的特征可以相互组合。
需要说明的是,以下实施例中所提供的图示仅以示意方式说明本发明的基本构想,遂图式中仅显示与本发明中有关的组件而非按照实际实施时的组件数目、形状及尺寸绘制,其实 际实施时各组件的型态、数量及比例可为一种随意的改变,且其组件布局型态也可能更为复杂。
实施例1
为解决现有技术中存在的技术问题,本发明于实施例1提供了一种蓝牙通信方法,适用于蓝牙主设备(以下简称主设备)与蓝牙从设备((以下简称从设备))之间的单向信号数据传输;即所述主设备向所述从设备发送信号数据,或者所述从数据向所述主设备发送信号数据;其中,所述信号数据包括但不限于音频数据、视频数据或其他连续采集的信号数据。
所述主设备与所述从设备基于标准蓝牙协议和自定义蓝牙协议建立点对点的链路连接;其中,所述自定义蓝牙协议中包括相互适配的自定义封包规则和自定义解包规则;所述自定义封包规则用于对待传输的信号数据进行压缩编码,以形成对应的各信号数据包;所述自定义解包规则用对所述信号数据包进行解码,以获得对应的信号数据。
请参阅图1,示出为所述蓝牙通信方法于本实施例中的流程示意图,应用于所述主设备端中。如图1所示,所述蓝牙通信方法包括如下步骤:
S11,将第一信号数据根据所述自定义的封包规则,并按照第一时间片大小进行分片和压缩编码,以形成与各数据发送窗口对应的各第一信号数据包;
具体的,所述主设备将所述第一信号数据,按照所述第一时间片大小进行分片和压缩编码,并根据所述自定义封包规则中所包含的信号数据包各部分的组织方式,以形成基于时序排列的各所述第一信号数据包;单个所述第一信号数据包与单个数据发送窗口于时序上相对应。
其中,所述第一时间片为单次传输的所述信号数据对应的采集时间长短,于所述自定义蓝牙协议中预先设置,且与链路通信延时为正相关;即第一时间片越大,则链路中的通信延时越长。
当所述主从设备为经典蓝牙传输时,则所述第一时间片大小为n个时隙的时长。
于一具体实施方式中,n为2,以提高传输频率,减少单次传输中的信号延迟。
于另一具体实施方式中,n为4或6,以提高信号传输的带宽,从而提高单一时刻下所述第一信号数据的传输量大小。
当所述主从设备为低功耗蓝牙传输时,则所述第一时间片可选为1.25ms。
需要说明的是,所述自定义封包规则的具体组包方式,可以和所述标准蓝牙协议相同,也可以不同的,在此不做限定。
S12,所述主设备基于标准蓝牙协议构建各第一标准蓝牙包;
根据单个所述第一时间片内待发送的第一信号数据包大小,和单个数据发送窗口大小,于所述标准蓝牙协议中预先设定了第一标准蓝牙包的包类型,为蓝牙包中有效信息长度不小于单个所述第一时间片内待发送第一信号数据包大小的蓝牙包类型,以保证单个标准蓝牙包能承载待发送的信号数据。
可选的,第一标准蓝牙包的有效信息长度大于单个所述第一时间片内待发送第一信号数据包大小,以预留一定的信息承载空间用于执行第一信号数据包的重传或补发过程。
具体的,根据所述第一时间片大小和信号数据的采集特征确定,确定单个所述第一时间片内待发送的信号数据大小,进而确定所述标准蓝牙包类型。
于经典蓝牙传输中,示例性的,对一双声道音频数据,按照采样率为48k,量化位数为16bit的方式进行采集,以及所述第一时间片大小为2个时隙长短即1.25ms时;则单个第一时间片内待发送的信号数据大小为1.25*48*16*2=1920bit;当预设的数量压缩率为4:1时,则压缩后的音频数据包大小为60字节,单个数据发送窗口为1个时隙长,即单个数据发送窗口内待发送的信号数据包大小为60字节,则于所述标准蓝牙协议,设定对应的所述标准蓝牙包类型为长度大于60字节的3DH1。
于低功耗蓝牙中,示例性的,对一双声道音频数据,按照采样率为48k,量化位数为16bit的方式进行采集,单个第一时间片大小为1.25ms,则单个第一时间片内音频数据量大小为1.25ms*48k*2*16=1920比特,若数据压缩率为4:1,音频数据包大小为60字节,预设的单个数据发送窗口的时长大小为475us,则可以采用BLE 2M进行传输,数据包长度包含大于60字节。
需要注意的是,所述标准蓝牙协议中还包括用于满足链路命令交互需求的命令类蓝牙包的类型,如DM1。
为提高各第一标准蓝牙包的发包频率,以降低通信延迟,进一步的,于主从设备的通信过程中,控制所述主设备于各数据发送窗口中均构建并发送所述第一标准蓝牙包,以保证于各数据发送窗口中均可以发送所述第一标准蓝牙包,以保证各数据发送窗口中均可以传输各所述第一信号数据包。
于一具体实施方式中,所述于各数据发送窗口中均构建并发送所述第一标准蓝牙包的具体实现方式,包括:所述主设备基于一以数组形式装载的信息数据构建所述第一标准蓝牙包,以及所述主设备生成并输入所述信息数据至所述数组中,并使得所述数组的深度于任意时刻均大于单个所述第一标准蓝牙包中的payload长度;其中,所述信息数据为用于构建所述第一标准蓝牙包的任意数据。
所述主设备于检测到所述数组中的信息数据深度大于所述标准蓝牙包中的payload长度时,则提取与所述payload长度相同的信息数据,并基于所述标准蓝牙协议,将数组中的信息数据组包为所述标准蓝牙包。
S13,对于各所述第一标准蓝牙包执行检测和包替换过程后进行发送,使所述从设备根据接收到的所述第一标准蓝牙包获得对应的所述第一信号数据。
所述检测和包替换过程包括:检测单个所述第一标准蓝牙包的类型是否为命令类蓝牙包,如是,则直接发送该第一标准蓝牙包;如否,则将所述第一标准蓝牙包中的有效信息替换为同一数据发送窗口对应的所述第一信号数据包,以形成新的第一标准蓝牙包。
其中,所述有效信息为所述第一标准蓝牙包结构中,包内容可被替换的数据部分。
于一具体实施方式中,当所述第一标准蓝牙包为经典蓝牙包时,如图2所示,替换所述第一标准蓝牙包中packet header和/或PDU的全部或部分内容。
于另一具体实施方式中,当所述第一标准蓝牙包为低功耗蓝牙包时,如图3所示,替换第一标准蓝牙包中header,payload和CRC的全部或部分内容;可选的,当所述低功耗蓝牙包中还包括MIC时,则还包括替换header,payload、CRC和MIC中全部或部分内容。
所述主设备于数据发送窗口中发送所述新的第一标准蓝牙包,所述从设备接收到的所述新的第一标准蓝牙,获得所述第一标准蓝牙包中包含的所述第一信号数据包;并基于所述自定义解包规则对所述第一信号数据包进行解析,以获得对应的所述第一信号数据。
重复执行以上步骤,以实现所述信号数据的传输。
于一实施例中,为实现在降低通信延时的同时,避免信号传输质量受影响,进一步的,所述蓝牙通信方法于执行所述步骤S13时,还包括:
当检测所述第一标准蓝牙包为命令类蓝牙包时,则直接发送该第一标准蓝牙包,同时存储尚未发送的第一信号数据包,直至当检测所述第一标准蓝牙包为非命令类蓝牙包时,执行未发送的第一信号数据包的补发过程。
所述第一信号数据包的补发过程,包括:将尚未发送的所述第一信号数据包叠加至后续的数据发送窗口对应的第一信号数据中,以于所述后续数据发送窗口中根据叠加后的第一信号数据重新构建新的第一信号数据包,并发送新的第一信号数据包。
于一具体实施方式,所述补发过程的执行方式,包括:将尚未发送的所述第一信号数据包叠加至待发送的第一信号数据中,形成新的第一信号数据;判定该新的第一信号数据大小是否大于所述第一标准蓝牙包的所述有效信息大小,如是,则直接按照原数据压缩率获得新的第一信号数据包;如否,则根据所述新的第一信号数据大小,和所述第一标准蓝牙包中所 述有效信息的数据大小,确定该第一信号数据新的数据压缩率,该新数据压缩率大于之前的数据压缩率;基于该新数据压缩率对所述新的第一信号数据进行压缩,以获得新的所述第一信号数据包。
其中,所述原数据压缩率为执行所述步骤S11时,对所述第一信号数据进行分片和压缩编码中所采用的数据压缩率。
示例性的,请参阅图4,示出为链路中存在命令交互需求的示意图。如图4所示,于数据发送窗口slot k+2时,设备1向设备2发送命令包DM1,则对该DM1包内容不替换包内容,将slot k+2中未传输的第一信号数据包L2叠加至下一数据发送窗口slot k+4中待传输的信号数据中,以形成slot k+4中的新的信号数据;则根据所述新信号数据大小,和所述标准蓝牙包中所述有效信息的大小,确定slot k+4中新的信号数据的数据压缩率,基于该新的数据压缩率,对slot k+4中的所述新信号数据进行数据压缩,以获得新的信号数据包;将该新的信号数据包于slot K+4中进行发送;即于slot K+4中,设备1向设备2发送的第一标准蓝牙包中所述有效信息对应的内容被替换成L2+L3。
于另一具体实施方式中,所述补发过程的执行方式,包括:基于尚未发送的第一信号数据大小m,和待补发的数据窗口数量n,确定各待补发数据窗口内对应补发信号数据量大小为m/n,进而确定各所述待补发数据窗口对应新的第一信号数据量大小为X+m/n;其中,X为单个数据窗口内待发送的第一信号数据量的原始大小;将所述尚未发送第一信号数据叠加至当前待补发数据窗口中,以形成叠加后的第一信号数据;根据所述新的第一信号数据量大小,获取该叠加后第一信号数据中的前段数据,作为当前待补发数据窗口对应新的第一信号数据;判定该新的第一信号数据大小是否大于所述第一标准蓝牙包的所述有效信息大小,如是,则直接按照原数据压缩率获得新的第一信号数据包;如否,则根据所述新的第一信号数据大小,和所述第一标准蓝牙包中所述有效信息的数据大小,确定新的数据压缩率;基于该新数据压缩率对所述新的第一信号数据进行压缩,以获得新的所述第一信号数据包;以及,将该叠加后第一信号数据除所述前段数据外的剩余数据,作为新的尚未发送第一信号数据,于后续的待补发数据窗口中继续执行该补发过程,直至所述尚未发送第一信号数据全部发送完;从而实现降低通信延时的同时,防止信号数据的丢失,及因数据压缩过大而导致的信号数据质量降低。
其中,所述前段数据为所述叠加后的第一信号数据中位于前端时序,且数据量为X+m/n的数据。
可选的,n不大于3。
于一实施例中,为提高信号数据传输的实时性,降低通信延迟,进一步的,所述主设备中包括第一信号数据包的组包单元,为独立于标准蓝牙包的组包单元;所述第一信号数据包的组包单元和所述标准蓝牙包的组包单元可以相同,也可以不同;则所述蓝牙通信方法还包括:
于执行所述步骤S11时,根据所述自定义蓝牙协议,并基于所述第一信号数据包的组包单元,于各数据发送窗口内构建与该数据发送窗口对应的所述第一信号数据包,以实现于该数据发送窗口时,如检测到所述第一标准蓝牙包不是命令类蓝牙包时,将所述第一标准蓝牙包的包内容替换为当前数据发送窗口内构建的所述第一信号数据包;相比于现有技术中根据所述标准蓝牙协议,并基于现有的标准蓝牙包组包单元进行组包,会导致所述主设备需至少提前2个时隙开始执行调度准备,本实施例中基于所述自定义蓝牙协议和所述第一信号数据包组包单元,于各数据发送窗口内构建对应的所述第一信号数据包,可以避免因提前调度和组包而导致的通信延迟。
于一施例中,为提高所述第一标准蓝牙包的包内容替换频率,以提高通信实时性降低通信延迟,进一步的,于执行所述步骤S12时,所述蓝牙通信方法还包括:降低所述链路中命令类蓝牙包的发送频次,以提高非命令类蓝牙包的发送频率,通过替换所述第一标准蓝牙包中的包内容,实现信号数据的实时传输,降低通信延迟。
示例性的,通过关闭或减少自适应跳频,或关闭功率控制等控制方式,降低链路中所述命令类蓝牙包的发送频次。
需要注意的是,所述蓝牙通信方法中步骤S11至步骤S13于信号数据的整个传输过程中为同时执行,从而减少信号数据于通信传输中的延迟;以及,于其他实施例中,还可以对上述步骤进行变形,例如:步骤S11和步骤S12可以同步执行,或步骤S11可以滞后于步骤S12,在此并不进行限定。需要注意的是,本实施例中提供的所述蓝牙通信方法,不仅适用于主设备端,也同样适用于从设备端;当所述从设备执行所述蓝牙通信方法时,则所述方法的执行主体为从设备,即所述从设备为第二设备,所述主设备为第二设备。
实施例2
为解决现有技术中存在的技术问题,本发明于本实施例提供了另一种蓝牙通信方法,适用于主设备与从设备之间双向的信号数据传输。
所述主设备与所述从设备基于标准蓝牙协议和自定义蓝牙协议建立点对点的链路连接;其中,所述自定义蓝牙协议与实施例1中的所述自定义蓝牙协议相同,在此不再赘述。
主设备于第一数据发送窗口向从设备传输第一信号数据,从设备于第二数据发送窗口向主设备传输第二信号数据。
请参阅图5,示出为另一种所述蓝牙通信方法于本实施例中的流程示意图。如图5所示,所述蓝牙通信方法包括如下步骤:
S21,所述主设备将所述第一信号数据根据所述自定义的封包规则,并按照第一时间片大小进行分片和压缩编码,以形成各第一信号数据包;以及,所述从设备将所述第二信号数据根据所述自定义的封包规则,并按照第二时间片大小进行压缩编码,以形成各第二信号数据包;各所述第一数据包与各所述第一数据发送窗口分别对应;各所述第二数据包与各所述第二数据发送窗口分别对应;
其中,所述第一时间片为所述主设备单次传输所述第一信号数据对应的采集时间长短,所述第二时间片为所述从设备单次传输所述第二信号数据对应的采集时间长短;所述第一时间片和所述第二时间片于所述自定义蓝牙协议中预先设定,且两者大小相同。
具体的,当所述主从设备为经典蓝牙传输时,则所述第一时间片和所述第二时间片大小均为n个时隙的时长,n可选为2,6,10。
于一具体实施方式中,n为2,以提高传输频率减少单次传输中的信号延迟。
于另一具体实施方式中,n为6或10,以提高单次发送的所述信号数据的传输量大小。
当所述主从设备为低功耗蓝牙传输时,则所述第一时间片和所述第二时间片大小,可选为1.25ms。
S22,所述主设备于各所述第一数据发送窗口内,基于标准蓝牙协议构建各第一标准蓝牙包,并对各所述第一标准蓝牙包执行检测和包替换过程后进行发送,使所述从设备根据接收到的各所述第一标准蓝牙包中的第一信号数据包,获得对应的各所述第一信号数据;以及,所述从设备于接收到所述第一标准蓝牙包后的第二数据发送窗口内,基于标准蓝牙协议构建第二标准蓝牙包,并对各所述第二标准蓝牙包执行检测和包替换过程后进行发送,使所述主设备根据接收到的所述第二标准蓝牙包中的第二信号数据包,获得对应的第二信号数据。
其中,所述主设备于各第一数据发送窗口内,构建各第一标准蓝牙包的实施方式与实施例1中所述步骤S12的具体实施方式相同;以及,所述主设备对所述第一标准蓝牙包执行检测和包替换过程的实施方式与实施例1中所述步骤S13的具体实施方式相同,在此不再赘述。
所述从设备于接收到所述第一标准蓝牙包后对其进行解析,以获得所述第一标准蓝牙包中所述有效信息部分包含的所述第一信号数据包;基于所述自定义解包规则,对所述第一信号数据包进行解析,以获得对应的第一信号数据;以及,于接收到所述第一标准蓝牙包后的 所述第二数据发送窗口内,基于所述标准蓝牙协议构建各第二标准蓝牙包,并对各所述第二标准蓝牙包执行检测和包替换过程后进行发送。
于本实施例中,所述从设备构建各所述第二标准蓝牙包的实施方式,于所述主设备构建各所述第一标准蓝牙包的具体实施方式相同;以及,所述从设备对所述第二标准蓝牙包执行检测和包替换过程的实施方式,与主设备对所述第一标准蓝牙包执行检测和包替换过程的具体实施方式相同,即:检测单个所述第二标准蓝牙包的类型是否为命令类蓝牙包,如是,则直接发送该第二标准蓝牙包;如否,则将所述第二标准蓝牙包中的有效信息替换为同一所述第二数据发送窗口对应的所述第二信号数据包,以形成新的第二标准蓝牙包。
所述主设备于接收到所述第二标准蓝牙包,获得所述第二标准蓝牙包中包含的所述第二信号数据包;并基于所述自定义解包规则对所述第二信号数据包进行解析,以获得对应的所述第二信号数据。
示例性的,当链路中不存在命令交互需求时,如图6所示,于slot K时,链路上主设备(设备1)向从设备(设备2)发送正常数据包3DH1包,并将3DH1的包内容替换成第一信号数据包L1;在下一个slot K+1,从设备(设备2)向主设备(设备1)回复3DH1包,并将3DH1的包内容替换成第二信号数据包R1;在slot K+2,主设备(设备1)继续向从设备(设备2)发送3DH1包,并将3DH1的包内容替换成第一信号数据包L2,重复该过程。
进一步的,当检测所述第二标准蓝牙包为命令类蓝牙包时,则直接发送该第二标准蓝牙包,同时存储尚未发送的第二信号数据包,至当检测所述第二标准蓝牙包为非命令类蓝牙包时,执行所述第二信号数据包的补发过程;所述第二信号数据包的补发过程与所述第一信号数据包的补发过程相同,在此不再赘述。
示例性的,当链路中存在命令交互需求时,如图7所示,于slot K+1时,主设备(设备1)与从设备(设备2)之间的蓝牙链路中出现交互命令需求时,从设备(设备2)向主设备(设备1)发送交互命令包DM1,对该DM1包内容不做替换处理;则将slot K+1中尚未发送出去的第二信号数据包R1进行存储,于到达slot K+3时,将之前尚未发送出去的第二信号数据包R1,叠加至slot K+3对应的第二信号数据中,采用新的数据压缩率对叠加后的第二信号数据进行压缩,以获得新的第二信号数据包R1+R2;则于slot K+3时,从设备(设备2)向主设备(设备1)发送的第二标准蓝牙包中的有效信息内容被替换成R1+R2。对于主设备(设备1),于slot K+1时接收到从设备(设备2)发送的交互命令包DM1,则于slot K+2时回复DM1包;同样的,将时隙slot K+2中尚未发送出去的第一信号数据包L2进行存储,于 到达slot K+4时,将之前尚未发送的第一信号数据包L2进行补发,即于slot K+4时主设备(设备1)向从设备(设备2)发送第一标准蓝牙包的有效信息内容替换为L2+L3。
于一实施例中,为提高信号数据传输的实时性,降低通信延迟,进一步的,所述主设备中包括第一信号数据包的组包单元,和所述从设备中包括第二信号数据包的组包单元;所述第一信号数据包的组包单元和所述第二信号数据包的组包单元,均独立于标准蓝牙包的组包单元;所述蓝牙通信方法还包括:于执行所述步骤S21时,所述主设备通过所述第一信号数据包的组包单元,于各所述第一数据发送窗口内构建与该第一数据发送窗口对应的所述第一信号数据包,以及所述从设备通过所述第二信号数据包的组包单元,于各所述第二数据发送窗口内构建与该第二数据发送窗口对应的所述第二信号数据包;相比于现有技术中根据所述标准蓝牙协议,并基于现有的标准蓝牙包组包单元进行组包,会导致所述主设备需至少提前2个时隙开始执行调度准备,本实施例中基于所述自定义蓝牙协议和独立的数据包组包单元,于各数据发送窗口内构建对应的所述信号数据包,可以避免因提前调度和组包而导致的通信延迟。
需要注意是,所述第一信号数据包的组包单元和所述标准蓝牙包的组包单元可以相同,也可以不同;以及,所述第二信号数据包的组包单元和所述标准蓝牙包的组包单元可以相同,也可以不同。
为提高标准蓝牙包的包内容替换频率,以提高通信实时性降低通信延迟,进一步的,于执行所述步骤S22时,所述蓝牙通信方法还包括:
降低所述链路中命令类蓝牙包的发送频次,以提高非命令类蓝牙包的发送频率,通过替换各标准蓝牙包中的包内容,实现信号数据的实时传输,降低通信延迟。
示例性的,通过关闭或减少自适应跳频,或关闭功率控制等控制方式,降低链路中所述命令类蓝牙包的发送频次。
实施例3
为解决现有技术中存在的技术问题,本发明于本实施例提供了又一种蓝牙通信方法,适用于主设备与从设备之间双向的信号数据传输。
于本实施例中,所述蓝牙通信方法的执行步骤和实施例2中的基本相同,不同之处在于,于本实施例中,所述蓝牙通信方法于执行所述主设备和所述从设备之间的双向信号数据传输中,即于执行实施例2中所述步骤S22时,还包括:所述从设备于所述第一数据发送窗口接收到所述第一标准蓝牙包后,对接收到的所述第一标准蓝牙包进行解码,并对解码后获得的所述第一信号数据包进行重传检测,将获得的检测结果信息添加至第二数据发送窗口对应的 所述第二信号数据包中,以使所述主设备于第二数据发送窗口,根据解析获得的所述第二信号数据包中的所述述检测结果信息,确定于下一个所述第一数据发送窗口内是否执行所述第一信号数据包的重传过程;和/或,所述主设备于所述第二数据发送窗口内,对接收到的所述第二标准蓝牙包进行解码,对解码后获得的所述第二信号数据包进行重传检测,并将获得的检测结果信息添加至所述第一数据发送窗口对应的所述第一信号数据包中,以使所述从设备根据解析获得的所述第一信号数据包中的所述检测结果信息,确定于下一个所述第二数据发送窗口内是否执行所述第二信号数据包的重传过程。
其中,所述第一信号数据包的重传过程与实施例2中所述第一信号数据包的补发过程相同,在此不再赘述。
其中,所述检测结果信息包括需要重传,和不需要重传两种信息。
参阅图8,示出于本发明利用所述蓝牙通信方法于一具体实施例中进行主从交互的示意图;其中,需要重传的检测结果信息为NAK,不需要重传的检测结果信息为ACK。
如图8所示,于slot K+1中,从设备(设备2)向主设备(设备1)发送的第二标准蓝牙包R1中,包含有从设备(设备2)于slot K所接收到的第一标准蓝牙包L1是否需要重传的第一检测结果,图中示例为不需重传(ACK);则主设备(设备1)接收该第二标准蓝牙包R1,解码后获取其中的所述第一检测结果,以及对该第二标准蓝牙包同样进行重传检测,获得第二检测结果,则于slot K+2中,主设备(设备1)继续向从设备(设备2)发送第一标准蓝牙包L2,其中包含所述第二检测结果;从设备(设备2)接收该第一标准蓝牙包L2,解码后获取其中的所述第二检测结果信息,以及对该第一标准蓝牙包L2进行重传检测,获得新的第一检测结果;则于slot K+3中发送第二标准蓝牙包R2,其中包含新的第一检测结果。当于slot K+3中,主设备(设备1)于接收时丢失了从设备(设备2)于slot K+2中发送的第二标准蓝牙包R2,则于slot K+4中,主设备(设备1)发送的第一标准蓝牙包L2中所包含的所述第一检测结果为需要重传(NAK),则于slot K+5中,从设备(设备2)将之前丢失的第二标准蓝牙包R2所对应的第二信号数据包于当前第二数据发送窗口内进行补发。
需要注意的是,于其他的实施例中,所述蓝牙通信方法包括另一种重传方式,为采取固定次数重传方式。优选的,重传次数为2。
示例性的,主设备于相邻的两个所述第一数据发送窗口中,例如slot K和slot K+2中发送同一个所述第一标准蓝牙包L1,同一个第一标准蓝牙包两次中只要有1次被从设备接收正确,则使用这个数据而不需要重传,如果2次均不正确,则该包被丢弃。
于本实施例中,于所述主设备和所述从设备的通信过程中,通过对标准蓝牙包进行重传检测,以及当需要重传时,执行重传过程,以实现在干扰严重,通信质量差环境中,可以通过标准蓝牙包检测和重新发送的方法,降低丢包率,改善通信质量。
实施例4
为解决现有技术中存在的技术问题,本发明于本实施例提供了一种蓝牙通信设备,适用于点对点链路通信中,该链路为基于标准蓝牙协议和自定义蓝牙协议构建。
其中,所述自定义蓝牙协议中包括自定义的封包规则和解包规则;所述自定义封包规则,用于对信号数据进行压缩编码,以形成对应的信号数据包;则所述自定义解包规则,用于对信号数据包进行解码,以获得对应的信号数据。
如图9所示,所述蓝牙通信设备4包括:信号数据组包单元41、标准蓝牙包组包单元42、包替换单元43和发送单元44。
其中,所述信号数据组包单元41用于将输入的第一信号数据,按照预设的第一时间时间片大小进行分片和压缩编码,以形成各第一信号数据包,并将各所述第一信号数据包输出至所述包替换单元43中;
其中,各所述第一信号数据包与各数据发送窗口相对应。
进一步的,所述信号数据组包单元41,用于实现于各数据发送窗口中,构建与该数据发送窗口对应的各所述第一信号数据包。所述标准蓝牙包组包单元42,用于基于标准蓝牙协议构建各第一标准蓝牙包,并将各所述第一标准蓝牙包输出至所述包替换单元;其中,所述第一标准蓝牙包中的有效信息长度不小于单个所述第一信号数据包大小;
具体的,该过程的实施方式与如上述实施例1中构建各所述第一标准蓝牙包的实施方式相同,在此不再赘述。
所述包替换单元43,用于于各数据发送窗口内,检测所述第一标准蓝牙包是否为命令类蓝牙包,如是,则对所述第一标准蓝牙包不做处理,直接输出至所述发送单元44;如否,则将所述第一标准蓝牙包中的有效信息替换为对应的第一信号数据包,将替换后的所述第一标准蓝牙包输出至所述发送单元44;
所述发送单元44,用于发送各所述第一标准蓝牙包。
进一步的,所述蓝牙通信设备还包括:
信号数据叠加单元45,用于各第一数据发送窗口内,当检测到所述第一标准蓝牙包为命令类蓝牙包时,则保存当前数据发送窗口内尚未发送的所述第一信号数据包,直至当检测所述第一标准蓝牙包为非命令类蓝牙包时,执行所述第一信号数据包的补发过程。
所述第一信号数据包的补发过程,包括:将之前尚未发送的所述第一信号数据包叠加至后续的数据发送窗口对应的第一信号数据中,以使所述信号数据组包单元41根据叠加后的所述第一信号数据,构建新的第一信号数据包。
具体的,所述信号数据叠加单元45,将之前尚未发送的所述第一信号数据包,叠加至于后续数据发送窗口内对应的第一信号数据中,以形成后续数据发送窗口内中新的第一信号数据包的实施方式与如上述实施例1中实施方式相同,在此不再赘述。
进一步的,所述蓝牙通信设备还包括:
组包控制单元46,用于控制所述标准包组包单元于各数据发送窗口中均构建所述第一标准蓝牙。
于本实施例中,用于构建所述第一标准蓝牙包中的信息数据为以数组形式装载的数据;所述信息数据可以为任意数据;为保证各数据发送窗口中均有发送所述第一标准蓝牙包,则所述组包控制单元46,生成所述信息数据至所述数组中,并使得所述数组深度于任意时刻均大于单个所述第一标准蓝牙包中的payload长度,以使所述标准蓝牙包组包单元42能基于所述标准蓝牙协议,将输入的信息数据组包为各所述第一标准蓝牙包,并通过所述发送单元发出,以确保各数据发送窗口中均实现所述第一标准蓝牙包传输。
于本实施例中,各单元协同执行如上述实施例1中所述的蓝牙通信方法,将接收到的第一信号数据通过替换构建的标准蓝牙包内容的方式,传输至链路通信的另一设备端中,以提高信号输出的实时性,降低信号的传输延迟。
实施例5
为解决现有技术中存在的技术问题,本发明于本实施例提供了又一种蓝牙通信设备,适用于点对点链路的双向通信中一端,该链路为基于标准蓝牙协议和自定义蓝牙协议构建。
其中,另一端蓝牙设备于第一数据发送窗口向所述蓝牙通信设备发送第一信号数据;所述蓝牙通信设备于第二数据发送窗口,向所述另一端蓝牙设备发送第二信号数据。
如图10所示,所述蓝牙通信设备5包括:接收单元51、解包单元52,信号数据组包单元53、标准蓝牙包组包单元54、包替换单元55和发送单元56;
其中,所述接收单元51用于接收链路中所述另一端发送的各第一标准蓝牙包;所述第一标准蓝牙包中的有效信息部分中包含第一信号数据包;
于一具体实施例中,所述第一标准蓝牙包为所述另一端于各第一数据发送窗口中发送的蓝牙包;以及,所述第一信号数据包为所述另一端对输入的第一信号数据按照第一时间片大小分片和压缩编码后构建,且各所述第一信号数据包与各所述第一数据发送窗口相对应。
所述解包单元52用于解码各所述第一标准蓝牙包,以获得所述第一标准蓝牙包中包含的第一信号数据包,从而获得与所述第一信号数据包对应的第一信号数据。
所述信号数据组包单元53用于将输入的第二信号数据,按照所述第二时间时间片大小进行压缩编码,以形成各第二信号数据包,并将各所述第二信号数据包输出至所述包替换单元;
其中,各所述第二信号数据包与各第二数据发送窗口相对应;所述第二时间片大小,与所述另一端构建所述第一信号数据包时对应的第一时间片大小相同。
进一步的,所述信号数据组包单元53,用于实现于各所述第二数据发送窗口中,构建与该第二数据发送窗口对应的各所述第二信号数据包。
所述标准蓝牙包组包单元54用于于各所述第二数据发送窗口内,基于标准蓝牙协议构建第二标准蓝牙包,并将各所述第二标准蓝牙包输出至所述包替换单元55;其中,所述第二标准蓝牙包中的有效信息长度不小于单个所述第二信号数据包大小;
所述包替换单元55用于于各所述第二数据发送窗口内,检测所述第二标准蓝牙包是否为命令类蓝牙包,如是,则对所述第二标准蓝牙包不做处理,直接输出至发送单元;如否,则将所述第二标准蓝牙包中的有效信息替换为对应的第二信号数据包,并将替换后的所述第二标准蓝牙包输出至所述发送单元56;
所述发送单元56用于发送各所述第二标准蓝牙包。
进一步的,所述蓝牙通信设备5还包括:
信号数据叠加单元57,用于各所述第二数据发送窗口内,当检测到所述第二标准蓝牙包为命令类蓝牙包时,则保存当前第二数据发送窗口内尚未发送的所述第二信号数据包,直至当检测所述第二标准蓝牙包为非命令类蓝牙包时,执行所述第二信号数据包的补发过程。
所述第二信号数据包的补发过程与实施例4中所述第一信号数据包的补发过程相同,在此不再赘述。
组包控制单元58,用于控制所述标准蓝牙包组包单元53于各所述第二数据发送窗口内,基于标准蓝牙协议均构建所述第二标准蓝牙包;
于本实施例中,用于构建所述第二标准蓝牙包的信息数据为以数组形式装载的数据;所述信息数据可以为任意数据;为保证各第二数据发送窗口内均有发送所述第二标准蓝牙包,则所述组包控制单元58,生成所述信息数据至所述数组中,并使得所述数组深度于任意时刻均大于单个所述第二标准蓝牙包中的payload长度,以使所述标准蓝牙包组包单元53能基于所述标准蓝牙协议,将输入的信息数据组包为各所述第二标准蓝牙包,并通过所述发送单元发出,以确保各所述第二数据发送窗口内均实现所述第二标准蓝牙包传输。
重传检测单元59,用于对接收到的所述第一标准蓝牙包解码后,对解码获得的所述第一信号数据包进行重传检测,并将获得的检测结果信息添加至第二数据发送窗口对应的所述第二信号数据包中,以使所述另一端通过解码所述第二信号数据包后获得的所述检测结果信息,确定于下一个所述第一数据发送窗口内是否执行所述第一信号数据包的重传过程。
具体的,所述重传检测单元所执行的实施方式与如上述实施例3中重传检测步骤的实施方式相同,在此不再赘述。
具体的,所述重传检测单元所执行的实施方式与如上述实施例3中重传检测步骤的实施方式相同,在此不再赘述。
实施例6
本发明于本实施例中提供一种蓝牙通信系统,用于实现点对点链路双向通信,该链路为基于标准蓝牙协议和自定义蓝牙协议构建。
如图11所示,所述蓝牙通信系统6包括:第一采集设备61、第二采集设备62、第一蓝牙通信设备63和第二蓝牙通信设备64;其中,
所述第一蓝牙通信设备63和所述第二蓝牙通信设备64分别对应为主设备和从设备,并基于标准蓝牙协议和自定义蓝牙协议构建了点对点的链路连接。
所述第一采集设备61和所述第一蓝牙通信设备63连接,用于采集第一信号数据并输出至第一蓝牙通信设备63;所述第二采集设备62和所述第二蓝牙通信设备64连接,用于采集第二信号数据并输出至第二蓝牙通信设备64;所述第一信号数据和所述第儿信号数据包括但不限于音频数据、视频数据或其他对传输实时性要求较高的数据。
于具体实施例中,所述第一蓝牙通信设备和所述第二蓝牙通信设备均采用如上实施例5中的所述蓝牙通信设备,以实现第一蓝牙通信设备和所述第二蓝牙通信设备之间的交互通信。
综上所述,本发明提供的蓝牙通信方法、通信设备及系统,将构建的标准蓝牙包中的包内容替换为信号数据,通过发送包含所述信号数据的标准蓝牙包,以使接收端通过解析接收到的所述标准蓝牙包,获取其中包含的信号数据,以充分利用所述标准蓝牙包的信息承载能力进行信号数据传输,从而可以减少通信过程中信号的延迟;并且,通过直接由独立的信号数据包组包单元来进行信号数据包的组包,从而避免了因现有蓝牙调度而导致数据包传输的延迟,进一步提高了信号传输效率,降低了通信延迟;此外,本发明提供的方法可以充分利用现有且通用的标准蓝牙协议,无需重新构建一套完全的蓝牙协议,不仅节省了开发成本,提高了开发效率,而且方法具有更好的适应性和可拓展性。
上述实施例仅例示性说明本发明的原理及其功效,而非用于限制本发明。任何熟悉此技术的人士皆可在不违背本发明的精神及范畴下,对上述实施例进行修饰或改变。因此,举凡所属技术领域中具有通常知识者在未脱离本发明所揭示的精神与技术思想下所完成的一切等效修饰或改变,仍应由本发明的权利要求所涵盖。

Claims (20)

  1. 一种蓝牙通信方法,其特征在于,适用于点对点链路连接中一端;所述蓝牙通信方法包括:
    对第一信号数据进行分片和压缩编码,以构建与各数据发送窗口对应的各第一信号数据包;
    构建各第一标准蓝牙包;所述第一标准蓝牙包中的有效信息长度不小于单个所述第一信号数据包大小;
    对于各所述第一标准蓝牙包,分别检测各所述第一标准蓝牙包是否为命令类蓝牙包,如是,则直接发送该第一标准蓝牙包;如否,则将所述第一标准蓝牙包中的所述有效信息替代为于同一数据发送窗口对应的所述第一信号数据包后进行发送。
  2. 根据权利要求1所述的蓝牙通信方法,其特征在于,所述将所述第一标准蓝牙包中的所述有效信息替代为于同一数据发送窗口对应的所述的第一信号数据包的实现方式,包括:
    当所述第一标准蓝牙包为经典蓝牙包时,则将所述第一标准蓝牙包中packet header和/或PDU中的全部或部分内容,替换为同一数据发送窗口对应的所述的第一信号数据包;或,
    当所述第一标准蓝牙包为低功耗蓝牙包时,则将所述第一标准蓝牙包中header、payload、CRC和MIC中的全部或部分内容,替换为同一数据发送窗口对应的所述的第一信号数据包。
  3. 根据权利要求1所述的蓝牙通信方法,其特征在于,所述构建与各数据发送窗口对应的各第一信号数据包,包括:基于独立设置的第一信号数据包组包单元,于各数据发送窗口中,构建与该数据发送窗口对应的各所述第一信号数据包。
  4. 根据权利要求1所述的蓝牙通信方法,其特征在于,所述构建各所述第一标准蓝牙包,包括:于各数据发送窗口中,均构建所述第一标准蓝牙包。
  5. 根据权利要求1~4中任意一项所述的蓝牙通信方法,其特征在于,用于构建所述第一标准蓝牙包的信息数据通过数组装载,则所述构建各所述第一标准蓝牙包,包括:输入信息数据至所述数组中,使所述数组的深度于任意时刻均大于单个所述第一标准蓝牙包中的payload长度。
  6. 根据权利要求1所述的蓝牙通信方法,其特征在于,还包括:于所述构建各所述第一标准蓝牙包的同时,降低链路中命令类蓝牙包的发送频次。
  7. 根据权利要求1所述的蓝牙通信方法,其特征在于,所述检测各所述第一标准蓝牙包是否为命令类蓝牙包,如是,则所述蓝牙通信方法还包括:存储未发送的第一信号数据包,直至检测所述第一标准蓝牙包为非命令类蓝牙包时,执行所述第一信号数据包的补发过程。
  8. 根据权利要求7所述的蓝牙通信方法,其特征在于,所述补发过程包括:将当前数据发送窗口之前尚未发送的所述第一信号数据包叠加至所述当前数据发送窗口对应的第一信号数据中,以形成所述当前数据发送窗口对应的新的第一信号数据;并基于该新的第一信号数据重新构建新的第一信号数据包,并发送所述新的第一信号数据包。
  9. 根据权利要求7所述的蓝牙通信方法,其特征在于,所述补发过程包括:基于尚未发送的所述第一信号数据包的大小,和待补发数据窗口数量,确定各所述待补发数据窗口对应新的第一信号数据量大小;将所述尚未发送的第一信号数据包叠加至当前待补发数据窗口对应的第一信号数据中,形成叠加后的第一信号数据;基于所述新的第一信号数据量大小,提取所述叠加后的第一信号数据中的前段数据,作为当前待补发数据窗口对应新的第一信号数据,并基于该新的第一信号数据重新构建新的第一信号数据包,发送所述新的第一信号数据包;以及,将所述叠加后的第一信号数据中除所述前段数据外的剩余数据,作为新的尚未发送第一信号数据包,并于后续的所述待补发数据窗口中依次执行该补发过程,至所述尚未发送的第一信号数据全部发送完。
  10. 根据权利要求8或9所述的蓝牙通信方法,其特征在于,所述基于该新的第一信号数据重新构建新的第一信号数据包的实现方式,包括:
    将当前数据发送窗口之前尚未发送的所述第一信号数据包叠加至当前数据发送窗口对应的第一信号数据中,形成新的第一信号数据;判定该新的第一信号数据大小是否大于所述第一标准蓝牙包的所述有效信息大小,如是,则基于原数据压缩率获得新的第一信号数据包;如否,则调整数据压缩率,并基于该新的数据压缩率对所述新的第一信号数据进行压缩,以获得新的所述第一信号数据包。
  11. 一种蓝牙通信方法,其特征在于,适用于点对点链路双向连接中的一端;所述蓝牙通信方法包括:
    接收另一端发送的第一标准蓝牙包;各所述第一标准蓝牙包中的有效信息部分包含第一信号数据包;
    解析各所述第一标准蓝牙包,以获得对应的各所述第一信号数据包;
    对各所述第一信号数据包进行解码,以获得与所述第一信号数据包对应的第一信号数据。
  12. 根据权利要求11所述的蓝牙通信方法,其特征在于,所述蓝牙通信方法,还包括:
    对第二信号数据进行分片和压缩编码,以构建与各第二数据发送窗口对应的各第二信号数据包;
    构建各第二标准蓝牙包;所述第二标准蓝牙包中的有效信息长度不小于单个所述第二信号数据包大小;
    对于各所述第二标准蓝牙包,分别检测各所述第二标准蓝牙包是否为命令类蓝牙包,如是,则直接发送该第二标准蓝牙包;如否,则将该第二标准蓝牙包中的所述有效信息替代为于同一所述第二数据发送窗口对应的所述第二信号数据包。
  13. 根据权利要求12所述的蓝牙通信方法,其特征在于,所述蓝牙通信方法,还包括:对接收到的所述第一标准蓝牙包中的所述第一信号数据包进行重传检测,以获得是否需要重传的检测结果,并将所述检测结果信息添加至所述第二信号数据包中,以使所述另一端根据所述第二信号数据包中的所述检测结果信息,确定是否执行重传过程。
  14. 一种蓝牙通信设备,其特征在于,适用于点对点链路通信中,所述蓝牙通信设备包括:
    信号数据组包单元,用于将输入的第一信号数据进行分片和压缩编码,以构建与各数据发送窗口对应的各第一信号数据包,并将各所述第一信号数据包输出至包替换单元;
    标准包组包单元,用于构建各第一标准蓝牙包,并将各所述第一标准蓝牙包输出至包替换单元;其中,所述第一标准蓝牙包中的有效信息长度不小于单个所述第一信号数据包大小;
    包替换单元,用于分别检测所述第一标准蓝牙包是否为命令类蓝牙包,如是,则将所述第一标准蓝牙包直接输出至发送单元;如否,则将所述第一标准蓝牙包中的有效信息替换为同一数据发送窗口对应的所述第一信号数据包,并将替换后的所述第一标准蓝牙包输出至所述发送单元;
    发送单元,用于发送各所述第一标准蓝牙包。
  15. 根据权利要求14所述的蓝牙通信设备,其特征在于,还包括:
    组包控制单元,用于控制所述标准包组包单元于各数据发送窗口中均构建所述第一标准蓝牙。
  16. 根据权利要求14所述的蓝牙通信设备,其特征在于,所述包替换单元还包括:
    信号数据叠加单元,用于当检测所述第一标准蓝牙包为命令类蓝牙包时,存储未发送的第一信号数据包,直至检测所述第一标准蓝牙包为非命令类蓝牙包时,执行所述第一信号数据包的补发过程。
  17. 一种蓝牙通信设备,其特征在于,适用于点对点链路通信中,所述蓝牙通信设备包括:
    接收单元,用于接收链路中另一端发送的各第一标准蓝牙包;所述第一标准蓝牙包中的有效信息部分中包含第一信号数据包;
    解包单元,用于解码各所述第一标准蓝牙包,以获得所述第一标准蓝牙包中包含的所述第一信号数据包,从而获得与所述第一信号数据包对应的第一信号数据。
  18. 根据权利要求17所述的蓝牙通信设备,其特征在于,还包括:
    信号数据组包单元,用于将输入的第二信号数据进行分片和压缩编码,以构建与各第二数据发送窗口对应的各第二信号数据包,并将各所述第二信号数据包输出至包替换单元;
    标准蓝牙包组包单元,用于构建各第二标准蓝牙包,并将各所述第二标准蓝牙包输出至包替换单元;其中,所述第二标准蓝牙包中的有效信息长度不小于单个所述第二信号数据包大小;
    包替换单元,用于分别检测所述第二标准蓝牙包是否为命令类蓝牙包,如是,则将所述第二标准蓝牙包直接输出至发送单元;如否,则将所述第二标准蓝牙包中的有效信息替换为同一第二数据发送窗口对应的所述第二信号数据包,并将替换后的所述第二标准蓝牙包输出至所述发送单元;
    发送单元,用于发送各所述第二标准蓝牙包。
  19. 根据权利要求18所述的蓝牙通信设备,其特征在于,还包括:
    组包控制单元,用于控制所述标准蓝牙包组包单元于各所述第二数据发送窗口均构建所述第二标准蓝牙包;
    重传检测单元,用于对所述第一标准蓝牙包中的所述第一信号数据包进行重传检测,并将获得的检测结果信息添加至所述第二信号数据包中,以使所述另一端根据所述第二信号数据包中的所述检测结果信息,确定是否执行重传。
  20. 一种蓝牙通信系统,其特征在于,包括:
    第一采集设备,用于采集第一信号数据并输出至第一蓝牙通信设备;
    第二采集设备,用于采集第二信号数据并输出至第二蓝牙通信设备;
    第一蓝牙通信设备,为如权利要求18或19所述的蓝牙通信设备,用于传输所述第一信号数据至第二蓝牙通信设备中;
    第二蓝牙通信设备,为如权利要求18或19中任意一项所述的蓝牙通信设备,用于传输所述第二信号数据至所述第一蓝牙通信设备中。
PCT/CN2022/101053 2021-09-23 2022-06-24 蓝牙通信方法、通信设备及系统 WO2023045454A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111113226.9A CN113873486B (zh) 2021-09-23 2021-09-23 蓝牙通信方法、通信设备及系统
CN202111113226.9 2021-09-23

Publications (1)

Publication Number Publication Date
WO2023045454A1 true WO2023045454A1 (zh) 2023-03-30

Family

ID=78993432

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/101053 WO2023045454A1 (zh) 2021-09-23 2022-06-24 蓝牙通信方法、通信设备及系统

Country Status (2)

Country Link
CN (1) CN113873486B (zh)
WO (1) WO2023045454A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113873486B (zh) * 2021-09-23 2022-07-12 上海山景集成电路股份有限公司 蓝牙通信方法、通信设备及系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660308A (zh) * 2015-01-26 2015-05-27 武汉健坤科技有限公司 基于蓝牙低功耗技术的文件传输方法和系统
CN104661172A (zh) * 2015-01-26 2015-05-27 武汉健坤科技有限公司 基于蓝牙低功耗的扩展数据传输方法和系统
CN111901730A (zh) * 2020-06-22 2020-11-06 芯原微电子(上海)股份有限公司 Tws耳机交互方法及系统、tws耳机
US20210160673A1 (en) * 2019-11-26 2021-05-27 Tap Sound System Bluetooth Audio Streaming Passthrough
CN113873486A (zh) * 2021-09-23 2021-12-31 上海山景集成电路股份有限公司 蓝牙通信方法、通信设备及系统
CN114025430A (zh) * 2021-11-10 2022-02-08 上海山景集成电路股份有限公司 蓝牙通信方法、通信设备及系统

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103532936A (zh) * 2013-09-28 2014-01-22 福州瑞芯微电子有限公司 一种蓝牙音频自适应传输方法
CN107959553B (zh) * 2017-02-21 2020-10-02 北京百瑞互联技术有限公司 提升蓝牙网络入网速度的方法
CN113423093B (zh) * 2021-05-25 2023-04-14 江铃汽车股份有限公司 一种基于车载终端的蓝牙通信方法及系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660308A (zh) * 2015-01-26 2015-05-27 武汉健坤科技有限公司 基于蓝牙低功耗技术的文件传输方法和系统
CN104661172A (zh) * 2015-01-26 2015-05-27 武汉健坤科技有限公司 基于蓝牙低功耗的扩展数据传输方法和系统
US20210160673A1 (en) * 2019-11-26 2021-05-27 Tap Sound System Bluetooth Audio Streaming Passthrough
CN111901730A (zh) * 2020-06-22 2020-11-06 芯原微电子(上海)股份有限公司 Tws耳机交互方法及系统、tws耳机
CN113873486A (zh) * 2021-09-23 2021-12-31 上海山景集成电路股份有限公司 蓝牙通信方法、通信设备及系统
CN114025430A (zh) * 2021-11-10 2022-02-08 上海山景集成电路股份有限公司 蓝牙通信方法、通信设备及系统

Also Published As

Publication number Publication date
CN113873486A (zh) 2021-12-31
CN113873486B (zh) 2022-07-12

Similar Documents

Publication Publication Date Title
WO2023082691A1 (zh) 蓝牙通信方法、通信设备及系统
CN101436922B (zh) 一种基于udp协议传输大量数据的方法
CN103841002B (zh) 语音传输方法、终端、语音服务器及语音传输系统
US9264940B2 (en) Feedback method and device for header compression feedback information
CN103973645B (zh) 一种数据传输方法和相关装置
CN111294783B (zh) 音频数据传输的方法、装置、芯片和电子设备
TWI418171B (zh) 無線通訊系統執行狀態報告程序的方法及其相關裝置
KR20140135793A (ko) 블록 확인응답 압축을 위한 장치 및 방법들
CN101707616B (zh) 一种用户数据报协议数据包压缩、解压缩的方法及装置
CN101568144B (zh) 一种适用于无线自组织网络的报头压缩方法
WO2023045454A1 (zh) 蓝牙通信方法、通信设备及系统
CN108847248B (zh) 蓝牙设备音频处理方法、系统、可读存储介质和蓝牙设备
US20230239076A1 (en) Method and device for BLE audio data transmission
WO2010121467A1 (zh) 一种包头压缩通信方法和装置
CN103929681A (zh) 一种提升低速网络中rtp视频流处理效率的方法
CN109067796A (zh) 一种数据传输方法及装置
CN110505532A (zh) 低延时图像传输方法、装置、设备及存储介质
CN101860904A (zh) 基于数据包ip头压缩技术实现校验和计算的方法
CN109525370A (zh) 基于zigbee的数据包发送方法
US20180146077A1 (en) Method and apparatus for determining processing mode for data packet
CN114982369A (zh) 音频数据传输的方法、装置、芯片和电子设备
CN109587733A (zh) 低功耗无线通讯传输方法
CN102318282A (zh) 一种压缩数据包的传输方法及装置
CN116437100B (zh) 一种视频压缩数据实时高速传输系统
CN114928791A (zh) 多点到单点的无线音频传输方法、系统和可读存储介质

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: 22871515

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE