Bluetooth device, operation method thereof, and non-transitory computer-readable recording medium
By receiving and modifying the setting data in the processor of the Bluetooth device and optimizing the parameter configuration of Bluetooth communication, the problem of audio transmission delay in Bluetooth communication is solved, especially in a high-synchronous environment, which significantly reduces the delay and improves data transmission efficiency .
Patent Information
- Application Number
- CN201910451243.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-05-28
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2039-05-28
Smart Images

Figure CN112020043B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to an electronic device and a control method, and in particular to an operation method of a bluetooth device. Background Art
[0002] In Bluetooth communication technology, the technical specification related to audio transmission is the Advanced Audio Distribution Profile (A2DP). Under the A2DP specification, when Bluetooth devices transmit and receive audio, there is often a delay due to the hardware and / or software conditions between Bluetooth devices. Therefore, how to reduce the delay in the transmission mechanism between Bluetooth devices is an urgent problem to be solved. Summary of the invention
[0003] The invention summary is intended to provide a simplified summary of the present disclosure so that readers can have a basic understanding of the present disclosure. This invention summary is not a complete overview of the present disclosure, and it is not intended to point out the important / critical components of the embodiments of the present invention or to define the scope of the present invention.
[0004] An embodiment of the present invention discloses a Bluetooth device, the Bluetooth device comprising a communication circuit and a processor. The communication circuit is configured to receive setting data from a control channel. The processor is coupled to the communication circuit, wherein the processor uses the setting data to modify at least one execution parameter to change an operating environment, and the processor performs Bluetooth communication operations according to the modified operating environment.
[0005] An embodiment of the present invention discloses a method for operating a Bluetooth device, wherein the Bluetooth device includes a communication circuit and a processor coupled to the communication circuit. The method for operating the Bluetooth device includes the following steps: receiving setting data via a control channel of the communication circuit; modifying at least one execution parameter using the setting data by the processor; and performing Bluetooth communication operations according to the operation environment of the modified at least one execution parameter. BRIEF DESCRIPTION OF THE DRAWINGS
[0006] The following detailed description, when read in conjunction with the accompanying drawings, will facilitate understanding of the embodiments of the present invention. It should be noted that the features in the drawings are not necessarily drawn to scale in order to illustrate the actual operation requirements. In fact, the size of each feature may be arbitrarily increased or decreased for the purpose of clarity of discussion.
[0007] Figure 1 It is a functional block diagram of a Bluetooth communication system according to some embodiments of the present invention.
[0008] Figure 2 is a flow chart of a method for operating a Bluetooth device according to some embodiments of the present invention.
[0009] Figure 3 Show Figure 2 A flowchart of the steps involved in using setting data to modify a Bluetooth device. DETAILED DESCRIPTION
[0010] Reference Figure 1 , Figure 1 1 is a functional block diagram of a Bluetooth communication system 10 according to some embodiments of the present invention. Figure 1 As shown, the Bluetooth communication system 10 includes a receiving Bluetooth device 100 and a transmitting Bluetooth device 200. In some embodiments, the transmitting Bluetooth device 200 is an active end node (Master Node) or a transmitting end node (SourceNode), and the receiving Bluetooth device 100 is a passive end node (Slave Node) or a receiving end node (Sink Node). In other embodiments, the Bluetooth communication system 10 may also include a plurality of active end nodes and passive end nodes to form a multi-node network topology. The present invention uses the receiving end Bluetooth device 100 and the transmitting end Bluetooth device 200 as an exemplary description, but is not limited to two communication nodes.
[0011] The transmitting end Bluetooth device 200 includes a communication circuit 210, a processor 220 and a storage medium 230. The processor 220 is coupled to the communication circuit 210 and the storage medium 230. The storage medium 230 is used to store audio data or multimedia data, and application instructions, etc. In some embodiments, the transmitting end Bluetooth device 200 can be, but is not limited to, a mobile phone, a computer, a television, etc.
[0012] The receiving end Bluetooth device 100 includes a communication circuit 110, a processor 120, a buffer 130, a codec 140, and an output circuit 150. The processor 120 is coupled to the communication circuit 110, the buffer 130, and the codec 140. In some embodiments, the receiving end Bluetooth device 100 can be, but is not limited to, a headset, a speaker, a game controller, etc. The output circuit 150 is, for example, an audio playback circuit, etc.
[0013] The communication circuit 110 of the receiving Bluetooth device 100 and the communication circuit 210 of the transmitting Bluetooth device 200 include a control channel 213 and a data channel 215 for data exchange. In one embodiment, the receiving Bluetooth device 100 receives the setting data generated by the transmitting Bluetooth device 200 through the control channel. In another embodiment, the receiving Bluetooth device 100 receives the streaming data of the transmitting Bluetooth device 200 through the data channel. The receiving Bluetooth device 100 and the transmitting Bluetooth device 200 use the Bluetooth High Quality Audio Distribution Profile (A2DP) to achieve wireless transmission of streaming data. The description of the operation mode is as follows.
[0014] The user can select the desired operation mode in the application on the sending Bluetooth device 200. For example, in the sending Bluetooth device 200, the storage medium 230 records a plurality of program instructions, and the processor 220 executes these instructions to provide a plurality of configuration modes in the sending Bluetooth device 200. The configuration mode includes a first mode for sending setting data to the receiving Bluetooth device 100. In one embodiment, the first mode may be a Bluetooth Low Energy (BLE) mode in Bluetooth communication technology. The configuration mode also includes a second mode for transmitting streaming data to the receiving Bluetooth device 100. The second mode may be a Basic Rate (BR) / Enhanced Data Rate (EDR) mode.
[0015] In the first mode (BLE mode), the transmitting Bluetooth device 200 transmits the configuration data to the receiving Bluetooth device 100 via the control channel 213. In one embodiment, the transmitting Bluetooth device 200 transmits the configuration data via Generic Attribute Profile (GATT).
[0016] In the second mode (BR / EDR mode), the transmitting end Bluetooth device 200 transmits the streaming data to the receiving end Bluetooth device 100 via the data channel 215. In one embodiment, the receiving end Bluetooth device 100 includes a storage medium (not in Figure 1 As shown in FIG. 1 , the storage medium records a plurality of instructions and corresponding functions. Therefore, after receiving the setting data, the receiving end Bluetooth device 100 dynamically adjusts the corresponding function operation through the instruction. The detailed operation method of each mode is described as follows.
[0017] Refer to Figure 1 to Figure 2 , which is a flow chart of a method for operating a Bluetooth device according to some embodiments of the present invention. In some embodiments, the Bluetooth device may be, for example, the Bluetooth device 100 or the Bluetooth device 200.
[0018] In step S210, the sending end Bluetooth device 200 initiates a call procedure to the receiving end Bluetooth device 100 to establish a basic communication link. For example, the receiving end Bluetooth device 100 wakes up from a standby state or establishes a communication link according to the Bluetooth protocol. In step S220, the application programming interface of the sending end Bluetooth device 200 provides multiple configuration modes, and the user can select the configuration mode he wants to implement.
[0019] In step S230, if the first mode is selected by the user, step S240 is executed. In step S240, the transmitting end Bluetooth device 200 activates the first mode, and the user can decide on the application programming interface that he wants to modify the parameters of the receiving end Bluetooth device 100, and generate setting data. In step S250, the receiving end Bluetooth device 100 receives the setting data through the control channel 213, and the setting data can be used to modify the execution parameters of the receiving end Bluetooth device 100. The embodiment involving modifying the execution parameters will be described in detail in detail in FIG. Figure 3 illustrate.
[0020] Next, in step S260 , the receiving Bluetooth device 100 uses the setting data to modify the execution parameters to change the operating environment, thereby performing the communication operation with the transmitting Bluetooth device 200 .
[0021] In step S230 , if the user does not select the first mode, step S270 is executed. In step S270 , the transmitting end Bluetooth device 200 activates the second mode. In step S280 , the receiving end Bluetooth device 100 receives the streaming data through the data channel 215 and stores the streaming data packets in the buffer 130 .
[0022] Refer to Figure 3 , which shows Figure 2 In step S250, the receiving end Bluetooth device 100 receives the setting data via the control channel 213, as described above.
[0023] Next, when the data is set as the buffer parameter of the buffer 130, in step S252, the receiving end Bluetooth device 100 modifies the data buffer size for the buffer 130 according to the buffer parameter. In step S253, one or more data stream packets are stored in the buffer 130. When the number of data stream packets stored in the buffer 130 is equal to the data buffer size, the codec 140 is activated to decode the data stream to play the multimedia data on the output circuit 150.
[0024] In step S253 and step S260, in one embodiment, if the data buffer size is 1, it means that when the buffer 130 is caching a streaming data packet, the codec 140 starts decoding. Since the codec module of the conventional Bluetooth device will not start decoding until the buffer module has cached a certain number of packets, the time point when the codec module starts encoding is delayed. Therefore, the codec 140 starts decoding when the buffer 130 of the present invention caches a streaming data packet, which can reduce the delay when the user is watching a video and listening to music at the same time.
[0025] When the setting data is initialization parameters related to a digital signal processor (DSP), in step S254, the processor 120 performs an initialization procedure on the digital signal processor according to the initialization parameters. In one embodiment, the buffer 130 starts to store the streaming data after the processor 120 performs the initialization procedure.
[0026] In step S254 and step S260, in one embodiment, since the receiving Bluetooth device 100 immediately initializes the digital signal processor, the codec 140 can immediately decode the streaming data as soon as the buffer 130 receives it, thereby reducing the playback delay.
[0027] When the setting data is used to set the priority parameter of the communication circuit 110, in step S256, the processor 120 modifies the communication link priority level of the communication circuit 110 according to the priority parameter. In one embodiment, the receiving end Bluetooth device 100 includes multiple communication circuits, such as Bluetooth communication circuits, Wi-Fi wireless communication circuits, motion communication circuits or other wireless network communication circuits, etc., wherein each communication circuit can be set with a corresponding communication link priority level. For example, when the priority parameter indicates that the Bluetooth communication circuit is the first connection sequence, the receiving end Bluetooth device 100 will use the Bluetooth protocol as the communication protocol for establishing the connection first.
[0028] In step S256 and step S260 , in one embodiment, if the priority level of the Bluetooth communication circuit is modified to be the highest, the Bluetooth communication between the receiving Bluetooth device 100 and the transmitting Bluetooth device 200 will not be delayed due to trying other communication connections.
[0029] When the setting data is a packet parameter, in step S258 , the processor 220 adjusts the transmission packet size of the communication circuit 210 according to the packet parameter.
[0030] In step S258 and step S260, in one embodiment, if the packet parameter modifies the size of the transmitted packet to 2000 bytes, compared to a 3000-byte packet, the communication circuit 210 can encapsulate data faster and send out the packet, so that the receiving Bluetooth device 100 spends less time decapsulating the packet and decoding it immediately, thereby reducing the playback delay of the streaming data, and vice versa.
[0031] In one embodiment, both the receiving Bluetooth device 100 and the transmitting Bluetooth device 200 support dual working modes (BLE mode and ER / EDR mode). An application is provided on the transmitting Bluetooth device 200 to automatically switch the dual working modes and intelligently determine the mode to be executed.
[0032] In some embodiments, the present invention provides a non-transitory computer-readable recording medium that can store multiple program codes. Figure 1 After the receiving end Bluetooth device 100 and the sending end Bluetooth device 200 of the Bluetooth communication system 10, the processor 120 of the receiving end Bluetooth device 100 and the processor 220 of the sending end Bluetooth device 200 execute the following Figure 2 Steps S210 to S280 and Figure 3 The steps S250, S252 to S258, and S260 are described in the foregoing description and will not be repeated here.
[0033] In summary, unlike the previous A2DP specification, in the Bluetooth device and the method for operating the Bluetooth device of the present invention, the user can select the mode he wants to operate on the receiving source device 100 through the application of the sending Bluetooth device 200. When the user is in a general music listening environment, he can tolerate a higher delay, so the receiving source device 100 is set to a general Bluetooth transmission mode. On the other hand, when the user is watching a video and using a Bluetooth headset or Bluetooth speaker to play audio, or using a Bluetooth controller to play games, the video and audio need to be highly synchronized, and the tolerance for delay is low. Therefore, the parameters of the receiving source device 100 are modified by the aforementioned method to reduce the delay. In this way, the setting data of the Bluetooth device is modified according to actual needs, and the configuration parameters of the Bluetooth device are dynamically adjusted to achieve the control of delay conditions in different playback environments, and provide low-delay data transmission for environments with low delay tolerance, thereby overcoming the technical problem that the parameters could not be adjusted in the past.
[0034] The features of several embodiments are summarized above so that those skilled in the art can better understand the implementation of the present invention. Those skilled in the art should understand that the present invention can be easily used as a basis for designing or modifying other processes and structures to implement the same purposes and / or achieve the same advantages of the embodiments described herein. Those skilled in the art should also recognize that such equivalent structures do not depart from the spirit and scope of the present invention, and various changes, substitutions and modifications herein can be made without departing from the spirit and scope of the present invention.
[0035]
Explanation of symbols
[0036] In order to make the above and other objects, features, advantages and embodiments of the present disclosure more clearly understood, the attached symbols are explained as follows:
[0037] 10 Bluetooth communication system
[0038] 100 Receiver Bluetooth device
[0039] 110 Communication circuit
[0040] 120 processors
[0041] 130 Buffer
[0042] 140 Codec
[0043] 150 Output circuit
[0044] 200 Sending Bluetooth device
[0045] 210 Communication circuit
[0046] 220 processors
[0047] 230 Storage Media
[0048] 213 Control Channel
[0049] 215 Data Channel
[0050] Steps S210~S280, S252~258
Claims
1. A Bluetooth device, comprising: a communication circuit configured to receive a setting data from a control channel; and a processor coupled to the communication circuit, wherein the processor modifies at least one execution parameter using the setting data to change the operating environment, and the processor performs the operation of Bluetooth communication according to the modified operating environment; buffer; Codec; in, The processor uses the setting data to modify the at least one execution parameter, including: the processor performs initialization of the processor according to an initialization parameter of the setting data, and the buffer does not store data stream packets before the processor completes initialization; wherein the processor is initialized immediately so that the codec immediately decodes the data stream packet as soon as the buffer receives the data stream packet; The buffer is coupled to the processor; wherein, the processor using the setting data to modify the at least one execution parameter further includes the processor modifying a data cache size corresponding to the buffer according to a buffer parameter of the setting data.
2. The device according to claim 1, wherein the processor performs the operation of Bluetooth communication according to the modified operating environment, comprising the communication circuit receiving a data stream packet via a data channel, wherein the data stream packet is stored in the buffer; wherein the codec is coupled to the processor; When the processor determines that the number of the data stream packets stored in the buffer is equal to the data cache size, the processor controls the codec to decode the data stream packets.
3. A Bluetooth device, comprising: a communication circuit configured to receive a setting data from a control channel; and a processor coupled to the communication circuit, wherein the processor modifies at least one execution parameter using the setting data to change the operating environment, and the processor performs the operation of Bluetooth communication according to the modified operating environment; buffer; Codec; in, The processor uses the setting data to modify the at least one execution parameter, including: the processor performs initialization of the processor according to an initialization parameter of the setting data, and the buffer does not store data stream packets before the processor completes initialization; wherein the processor is initialized immediately so that the codec immediately decodes the data stream packet as soon as the buffer receives the data stream packet; The buffer is coupled to the processor; wherein the processor using the setting data to modify the at least one execution parameter further includes the processor modifying the communication link priority level of the communication circuit according to a priority parameter of the setting data.
4. A Bluetooth device, comprising: a communication circuit configured to receive a setting data from a control channel; and a processor coupled to the communication circuit, wherein the processor modifies at least one execution parameter using the setting data to change the operating environment, and the processor performs the operation of Bluetooth communication according to the modified operating environment; buffer; Codec; in, The processor uses the setting data to modify the at least one execution parameter, including: the processor performs initialization of the processor according to an initialization parameter of the setting data, and the buffer does not store data stream packets before the processor completes initialization; wherein the processor is initialized immediately so that the codec immediately decodes the data stream packet as soon as the buffer receives the data stream packet; The buffer is coupled to the processor; wherein the processor uses the setting data to modify the at least one execution parameter further includes the processor adjusting the size of a packet received by a data channel of the communication circuit according to a packet parameter of the setting data.
5. A method for operating a Bluetooth device, wherein the Bluetooth device comprises a communication circuit, a buffer, a codec, and a processor coupled to the communication circuit, the method comprising: receiving a setting data via a control channel of the communication circuit; Using the setting data, by the processor, to modify at least one execution parameter; and Execute the operation of Bluetooth communication according to the modified operating environment of the at least one execution parameter; in, The processor uses the setting data to modify the at least one execution parameter, including: the processor performs initialization of the processor according to an initialization parameter of the setting data, and the buffer does not store data stream packets before the processor completes initialization; wherein the processor is initialized immediately so that the codec immediately decodes the data stream packet as soon as the buffer receives the data stream packet; The step of using the setting data to modify the at least one execution parameter further includes modifying a data cache size according to a buffer parameter of the setting data.
6. A method for operating a Bluetooth device, wherein the Bluetooth device comprises a communication circuit, a buffer, a codec, and a processor coupled to the communication circuit, the method comprising: receiving a setting data via a control channel of the communication circuit; Using the setting data, by the processor, to modify at least one execution parameter; and Execute the operation of Bluetooth communication according to the modified operating environment of the at least one execution parameter; in, The processor uses the setting data to modify the at least one execution parameter, including: the processor performs initialization of the processor according to an initialization parameter of the setting data, and the buffer does not store data stream packets before the processor completes initialization; Wherein, the initialization of the processor is executed immediately, so that when the buffer receives the data stream packet, the codec immediately decodes it; wherein the step of using the setting data to modify at least one execution parameter also includes modifying the communication link priority level of the communication circuit according to a priority parameter of the setting data.
7. A method for operating a Bluetooth device, wherein the Bluetooth device comprises a communication circuit, a buffer, a codec, and a processor coupled to the communication circuit, the method comprising: receiving a setting data via a control channel of the communication circuit; Using the setting data, by the processor, to modify at least one execution parameter; and Execute the operation of Bluetooth communication according to the modified operating environment of the at least one execution parameter; in, The processor uses the setting data to modify the at least one execution parameter, including: the processor performs initialization of the processor according to an initialization parameter of the setting data, and the buffer does not store data stream packets before the processor completes initialization; wherein the processor is initialized immediately so that the codec immediately decodes the data stream packet as soon as the buffer receives the data stream packet; The buffer is coupled to the processor; wherein the processor uses the setting data to modify the at least one execution parameter further includes the processor adjusting the size of a packet received by a data channel of the communication circuit according to a packet parameter of the setting data.
8. A non-transitory computer-readable recording medium storing a plurality of program codes, which, when loaded into a processor, execute the program codes to perform the following steps: Receiving a setting data via a control channel of a communication circuit; Using the setting data, by the processor, to modify at least one execution parameter; and Execute the operation of Bluetooth communication according to the modified operating environment of the at least one execution parameter; in, The processor uses the setting data to modify the at least one execution parameter, including: the processor performs initialization of the processor according to an initialization parameter of the setting data, and the buffer does not store data stream packets before the processor completes initialization; wherein the processor is initialized immediately so that the codec immediately decodes the data stream packet as soon as the buffer receives the data stream packet; The step of using the setting data to modify the at least one execution parameter further includes modifying a data cache size according to a buffer parameter of the setting data.
9. A non-transitory computer-readable recording medium storing a plurality of program codes, when the program codes are loaded into a processor, the processor executes the program codes to perform the following steps: Receiving a setting data via a control channel of a communication circuit; Using the setting data, by the processor, to modify at least one execution parameter; and Execute the operation of Bluetooth communication according to the modified operating environment of the at least one execution parameter; in, The processor uses the setting data to modify the at least one execution parameter, including: the processor performs initialization of the processor according to an initialization parameter of the setting data, and the buffer does not store data stream packets before the processor completes initialization; wherein the processor is initialized immediately so that the codec immediately decodes the data stream packet as soon as the buffer receives the data stream packet; The processor using the setting data to modify the at least one execution parameter further includes the processor modifying the communication link priority level of the communication circuit according to a priority parameter of the setting data.
10. A non-transitory computer-readable recording medium storing a plurality of program codes, when the program codes are loaded into a processor, the processor executes the program codes to perform the following steps: Receiving a setting data via a control channel of a communication circuit; Using the setting data, by the processor, to modify at least one execution parameter; and Execute the operation of Bluetooth communication according to the modified operating environment of the at least one execution parameter; in, The processor uses the setting data to modify the at least one execution parameter, including: the processor performs initialization of the processor according to an initialization parameter of the setting data, and the buffer does not store data stream packets before the processor completes initialization; wherein the processor is initialized immediately so that the codec immediately decodes the data stream packet as soon as the buffer receives the data stream packet; The processor using the setting data to modify the at least one execution parameter further includes the processor adjusting a packet size received by a data channel of the communication circuit according to a packet parameter of the setting data.
