CN109587666B - Bluetooth device, system and scheduling method - Google Patents

Bluetooth device, system and scheduling method Download PDF

Info

Publication number
CN109587666B
CN109587666B CN201811400686.8A CN201811400686A CN109587666B CN 109587666 B CN109587666 B CN 109587666B CN 201811400686 A CN201811400686 A CN 201811400686A CN 109587666 B CN109587666 B CN 109587666B
Authority
CN
China
Prior art keywords
bluetooth
data
receiving
equipment
time slot
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201811400686.8A
Other languages
Chinese (zh)
Other versions
CN109587666A (en
Inventor
徐智勇
张智
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wu Qi Technologies Inc
Original Assignee
Shanghai Wu Qi Technologies Inc
Wu Qi Technologies Inc
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 Shanghai Wu Qi Technologies Inc, Wu Qi Technologies Inc filed Critical Shanghai Wu Qi Technologies Inc
Priority to CN201811400686.8A priority Critical patent/CN109587666B/en
Publication of CN109587666A publication Critical patent/CN109587666A/en
Application granted granted Critical
Publication of CN109587666B publication Critical patent/CN109587666B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • H04W28/065Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • H04W72/0446Resources in time domain, e.g. slots or frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/12Wireless traffic scheduling
    • H04W72/1263Mapping of traffic onto schedule, e.g. scheduled allocation or multiplexing of flows
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections

Landscapes

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

Abstract

The invention relates to the technical field of Bluetooth communication, and particularly discloses a Bluetooth system, Bluetooth equipment and a Bluetooth scheduling method, wherein the Bluetooth scheduling method comprises the following steps: the Bluetooth main receiving equipment executes a data transmission operation which can enable the source data equipment not to transmit data in the next N time slots in the receiving time slot of the source data equipment; in the sending time slot of the source data equipment, the Bluetooth main receiving equipment sends the data between the equipment to the Bluetooth secondary receiving equipment, and the Bluetooth secondary receiving equipment receives the data between the equipment sent by the Bluetooth main receiving equipment; in the receiving time slot of the source data device, the Bluetooth secondary receiving device sends the inter-device data to the Bluetooth main receiving device, and the Bluetooth main receiving device receives the inter-device data sent by the Bluetooth secondary receiving device. The Bluetooth device, the Bluetooth system and the Bluetooth scheduling method can realize data transmission between the Bluetooth main receiving device and the Bluetooth secondary receiving device when the Bluetooth secondary receiving device is in the monitoring mode.

Description

Bluetooth device, system and scheduling method
Technical Field
The invention relates to the technical field of Bluetooth communication, in particular to Bluetooth equipment, a Bluetooth system and a Bluetooth scheduling method.
Background
Bluetooth is a wireless technology standard, and can realize short distance data exchange between fixed equipment, mobile equipment and a building personal area network, wherein one Bluetooth link comprises a Bluetooth Master device (Master) and a Bluetooth Slave device (Slave), and the Bluetooth network is provided with a clock by the Bluetooth Master device and performs frequency hopping communication by adopting the frequency of 1600 hops per second. The definition of the bluetooth specification includes a concept of a Slot (Slot), one Slot is 1/1600 seconds, namely 625us, the Slot of the bluetooth includes a Master-Slave Slot (Master-to-Slave Slot) and a Slave-Master Slot (Slave-to-Master Slot) which alternate in sequence, in the Master-Slave Slot, the bluetooth Master device transmits data to the bluetooth Slave device, and in the Slave-Master Slot, the bluetooth Slave device transmits data to the bluetooth Master device. And in a bluetooth network, data transmission is always initiated by the bluetooth master transmitting data to the bluetooth slave in a master-slave time slot, and the bluetooth slave ends in reply to the data in a slave-master time slot.
In some application scenarios, a data output source is required to be transmitted to two or more devices through bluetooth, for example, a stereo headphone requires that both playback devices of left and right channels need to receive signals of the data source, thereby achieving an effect of synchronous playback. In the prior art, when receiving data, a playing device of one channel can only be used as a bluetooth main receiving device to receive data transmitted by a data output source. The data is then transmitted to the playback device of the other channel (i.e., the bluetooth secondary receiving device) via other non-bluetooth wireless transmission protocol, such as Near Field Magnetic Induction (NFMI) or custom bluetooth protocol.
However, in the existing scheme, the bluetooth master receiving device needs to forward data once, which undoubtedly increases the power consumption of the bluetooth master receiving device, and in the former method, an additional radio frequency technology needs to be introduced, which increases the system cost and the design difficulty. The latter method requires two independent bluetooth links to be established between the bluetooth primary receiving device and the data source device and another playing device (bluetooth secondary receiving device), and the two bluetooth links increase the power consumption of the bluetooth primary receiving device and the scheduling cost between the two links due to the large amount of data transmission between the bluetooth primary receiving device and the data source and between the bluetooth primary receiving device and the bluetooth secondary receiving device. The increased cost of scheduling means that the probability of scheduling collisions increases, which is particularly evident when the bluetooth master/receiver device is in the role of bluetooth slave in both bluetooth links, or in one bluetooth link is in the role of bluetooth master and in the other bluetooth link is in the role of bluetooth slave.
In order to reduce the amount of data to be forwarded by the bluetooth primary receiving device, the applicant proposes a technical solution for setting the bluetooth secondary receiving device in a data listening mode to obtain data output by a data source, specifically, while the bluetooth primary receiving device establishes a bluetooth link with the data source device, parameters of the bluetooth link, such as: the Bluetooth clock, Bluetooth addresses of the Bluetooth master device and the Bluetooth slave device, 3BIT logical addresses of the slave device, frequency hopping sequences, connection keys, coding keys and other bottom layer Bluetooth protocol parameters and upper layer Bluetooth protocol parameters such as L2CAP, RFCOMM, Handfree, A2DP and the like are sent to the Bluetooth secondary receiving device, after the Bluetooth secondary receiving device is configured according to corresponding parameters, the frequency hopping sequences, the Bluetooth clock and the like of the Bluetooth secondary receiving device are completely synchronous with the Bluetooth master receiving device and the data source device, and further the Bluetooth secondary receiving device can receive data from a data source in a monitoring mode like the Bluetooth master receiving device, so that synchronous data receiving is realized. Although the problem that the bluetooth primary receiving device forwards the source data is solved in this way, some inter-device information, such as data transceiving state, packet loss, volume setting instruction, power on/off instruction, and the like, needs to be transmitted between the bluetooth primary receiving device and the bluetooth secondary receiving device, and in this scheme, because the bluetooth secondary receiving device frequency hopping sequence, the bluetooth clock, and the like are completely synchronous with the bluetooth primary receiving device and the data source device, there is no independent clock and frequency modulation sequence between the bluetooth primary receiving device and the bluetooth secondary receiving device, and therefore, independent data transmission between the bluetooth primary receiving device and the bluetooth secondary receiving device is not possible. This limits the development of this listening mode, and it is just so that most bluetooth headsets in the market adopt the aforementioned scheme of forwarding data by the bluetooth master receiving device through the customized bluetooth or other protocols, and solving the problem of data transmission in this listening mode is of great significance to the popularization and application of this scheme.
Disclosure of Invention
The invention aims to provide a Bluetooth scheduling method, a Bluetooth main receiving device, a Bluetooth secondary receiving device and a Bluetooth system, which can realize data transmission between the Bluetooth main receiving device and the Bluetooth secondary receiving device when the Bluetooth secondary receiving device is in a monitoring mode.
In order to solve the technical problem, the present application provides the following technical solutions:
a Bluetooth scheduling method is characterized in that: the method comprises the following steps:
s100: the Bluetooth main receiving equipment executes a data transmission operation which can enable the source data equipment not to transmit data in the next N time slots in the receiving time slot of the source data equipment;
s200: the Bluetooth primary receiving equipment completes data transmission with the Bluetooth secondary receiving equipment in the last M time slots;
the S200 includes:
s200-1: in the sending time slot of the source data equipment in the last M time slots, the Bluetooth main receiving equipment sends the data between the equipment to the Bluetooth secondary receiving equipment, and the Bluetooth secondary receiving equipment receives the data between the equipment sent by the Bluetooth main receiving equipment;
s200-2: and in the receiving time slot of the source data equipment in the last M time slots, the Bluetooth secondary receiving equipment sends the inter-equipment data to the Bluetooth primary receiving equipment, and the Bluetooth primary receiving equipment receives the inter-equipment data sent by the Bluetooth secondary receiving equipment.
Explanation:
and (3) sending time slot: master-slave time slots for the bluetooth master device and slave-master time slots for the bluetooth slave device;
receiving a time slot: slave-to-master time slots for bluetooth masters and master-to-slave time slots for bluetooth slaves.
The technical scheme of the invention has the beneficial effects that: through the data sending operation of the Bluetooth main receiving device, the source data device does not send data in the last N time slots, then in the subsequent time slots, the Bluetooth main receiving device sends the data between the devices in the sending time slot of the source data device, because the secondary receiving device monitors the source data device all the time, the data between the devices sent by the Bluetooth main receiving device can be received, then the Bluetooth secondary receiving device sends the responded data between the devices to the network in the next time slot, namely the receiving time slot of the source data device, because the data packet format of the data between the devices is different from the standard Bluetooth packet format, although the source data device can receive the data sent by the Bluetooth secondary receiving device in the receiving time slot, the data packet can not pass the filtering detection of the source data device, and therefore, the influence on the source data device can not be caused, and further, data transmission between the Bluetooth main receiving device and the Bluetooth secondary receiving device is realized. In the technical scheme of the application, although the secondary bluetooth receiving device is in the monitoring mode, no independent bluetooth link exists between the primary bluetooth receiving device and the secondary bluetooth receiving device, the source data device does not interfere with data transmission between the primary bluetooth receiving device and the secondary bluetooth receiving device through scheduling of the primary bluetooth receiving device, and independent data transmission between the primary bluetooth receiving device and the secondary bluetooth receiving device is realized.
Further, the source data device is a bluetooth master device, the bluetooth master receiving device is a bluetooth slave device, and M is equal to N, where the data sending operation in S100 includes:
the Bluetooth main receiving device sends a data packet header to the source data device in the slave-master time slot, and specifies that a data packet corresponding to the data packet header occupies N +1 time slots in the TYPE domain of the data packet header.
When the source data equipment is Bluetooth master equipment and the Bluetooth master receiving equipment is Bluetooth slave equipment, the source data equipment masters the communication scheduling right of the whole Bluetooth network, and at the moment, if the Bluetooth master receiving equipment does not have the right to schedule network resources to achieve the purpose of independent communication with the secondary receiving equipment; in the application, the bluetooth primary receiving device serving as the bluetooth slave device sends a data packet header of N +1 time slots occupied by a data packet corresponding to the specified data packet header in a TYPE domain to the source data device, and the source data device can be deceived into a data receiving state through the data packet header, so that the source data device does not send data outwards any more in subsequent N time slots, and further the bluetooth primary receiving device and the bluetooth secondary receiving device can complete data communication between devices in the N time slots. According to the scheme, the method for deceiving the source data equipment through the TYPE domain of the data packet header enables the Bluetooth main receiving equipment without the network resource scheduling right to schedule the sending behavior of the source data equipment, and the communication purpose is achieved.
Further, the transmission time slot of the source data device in S200-1 is a master-slave time slot, and the reception time slot of the source data device in S200-2 is a slave-master time slot.
Further, the bluetooth master receiving device is a bluetooth master device, the source data device is a bluetooth slave device, where N is 1, and the data sending operation in S100 includes:
the bluetooth master receiving device does not transmit data to the source data device in the master-slave time slot.
When the Bluetooth master receiving equipment is the Bluetooth master equipment, the Bluetooth master receiving equipment can schedule resources of the whole Bluetooth network, and when the Bluetooth master receiving equipment does not send data to the source data equipment in the master-slave time slot, the source data equipment does not send data in the next time slot, so that the aim of stopping the source data equipment from sending data is fulfilled.
Further, the transmission time slot of the source data device in S200-1 is a slave-master time slot, and the reception time slot of the source data device in S200-2 is a master-slave time slot.
The invention also provides a Bluetooth main receiving device, which comprises a scheduling module, a first sending module and a first receiving module, the scheduling module can schedule the data transmission behavior of the source data device when the data transmission between the Bluetooth secondary receiving device and the source data device is required, the scheduling is realized by controlling the first sending module to execute a data sending operation in the receiving time slot of the source data device, which can make the source data device not send data in the last N time slots, the first sending module is used for sending data to the source data device, the first receiving module is used for receiving the data sent by the source data device, the first sending module is also used for sending the data between the devices to the Bluetooth secondary receiving device in the sending time slot of the source data device, the first receiving module is also used for receiving the data between the devices sent by the secondary Bluetooth receiving device in the receiving time slot of the source data device.
Further, the scheduling module includes a data packet header generating module, the data packet header generating module is capable of generating a data packet header, and the data packet corresponding to the data packet header is specified to occupy N +1 time slots in a TYPE field of the data packet header, and the data sending operation is sending the data packet header generated by the data packet header generating module.
Further, the scheduling module comprises an idle generation module, and the idle transmission module is configured to control the first transmission module not to transmit data in the receiving timeslot of the source data device when data transmission between the first transmission module and the bluetooth secondary receiving device is required.
The invention also provides a Bluetooth secondary receiving device, which is used in cooperation with the Bluetooth main receiving device, and comprises a second sending module and a second receiving module, wherein the second receiving module is used for receiving data sent by the source data device or the Bluetooth main receiving device in the sending time slot of the source data device, and the second sending module is used for sending data between devices to the Bluetooth main receiving device in the next receiving time slot of the source data device after receiving the data between devices sent by the Bluetooth main receiving device.
The invention also provides a Bluetooth system which comprises the Bluetooth main receiving equipment and the Bluetooth secondary receiving equipment.
Drawings
Fig. 1 is a timing diagram of a bluetooth data transmission process of a mobile phone, a primary headset and a secondary headset in an embodiment of the present invention:
fig. 2 is a timing diagram illustrating a bluetooth data transmission process of the mobile phone, the primary headset and the secondary headset according to an embodiment of the invention.
Detailed Description
The following is further detailed by way of specific embodiments:
example one
This embodiment discloses a bluetooth system, which includes a bluetooth primary receiving device and a bluetooth secondary receiving device, and this system needs to form a bluetooth network together with a source data device, in this bluetooth network, the bluetooth primary receiving device is a bluetooth primary device, the source data device is a bluetooth secondary device, the bluetooth secondary receiving device is a sniffing device, and the bluetooth secondary receiving device has been configured in the sniffing state, and it synchronizes some bluetooth link parameters of the bluetooth primary receiving device, including bluetooth clock, bluetooth addresses of the bluetooth primary device and the bluetooth secondary device, 3BIT logical address of the secondary device, frequency hopping sequence, connection key, coding key and other bottom layer bluetooth protocol parameters and L2, RFCOMM, Handfree, A2DP and other upper layer bluetooth protocol parameters. To save energy, the bluetooth secondary receiving device listens only to the data of the transmission time slot of the source data device.
In order to disclose the scheme of the present application more clearly, the present embodiment further discloses a bluetooth primary receiving device and a bluetooth secondary receiving device, specifically:
the Bluetooth main receiving device comprises a scheduling module, a first sending module and a first receiving module, wherein the scheduling module can schedule data sending behaviors of source data devices when inter-device data transmission is required to be carried out between the Bluetooth main receiving device and the Bluetooth secondary receiving device, the scheduling is realized by controlling the first sending module to execute a data sending operation which can enable the source data devices not to send data in the last N time slots through controlling the first sending module to execute the data sending operation in the receiving time slots of the source data devices, the scheduling module comprises a null generation module, and the null sending module is used for controlling the first sending module not to send data in the receiving time slots of the source data devices when the inter-device data transmission is required to be carried out between the Bluetooth secondary receiving device and the Bluetooth secondary receiving device.
The first sending module is used for sending data to the source data device, the first receiving module is used for receiving the data sent by the source data device, the first sending module is also used for sending the data between devices to the secondary Bluetooth receiving device in the sending time slot of the source data device, and the first receiving module is also used for receiving the data between devices sent by the secondary Bluetooth receiving device in the receiving time slot of the source data device.
The Bluetooth secondary receiving device is matched with the Bluetooth main receiving device for use, and comprises a second sending module and a second receiving module, wherein the second receiving module is used for receiving data sent by the source data device or the Bluetooth main receiving device in a sending time slot of the source data device, and the second sending module is used for sending data between devices to the Bluetooth main receiving device in a next receiving time slot of the source data device after receiving the data between devices sent by the Bluetooth main receiving device.
The embodiment also discloses a Bluetooth scheduling method matched with the system, which comprises the following steps:
s100: the Bluetooth main receiving equipment executes a data transmission operation which can enable the source data equipment not to transmit data in the next 1 time slot in the receiving time slot of the source data equipment;
s200: the Bluetooth primary receiving equipment completes data transmission with the Bluetooth secondary receiving equipment in the last M time slots;
the data transmission operation in S100 includes:
the bluetooth master receiving device does not transmit data to the source data device in the master-slave time slot.
The S200 includes:
s200-1: in the sending time slot of the source data equipment in the last M time slots, the Bluetooth main receiving equipment sends the data between the equipment to the Bluetooth secondary receiving equipment, and the Bluetooth secondary receiving equipment receives the data between the equipment sent by the Bluetooth main receiving equipment;
s200-2: and in the receiving time slot of the source data equipment in the last M time slots, the Bluetooth secondary receiving equipment sends the inter-equipment data to the Bluetooth primary receiving equipment, and the Bluetooth primary receiving equipment receives the inter-equipment data sent by the Bluetooth secondary receiving equipment.
The size of M is determined according to the communication times of the bluetooth primary receiving device and the bluetooth secondary receiving device, and M is preferably an even number to ensure that the bluetooth secondary receiving device can send the receipt data after the bluetooth primary receiving device sends the data.
The sending time slot of the source data device in S200-1 is a slave-master time slot, and the receiving time slot of the source data device in S200-2 is a master-slave time slot.
When the Bluetooth master receiving equipment is the Bluetooth master equipment, the Bluetooth master receiving equipment can schedule the resources of the whole Bluetooth network, and when the Bluetooth master receiving equipment does not send data to the source data equipment in the master-slave time slot, the source data equipment does not send data in the next time slot, so that the aim of stopping the source data equipment from sending data is fulfilled.
In this embodiment, taking bluetooth headsets and mobile phones as examples, as shown in fig. 1, for convenience of description, we mark time slots as time slots 1 to 8 in sequence according to a time sequence, after the bluetooth headset and the mobile phone are networked, one headset serves as a primary receiving device, which is referred to as a primary headset in this embodiment, and the other headset serves as a secondary receiving device, which is referred to as a secondary headset in this embodiment, the mobile phone serves as a source data device, the primary headset serves as a bluetooth primary device of the entire bluetooth network, the mobile phone serves as a bluetooth slave device, the secondary headset serves as a monitoring device of the bluetooth network through appropriate synchronization configuration, and the secondary headset is configured to monitor data of only a transmission time slot of the mobile phone, so as to save power consumption and simultaneously monitor data sent by the mobile phone.
Slot 1 is a master-slave slot in which the master earpiece transmits a data packet to the handset, and the handset receives the data packet.
The time slot 2 is a slave-master time slot, in the time slot, the mobile phone sends a data packet, meanwhile, the master earphone serves as a bluetooth master device to receive the data packet, the secondary earphone serves as a listener to receive the data packet, and if the data packet is audio data, the master earphone and the secondary earphone can sound synchronously.
Slot 3 is a master-slave slot in which the master as a bluetooth master does not transmit any data at this time, since the master needs to have data to transmit to the slave. At this point, the handset, as a bluetooth slave, has its receiver turned on, due to the master-slave slot. It is clear that the handset will not receive any data in slot 3, which will also result in it not sending any data in the next slot 4.
The time slot 4 is a slave-master time slot, in which the secondary earphone can monitor, the primary earphone sends the data between devices to the secondary earphone, and the secondary earphone can receive the data between devices from the primary earphone;
slot 5 is a master-slave slot in which the master earpiece, which is the bluetooth master, does not transmit data but waits for inter-device data to be replied to by the secondary earpiece. Therefore, in this time slot, the inter-device data is transmitted from the headset while the master headset receives this data. In addition, since slot 5 is a master-slave slot, the handset as a bluetooth slave will also turn on its receiver at the same time. However, since the packets of inter-device data are in a format different from that of standard bluetooth packets, the packets will not pass the filtered detection of the handset receiver, and therefore the handset will turn off its receiver until the next master-slave slot;
in slot 6, there is no data transmission;
in time slots 7 and 8, the main earphone and the mobile phone resume normal Bluetooth data communication.
Example two
The bluetooth system in this embodiment includes a bluetooth primary receiving device and a bluetooth secondary receiving device, and the system needs to form a bluetooth network together with the source data device.
Different from the first embodiment, in this bluetooth network, the source data device is a bluetooth master device, the bluetooth master receiving device is a bluetooth slave device, the bluetooth secondary receiving device is a listener device, and the bluetooth secondary receiving device has been configured in a listening state, which synchronizes some bluetooth link parameters of the bluetooth master receiving device, including bluetooth clocks, bluetooth addresses of the bluetooth master device and the bluetooth slave device, 3BIT logical addresses of the slave devices, frequency hopping sequences, connection keys, coding keys, and other underlying bluetooth protocol parameters, and L2CAP, RFCOMM, Handfree, A2DP and other upper bluetooth protocol parameters. To save energy, the bluetooth secondary receiving device listens only to the data of the transmission slot of the source data device.
In order to disclose the scheme of the present application more clearly, the present embodiment further discloses a bluetooth primary receiving device and a bluetooth secondary receiving device, specifically:
the Bluetooth main receiving device comprises a scheduling module, a first sending module and a first receiving module, wherein the scheduling module can schedule data sending behaviors of source data equipment when data transmission between the Bluetooth main receiving device and the Bluetooth secondary receiving device is needed, the scheduling is realized by controlling the first sending module to execute a data sending operation which can enable the source data equipment not to send data in the last N time slots in the receiving time slot of the source data equipment, the scheduling module comprises a data packet header generating module, the data packet header generating module can generate a data packet header, a data packet corresponding to the data packet header is appointed to occupy N +1 time slots in the TYPE domain of the data packet header, and the data sending operation is the data packet header generated by the data packet header generating module.
The first sending module is used for sending data to the source data device, the first receiving module is used for receiving the data sent by the source data device, the first sending module is also used for sending the data between devices to the secondary Bluetooth receiving device in the sending time slot of the source data device, and the first receiving module is also used for receiving the data between devices sent by the secondary Bluetooth receiving device in the receiving time slot of the source data device.
The Bluetooth secondary receiving device is matched with the Bluetooth main receiving device for use, and comprises a second sending module and a second receiving module, wherein the second receiving module is used for receiving data sent by the source data device or the Bluetooth main receiving device in a sending time slot of the source data device, and the second sending module is used for sending data between devices to the Bluetooth main receiving device in the next receiving time slot of the source data device after receiving data between devices sent by the Bluetooth main receiving device.
The embodiment also discloses a Bluetooth scheduling method matched with the system, which comprises the following steps:
s100: the Bluetooth main receiving equipment executes a data transmission operation which can enable the source data equipment not to transmit data in the next N time slots in the receiving time slots of the source data equipment;
s200: the Bluetooth main receiving equipment completes data transmission with the Bluetooth secondary receiving equipment in the last M time slots;
the data transmission operation in S100 includes:
the Bluetooth main receiving device sends a data packet header to the source data device in the slave-master time slot, and specifies that a data packet corresponding to the data packet header occupies N +1 time slots in the TYPE domain of the data packet header.
The S200 includes:
s200-1: in the sending time slot of the source data equipment in the last M time slots, the Bluetooth main receiving equipment sends the inter-equipment data to the Bluetooth secondary receiving equipment, and the Bluetooth secondary receiving equipment receives the inter-equipment data sent by the Bluetooth main receiving equipment;
s200-2: in the receiving time slot of the source data device in the last M time slots, the Bluetooth secondary receiving device sends the data between devices to the Bluetooth primary receiving device, and the Bluetooth primary receiving device receives the data between devices sent by the Bluetooth secondary receiving device.
In this embodiment, the size of M is determined according to the number of communications that need the bluetooth primary receiving device and the bluetooth secondary receiving device, and M is preferably an even number greater than 0, so as to ensure that the bluetooth secondary receiving device can send the receipt data after the bluetooth primary receiving device sends the data.
The sending time slot of the source data device in S200-1 is a master-slave time slot, and the receiving time slot of the source data device in S200-2 is a slave-master time slot.
In this embodiment, taking a bluetooth headset and a mobile phone as examples, as shown in fig. 2, for convenience of description, we mark time slots as time slots 1 to 8 in sequence according to a time sequence, after the bluetooth headset and the mobile phone are networked, one headset serves as a primary receiving device, which is referred to as a primary headset in this embodiment, and the other headset serves as a secondary receiving device, which is referred to as a secondary headset in this embodiment, the mobile phone serves as a source data device, the mobile phone serves as a bluetooth primary device of the entire bluetooth network, the primary headset serves as a bluetooth slave device, the secondary headset serves as a monitoring device of the bluetooth network through appropriate synchronization configuration, and the secondary headset is configured to monitor only data of a transmission time slot of the mobile phone, so as to save power consumption and simultaneously monitor data transmitted by the mobile phone. Taking the primary communication between the master earphone and the slave earphone as an example (the master earphone sends Data between primary devices, and the slave earphone replies the Data between the primary devices), LDE in the figure indicates Long Data Exchange, that is, Long Data interaction.
The time slot 1 is a master-slave time slot, in the time slot, the mobile phone sends a data packet to the master earphone, and the slave earphone also receives the data packet as a listener, if the data packet is audio data, the master earphone and the slave earphone can synchronously sound.
The time slot 2 is a slave-master time slot, in the time slot, the secondary earphone does not monitor data, because the primary earphone needs to have data to send to the secondary earphone, the primary earphone sends a data packet header to the mobile phone, and indicates that a subsequent data packet is a data packet needing to occupy 3 time slot durations in a TYPE field of the data packet header, and after receiving the data packet header, the mobile phone provides the data to the primary earphone for the duration of reserving 3 time slots (including the current time slot).
The time slot 3 is a master-slave time slot, in which the secondary earphone will monitor, the handset will not send data out because it receives the data packet header, the primary earphone sends the data between equipments to the secondary earphone in this time slot, and the secondary earphone can receive the data between equipments from the primary earphone.
Slot 4 is a slave-to-master slot in which the slave headset transmits inter-device data while the master headset receives this data. Since the packets of inter-device data are in a format different from that of standard bluetooth packets, the packets will not pass the filtered detection of the handset receiver, and the handset will therefore turn off its receiver until the next slave-to-master slot.
In time slot 5 and time slot 6, the master earphone and the mobile phone resume normal Bluetooth data communication, and the slave earphone monitors the mobile phone data.
When the source data equipment is Bluetooth master equipment and the Bluetooth master receiving equipment is Bluetooth slave equipment, the source data equipment masters the communication scheduling right of the whole Bluetooth network, and at the moment, if the Bluetooth master receiving equipment does not have the right to schedule network resources, the purpose of independent communication with the secondary receiving equipment is achieved; in the application, the bluetooth primary receiving device serving as the bluetooth slave device sends a data packet header of N +1 time slots occupied by a data packet corresponding to the specified data packet header in a TYPE domain to the source data device, and the source data device can be deceived into a data receiving state through the data packet header, so that the source data device does not send data outwards any more in subsequent N time slots, and further the bluetooth primary receiving device and the bluetooth secondary receiving device can complete data communication between devices in the N time slots. According to the scheme, the method for deceiving the source data equipment through the TYPE domain of the data packet header enables the Bluetooth main receiving equipment without the network resource scheduling right to schedule the sending behavior of the source data equipment, and the communication purpose is achieved.
The foregoing are merely exemplary embodiments of the present invention, and no attempt is made to show structural details of the invention in more detail than is necessary for the fundamental understanding of the art, the description taken with the drawings making apparent to those skilled in the art how the several forms of the invention may be embodied in practice with the teachings of the invention. It should be noted that, for those skilled in the art, without departing from the structure of the present invention, several changes and modifications can be made, which should also be regarded as the protection scope of the present invention, and these will not affect the effect of the implementation of the present invention and the practicability of the patent. The scope of the claims of the present application shall be determined by the contents of the claims, and the description of the embodiments and the like in the specification shall be used to explain the contents of the claims.

Claims (8)

1. A Bluetooth scheduling method is characterized in that: the method comprises the following steps:
s100: the Bluetooth main receiving equipment executes a data transmission operation which can enable the source data equipment not to transmit data in the next N time slots in the receiving time slot of the source data equipment;
s200: the Bluetooth main receiving equipment completes data transmission with the Bluetooth secondary receiving equipment in the last M time slots;
the S200 includes:
s200-1: in the sending time slot of the source data equipment in the last M time slots, the Bluetooth main receiving equipment sends the data between the equipment to the Bluetooth secondary receiving equipment, and the Bluetooth secondary receiving equipment receives the data between the equipment sent by the Bluetooth main receiving equipment;
s200-2: in the receiving time slot of the source data equipment in the last M time slots, the Bluetooth secondary receiving equipment sends the inter-equipment data to the Bluetooth primary receiving equipment, and the Bluetooth primary receiving equipment receives the inter-equipment data sent by the Bluetooth secondary receiving equipment;
the source data device is a bluetooth master device, the bluetooth master receiving device is a bluetooth slave device, M = N, and the data sending operation in S100 includes:
the Bluetooth main receiving device sends a data packet header to the source data device in a slave-master time slot, and specifies that a data packet corresponding to the data packet header occupies N +1 time slots in a TYPE domain of the data packet header.
2. The bluetooth scheduling method of claim 1, wherein: the transmission time slot of the source data device in S200-1 is a master-slave time slot, and the reception time slot of the source data device in S200-2 is a slave-master time slot.
3. The bluetooth scheduling method of claim 1, wherein: the bluetooth master receiving device is a bluetooth master device, the source data device is a bluetooth slave device, N =1, and the data sending operation in S100 includes:
the bluetooth master receiving device does not transmit data to the source data device in the master-slave time slot.
4. The bluetooth scheduling method of claim 3, wherein: the sending time slot of the source data device in S200-1 is a slave-master time slot, and the receiving time slot of the source data device in S200-2 is a master-slave time slot.
5. A bluetooth master receiving device, characterized by: comprises a scheduling module, a first sending module and a first receiving module, wherein the scheduling module can schedule the data sending action of a source data device when the Bluetooth primary receiving device needs to perform device-to-device data transmission with the Bluetooth secondary receiving device, the scheduling is realized by controlling the first sending module to execute a data sending operation in the receiving time slot of the source data device, which can make the source data device not send data in the last N time slots, the first sending module is used for sending data to the source data device, the first receiving module is used for receiving the data sent by the source data device, the first sending module is also used for sending the data between the devices to the Bluetooth secondary receiving device in the sending time slot of the source data device, the first receiving module is also used for receiving the data between the devices sent by the secondary Bluetooth receiving device in the receiving time slot of the source data device;
the scheduling module includes a data packet header generating module, the data packet header generating module is capable of generating a data packet header, and specifies that a data packet corresponding to the data packet header occupies N +1 time slots in a TYPE domain of the data packet header, and the data sending operation is sending the data packet header generated by the data packet header generating module.
6. The bluetooth master receiver apparatus according to claim 5, wherein: the scheduling module comprises an idle sending module, and the idle sending module is used for controlling the first sending module not to send data in the receiving time slot of the source data device when the Bluetooth main device needs to perform data transmission between devices and the Bluetooth secondary receiving device.
7. A bluetooth secondary receiver for use with the bluetooth primary receiver of claim 6, wherein: the Bluetooth secondary receiving equipment comprises a second sending module and a second receiving module, the second receiving module is used for receiving data sent by the source data equipment or the Bluetooth main receiving equipment at the sending time slot of the source data equipment, and the second sending module is used for sending the data between the equipment to the Bluetooth main receiving equipment at the next receiving time slot of the source data equipment after receiving the data between the equipment sent by the Bluetooth main receiving equipment.
8. A bluetooth system, characterized by: comprising a bluetooth primary reception device according to claim 6 and a bluetooth secondary reception device according to claim 7.
CN201811400686.8A 2018-11-22 2018-11-22 Bluetooth device, system and scheduling method Active CN109587666B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811400686.8A CN109587666B (en) 2018-11-22 2018-11-22 Bluetooth device, system and scheduling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811400686.8A CN109587666B (en) 2018-11-22 2018-11-22 Bluetooth device, system and scheduling method

Publications (2)

Publication Number Publication Date
CN109587666A CN109587666A (en) 2019-04-05
CN109587666B true CN109587666B (en) 2022-07-26

Family

ID=65923518

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811400686.8A Active CN109587666B (en) 2018-11-22 2018-11-22 Bluetooth device, system and scheduling method

Country Status (1)

Country Link
CN (1) CN109587666B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351696B (en) * 2019-09-05 2019-12-03 恒玄科技(上海)有限公司 The communication means of wireless headset and wireless headset
WO2021092728A1 (en) 2019-11-11 2021-05-20 展讯通信(上海)有限公司 Data transmission method and apparatus
CN111556475B (en) * 2020-04-17 2022-04-19 炬力(珠海)微电子有限公司 Bluetooth TWS device, master device and slave device thereof and data transmission method between devices
CN111885554B (en) * 2020-04-24 2023-09-12 珠海市杰理科技股份有限公司 Link switching method based on dual-wireless Bluetooth communication and related equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107894881A (en) * 2017-10-18 2018-04-10 恒玄科技(上海)有限公司 The method that principal and subordinate link switching, conversation monitoring and the Mike of bluetooth earphone switch
CN108337595A (en) * 2018-06-19 2018-07-27 恒玄科技(上海)有限公司 Bluetooth headset realizes the method being precisely played simultaneously
CN108616818A (en) * 2018-03-23 2018-10-02 南京中感微电子有限公司 A kind of data repeating method, Bluetooth slave devices and wireless communication system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8744355B2 (en) * 2011-08-14 2014-06-03 Mediatek Inc. Communication method, and bluetooth device utilizing the communication method
US9131322B2 (en) * 2013-07-08 2015-09-08 Starkey Laboratories, Inc. Method and apparatus for communication between hearing assistance devices in a bluetooth network
CN106559861B (en) * 2015-09-28 2019-11-05 展讯通信(上海)有限公司 Bluetooth equipment data transmission method and device
CN107135256A (en) * 2017-04-27 2017-09-05 建荣半导体(深圳)有限公司 Bluetooth communication method, communicator, communication system and electronic equipment
CN108616819B (en) * 2018-03-23 2021-10-26 南京中感微电子有限公司 Data retransmission method, Bluetooth main device and wireless communication system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107894881A (en) * 2017-10-18 2018-04-10 恒玄科技(上海)有限公司 The method that principal and subordinate link switching, conversation monitoring and the Mike of bluetooth earphone switch
CN108616818A (en) * 2018-03-23 2018-10-02 南京中感微电子有限公司 A kind of data repeating method, Bluetooth slave devices and wireless communication system
CN108337595A (en) * 2018-06-19 2018-07-27 恒玄科技(上海)有限公司 Bluetooth headset realizes the method being precisely played simultaneously

Also Published As

Publication number Publication date
CN109587666A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
CN109495867B (en) Bluetooth device, method for information transmission between bluetooth devices, and bluetooth communication system
CN110267305B (en) Wireless data retransmission method
CN109587666B (en) Bluetooth device, system and scheduling method
CN109495868B (en) Bluetooth device, networking method between Bluetooth devices and Bluetooth communication system
US9094424B2 (en) Method, apparatus, and computer program product for digital stream swapping between signal sources
CN112313977B (en) Low latency audio streaming with communication coexistence
CN110248338B (en) System and method for controlling out-of-network device-to-device communication
CN111654845B (en) Bluetooth multi-terminal link switching method, bluetooth audio equipment and system
CN109379732B (en) Method, system for wireless streaming of audio signals to multiple audio receiver devices
CN110933616A (en) Wireless earphone pairing method and system
CN111436043B (en) Communication method, device, equipment and system of dual-wireless Bluetooth communication network
CN103733661A (en) Methods and apparatuses for providing profile information in a bluetooth communication system
EP3685600B1 (en) Performing a reliable broadcast to a plurality of nodes
CN114208234A (en) Method for supporting multilink in bluetooth network environment and electronic device thereof
EP3337256B1 (en) Method and device for processing proximity services in multiple carriers
CN113055868B (en) Bluetooth rapid networking method and system and Bluetooth headset
CN112188344B (en) TWS earphone and control method thereof
US10863468B1 (en) BLE system with slave to slave communication
EP3624356B1 (en) Wireless headset and signal transmission method for the same
CN111586666B (en) Device discovery method, device and system
CN114666741B (en) Wireless communication method and system
JP5691016B2 (en) Wireless communication system, wireless terminal, and program
WO2023028863A1 (en) Communication method and apparatus
Jain Wireless Protocols for IoT Part I: Bluetooth and Bluetooth Smart
WO2023030048A1 (en) Communication method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230331

Address after: 401120 14th Floor, 107 Daguzhong Road, Xiantao Street, Yubei District, Chongqing

Patentee after: WU QI TECHNOLOGIES, Inc.

Address before: 401120 14th Floor, 107 Daguzhong Road, Xiantao Street, Yubei District, Chongqing

Patentee before: WU QI TECHNOLOGIES, Inc.

Patentee before: SHANGHAI WU QI TECHNOLOGIES, Inc.