Detailed Description
In order to make the technical content of the present invention more comprehensible, preferred embodiments are described below.
Fig. 2 is a schematic diagram illustrating a connection structure between a sound playing device and an electronic device according to the present invention.
The sound playing device 1 of the present invention can be an earphone device or a wireless speaker, and can be connected to the first electronic device 2 or the second electronic device 3. The first electronic device 2 or the second electronic device 3 may be a smart phone, a tablet computer, a notebook computer, etc., but the invention is not limited thereto. The sound playing device 1 includes a wireless transmission module 10, a detection module 20, a control module 30 and a sound generating module 40. The wireless transmission module 10 is used for establishing a connection with the first electronic device 2 through a first wireless transmission path P1 or a second wireless transmission path P2, wherein the first wireless transmission path P1 and the second wireless transmission path P2 are both a bluetooth communication protocol, and the sound playing device 1 receives an audio signal through the first wireless transmission path P1. The second wireless transmission path P2 is a connection mode conforming to the Bluetooth Low Energy (BLE) standard, and the audio playing device 1 receives a data signal through the second wireless transmission path P2. Therefore, when the first electronic device 2 executes a sound adjusting program to change parameters such as volume or frequency of the sound signal emitted by the sound playing device 1, the data signal is transmitted to the sound playing device 1 through the second wireless transmission path P2.
The detecting module 20 is electrically connected to the wireless transmission module 10 for detecting whether the wireless transmission module 10 is connected to the first electronic device 2 through the first wireless transmission path P1 or the second wireless transmission path P2. The detecting module 20 further records the transmission addresses of the first transmission path P1 and the second transmission path P2, wherein the first transmission path P1 and the second transmission path P2 may have the same or different transmission addresses, so that the detecting module 20 synchronously records the transmission addresses of the first transmission path P1 and the second transmission path P2 during connection, so as to distinguish the connection of the same first electronic device 2.
The control module 30 is electrically connected to the detection module 20 and the sound generating module 40. The control module 30 can adjust the sound signal emitted by the sound emitting module 40 according to the data signal transmitted by the first electronic device 2. In addition, when the detecting module 20 knows that the first electronic device 2 is connected through the second wireless transmission path P2 to execute the sound adjusting program, the controlling module 30 will first determine whether there is a connection to the first transmission path P1. If the first transmission path P1 is already connected, the first electronic device 2 is allowed to establish a connection via the second wireless transmission path P2. If the first transmission path P1 is not connected, the control module 30 does not let the first electronic device 2 establish a connection via the second wireless transmission path P2. When the detecting module 20 knows that the first electronic device 2 has requested to disconnect the first wireless transmission path P1, the control module 30 forcibly controls the wireless transmission module 10 to disconnect the connection with the first electronic device 2 via the second wireless transmission path P2. Therefore, when the wireless transmission module 10 further establishes a connection with a second electronic device 3, the connection failure caused by the second wireless transmission path P2 still connecting with the first electronic device 2 will not occur. Finally, the sound module 40 emits a sound signal, which may be an audio signal or a sound processed according to a data signal, but the invention is not limited thereto.
It should be noted that, the modules of the audio playing apparatus 1 may be configured by a hardware device, a software program combined with the hardware device, a firmware combined with the hardware device, and the like, but the invention is not limited to the above-mentioned manner. In addition, the present embodiment only illustrates the preferred embodiments of the present invention, and all possible combinations and modifications are not described in detail to avoid redundancy. However, one of ordinary skill in the art should appreciate that each of the above modules or elements is not necessarily required. And may include other existing modules or components in greater detail for practicing the invention. Each module or component may be omitted or modified as required, and no other module or component may exist between any two modules.
Next, please refer to fig. 3, which is a flowchart illustrating a method of performing a connection according to a first embodiment of the present invention. It should be noted that, although the method for performing connection according to the present invention is described below by taking the above-mentioned audio playback apparatus 1 as an example, the method for performing connection according to the present invention is not limited to the use of the audio playback apparatus 1 having the same structure as that described above.
In the first embodiment, a connection is requested for the first electronic device 2. First, the first electronic device 2 performs step S301: and pairing with the sound playing device.
First, the first electronic device 2 and the sound playing device 1 are connected and paired.
Then, step S302 is performed: requiring connection via a first wireless transmission path.
Then, the first electronic device 2 requests to connect to the audio playing device 1 through a first wireless transmission path P1.
At this time, the audio playback apparatus 1 proceeds to step S303: the first wireless transmission path is used for connection.
The audio playback device 1 establishes a connection with the first electronic device 2 via the first wireless transmission path P1.
The first electronic device 2 may also perform step S304: requiring connection via a second wireless transmission path.
The first electronic device 2 can also execute a voice adjustment procedure to connect via the second wireless transmission path P2.
The audio playback apparatus 1 proceeds to step S305: it is detected whether there is a connection via the first wireless transmission path.
The detecting module 20 detects whether the wireless transmission module 10 is already connected via the first wireless transmission path P1, i.e. whether steps S302 and S303 are executed.
Then, step S306 is performed: if yes, connection via the second wireless transmission path is granted, or step S307: if not, the connection via the second wireless transmission path is not approved.
If the first wireless transmission path P1 is already connected, the control module 30 will grant the connection of the second wireless transmission path P2, i.e. step S306. However, if the first wireless transmission path P1 is not connected, the control module 30 does not directly connect the second wireless transmission path P2, i.e. step S307.
Please refer to fig. 4A-4B, which are flowcharts illustrating a second embodiment of a method for performing a connection according to the present invention.
In the second embodiment, after the first electronic device 2 requests disconnection, the second electronic device 3 requests connection. So first the first electronic device 2 performs step S401: when disconnection via the first wireless transmission path is requested, the audio playback apparatus 1 proceeds to step S402: it is detected whether there is a connection via the second wireless transmission path.
At this time, the sound playing apparatus 1 detects by the detecting module 20 whether the first electronic device 2 is also connected by the second wireless transmission path P2.
Then, step S403 is performed: if not, the connection via the first wireless transmission path is cut off, or step S404: if so, the connection via the first wireless transmission path and the second wireless transmission path is cut off at the same time.
When the control module 30 knows that the first electronic device 2 is connected only through the first wireless transmission path P1, it directly controls the wireless transmission module 10 to disconnect the connection with the first electronic device 2 through the first wireless transmission path P1. However, when the control module 30 knows that the first electronic device 2 is still connected to the second wireless transmission path P2, the control module 30 forcibly controls the wireless transmission module 10 to disconnect the connection with the first electronic device 2 via the first wireless transmission path P1 and the second wireless transmission path P2, so as to avoid the problem that occurs when the first electronic device is connected to another second electronic device 3 later.
Therefore, the second electronic device 3 may then proceed to step S405: and pairing with the sound playing device.
The second electronic device 3 can then be paired for connection with the sound playing device 1.
Next, the second electronic device 3 may perform step S406 to request connection via the first wireless transmission path P1, and the audio playing device 1 may perform step S407 to establish connection with the second electronic device 3 by using the first wireless transmission path P1.
Likewise, the second electronic device 3 may also perform step S408: requiring connection via a second wireless transmission path.
The second electronic device 3 can also execute the audio adjustment procedure and connect via the second wireless transmission path P2.
Since the connection with the first electronic apparatus 2 via the second wireless transmission path P2 has been surely cut off in step S404, the audio playback apparatus 1 proceeds to step S409: it is detected whether there is a connection via the first wireless transmission path.
The detecting module 20 detects whether the wireless transmission module 10 has been connected to the second electronic device 3 through the first wireless transmission path P1, i.e. whether steps S406 and S407 are executed.
Then, S410 is carried out: if so, connection via the second wireless transmission path is granted, or S411: if not, the connection via the second wireless transmission path is not approved.
Finally, if the first wireless transmission path P1 is already connected, the control module 30 will grant the connection of the second wireless transmission path P2, i.e. step S410. However, if the first wireless transmission path P1 is not connected, the control module 30 does not directly connect the second wireless transmission path P2, i.e. step S411.
At this time, the first electronic device 2 may execute step S412: requiring connection via a second wireless transmission path.
In the process from step S401 to step S404, although the first wireless path P1 of the first electronic device 2 is disconnected, the first electronic device 2 may still try to connect the second wireless path P2 again. Since the connection with the first electronic device 2 via the second wireless transmission path P2 has been surely disconnected in step S404, the audio playing device 1 proceeds to step S413: it is detected whether there is a connection via the first wireless transmission path.
After receiving the signal that the first electronic device 2 requests to connect via the second wireless transmission path P2, the detecting module 20 detects whether the wireless transmission module 10 has connected to the second electronic device 3 via the first wireless transmission path P1.
Then, at S414: if so, connection via the second wireless transmission path is granted, or S415: if not, the connection via the second wireless transmission path is not approved.
Finally, if the first wireless transmission path P1 is already connected, the control module 30 agrees to connect the first electronic device 2 via the second wireless transmission path P2, in step S414. However, the first wireless transmission path P1 of the audio playing apparatus 1 is already connected to the second electronic apparatus 3, so that it cannot be connected to the first electronic apparatus 2. Therefore, if the first wireless transmission path P1 is not connected, the control module 30 does not directly allow the first electronic device 2 to be connected by using the second wireless transmission path P2, i.e. step S415.
It should be noted that the method for performing concatenation according to the present invention is not limited to the above-mentioned sequence of steps, and the sequence of steps can be changed as long as the purpose of the present invention is achieved.
In this way, the audio playing device 1 can ensure that the first wireless transmission path P1 and the second wireless transmission path P2 can be simultaneously connected when being connected with the first electronic device 2, and the first wireless transmission path P1 and the second wireless transmission path P2 can be simultaneously disconnected when being disconnected, so that the connection with the other second electronic device 3 is not affected.
It should be noted that the above embodiments only illustrate the preferred embodiments of the present invention, and not describe in detail all possible combinations of the variations for avoiding redundancy. However, one of ordinary skill in the art should appreciate that each of the above modules or elements is not necessarily required. And may include other existing modules or components in greater detail for practicing the invention. Each module or component may be omitted or modified as desired, and no other module or component may necessarily exist between any two modules. The scope of the claims should be determined only by the appended claims, and not by the actual implementation of the invention.