Bluetooth communication method, Bluetooth device and Bluetooth communication system

By determining the working status of the communication network in the Bluetooth communication network and extending the communication cycle of the background communication network, the problems of bandwidth resource allocation and service quality are solved, and efficient bandwidth utilization and communication link stability are achieved.

CN119342447APending Publication Date: 2025-01-21ACTIONS ZHUHAI MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310890877.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-19
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

In Bluetooth communication networks, how to reasonably allocate the bandwidth resources used by two communication networks, improve bandwidth utilization, and ensure the service quality of each communication network.

Method used

The current working status of each communication network is determined through the Bluetooth device, and the communication cycle of communicating with the terminal in the communication network in the background state is extended, and when the communication conditions are met, it is adjusted to communicate with the terminal in the background state.

Benefits of technology

It achieves a reasonable allocation of bandwidth resources, improves bandwidth utilization, ensures the service quality of each communication network, and keeps the communication links of the background communication network smooth.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119342447A_ABST
    Figure CN119342447A_ABST
Patent Text Reader

Abstract

The invention discloses a Bluetooth communication method, a Bluetooth device and a Bluetooth communication system, and the Bluetooth device determines the current working state of each communication network, and prolongs the communication period of communication with a terminal in a communication network in a background state; and when the communication condition is satisfied, the Bluetooth device communicates with the terminal in the communication network in the background state. In this way, it is guaranteed that the communication network in the foreground state normally processes services, and the communication link of the communication network in the background state is smooth and not broken; moreover, by prolonging the communication period of communication with the terminal in the communication network in the background state, bandwidth resources used by the two communication networks can be reasonably allocated, the bandwidth utilization rate is improved, and the service quality of each communication network is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Bluetooth, and in particular to a Bluetooth communication method, a Bluetooth device and a Bluetooth communication system. Background Art

[0002] The Bluetooth mode includes a non-low-power Bluetooth audio mode and a low-power Bluetooth audio mode, which can realize short-distance data interaction between devices. Taking Bluetooth headphones as an example, the charging box includes a group of left and right headphones. The two headphones can be connected to the first terminal using the low-power Bluetooth audio mode, so that the first terminal will be connected to the left and right headphones respectively. At this time, the first terminal and the two headphones can constitute a first communication network. The two headphones can also be connected to the second terminal using the non-low-power Bluetooth audio mode. At this time, the left or right earphone is connected to the second terminal, so that only one earphone is connected to the second terminal, and the other earphone obtains the data transmitted between one of the earphones and the second terminal by monitoring. At this time, the second terminal and the two earphones can constitute a second communication network.

[0003] Then, when the headset communicates with the first terminal in the first communication network, how to set the communication method between the headset and the second terminal in the second communication network, and when the headset communicates with the second terminal in the second communication network, how to set the communication method between the headset and the first terminal in the first communication network, so that the bandwidth resources used by the two communication networks can be reasonably allocated, the bandwidth utilization rate can be improved, and the service quality of each communication network can be guaranteed, which has become an urgent problem to be solved. Summary of the invention

[0004] The embodiment of the present invention provides a Bluetooth communication method, a Bluetooth device and a Bluetooth communication system, which are used to reasonably allocate bandwidth resources used by two communication networks, improve bandwidth utilization, and ensure the service quality of each communication network.

[0005] In a first aspect, an embodiment of the present invention provides a Bluetooth communication method, including:

[0006] When a plurality of Bluetooth devices set up in a team form a communication network with a terminal supporting a low-power Bluetooth audio mode, and each of the Bluetooth devices forms another communication network with a terminal supporting a non-low-power Bluetooth audio mode, the Bluetooth device determines the current working state of each of the communication networks, and extends the communication cycle of the communication with the terminal in the communication network in a background state; the working state includes: a foreground state and a background state, the foreground state is a state when processing business, and the background state is a state when not processing business;

[0007] When a communication condition is met, the Bluetooth device is adjusted to communicate with the terminal in the communication network in the background state; the communication condition is determined according to the extended communication cycle.

[0008] In a second aspect, an embodiment of the present invention provides a Bluetooth device in a Bluetooth communication system, including:

[0009] A memory for storing program instructions;

[0010] The processor is used to call the program instructions stored in the memory and execute the Bluetooth communication method introduced in the first aspect according to the obtained program.

[0011] In a third aspect, an embodiment of the present invention provides a Bluetooth communication system, including: a terminal, and a plurality of Bluetooth devices arranged in a team as described in the second aspect above.

[0012] The beneficial effects of the present invention are as follows:

[0013] The embodiment of the present invention provides a Bluetooth communication method, a Bluetooth device and a Bluetooth communication system, wherein the Bluetooth device determines the current working status of each communication network and extends the communication cycle of the terminal in the communication network in the background state; when the communication conditions are met, the Bluetooth device communicates with the terminal in the communication network in the background state. In this way, it is not only conducive to ensuring that the communication network in the foreground state handles the business normally, but also allows the communication link of the communication network in the background state to be unobstructed and uninterrupted; and, by extending the communication cycle of the terminal in the communication network in the background state, the bandwidth resources used by the two communication networks can be reasonably allocated, the bandwidth utilization rate is improved, and the service quality of each communication network is guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 A schematic diagram of the structure of a Bluetooth communication system provided in an embodiment of the present invention;

[0015] Figure 2 A flowchart of a Bluetooth communication method provided in an embodiment of the present invention;

[0016] Figure 3 The present invention is a schematic diagram of a Bluetooth device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0017] The following will be combined with the accompanying drawings to describe in detail the specific implementation of a Bluetooth communication method, a Bluetooth device, and a Bluetooth communication system provided by an embodiment of the present invention. It should be noted that the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0018] In the related art, taking a Bluetooth headset as an example, the charging box includes a group of left and right headsets, and the initial address 1 of the left headset is different from the initial address 2 of the right headset. If the two headsets are connected to the first terminal using the low-power Bluetooth audio mode, the left headset is connected to the first terminal with the initial address 1, and the right headset is connected to the first terminal with the initial address 2, so that the first terminal will be connected to the left and right headsets respectively. Since the initial addresses of the left and right headsets are different, the first terminal can distinguish the two headsets. If the two headsets are connected to the second terminal using the non-low-power Bluetooth audio mode, the left headset is also connected to the second terminal with the initial address 1, and the right headset is also connected to the second terminal with the initial address 2. When the device names of the two headsets are the same, two headsets with the same device name will be displayed on the second terminal; this will make it impossible for the user to correctly distinguish the two headsets, and it is necessary to always distinguish and remember which headset in the charging box the two headsets displayed on the second terminal correspond to, resulting in inconvenient operation and poor experience.

[0019] To solve this problem, the following method can be used: each earphone is initialized with the same shared address, so the address presented to the second terminal by each earphone is the same. This is equivalent to searching for only one earphone (if it is the left earphone) for the second terminal, so the second terminal can connect to the left earphone. After the left earphone is connected to the second terminal, if the right earphone is connected to the second terminal again, the second terminal will see no difference from the left earphone, and will not distinguish which earphone is which. Therefore, when the two earphones are used in a team, the connection between each earphone and the second terminal can be switched seamlessly, so that the user does not need to distinguish which earphone is which, which improves the user experience.

[0020] Therefore, multiple earphones can be connected to the first terminal using the low-power Bluetooth audio mode, and can also be connected to the second terminal using the non-low-power Bluetooth audio mode, without the need for users to distinguish, thereby increasing the user experience.

[0021] If the communication network formed by the two earphones and the first terminal is called the first communication network, and the communication network formed by the two earphones and the second terminal is called the second communication network, how to reasonably allocate the bandwidth resources used by the two communication networks, improve the utilization rate of the bandwidth, and ensure the service quality of each communication network has become an urgent problem to be solved. Based on this, a Bluetooth communication method, a Bluetooth device, and a Bluetooth communication system provided in an embodiment of the present invention are used to solve this problem.

[0022] Before introducing the technical solution provided by the embodiment of the present invention, relevant terms are explained.

[0023] 1. The Bluetooth device can be a playback device with Bluetooth function such as headphones or speakers.

[0024] 2. Non-low-power Bluetooth audio modes include, but are not limited to, classic Bluetooth mode and Bluetooth Low Energy (BLE) mode. Classic Bluetooth mode is suitable for transmission of large amounts of data and supports wireless transmission of audio streams. It can be used for, but is not limited to, Bluetooth phone calls, Bluetooth headsets, Bluetooth speakers, and other scenarios. BLE mode has the characteristics of low power consumption and fast connection speed, and is generally used for transmission of small amounts of data, such as, but not limited to, remote controls, sensor devices, and the like.

[0025] 3. Low-power Bluetooth audio (BLE audio) mode, as a new generation of Bluetooth audio technology, brings new audio experience functions, including enhanced audio performance, added audio sharing function and hearing aid support.

[0026] Next, the technical solution provided by the embodiment of the present invention is described in detail.

[0027] The embodiment of the present invention provides a Bluetooth communication system, such as Figure 1 As shown, it may include: a terminal (as shown in 10 and 20), and a plurality of Bluetooth devices 30 set in a team. Two terminals may be set, and they are respectively recorded as a first terminal 10 and a second terminal 20. The first terminal 10 is a terminal in low-power Bluetooth audio mode, and the second terminal 20 is a terminal supporting non-low-power Bluetooth audio mode; or, a terminal may also be set with one, which may support both low-power Bluetooth audio mode and non-low-power Bluetooth audio mode. The following is explained by taking the setting of two terminals as an example. The device names of the plurality of Bluetooth devices 30 may be the same or different, and the number of Bluetooth devices 30 may be two, three, four or more, which may be set based on actual conditions. Figure 1 Two Bluetooth devices 30 are shown as an example.

[0028] Among them, each Bluetooth device 30 and the first terminal 10 supporting the low-power Bluetooth audio mode constitute a first communication network, each Bluetooth device 30 and the second terminal 20 supporting the non-low-power Bluetooth audio mode constitute a second communication network, and the communication link between each Bluetooth device 30 and the first terminal 10 can be recorded as link1. The first Bluetooth device (such as Figure 1 The communication link between the Bluetooth device 30 on the right side of the middle) and the second terminal 20 can be recorded as link 2, and other Bluetooth devices (such as Figure 1 The monitoring link of the Bluetooth device 30) on the left side (described in the subsequent content) can be recorded as link 3.

[0029] Based on this, Figure 2 As shown, when a Bluetooth device communicates with a corresponding terminal, the Bluetooth communication method used may include:

[0030] S201, the Bluetooth device determines the current working status of the first communication network and the second communication network;

[0031] For example, the current working state of the first communication network is the foreground state, and the corresponding current working state of the second communication network is the background state; or, the current working state of the first communication network is the background state, and the corresponding current working state of the second communication network is the foreground state.

[0032] The working states of the two communication networks at the same time are different, and one communication network can have only one working state at the same time.

[0033] Moreover, the foreground state can be understood as the state when the communication network is processing a service, and the background state can be understood as the state when the communication network is not processing a service. The services may include, but are not limited to: answering calls, playing audio, etc. For example, when the service processed by the first communication network is playing audio, and the service processed by the second communication network is also playing audio, if the current first communication network is playing audio, and the current second communication network is not playing audio, it means that the first communication network is currently in the foreground state, and the second communication network is currently in the background state. For another example, when the service processed by the first communication network is playing audio, and the service processed by the second communication network is answering a call, if the current first communication network is not playing audio, and the current second communication network is answering a call, it means that the first communication network is currently in the background state, and the second communication network is currently in the foreground state.

[0034] S202, the Bluetooth device extends the communication cycle of the terminal in the communication network in the background state;

[0035] For example, when the current working state of the first communication network is the foreground state and the current working state of the second communication network is the background state, the communication cycle with the second terminal is extended; or, when the current working state of the first communication network is the background state and the current working state of the second communication network is the foreground state, the communication cycle with the first terminal is extended.

[0036] In some embodiments, when the Bluetooth device extends the communication cycle of the communication with the terminal in the communication network in the background state, it can send an extension data packet to the corresponding terminal to inform the corresponding terminal that the communication cycle has been extended, and the corresponding terminal can reply with a response data packet, or it can not reply with a response data packet. Alternatively, when the Bluetooth device extends the communication cycle of the communication with the terminal in the communication network in the background state, the Bluetooth device may not send an extension data packet to the corresponding terminal. In this case, the Bluetooth device can respond to the data packet transmitted by the corresponding terminal according to the extended communication cycle to complete the communication with the corresponding terminal, and the corresponding terminal can transmit the data packet according to the communication cycle before the extension.

[0037] S203: When the communication condition is met, the Bluetooth device is adjusted to communicate with the terminal in the communication network in the background state; the communication condition is determined according to the extended communication cycle.

[0038] In some embodiments, when executing S203, it may include: when the communication conditions are met, the Bluetooth device automatically adjusts from performing business processing with the terminal in the communication network in the foreground state to communicating with the terminal in the communication network in the background state; when the Bluetooth device ends the communication with the terminal in the communication network in the background state, it automatically adjusts to continue business processing with the terminal in the communication network in the foreground state.

[0039] It should be understood that for any communication network, the communication cycle can be understood as: the time interval between the start time of the last communication and the start time of this communication (recorded as T). In each time interval T, the Bluetooth device and the terminal perform data interaction, and the time occupied by the data interaction (recorded as T1) can be the entire time interval T, in which case T1=T; or, the time T1 occupied by the data interaction can be a part of the entire time interval T, and the remaining time is recorded as T2, in which case T=T1+T2, and the time T1 occupied by the data interaction precedes the remaining time T2.

[0040] When the moment when the communication conditions are determined to be met is recorded as t0, t0 may be within T1 (assuming that T1 at this time represents the time when the Bluetooth device interacts with the terminal in the communication network in the foreground state), or it may be within T2 (assuming that T2 at this time represents the time when the Bluetooth device does not interact with the terminal in the communication network in the foreground state). When t0 is within T1, the Bluetooth device will automatically adjust from processing business with the terminal in the communication network in the foreground state to communicating with the terminal in the communication network in the background state, and suspend receiving data sent by the terminal in the communication network in the foreground state, but the terminal in the communication network in the foreground state still sends data according to the original cycle. When the Bluetooth device finishes communicating with the terminal in the communication network in the background state, it continues to receive data sent by the terminal in the communication network in the foreground state, continues to interact with the terminal in the communication network in the foreground state, and continues to process business.

[0041] When t0 is within T2, the Bluetooth device will also automatically adjust from processing business with the terminal in the communication network in the foreground state to communicating with the terminal in the communication network in the background state. However, in T2, the Bluetooth device does not exchange data with the terminal in the communication network in the foreground state, that is, the communication network in the foreground state is currently in an idle state, so the Bluetooth device continues to maintain the state with the terminal in the communication network in the foreground state. When the Bluetooth device finishes communicating with the terminal in the communication network in the background state, if it is time to exchange data with the terminal in the communication network in the foreground state, it will exchange data with the terminal in the communication network in the foreground state. If it is not time to exchange data, it will wait for data interaction with the terminal in the communication network in the foreground state.

[0042] Among them, business processing refers to the transmission of data packets between the Bluetooth device and the corresponding terminal for the purpose of processing business, and the communication cycle between the Bluetooth device and the corresponding terminal is generally short, such as but not limited to a few ms or tens of ms, so as to achieve rapid processing of business and improve the user experience. When the communication conditions are met and the Bluetooth device communicates with the terminal in the communication network in the background state, the communication here is different from business processing. The purpose of communication here is not to process business, but to keep the communication link unobstructed and calibrate the clock to avoid disconnection of the communication link and achieve clock synchronization. It does not need to consider what business it is.

[0043] In some embodiments, the communication conditions may include:

[0044] When the extended communication cycle is reached and the communication network in the foreground state is in a non-idle state, the recorded number of interruptions is increased by one; when the extended communication cycle is reached and the communication network in the foreground state is in an idle state, the recorded number of interruptions is reset to zero; when the communication conditions are met, the recorded number of interruptions is reset to zero; in this case, if the recorded number of interruptions reaches the threshold, it means that the communication conditions are currently met, or if the extended communication cycle is reached, the communication network in the foreground state is in the idle state, which also means that the communication conditions are currently met. Of course, when the communication conditions are not met, the Bluetooth device interrupts the communication with the terminal in the communication network in the background state, so that the Bluetooth device and the terminal in the communication network in the foreground state continue business processing. It should be understood that the idle state can be understood as: a state in which the communication link is kept unobstructed but there is no data transmission. The non-idle state can be understood as: a state in which data transmission is carried out.

[0045] Based on this, the specific implementation process of the above S203 may include:

[0046] First assume the threshold is 3, then:

[0047] When the first communication cycle after the extension is reached, if the communication network in the foreground state is in a non-idle state, the communication with the terminal in the communication network in the background state is interrupted, and the recorded number of interruptions is increased by 1, such as from 0 to 1. Since 1 is not equal to 3, the recorded number of interruptions does not reach the threshold, and the communication condition is not met at present, so the Bluetooth device continues the business processing with the terminal in the communication network in the foreground state without pausing;

[0048] When the second communication cycle after the extension is reached, if the communication network in the foreground state is still in a non-idle state, the communication with the terminal in the communication network in the background state is interrupted, and the recorded number of interruptions is increased by 1, such as from 1 to 2. Since 2 is not equal to 3, the recorded number of interruptions does not reach the threshold, and the communication condition is not met at present, so the Bluetooth device continues to maintain the business processing with the terminal in the communication network in the foreground state without pausing;

[0049] When the third communication cycle after the extension is reached, if the communication network in the foreground state is still in a non-idle state, the communication with the terminal in the communication network in the background state is interrupted, and the recorded number of interruptions is increased by 1, such as from 2 to 3. Because the recorded number of interruptions has reached the threshold, the Bluetooth device determines that the communication conditions are currently met, and the recorded number of interruptions is reset to 0, and the communication is adjusted to the terminal in the communication network in the background state, and the business processing with the terminal in the communication network in the foreground state is suspended;

[0050] Afterwards, each time the extended communication period is reached, the same process is repeated.

[0051] Alternatively, when the first communication cycle after the extension is reached, if the communication network in the foreground state is in a non-idle state, the communication with the terminal in the communication network in the background state is interrupted, and the recorded number of interruptions is increased by 1, such as from 0 to 1. Since 1 is not equal to 3, the recorded number of interruptions does not reach the threshold, and the communication condition is not met at present, so the Bluetooth device continues the business processing with the terminal in the communication network in the foreground state without pausing;

[0052] When the second communication cycle after the extension is reached, if the communication network in the foreground state is in an idle state, it is determined that the communication condition is currently met, and the Bluetooth device resets the recorded number of interruptions to 0, and adjusts to communicate with the terminal in the communication network in the background state, and suspends business processing with the terminal in the communication network in the foreground state;

[0053] Afterwards, each time the extended communication period is reached, the same process is repeated.

[0054] Among them, the value of the threshold is not limited to 3. This is just an example. The threshold can be set according to factors such as the maximum time to keep the communication link unobstructed to ensure that the communication link between the Bluetooth device and the terminal in the communication network in the background state is unobstructed and avoid interruption of the communication link.

[0055] In this way, it is not only conducive to ensuring that the communication network in the foreground state processes business normally, but also can make the communication link of the communication network in the background state unobstructed and uninterrupted; and, by extending the communication cycle of the terminal in the communication network in the background state, the number of communications between the Bluetooth device and the terminal in the communication network in the background state can be reduced, thereby reducing the bandwidth resources occupied by the communication network in the background state, providing more bandwidth resources for the communication network in the foreground state, so that the bandwidth resources used by the two communication networks are reasonably allocated, improving the utilization rate of the bandwidth, and ensuring the service quality of each communication network. In addition, while ensuring that the communication link of the communication network in the background state is unobstructed and uninterrupted, the clock calibration of the Bluetooth device and the terminal in the communication network in the background state can also be achieved to ensure that the data packet can be effectively transmitted.

[0056] In some embodiments, in the second communication network, one of the multiple Bluetooth devices (recorded as the first Bluetooth device) interacts with the second terminal, while the other Bluetooth devices do not interact with the second terminal. The other Bluetooth devices use a monitoring method to obtain the data of the first Bluetooth device interacting with the second terminal, so the communication link used by the other Bluetooth devices to implement monitoring can be called a monitoring link. Therefore, when the second communication network is in the background state, the first Bluetooth device can perform the above-mentioned process from S201 to S203, and the other Bluetooth devices do not need to perform the above-mentioned process from S201 to S203. And when the second communication network is in the background state, since the other Bluetooth devices are in the monitoring state, the other Bluetooth devices can stop monitoring, which can reduce the bandwidth resource occupation on the communication link used by the other Bluetooth devices when monitoring, provide more bandwidth resources for the first communication network, and realize the reasonable allocation of bandwidth resources. It should be understood that the action of stopping monitoring by other Bluetooth devices can occur at any time before the working state of the two communication networks is switched, and can optionally occur at the moment when the second communication network is switched to the background state, so that the bandwidth resource occupation on the communication link used by other Bluetooth devices when monitoring can be reduced earlier, and more bandwidth resources can be provided to the first communication network earlier.

[0057] Furthermore, in the first communication network, each Bluetooth device will perform data interaction with the first terminal, so each Bluetooth device will execute the above-mentioned processes from S201 to S203.

[0058] The following describes in detail the following by taking the first communication network being in the foreground state or the second communication network being in the foreground state as an example.

[0059] 1. The first communication network is in the foreground state, and the second communication network is in the background state.

[0060] 1.1. When the first Bluetooth device extends the communication cycle with the second terminal in the second communication network, the following process may be included:

[0061] 1.1.1. If there is no data transmission between the second terminal and the first Bluetooth device.

[0062] (a) When the first Bluetooth device determines that link 2 is in an idle state, other Bluetooth devices stop monitoring, but keep link 3 open. The first Bluetooth device extends the communication cycle with the second terminal, for example but not limited to the communication cycle being extended to 300ms, 400ms or 500ms, etc., so that the clocks of the first Bluetooth device and the second terminal can be calibrated to achieve clock synchronization, and link 2 can be kept open. It should be noted that even if the communication conditions are met and the first Bluetooth device communicates with the second terminal, other Bluetooth devices will not monitor until the second communication network switches to the foreground state, and other Bluetooth devices will restart monitoring on link 3.

[0063] (b) When the first Bluetooth device determines that link 2 is not in the idle state, the first Bluetooth device controls link 2 to enter the idle state, and then processes in the manner of (a) in 1.1.1, which will not be repeated here.

[0064] 1.1.2. If there is data transmission between the second terminal and the first Bluetooth device.

[0065] (a) If the streaming media data (such as but not limited to music data) transmitted between the first Bluetooth device and the second terminal can be suspended, the first Bluetooth device cuts off the streaming media path between the first Bluetooth device and the second terminal, and then processes in the manner of 1.1.1 (a), which will not be repeated here. Link 2 is a physical link, and the physical path may include multiple logical paths, and the streaming media path belongs to one of the logical paths.

[0066] (b) If the streaming media data (such as but not limited to the audio data in the live video, short video and other data) transmitted between the first Bluetooth device and the second terminal cannot be suspended, the communication cycle of link 2 is extended, such as but not limited to 200ms, 300ms, 400ms or 500ms. The processing method of link 3 can be processed in the same way as link 3 in (a) of 1.1.1, which will not be repeated here.

[0067] In short, when the first communication network is in the foreground state and the second communication network is in the background state, the communication cycle of link 2 can be extended, the number of communications on link 2 can be reduced, and the occupation of bandwidth resources can be reduced, so that more bandwidth resources can be provided for the first communication network in the foreground state, and reasonable allocation of bandwidth resources can be achieved.

[0068] 1.2. When the first Bluetooth device communicates with the second terminal, the following may be included:

[0069] If the streaming media data transmitted between the first Bluetooth device and the second terminal can be suspended, the first Bluetooth device receives a non-streaming media data packet transmitted on the communication link with the second terminal, and feeds back a response data packet to the second terminal.

[0070] Alternatively, if the streaming media data transmitted between the first Bluetooth device and the second terminal cannot be suspended, the first Bluetooth device processes the transmitted data according to the type of data transmitted on ink 2, and feeds back a response data packet to the second terminal.

[0071] Specifically, the first Bluetooth device determines whether the data transmitted on link 2 is a streaming data packet; if so, the first Bluetooth device discards the streaming data packet and feeds back a response data packet to the second terminal, so that the second terminal transmits the next streaming data packet when receiving the response data packet; if not, the first Bluetooth device receives a non-streaming data packet and feeds back a response data packet to the second terminal.

[0072] Among them, the non-streaming media data packet can be understood as a protocol data packet, which may include data such as volume control, pause play, start play, etc. Through the above process, the data transmission of link 2 can be guaranteed without losing key data (such as protocol data packets), and it can also be ensured that link 2 will not time out and disconnect due to long-term non-communication.

[0073] Furthermore, the data contained in the response data packet fed back when the streaming media data packet is discarded and the data contained in the response data packet fed back when the non-audio data is received may be the same or different, and may be set according to actual conditions and is not limited here.

[0074] 1.3. When the second communication network is switched to the foreground state, it may include: when the switching condition is met, the first Bluetooth device switches the working states of the two communication networks, so that the second communication network is switched from the background state to the foreground state, and the first communication network is switched from the foreground state to the background state. In this way, the switching of the working states of the two communication networks can be achieved, and the reasonable allocation of bandwidth resources can also be achieved, thereby improving the utilization rate of bandwidth resources.

[0075] The switching condition may include: receiving a switching instruction; and / or when the two communication networks process different services and the priority of the service processed by the communication network in the background state (i.e., the second communication network) is higher than the priority of the service processed by the communication network in the foreground state (i.e., the first communication network), the service processed by the communication network in the background state is started. In addition, the switching instruction may be: when a button with a switching function is set in a Bluetooth device or in a storage device for accommodating multiple Bluetooth devices in a team setting, the instruction generated when the button is pressed.

[0076] For example, the first communication network is in the foreground state and the service it processes is playing audio, and the second communication network is in the background state and the service it processes is answering calls. When a call is connected to the second terminal, if the priority of answering the call is higher than the priority of playing audio, it means that the service of answering the call with a higher priority is started. Therefore, the switching conditions are currently met, and the first Bluetooth device switches the first communication network to the background state and the second communication network to the foreground state, so as to give priority to the service of answering the call.

[0077] For another example, the first communication network is in the foreground state and the service it processes is audio playback, and the second communication network is in the background state and the service it processes is also audio playback. When receiving a switching instruction, the first Bluetooth device switches the first communication network to the background state and the second communication network to the foreground state.

[0078] In these two examples, for other Bluetooth devices, when the first Bluetooth device switches the working states of the two communication networks, the first Bluetooth device can inform other Bluetooth devices so that the other Bluetooth devices can synchronously switch the working states of the two communication networks.

[0079] 2. The first communication network is in the background state, and the second communication network is in the foreground state.

[0080] 2.1. When each Bluetooth device extends the communication cycle with the first terminal in the first communication network, the following process may be included:

[0081] 2.1.1. If there is no data transmission between the first terminal and each Bluetooth device.

[0082] Each Bluetooth device extends the communication cycle with the first terminal according to the transmission parameters of the data in the communication network in the foreground state (ie, the second communication network); wherein the transmission parameters include: transmission rate and / or packet loss rate.

[0083] For example, taking the transmission parameters including the packet loss rate as an example, the packet loss rate of the data packets on link 2 is monitored. If the packet loss rate is less than the first threshold (for example, but not limited to 10%), the communication cycle of link 1 is extended, for example, but not limited to 200ms; if the packet loss rate is greater than or equal to the first threshold and less than the second threshold (for example, but not limited to 40%), the communication cycle of link 1 is extended, for example, but not limited to 300ms; if the packet loss rate is greater than or equal to the second threshold, the communication cycle of link 1 is extended, for example, but not limited to 400ms. Therefore, the higher the packet loss rate, the longer the communication cycle of link 1 can be set, and vice versa. In this way, the communication of link 1 can be ensured to be in the optimal state, so that the communication cycle is not too long, and the data on link 1 can be effectively transmitted.

[0084] Similarly, when the transmission parameter includes the transmission rate, the communication period of link 1 may be extended according to the difference or ratio between the data transmission rate and the playback rate of the Bluetooth device.

[0085] It should be understood that no matter whether the communication cycle of link 1 is extended based on the packet loss rate or the transmission rate, since the packet loss rate and the transmission rate are changing, not constant, the communication cycle of link 1 is also changing, thereby achieving dynamic extension of the communication cycle of link 1.

[0086] Of course, in addition to extending the communication cycle with the first terminal according to the transmission parameters of the data in the communication network in the foreground state, the communication cycle of link 1 can also be directly extended. In this way, the extended communication cycle of link 1 is not dynamic. As long as the working state of the communication network is not switched, the extended communication cycle of link 1 remains unchanged.

[0087] 2.1.2. If there is data transmission between the first terminal and each Bluetooth device.

[0088] (a) If the data transmission between the first terminal and each Bluetooth device can be suspended, each Bluetooth device stops transmitting data with the first terminal, and then processes according to link 1 in 2.1.1, which will not be repeated here.

[0089] (b) If the data transmission between the first terminal and each Bluetooth device cannot be suspended, the communication cycle of link1 is extended, for example but not limited to, to 300 ms.

[0090] In short, when the first communication network is in the background state and the second communication network is in the foreground state, the communication cycle of link 1 can be extended, the number of communications on link 1 can be reduced, and the occupation of bandwidth resources can be reduced, so that more bandwidth resources can be provided for the second communication network in the foreground state, and reasonable allocation of bandwidth resources can be achieved.

[0091] 2.2. When each Bluetooth device communicates with the first terminal, the method in 1.2 above may be used. For details, please refer to the description in 1.2 above, which will not be repeated here.

[0092] 2.3. When the working states of the two communication networks are switched, the method in 1.3 above may be adopted. For details, please refer to the description in 1.3 above, which will not be repeated here.

[0093] It should be noted that in the above two situations, no matter which communication network is in the foreground state and which communication network is in the background state, the communication cycle between the Bluetooth device and the corresponding terminal in the communication network in the background state is extended, while the communication cycle between the Bluetooth device and the corresponding terminal in the communication network in the foreground state can remain unchanged, and communication can be carried out according to the pre-configured communication cycle.

[0094] Furthermore, the priority of the communication link in the communication network in the foreground state is higher than the priority of the communication link in the communication network in the background state. For example, when the first communication network is in the background state and the second communication network is in the foreground state, the priority of link 2 is higher than the priority of link 1; or, when the first communication network is in the foreground state and the second communication network is in the background state, the priority of link 1 is higher than the priority of link 2. Therefore, while ensuring the normal communication of the communication link with a higher priority, the communication cycle of the communication link with a lower priority can be extended to reduce the bandwidth resources occupied by the communication link with a lower priority, thereby realizing the reasonable allocation of bandwidth resources and improving the utilization rate of bandwidth resources.

[0095] Based on the same inventive concept, an embodiment of the present invention further provides a Bluetooth device, the implementation principle of which is similar to the implementation principle of the aforementioned Bluetooth communication method. The specific implementation method of the Bluetooth device can refer to the embodiment of the aforementioned Bluetooth communication method, and the repeated parts will not be repeated.

[0096] Specifically, an embodiment of the present invention provides a Bluetooth device, such as Figure 3 As shown, it may include:

[0097] Memory 301, used for storing program instructions;

[0098] The processor 302 is used to call the program instructions stored in the memory 301 and execute the Bluetooth communication method introduced in the above content according to the obtained program.

[0099] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A Bluetooth communication method, characterized in that: include: When a plurality of Bluetooth devices set up in a team form a communication network with a terminal supporting a low-power Bluetooth audio mode, and each of the Bluetooth devices forms another communication network with a terminal supporting a non-low-power Bluetooth audio mode, the Bluetooth device determines the current working state of each of the communication networks, and extends the communication cycle of the communication with the terminal in the communication network in a background state; the working state includes: a foreground state and a background state, the foreground state is a state when processing business, and the background state is a state when not processing business; When a communication condition is met, the Bluetooth device is adjusted to communicate with the terminal in the communication network in the background state; the communication condition is determined according to the extended communication cycle.

2. The Bluetooth communication method according to claim 1, wherein: The communication conditions include: When the extended communication cycle is reached and the communication network in the foreground state is in a non-idle state, the recorded number of interruptions is increased by one, and when the extended communication cycle is reached and the communication network in the foreground state is in an idle state, the recorded number of interruptions is reset to zero: The number of recorded interruptions reaches a threshold; Or, when the extended communication cycle is reached, the communication network in the foreground state is in the idle state; Wherein, when the communication condition is met, the recorded number of interruptions is reset to zero.

3. The Bluetooth communication method according to claim 1, wherein: Prolonging a communication cycle of communicating with the terminal in the communication network in the background state, comprising: When the communication network formed by each of the Bluetooth devices and the terminal supporting the low-power Bluetooth audio mode is in the background state, according to the transmission parameters of the data in the communication network in the foreground state, extending the communication cycle of the communication with the terminal in the communication network in the background state; The transmission parameters include: transmission rate and / or packet loss rate.

4. The Bluetooth communication method according to claim 1, wherein: Also includes: When there is streaming data transmission between the Bluetooth device and the terminal in the communication network in the background state, and the transmission of the streaming data can be suspended, the Bluetooth device cuts off the streaming path between the corresponding terminal before extending the communication cycle with the terminal in the communication network in the background state.

5. The Bluetooth communication method according to claim 4, characterized in that: The Bluetooth device communicates with the terminal in the communication network in the background state, including: The Bluetooth device receives a non-streaming media data packet transmitted on a communication link with the terminal in the communication network in the background state, and feeds back a response data packet to the terminal in the communication network in the background state.

6. The Bluetooth communication method according to claim 1, wherein: The Bluetooth device communicates with the terminal in the communication network in the background state, including: When there is streaming media data transmission between the Bluetooth device and the terminal in the communication network in the background state, and the streaming media data transmission cannot be paused: The Bluetooth device processes the transmitted data according to the type of data transmitted on the communication link with the terminal in the communication network in the background state, and feeds back a response data packet to the terminal in the communication network in the background state.

7. The Bluetooth communication method according to claim 6, wherein: According to the type of data transmitted on the communication link with the terminal in the communication network in the background state, processing the transmitted data, and feeding back a response data packet to the terminal in the communication network in the background state, comprising: Determining whether data transmitted on a communication link with the terminal in the communication network in the background state is a streaming media data packet; If yes, discard the streaming data packet, and feed back a response data packet to the terminal in the communication network in the background state, so that the terminal in the communication network in the background state transmits the next streaming data packet when receiving the response data packet; If not, the non-streaming media data packet is received, and a response data packet is fed back to the terminal in the communication network in the background state.

8. The Bluetooth communication method according to claim 1, wherein: When a communication condition is met, the Bluetooth device is adjusted to communicate with the terminal in the communication network in the background state, including: When the communication condition is met, the Bluetooth device automatically adjusts from performing service processing with the terminal in the communication network in the foreground state to communicating with the terminal in the communication network in the background state; When the communication with the terminal in the communication network in the background state is completed, the Bluetooth device automatically adjusts to continue business processing with the terminal in the communication network in the foreground state.

9. The Bluetooth communication method according to claim 1, wherein: Also includes: When the communication network formed by each of the Bluetooth devices and the terminal supporting the non-low power Bluetooth audio mode is in the background state, the Bluetooth device in the monitoring state stops monitoring.

10. The Bluetooth communication method according to any one of claims 1 to 9, characterized in that: Also includes: When the switching condition is met, the Bluetooth device switches the working states of the two communication networks; The switching conditions include: A switching instruction is received; And / or, when the two communication networks process different services, and the priority of the service processed by the communication network in the background state is higher than the priority of the service processed by the communication network in the foreground state, the service processed by the communication network in the background state is started.

11. A Bluetooth device in a Bluetooth communication system, characterized in that: include: A memory for storing program instructions; A processor, configured to call the program instructions stored in the memory, and execute the Bluetooth communication method according to any one of claims 1 to 10 according to the obtained program.

12. A Bluetooth communication system, characterized in that: include: A terminal, and a plurality of Bluetooth devices as claimed in claim 11 arranged in a team.