Communication device
By optimizing the inquiry process in Bluetooth communication devices based on the number of connected speakers, the device reduces bandwidth usage for inquiries, ensuring quick and reliable device detection without sound interruptions during audio streaming.
Patent Information
- Application Number
- JP2023087107
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-05-26
- Publication Date
- 2024-12-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In Bluetooth communication devices transmitting audio stream data to multiple speakers, the bandwidth used for inquiry pairing processes can cause interruptions in sound reproduction due to priority given to inquiries over data transmission.
A communication device optimizes the inquiry process by adjusting the time ratio and duration of inquiry execution based on the number of connected devices, reducing the time spent on device searches to minimize bandwidth usage and prevent interruptions.
This optimization ensures quick and reliable detection of connected devices while minimizing interruptions in audio stream playback, maintaining seamless streaming to multiple speakers.
Smart Images

Figure 2024170120000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a communication device that transmits data to be streamed. [Background technology]
[0002] A known communication device that transmits data to be streamed is a communication device that functions as a Bluetooth (registered trademark) master and a short-range wireless connection to multiple speakers that operate as slaves, and transmits audio stream data to each speaker for streaming playback (for example, Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2019-531669 A Summary of the Invention [Problem to be solved by the invention]
[0004] When a communication device communicates using Bluetooth (registered trademark), it is necessary to perform pairing between a master and a slave in advance, in which the other party is registered and an encryption key is exchanged. In the pairing process, which is a process performed for this pairing, an inquiry is first performed in which the master searches for nearby slaves. In the inquiry, an inquiry request is broadcast from the master while repeatedly changing the frequency channel, and a slave performing an inquiry scan transmits an inquiry response to the master when it has received the inquiry request. Then, the slave that transmitted the inquiry response is detected by the master.
[0005] In the above-mentioned communication device, when audio stream data is being transmitted to multiple speakers and pairing processing is performed at the user's request, etc., inquiry is performed with priority over transmission of audio stream data according to the standard. Therefore, the bandwidth used for inquiry may result in a shortage of bandwidth available for transmitting the audio stream data, which may result in interruptions in the playback sound on the speakers.
[0006] Therefore, an object of the present invention is to prevent problems in streaming playback caused by inquiries in a communication device that transmits data to be streamed to a plurality of devices connected via Bluetooth (registered trademark). [Means for solving the problem]
[0007] In order to achieve the above object, the present invention provides a communication device that connects, as a master, to a slave device via short-range wireless communication and transmits to the connected device stream data to be streamed on the device, and that performs device search by repeatedly broadcasting an inquiry request and repeatedly executing an inquiry to detect peripheral devices based on an inquiry response to the inquiry request until a predetermined condition is satisfied, and further provides an inquiry execution form control means that controls the form of execution of the inquiry by the peripheral device search means in accordance with the number of devices connected to the communication device, so that the greater the number, the smaller the proportion of time during which the inquiry is being executed.
[0008] Here, the communication device may be configured in such a way that the inquiry execution mode control means controls the length of the execution interval of the inquiry performed by the peripheral device search means in the device search, depending on the number of devices connected to the communication device, so that the longer the interval, the greater the number of devices connected to the communication device.
[0009] In addition, the above communication device may be configured so that the inquiry execution mode control means controls the length of the execution period of each inquiry executed by the peripheral device search means in the device search, depending on the number of devices connected to the communication device, so that the longer the number, the shorter the execution period.
[0010] In addition, the communication device may be configured such that the peripheral device searching means executes the device search when performing a pairing process for registering a device that performs short-range wireless communication in the communication device. Furthermore, the above communication device may transmit audio stream data of audio content to a connected device, and the device may be a device that outputs sound produced by streaming playback of the received audio stream data. According to the above-described communication device, the proportion of time (bandwidth) spent on inquiry in device search can be reduced in accordance with the number of devices connected to the communication device, that is, as the number increases. Therefore, when performing device discovery while a communication device is transmitting stream data to many devices, it is possible to prevent a shortage of bandwidth available for transmitting stream data due to the bandwidth consumed for inquiries, which could result in interruptions in stream playback on the devices.
[0011] In addition, depending on the number of devices connected to the communication device, the smaller the number of devices, the greater the proportion of time (bandwidth) spent on Inquiry, making it possible to quickly or reliably detect surrounding devices through device search. Therefore, the proportion of time (bandwidth) spent on Inquiry can be optimized so that connectable devices can be detected as quickly or reliably as possible in a device search, within the scope of preventing interruptions in stream playback on the device. Effect of the Invention
[0012] As described above, according to the present invention, in a communication device that transmits data to be streamed to a plurality of devices connected via Bluetooth (registered trademark), it is possible to prevent problems in streaming playback caused by inquiries. [Brief description of the drawings]
[0013] [Figure 1] 1 is a block diagram showing a configuration of an audio system according to an embodiment of the present invention. [Diagram 2] 5 is a flowchart showing a pairing start control process according to the embodiment of the present invention. [Diagram 3] FIG. 2 is a diagram illustrating an example of setting an inquiry parameter according to an embodiment of the present invention. [Figure 4] FIG. 2 is a diagram illustrating an example of setting an inquiry parameter according to an embodiment of the present invention. [Diagram 5] FIG. 2 is a diagram illustrating an example of setting an inquiry parameter according to an embodiment of the present invention. [Figure 6] FIG. 2 is a diagram illustrating an example of setting an inquiry parameter according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] An embodiment of the present invention will be described. Hereinafter, "Bluetooth (registered trademark)" will be abbreviated as "BT" in the following description. FIG. 1 shows the configuration of an audio system 1 according to this embodiment. The audio system 1 is a system that connects to multiple BT speakers 2 as a BT master and transmits audio stream data to each of the connected BT speakers 2. Each BT speaker 2 is, for example, a BT-compatible headphone or earphone, and plays back the audio stream data received from the audio system 1 in a streaming manner and outputs the sound represented by the audio stream data.
[0015] Furthermore, the audio system 1 can transmit audio stream data of different audio contents to each of the connected BT speakers 2 in parallel. The audio system 1 includes a BT module 11, a BT driver 12, an audio player 13, a pairing start control unit 14, an operating system 15, audio media 16, an input device 17, and a display device 18. The BT module 11 has the functions of performing RF processing for wireless communication according to the BT standard, baseband processing for setting up a communication link, and link manager (LMP) processing for managing the communication link, and executes pairing processing including inquiry using these functions. The BT driver 12 has a function of L2CAP that manages logical links of the BT standard, and a function of performing SDP processing that detects the functions (services) of each device. The BT driver 12 also has a function of implementing the A2DP profile that transmits audio stream data in high quality using the BT module 11.
[0016] The pairing start control unit 14 controls the start of pairing processing of the BT module 11 via the BT driver 12 . The audio media 16 is a storage device that stores audio content such as music, a broadcast receiving device that receives broadcasts of audio content, and the like, and provides the audio content.
[0017] The audio player 13 transmits audio streaming data of audio content provided by the audio media 16 to each connected BT speaker 2 via the BT driver 12 and the BT module 11 in accordance with the A2DP profile. Here, the audio player 13 can transmit audio stream data of different audio contents to different connected BT speakers 2 in parallel via the BT driver 12 and the BT module 11. The pairing start control process performed by the pairing start control unit 14 will be described below. Here, the pairing start control process is executed when a request for execution of pairing process is generated by a user operation on the input device 17 or the like. FIG. 2 shows the procedure for the pairing start control process. As shown in the figure, in this process, first, the number of BT speakers 2 connected to the audio system 1 is obtained by inquiring of the BT driver 12, and this is set as the number of devices in use. The BT driver 12 can obtain the number of BT speakers 2 connected based on the number of active connections of the ACL link used for transmitting audio stream data, etc.
[0018] Then, the inquiry priority is set to be higher the fewer the number of devices in use. For example, if the number of devices in use is 0 (step 204), the inquiry priority is set to High (step 212); if the number of devices in use is 1 (step 206), the inquiry priority is set to Middle (step 210); and if the number of devices in use is neither 0 nor 1, i.e., if the number of devices in use is 2 or more, the inquiry priority is set to Low (step 208).
[0019] Then, the inquiry parameters according to the inquiry priority are set in the BT module 11 via the BT driver 12 (step 214). The inquiry parameters to be set in step 214 according to the inquiry priority may be, for example, the Inquiry Interval shown in FIG. 3, which determines the time length between execution of an inquiry, or the Inquiry Window, which determines the time length for execution of one inquiry. Then, in step 214, when the inquiry interval is used as the inquiry parameter to be set according to the inquiry priority, the inquiry interval is set so that the higher the inquiry priority, the shorter the interval at which the inquiry is executed. That is, for example, as shown diagrammatically in Figures 4a, b, and c, if the Inquiry priority is Middle (b), the Inquiry Interval is set to Standard, which is the standard time interval; if the Inquiry priority is High (a), the Inquiry Interval is set to Short, which is a time interval shorter than Standard; and if the Inquiry priority is Low (c), the Inquiry Interval is set to Long, which is a time interval longer than Standard. Here, as shown in Figures 4a, b, and c, the shorter the inquiry interval, the larger the proportion of time (bandwidth) during which an inquiry is executed, and the longer the inquiry interval, the smaller the proportion of time (bandwidth) during which an inquiry is executed.
[0020] Furthermore, when an inquiry window is used as an inquiry parameter set in step 214 according to the inquiry priority, the inquiry window is set so that the higher the inquiry priority, the longer the execution period for each inquiry becomes. That is, for example, as shown diagrammatically in Figures 5a, b, and c, if the Inquiry priority is Middle (b), the Inquiry Window is set to Standard with a standard time length; if the Inquiry priority is High (a), the Inquiry Window is set to Long with a longer time interval than Standard; and if the Inquiry priority is Low (c), the Inquiry Window is set to Short with a shorter time interval than Standard. Here, as shown in Figures 3a, b, and c, the longer the Inquiry Window, the larger the proportion of time (bandwidth) during which the inquiry is executed, and the shorter the Inquiry Window, the smaller the proportion of time (bandwidth) during which the inquiry is executed.
[0021] In addition, it is also possible to use both of the inquiry parameters Inquiry Interval and Inquiry Window, which are set in step 214 according to the inquiry priority. In this case, the Inquiry Interval is set so that the higher the Inquiry priority, the shorter the interval between Inquiry executions, and the Inquiry Window is set so that the higher the Inquiry priority, the longer the execution period of each Inquiry. That is, for example, as shown in Fig. 6a, b, and c, if the Inquiry priority is Middle as shown in the figure (b), the Inquiry Interval is set to I_Standard, which is the standard time interval, and the Inquiry Window is set to W_Standard, which is the standard time length. Also, if the Inquiry priority is High (a), the Inquiry Interval is set to I_Short, which is a time interval shorter than I_Standard, and the Inquiry Window is set to W_Long, which is a time interval longer than W_Standard. Also, if the Inquiry priority is Low (c), the Inquiry Interval is set to I_Long, which is a time interval longer than I_Standard, and the Inquiry Window is set to W_Short, which is a time interval shorter than W_Standard.
[0022] Returning to FIG. 2, once the inquiry parameters corresponding to the inquiry priority have been set (step 214), an instruction to execute pairing processing is issued to the BT module 11 via the BT driver 12 (step 216). Then, the pairing start control process ends. Now, the BT module 11 that has been instructed to execute the pairing process repeatedly executes Inquiry in a manner that conforms to the set Inquiry parameters (Inquiry Interval and / or Inquiry Window), and ends the repeated execution of Inquiry when a predetermined condition, such as a timeout, is satisfied.
[0023] Then, for BT Speaker 2 discovered by Inquiry, it executes a Page to confirm information, a Connection to establish a communications link, and a Pairing to exchange encryption keys and begin encrypted communication. Moreover, if the BT speaker 2 is not found by the inquiry, the pairing process ends. The embodiment of the present invention has been described above. In the above, the pairing start control unit 14 sets inquiry parameters such as the inquiry interval and the inquiry window according to the number of connected BT speakers 2 at the start of pairing, but these inquiry parameters may be set when there is a change in the number of connected BT speakers 2. The change in the number of connected BT speakers 2 may be detected by the pairing start control unit 14 making an inquiry to the BT driver 12, or may be detected by the BT driver 12 notifying the pairing start control unit 14 when a change in the number of connected BT speakers 2 occurs. Alternatively, the setting of these inquiry parameters may be performed by periodically acquiring the number of BT speakers 2 in a connected state.
[0024] As described above, according to this embodiment, the proportion of time (bandwidth) spent on Inquiry can be reduced in accordance with the number of BT speakers 2 connected to the audio system 1 as the number increases. Therefore, according to this embodiment, when audio system 1 is transmitting audio stream data to many BT speakers 2 and a pairing process is performed at the user's request, etc., the bandwidth consumed for inquiry can be used to transmit the audio stream data, resulting in a shortage of bandwidth, which can cause streaming playback problems in the speakers and interruptions in the playback sound.
[0025] In addition, depending on the number of BT speakers 2 connected to the audio system 1, the smaller the number, the larger the proportion of time (bandwidth) spent on the inquiry can be set, so that a BT speaker 2 that can be connected can be detected quickly or reliably during the inquiry.
[0026] Therefore, the proportion of time (bandwidth) spent on the inquiry can be optimized so that a connectable BT speaker 2 can be detected as quickly or reliably as possible within a range in which interruptions in the playback sound in the speaker are prevented. Here, the above embodiment can be similarly applied to a system in which data to be streamed in a slave device, such as video stream data other than audio stream data, is transmitted from a master device to multiple slave devices. [Explanation of symbols]
[0027] 1...audio system, 2...BT speaker, 11...BT module, 12...BT driver, 13...audio player, 14...pairing start control unit, 15...operating system, 16...audio media, 17...input device, 18...display device
Claims
1. A communication device that, as a master, connects to a slave device via short-range wireless communication and transmits stream data to be stream-played on the slave device to the connected device, a peripheral device search means for performing device search by repeatedly broadcasting an inquiry request and repeatedly executing an inquiry to detect peripheral devices based on an inquiry response to the inquiry request until a predetermined condition is satisfied; a communication device having an inquiry execution mode control means for controlling the mode of execution of an inquiry by the peripheral device search means in accordance with the number of devices connected to the communication device, so that the greater the number of devices, the smaller the proportion of time during which an inquiry is being executed.
2. 2. The communication device according to claim 1, The communication device is characterized in that the inquiry execution mode control means controls the length of the execution interval of the inquiry performed by the peripheral device search means in the device search, depending on the number of devices connected to the communication device, so that the longer the interval, the greater the number of devices connected to the communication device.
3. 2. The communication device according to claim 1, The communication device is characterized in that the inquiry execution mode control means controls the length of time of the execution period of each inquiry executed by the peripheral device search means in the device search, depending on the number of devices connected to the communication device, so that the longer the number, the shorter the execution period.
4. 3. The communication device according to claim 2, The communication device is characterized in that the inquiry execution mode control means controls the length of time of the execution period of each inquiry executed by the peripheral device search means in the device search, depending on the number of devices connected to the communication device, so that the longer the number, the shorter the execution period.
5. A communication device according to claim 1, 2, 3 or 4, The communication device, characterized in that the peripheral device searching means executes the device search when performing a pairing process for registering a device that performs short-range wireless communication with the communication device.
6. A communication device according to claim 1, 2, 3 or 4, The communication device transmits audio stream data of the audio content to a connected device; The communication device is characterized in that the device is a device that outputs sound obtained by streaming playback of received audio stream data.
Citation Information
Patent Citations
Controlling Bluetooth multimedia devices
JP2019531669A
Cited By
Game machine
JP2025000842A
