Equipment switching method and device, audio interaction system, audio equipment and medium
By using fingerprint recognition modules and Bluetooth modules in terminal devices and audio devices, the rapid pairing connection between multiple terminal devices and different audio devices is achieved, solving the problem of complicated switching connection processes, and improving switching efficiency and user experience.
Patent Information
- Application Number
- CN202310667946.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-06
- Publication Date
- 2024-12-06
AI Technical Summary
The process of switching and connecting multiple terminal devices with different audio devices is complicated, time-consuming and inefficient, affecting the user experience.
By setting up fingerprint recognition modules and Bluetooth modules in terminal devices and audio devices, saving connection authentication information after matching, receiving fingerprint features for comparison, broadcasting connection data packets, and multi-terminals are realized by initiating Bluetooth connection requests from Bluetooth modules Quick pairing connection of devices with different audio devices.
It simplifies user operations, improves device switching efficiency, and provides users with a smooth multi-device switching experience.
Smart Images

Figure CN119095013A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication technology, and in particular, to a device switching method, apparatus, audio interaction system, audio device, and medium. Background Art
[0002] With the rapid development of communication technology, user terminal devices can communicate and connect with a variety of audio devices through wireless communication technologies such as Bluetooth and WIFI. For example, users' mobile phones, tablets and other mobile devices can be connected to audio devices such as Bluetooth speakers and Bluetooth headphones to play music, make voice calls, etc.
[0003] However, since audio devices such as Bluetooth speakers and Bluetooth headsets can only be connected to one terminal device at a time, and for mobile devices such as mobile phones and tablets, Bluetooth speakers and Bluetooth headsets are mutually exclusive devices, the same mobile device cannot allow Bluetooth speakers and Bluetooth headsets to play the same audio or join the same call connection at the same time. It can be seen that when facing multiple terminal devices connected to different audio devices, it is necessary to frequently manually disconnect old connections, re-pair devices, and establish new connections. The device switching process is complicated and cumbersome, causing great inconvenience to users, affecting device switching efficiency, and reducing user experience. Summary of the invention
[0004] The embodiments of the present application provide a device switching method, apparatus, audio interaction system, audio device and medium, which solve the problem of complicated process, time-consuming and inefficient process when switching and connecting multiple terminal devices with different audio devices, realize fast pairing connection when switching and connecting multiple terminal devices with different audio devices, simplify user operation, improve device switching efficiency, and provide users with a smooth switching experience between multiple devices.
[0005] In a first aspect, an embodiment of the present application provides a device switching method, which is applied to an audio interaction system, wherein the audio interaction system includes at least one audio device and at least one terminal device, each of the terminal devices includes a master Bluetooth module and a slave Bluetooth module, and each of the audio devices is provided with a fingerprint recognition module;
[0006] The device switching method comprises:
[0007] When the main Bluetooth module of the terminal device is paired with the Bluetooth module of the audio device, the audio device and the terminal device both save corresponding connection authentication information;
[0008] When the audio device receives the input fingerprint feature identified by the fingerprint recognition module, the audio device compares the input fingerprint feature with the preset fingerprint feature, and when it is confirmed that the input fingerprint feature successfully matches the first fingerprint feature of the preset fingerprint features, the target device address associated with the first fingerprint feature is obtained; and a connection data packet is broadcasted externally through the Bluetooth module, the connection data packet carrying the target device address, the device address of the audio device itself, and the forced connection information;
[0009] When the terminal device confirms through the slave Bluetooth module in scanning mode that there is a connection data packet sent in the form of broadcast and the target device address carried matches the terminal device, the terminal device obtains the device address carried therein, and based on the device address, initiates a Bluetooth connection request to the corresponding audio device through the master Bluetooth module;
[0010] In response to the received Bluetooth connection request, the audio device establishes a wireless Bluetooth connection with the corresponding terminal device through the Bluetooth module.
[0011] Optionally, before broadcasting the connection data packet externally through the Bluetooth module, the method further includes:
[0012] When the Bluetooth connection is confirmed, disconnect the Bluetooth connection with the currently connected terminal device.
[0013] Optionally, before initiating a Bluetooth connection request to the corresponding audio device through the main Bluetooth module, the method further includes:
[0014] When the Bluetooth connection is confirmed, disconnect the currently connected audio device.
[0015] Optionally, also include:
[0016] The audio device receives and stores externally input preset fingerprint features and their associated device addresses.
[0017] Optionally, before the audio device receives the input fingerprint feature recognized by the fingerprint recognition module, the method further includes:
[0018] When the terminal device establishes the first Bluetooth connection with the audio device, the preset fingerprint feature and its device address are synchronized to the audio device corresponding to the first Bluetooth connection;
[0019] The audio device binds and stores the received preset fingerprint feature and the device address, and when different device addresses match the same preset fingerprint feature, determines the connection priority of each device address according to the connection frequency of the terminal device corresponding to the device address.
[0020] Optionally, the first fingerprint feature is associated with multiple device addresses;
[0021] Correspondingly, obtaining the target device address associated with the first fingerprint feature includes:
[0022] Obtain the target device address with the highest priority associated with the first fingerprint feature.
[0023] Optionally, after the audio device establishes a wireless Bluetooth connection with the corresponding terminal device through the Bluetooth module in response to the received Bluetooth connection request, the method further includes:
[0024] After the audio device successfully establishes a Bluetooth connection with the first terminal device corresponding to the first fingerprint feature, if the audio device receives a second fingerprint feature recognized by the fingerprint recognition module within a preset time period and the second fingerprint feature is consistent with the first fingerprint feature, the Bluetooth connection is disconnected, the device address of the second terminal device is obtained, and a reconnection data packet is broadcasted to the outside through the Bluetooth module, wherein the priority of the device address of the first terminal device is one level higher than that of the device address of the second terminal device, and the connection data packet carries the device address of the second terminal device, its own device address, and forced connection information.
[0025] In a second aspect, an embodiment of the present application provides another device switching method, which is applied to an audio device, wherein the audio device is provided with a fingerprint recognition module;
[0026] The device switching method comprises:
[0027] When the main Bluetooth module of the terminal device is paired with the Bluetooth module of the audio device, the corresponding connection authentication information is saved;
[0028] When receiving the input fingerprint feature recognized by the fingerprint recognition module, the input fingerprint feature is compared with the preset fingerprint feature. When it is confirmed that the input fingerprint feature successfully matches the first fingerprint feature of the preset fingerprint features, the current Bluetooth connection is disconnected, and the target device address associated with the first fingerprint feature is obtained; and a connection data packet is broadcasted externally through the Bluetooth module, and the connection data packet carries the target device address, the own device address, and the forced connection information;
[0029] After the terminal device confirms through the slave Bluetooth module in scanning mode that there is a connection data packet sent in the form of broadcast and carrying a target device address that matches itself, it disconnects the Bluetooth connection of the master Bluetooth module and initiates a Bluetooth connection request, and then establishes a wireless Bluetooth connection with the corresponding terminal device through the Bluetooth module in response to the received Bluetooth connection request.
[0030] In a third aspect, an embodiment of the present application provides an audio interaction system, which includes at least one audio device and at least one terminal device, each of the audio devices includes a Bluetooth module and a fingerprint recognition module, and each of the terminal devices includes a master Bluetooth module and a slave Bluetooth module; the audio interaction system is used to execute the device switching method described in any embodiment of the present application.
[0031] In a fourth aspect, an embodiment of the present application provides a device switching apparatus, which is applied to an audio device, wherein the audio device is provided with a fingerprint recognition module;
[0032] The device switching device comprises:
[0033] A pairing authentication module, used for the audio device to save corresponding connection authentication information when the main Bluetooth module of the terminal device is paired with the Bluetooth module of the audio device;
[0034] a broadcast connection module, configured to compare the input fingerprint feature with a preset fingerprint feature upon receiving the input fingerprint feature identified by the fingerprint recognition module, and when confirming that the input fingerprint feature successfully matches the first fingerprint feature among the preset fingerprint features, obtain the target device address associated with the first fingerprint feature; and broadcast a connection data packet externally through a Bluetooth module, the connection data packet carrying the target device address, the own device address, and forced connection information;
[0035] A connection establishment module is used to establish a wireless Bluetooth connection with the corresponding terminal device through the Bluetooth module in response to the received Bluetooth connection request after the terminal device confirms the existence of a connection data packet sent in the form of broadcast and carrying a target device address that matches itself through the Bluetooth module in scanning mode and initiates a Bluetooth connection request.
[0036] In a fifth aspect, an embodiment of the present application provides an audio device, the audio device comprising:
[0037] Fingerprint recognition module;
[0038] Bluetooth module;
[0039] one or more processors;
[0040] A storage device is configured to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the device switching method described in any one of the embodiments of the present application.
[0041] In a sixth aspect, an embodiment of the present application provides a non-volatile storage medium storing computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are configured to execute the device switching method described in any one of the embodiments of the present application.
[0042] In the embodiment of the present application, when the pairing is completed between the main Bluetooth module of the terminal device and the Bluetooth module of the audio device, the audio device and the terminal device both save the corresponding connection authentication information; then when the audio device receives the input fingerprint feature identified by the fingerprint recognition module, the input fingerprint feature is compared with the preset fingerprint feature, and when it is confirmed that the input fingerprint feature matches the first fingerprint feature in the preset fingerprint feature, the target device address associated with the first fingerprint feature is obtained; and, a connection data packet is broadcasted externally through the Bluetooth module, and the connection data packet carries the target device address, its own device address, and forced connection information; then the terminal device confirms through the slave Bluetooth module in scanning mode that there is a connection data packet sent in the form of broadcast and the target device address carried matches itself, obtains the device address carried therein, and based on the device address, initiates a Bluetooth connection request to the corresponding audio device through the main Bluetooth module; finally, the audio device responds to the received Bluetooth connection request and establishes a wireless Bluetooth connection with the corresponding terminal device through the Bluetooth module, thereby realizing fast pairing connection when multiple terminal devices switch connections with different audio devices, simplifying user operations, improving device switching efficiency, and providing users with a smooth switching experience between multiple devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 is a flow chart of a device switching method provided in an embodiment of the present application;
[0044] Figure 2 It is a schematic diagram of a specific implementation process of a device switching method provided in an embodiment of the present application;
[0045] Figure 3 is a flow chart of another device switching method provided in an embodiment of the present application;
[0046] Figure 4 is a structural diagram of an audio interaction system provided in an embodiment of the present application;
[0047] Figure 5 It is a structural schematic diagram of a device switching device provided in an embodiment of the present application;
[0048] Figure 6 It is a structural diagram of an audio device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
[0050] The device switching method provided in the embodiment of the present application is applicable to the application scenario of Bluetooth connection switching between multiple audio devices and multiple terminal devices, wherein the audio devices and the terminal devices are equipped with processor modules. Specifically, the audio playback device can be an independently set audio device, such as a Bluetooth speaker, a vertical speaker, etc., or a wearable audio device, such as a Bluetooth headset, a Bluetooth neckband, etc., and the terminal device can be a user's mobile phone, a tablet, and a laptop, etc., or an interactive panel in a conference room, a projection device, etc., which is not limited in the embodiment of the present application. The device switching method provided in the embodiment of the present application, the execution body of each step can be a processor module of an audio playback device and a terminal device, and the processor module has data calculation, processing and storage capabilities, and can complete the data processing process involved in the device switching method. The several application scenarios listed above are only exemplary and explanatory. In actual applications, the device switching method can also be used in the process of switching Bluetooth connections of devices in other scenarios. The present application aims to provide a device switching method, device, audio interaction system, audio device and medium to solve the problem of complicated processes, time-consuming and inefficient switching connections between multiple terminal devices and different audio devices.
[0051] Figure 1A flowchart of a device switching method provided in an embodiment of the present application, the device switching method provided in this embodiment can be implemented by an audio interaction system, wherein the audio interaction system includes at least one audio device and at least one terminal device, specifically, each audio device is provided with a fingerprint recognition module, and the fingerprint recognition module can be used to collect the user's fingerprint information; each terminal device includes a master Bluetooth module and a slave Bluetooth module, for example, the terminal device can be provided with a Bluetooth module, the Bluetooth module includes a classic Bluetooth module and a low-power Bluetooth module, wherein the classic Bluetooth module is suitable for high-speed data transmission and long-distance connection between two or more devices, for example, audio and video transmission, high-speed data transmission, long-distance transmission, etc., while the low-power Bluetooth module is suitable for application scenarios requiring low power consumption, long-term operation and short-distance data transmission, including smart homes, health and medical applications, sports monitoring, Bluetooth tags, etc. In the present application, the master Bluetooth module of the terminal device can be a classic Bluetooth module, which is used to establish a Bluetooth connection with the audio device for transmitting audio data, and the slave Bluetooth module of the terminal device can be a low-power Bluetooth module, which is used to receive connection data broadcast by the audio device.
[0052] The following description is made by taking the processor of the audio device and the terminal device as the main body of the device switching method. Figure 1 , the device switching method specifically includes:
[0053] Step S101: When the main Bluetooth module of the terminal device and the Bluetooth module of the audio device are paired, both the audio device and the terminal device save corresponding connection authentication information.
[0054] It is worth noting that before the main Bluetooth module of the terminal device and the Bluetooth module of the audio device establish a Bluetooth connection, Bluetooth pairing is required first, wherein Bluetooth pairing can effectively prevent unauthorized devices from accessing sensitive information or services on other devices, and can be specifically further ensured by entering information such as passwords or PIN codes. In addition, Bluetooth pairing can also help eliminate interference and confusion. Since different Bluetooth devices may exist in the same area at the same time, if pairing is not performed, the connection between the devices may be affected, resulting in connection interruption, data loss and other problems. Specifically, after the main Bluetooth module of the terminal device and the Bluetooth module of the audio device are paired, both will save the corresponding connection authentication information, wherein the connection authentication information may include the MAC address of the other device, trust relationship authentication, and may also include a security key for encrypting and verifying the transmitted data to ensure the security of the Bluetooth connection. After pairing is completed, the terminal device and the audio device will automatically establish a connection the next time they are connected, without having to enter information such as passwords or PIN codes again.
[0055] Step S102: When the audio device receives the input fingerprint feature recognized by the fingerprint recognition module, it compares the input fingerprint feature with the preset fingerprint feature. When it is confirmed that the input fingerprint feature successfully matches the first fingerprint feature in the preset fingerprint feature, the target device address associated with the first fingerprint feature is obtained; and a connection data packet is broadcasted externally through the Bluetooth module, and the connection data packet carries the target device address, its own device address, and forced connection information.
[0056] In the specific implementation process, the user can import the data file that records the preset fingerprint features and their associated device addresses into the audio device in advance, where the preset fingerprint features can include multiple fingerprint features, each fingerprint feature is associated with a different device address. For example, the user can associate the thumb fingerprint with the device address corresponding to the mobile phone, and the index finger fingerprint with the device address corresponding to the tablet. In this way, the user can use the thumb fingerprint to connect the audio device to the mobile phone through Bluetooth, and use the index finger fingerprint to connect the audio device to the tablet through Bluetooth. Optionally, the preset fingerprint features can also be imported into the audio device by the terminal device during the first Bluetooth connection between the terminal device and the audio device. The specific import process is as follows:
[0057] When the terminal device establishes the first Bluetooth connection with the audio device, the preset fingerprint feature and its device address are synchronized to the audio device corresponding to the first Bluetooth connection; the audio device binds and stores the received preset fingerprint feature and the device address, and when different device addresses match the same preset fingerprint feature, the connection priority of each device address is determined according to the connection frequency of the terminal device corresponding to the device address.
[0058] It is worth noting that the terminal device can synchronize the unlocking fingerprint in the device as a preset fingerprint feature and its own device address to the connected audio device through the first Bluetooth connection. After the audio device receives the preset fingerprint feature and device address, it can bind and store the two for subsequent Bluetooth connections. For example, when the user inputs the fingerprint used to unlock the mobile phone into the audio device, the target connection device of the audio device is the mobile phone. When the user inputs the fingerprint used to unlock the tablet into the audio device, the target connection device of the audio device is the tablet. Furthermore, since the user may use the same fingerprint to unlock the mobile phone and the tablet, when the same preset fingerprint feature corresponds to different terminal devices, the audio device can set the connection priority for different device addresses by counting the connection frequency with different terminal devices in the historical connection records. In this way, when the user's input fingerprint corresponds to multiple terminal devices, the audio device can first connect to the terminal device with a high priority. Specifically, when the first fingerprint feature is associated with multiple device addresses, the audio device should obtain the target device address with the highest priority associated with the first fingerprint feature. For example, after the user's mobile phone and tablet have completed the first Bluetooth connection with the audio device, because the fingerprint used by the user to unlock the mobile phone and tablet is the same, when the user enters the fingerprint into the audio device, the audio device will set the connection priority of the mobile phone to be higher than the connection priority of the tablet according to the historical connection record, and then the audio device will give priority to the Bluetooth connection with the mobile phone. In this way, the device connection logic can be optimized by adapting to the user's usage habits, and a good device switching experience can be better provided to the user.
[0059] In one embodiment, based on the initial Bluetooth connection between the terminal device and the audio device in the aforementioned embodiment, in addition to synchronizing the unlocking fingerprint of the device to the audio device so that the audio device saves the association between the preset fingerprint feature and the device address, the user's fingerprint information can also be collected through the audio device and stored in association with the device address of the currently connected terminal device. The specific implementation process is as follows:
[0060] After the terminal device and the audio device establish the first Bluetooth connection, the audio device outputs a prompt voice message, which is used to prompt the user to enter the fingerprint; after the audio device receives the input fingerprint feature recognized by the fingerprint recognition module, it binds and stores the input fingerprint feature as a preset fingerprint feature with the device of the currently connected terminal device.
[0061] It is understandable that users can associate multiple terminal devices one by one by inputting different fingerprints into the audio device. For example, when the audio device establishes the first Bluetooth connection with the mobile phone, the audio device can output a prompt voice: Please enter the fingerprint. The user can input the thumb fingerprint into the audio device through the fingerprint recognition module. After the audio device receives the thumb fingerprint feature, it will bind and associate it with the device address of the mobile phone. When the audio device establishes the first Bluetooth connection with the tablet, the user can also input the index finger fingerprint into the audio device through the fingerprint recognition module after the audio device outputs the prompt voice. After the audio device receives the index finger fingerprint feature, it will bind and associate it with the device address of the tablet. Therefore, by providing users with a channel for fingerprint entry after the first Bluetooth connection, users can choose the same or different fingerprint features to correspond to multiple terminal devices according to personal needs, meet the user's diversified setting needs, and provide a better user experience. Furthermore, after the audio device confirms the device address of the terminal device to be connected, it can broadcast the connection data packet through the Bluetooth module so that the target terminal device within the broadcast signal range can receive the connection data packet. The connection data packet carries the target device address, its own device address, and forced connection information, where the forced connection information can be a connection flag that complies with the Bluetooth protocol. The developer can complete the corresponding settings in a predefined manner on the terminal device. Optionally, since the audio device may already be in a Bluetooth connection state with other terminal devices, after the audio device confirms that the input fingerprint meets the preset fingerprint characteristics, it needs to disconnect from the currently connected terminal device, otherwise it will conflict with the connection of the target terminal device.
[0062] Step S103, when the terminal device confirms through the slave Bluetooth module in scanning mode that there is a connection data packet sent in the form of broadcast and carrying a target device address that matches itself, it obtains the device address carried therein and, based on the device address, initiates a Bluetooth connection request to the corresponding audio device through the master Bluetooth module.
[0063] It is worth noting that the terminal device's slave Bluetooth module can turn on the scanning mode to monitor the connection data packets sent in the environment in the form of broadcasts. When the terminal device receives the connection data packet and confirms that the target device address it carries matches its own device address, it can be regarded as the presence of an audio device that requests a Bluetooth connection with itself. Therefore, the terminal device can continue to obtain the device address of the audio device in the connection data packet, and based on the device address, initiate a Bluetooth connection request to the corresponding audio device through the main Bluetooth module. Optionally, since the terminal device may already be in a Bluetooth connection state with other audio devices, after the terminal device confirms that it has received the connection data packet requesting a forced connection from the audio device, it needs to disconnect from the currently connected audio device, otherwise it will conflict with the connection of the target audio device. In this way, automatic switching of Bluetooth connections between multiple terminal devices and multiple audio devices can be achieved without the user having to manually perform complicated switching operations.
[0064] Step S104: The audio device establishes a wireless Bluetooth connection with the corresponding terminal device through the Bluetooth module in response to the received Bluetooth connection request.
[0065] For example, Figure 2 A specific implementation process of a device switching method in an embodiment of the present application is given, such as Figure 2As shown, the audio interaction system includes a Bluetooth headset 101, a Bluetooth speaker 102, a mobile phone 103 and a tablet 104, wherein the Bluetooth headset 101 and the mobile phone 103 are in a Bluetooth connection state, the Bluetooth speaker 102 and the tablet 104 are in a Bluetooth connection state, and the Bluetooth speaker 102 is pre-set with a fingerprint 1 associated with the device address of the mobile phone and a fingerprint 2 associated with the device address of the tablet. When the Bluetooth speaker 102 and the mobile phone 103 have completed Bluetooth pairing, if the Bluetooth speaker 102 receives the input fingerprint feature identified by the fingerprint recognition device, it will execute step S201: compare the input fingerprint feature with the preset fingerprint feature, and when it is confirmed that the input fingerprint feature matches the fingerprint 1 successfully, obtain the device address of the mobile phone 103 associated with the fingerprint 1. Then the Bluetooth speaker 102 will execute step S202: disconnect the Bluetooth connection with the tablet. Then the Bluetooth speaker 102 will execute step S203: broadcast a connection data packet externally, and the connection data packet includes the device address of the mobile phone, the device address of the Bluetooth speaker 102 itself, and the forced connection information. After the mobile phone 103 receives the connection data packet through the Bluetooth module 1032 in scanning mode, step S204 is executed: when it is confirmed that there is a connection data packet sent in the form of broadcast and carrying the device address of the mobile phone 103, the device address of the Bluetooth speaker 102 carried therein is obtained, and step S205 is executed: disconnecting the Bluetooth connection between the main Bluetooth module 1031 and the Bluetooth headset 101. Then the mobile phone will execute step S206: initiate a Bluetooth connection request to the Bluetooth speaker 102, and when the Bluetooth speaker 102 successfully receives the Bluetooth connection request, step S207 is also executed: establishing a wireless Bluetooth connection with the mobile phone 103. Through the above process, the user successfully switches the Bluetooth speaker 102 from the tablet 104 to the mobile phone 103 Bluetooth connection by simply inputting a fingerprint on the Bluetooth speaker 102, which is simple to operate and has high switching efficiency. It should be noted that after the Bluetooth speaker 102 executes the external broadcast connection data packet in step S203, the mobile phone 103 and the tablet 104 will both receive the connection data packet, but because the tablet 104 confirms that the target device address carried in the connection data packet is inconsistent with its own device address, the tablet 104 will not respond to the connection data packet and continue to maintain the original working state.
[0066] In the above, when the pairing is completed between the main Bluetooth module of the terminal device and the Bluetooth module of the audio device, both the audio device and the terminal device save the corresponding connection authentication information; then when the audio device receives the input fingerprint feature identified by the fingerprint recognition module, the input fingerprint feature is compared with the preset fingerprint feature, and when it is confirmed that the input fingerprint feature matches the first fingerprint feature in the preset fingerprint feature, the target device address associated with the first fingerprint feature is obtained; and, a connection data packet is broadcasted externally through the Bluetooth module, and the connection data packet carries the target device address, its own device address, and forced connection information; then the terminal device confirms through the slave Bluetooth module in scanning mode that there is a connection data packet sent in the form of broadcast and the target device address carried matches itself, obtains the device address carried therein, and based on the device address, initiates a Bluetooth connection request to the corresponding audio device through the main Bluetooth module; finally, the audio device responds to the received Bluetooth connection request and establishes a wireless Bluetooth connection with the corresponding terminal device through the Bluetooth module, thereby realizing fast pairing connection when multiple terminal devices switch connections with different audio devices, simplifying user operations, improving device switching efficiency, and providing users with a smooth switching experience between multiple devices.
[0067] Furthermore, in the aforementioned embodiment, it is provided that the audio device can determine the priority of the device address based on the connection frequency with the terminal device, and when the first fingerprint feature corresponds to multiple terminal devices, the audio device can establish a Bluetooth connection with the terminal device with the highest priority. However, establishing a Bluetooth connection with a terminal device with a high priority is certainly in line with the user's usage habits, but when the user wants to specify a terminal device with a low connection frequency, it cannot meet the requirements. Therefore, the embodiment of the present application can also provide another device switching method. On the basis of the aforementioned embodiment, a process of switching from connecting to a high-priority terminal device to connecting to a low-priority terminal device is added. The specific implementation process is as follows:
[0068] After the audio device successfully establishes a Bluetooth connection with the first terminal device corresponding to the first fingerprint feature, if the audio device receives a second fingerprint feature recognized by the fingerprint recognition module within a preset time period and the second fingerprint feature is consistent with the first fingerprint feature, the Bluetooth connection is disconnected, the device address of the second terminal device is obtained, and a reconnection data packet is broadcasted to the outside through the Bluetooth module, wherein the priority of the device address of the first terminal device is one level higher than that of the device address of the second terminal device, and the connection data packet carries the device address of the second terminal device, its own device address, and forced connection information.
[0069] For example, taking the terminal devices including mobile phones and tablets as an example, after the user inputs the fingerprint feature to the audio device, since the fingerprint feature corresponds to both the mobile phone and the tablet, the audio device will first connect to the mobile phone with the highest frequency of use through Bluetooth. After the audio device is successfully connected to the mobile phone, the user finds that he wants to connect to the tablet, so within the preset time, such as 10s or 20s, the user can continue to input the same fingerprint feature. When the audio device recognizes the same fingerprint feature, it will disconnect from the mobile phone and obtain a device address with a lower priority than the device address of the mobile phone, which is equivalent to obtaining the device address of the tablet, and broadcasting a reconnection data packet to the outside through the Bluetooth module. The reconnection data packet includes the device address of the tablet, the device address of the audio device itself, and forced connection information. In this way, the priority of the Bluetooth connection can be set with reference to the user's usage habits, and the means of switching connections can be provided in combination with the user's actual needs, enriching the usage scenarios and providing users with a more convenient operating experience.
[0070] Figure 3 A flowchart of another device switching method provided in an embodiment of the present application. The device switching method provided in this embodiment can be implemented by an audio device, which is provided with a fingerprint recognition module. Figure 3 , the device switching method specifically includes:
[0071] Step S301: When the main Bluetooth module of the terminal device is paired with the Bluetooth module of the audio device, corresponding connection authentication information is saved.
[0072] Step S302: upon receiving the input fingerprint feature recognized by the fingerprint recognition module, the input fingerprint feature is compared with the preset fingerprint feature. Upon confirming that the input fingerprint feature successfully matches the first fingerprint feature in the preset fingerprint features, the current Bluetooth connection is disconnected, and the target device address associated with the first fingerprint feature is obtained; and a connection data packet is broadcasted externally through the Bluetooth module, wherein the connection data packet carries the target device address, the own device address, and forced connection information.
[0073] Step S303: After the terminal device confirms through the slave Bluetooth module in scanning mode that there is a connection data packet sent in the form of broadcast and carrying a target device address that matches itself, it disconnects the Bluetooth connection of the master Bluetooth module and initiates a Bluetooth connection request. In response to the received Bluetooth connection request, a wireless Bluetooth connection is established with the corresponding terminal device through the Bluetooth module.
[0074] As mentioned above, the audio device compares the input fingerprint feature with the preset fingerprint feature, and after confirming that the fingerprint match is successful, it disconnects the current Bluetooth connection, and broadcasts the connection data packet so that the terminal device corresponding to the target device address disconnects the Bluetooth connection of the main Bluetooth module after receiving the connection data packet from the Bluetooth module, and initiates a Bluetooth connection request to the audio device through the main Bluetooth module, and the audio device connects to the terminal device in response to the Bluetooth connection request. In this way, fast pairing connection is achieved when multiple terminal devices switch connections with different audio devices, simplifying user operations, improving device switching efficiency, and providing users with a smooth switching experience between multiple devices.
[0075] Figure 4 A schematic diagram of the structure of an audio interaction system provided in an embodiment of the present application. Figure 3 The audio interaction system provided in this embodiment includes at least one audio device 201 and at least one terminal device 202. Each of the audio devices 201 includes a Bluetooth module 2011 and a fingerprint recognition module 2012. Each of the terminal devices 202 includes a master Bluetooth module 2021 and a slave Bluetooth module 2022. The audio interaction system provided in this embodiment of the application can be used to execute the device switching method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
[0076] Figure 5 This is a schematic diagram of the structure of a device switching device provided in an embodiment of the present application. Figure 5 The present embodiment provides a device switching device for an audio device, wherein the audio device is provided with a fingerprint recognition module; the device switching device comprises:
[0077] The pairing authentication module 201 is used for the audio device to save the corresponding connection authentication information when the main Bluetooth module of the terminal device is paired with the Bluetooth module of the audio device;
[0078] The broadcast connection module 202 is used to compare the input fingerprint feature with the preset fingerprint feature when receiving the input fingerprint feature recognized by the fingerprint recognition module, and when confirming that the input fingerprint feature successfully matches the first fingerprint feature in the preset fingerprint feature, obtain the target device address associated with the first fingerprint feature; and broadcast a connection data packet externally through the Bluetooth module, the connection data packet carrying the target device address, the own device address, and forced connection information;
[0079] The connection establishment module 203 is used to establish a wireless Bluetooth connection with the corresponding terminal device through the Bluetooth module in response to the received Bluetooth connection request after the terminal device confirms the existence of a connection data packet sent in the form of broadcast and carrying a target device address that matches itself through the Bluetooth module in scanning mode and initiates a Bluetooth connection request.
[0080] As mentioned above, the audio device compares the input fingerprint feature with the preset fingerprint feature, and after confirming that the fingerprint match is successful, it disconnects the current Bluetooth connection, and broadcasts the connection data packet so that the terminal device corresponding to the target device address disconnects the Bluetooth connection of the main Bluetooth module after receiving the connection data packet from the Bluetooth module, and initiates a Bluetooth connection request to the audio device through the main Bluetooth module, and the audio device connects to the terminal device in response to the Bluetooth connection request. In this way, fast pairing connection is achieved when multiple terminal devices switch connections with different audio devices, simplifying user operations, improving device switching efficiency, and providing users with a smooth switching experience between multiple devices.
[0081] Figure 6 A schematic diagram of the structure of an audio device provided in an embodiment of the present application, referring to Figure 6 The audio device includes: a fingerprint recognition module 301; a Bluetooth module 302; one or more processors 303; and a storage device 304, which is configured to store one or more programs. When the one or more programs are executed by the one or more processors 303, the one or more processors 303 implement the device switching method in any embodiment of the present application. The fingerprint recognition module 301, the Bluetooth module 303, the processor 303, and the storage device 304 of the audio device can be connected via a bus or other means.
[0082] The storage device 304, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the device switching method of any embodiment of the present application. The storage device may mainly include a storage program area and a storage data area, wherein the storage program area can store an operating system, at least one application required for a function; the storage data area can store data created according to the use of the device, etc. In addition, the storage device may include a high-speed random access storage device, and may also include a non-volatile storage device, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the storage device may further include a storage device remotely arranged relative to the processor, and these remote storage devices may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0083] The processor 303 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the storage device, that is, implements the above-mentioned device switching method.
[0084] The fingerprint recognition module 301 can be used to receive and recognize the user's input fingerprint;
[0085] The Bluetooth module 302 may be used to establish a Bluetooth connection with an electronic device that also has a Bluetooth module.
[0086] The audio device provided above can be used to execute the device switching method provided in the above embodiment, and has corresponding functions and beneficial effects.
[0087] The embodiment of the present application also provides a storage medium containing computer executable instructions, which are used to execute a device switching method when executed by a computer processor. The device switching method includes: when the main Bluetooth module of the terminal device and the Bluetooth module of the audio device are paired, the audio device and the terminal device both save corresponding connection authentication information; when the audio device receives the input fingerprint feature identified by the fingerprint recognition module, the input fingerprint feature is compared with the preset fingerprint feature, and when it is confirmed that the input fingerprint feature successfully matches the first fingerprint feature in the preset fingerprint feature, the target device address associated with the first fingerprint feature is obtained; and a connection data packet is broadcasted to the outside through the Bluetooth module, and the connection data packet carries the target device address, its own device address, and forced connection information; when the terminal device confirms that there is a connection data packet sent in the form of broadcast and the target device address carried matches itself through the slave Bluetooth module in scanning mode, the terminal device obtains the device address carried therein, and based on the device address, initiates a Bluetooth connection request to the corresponding audio device through the main Bluetooth module; in response to the received Bluetooth connection request, the audio device establishes a wireless Bluetooth connection with the corresponding terminal device through the Bluetooth module.
[0088] Storage medium - any of various types of storage devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape devices; computer system storage devices or random access storage devices, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile storage devices, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of storage device elements, etc. The storage medium may also include other types of storage devices or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system, which is connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations (for example, in different computer systems connected by a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.
[0089] Of course, the storage medium containing computer executable instructions provided in the embodiment of the present application, whose computer executable instructions are not limited to the device switching method described above, can also execute related operations in the device switching method provided in any embodiment of the present application.
[0090] The audio interaction system, audio device, and storage medium provided in the above embodiments can execute the device switching method provided in any embodiment of the present application. For technical details not described in detail in the above embodiments, please refer to the device switching method provided in any embodiment of the present application.
[0091] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.
Claims
1. A device switching method, applied to an audio interaction system, wherein the audio interaction system includes at least one audio device and at least one terminal device, each of the terminal devices includes a master Bluetooth module and a slave Bluetooth module, It is characterized in that Each of the audio devices is provided with a fingerprint recognition module; The device switching method comprises: When the main Bluetooth module of the terminal device is paired with the Bluetooth module of the audio device, the audio device and the terminal device both save corresponding connection authentication information; When the audio device receives the input fingerprint feature identified by the fingerprint recognition module, the audio device compares the input fingerprint feature with the preset fingerprint feature, and when it is confirmed that the input fingerprint feature successfully matches the first fingerprint feature of the preset fingerprint features, the target device address associated with the first fingerprint feature is obtained; and a connection data packet is broadcasted externally through the Bluetooth module, the connection data packet carrying the target device address, the device address of the audio device itself, and the forced connection information; When the terminal device confirms through the slave Bluetooth module in scanning mode that there is a connection data packet sent in the form of broadcast and the target device address carried matches the terminal device, the terminal device obtains the device address carried therein, and based on the device address, initiates a Bluetooth connection request to the corresponding audio device through the master Bluetooth module; In response to the received Bluetooth connection request, the audio device establishes a wireless Bluetooth connection with the corresponding terminal device through the Bluetooth module.
2. The device switching method according to claim 1, It is characterized in that Before broadcasting the connection data packet externally through the Bluetooth module, the method further includes: When the Bluetooth connection is confirmed, disconnect the Bluetooth connection with the currently connected terminal device.
3. The device switching method according to claim 1, It is characterized in that Before initiating a Bluetooth connection request to the corresponding audio device through the main Bluetooth module, the method further includes: When the Bluetooth connection is confirmed, disconnect the currently connected audio device.
4. The device switching method according to claim 1, It is characterized in that Also includes: The audio device receives and stores a preset fingerprint feature input from an external device and Its associated device address.
5. The device switching method according to claim 1, It is characterized in that Before the audio device receives the input fingerprint feature identified by the fingerprint identification module, the method further includes: When the terminal device establishes the first Bluetooth connection with the audio device, the preset fingerprint feature and its device address are synchronized to the audio device corresponding to the first Bluetooth connection; The audio device binds and stores the received preset fingerprint feature and the device address, and when different device addresses match the same preset fingerprint feature, determines the connection priority of each device address according to the connection frequency of the terminal device corresponding to the device address.
6. The device switching method according to claim 5, It is characterized in that The first fingerprint feature is associated with multiple device addresses; Correspondingly, obtaining the target device address associated with the first fingerprint feature includes: Obtain the target device address with the highest priority associated with the first fingerprint feature.
7. The device switching method according to claim 6, It is characterized in that After the audio device establishes a wireless Bluetooth connection with the corresponding terminal device through the Bluetooth module in response to the received Bluetooth connection request, the method further includes: After the audio device successfully establishes a Bluetooth connection with the first terminal device corresponding to the first fingerprint feature, if the audio device receives a second fingerprint feature recognized by the fingerprint recognition module within a preset time period and the second fingerprint feature is consistent with the first fingerprint feature, the Bluetooth connection is disconnected, the device address of the second terminal device is obtained, and a reconnection data packet is broadcasted to the outside through the Bluetooth module, wherein the priority of the device address of the first terminal device is one level higher than that of the device address of the second terminal device, and the connection data packet carries the device address of the second terminal device, its own device address, and forced connection information.
8. A device switching method, applied to an audio device, It is characterized in that The audio device is provided with a fingerprint recognition module; The device switching method comprises: When the main Bluetooth module of the terminal device is paired with the Bluetooth module of the audio device, the corresponding connection authentication information is saved; When receiving the input fingerprint feature recognized by the fingerprint recognition module, the input fingerprint feature is compared with the preset fingerprint feature. When it is confirmed that the input fingerprint feature successfully matches the first fingerprint feature of the preset fingerprint features, the current Bluetooth connection is disconnected, and the target device address associated with the first fingerprint feature is obtained; and a connection data packet is broadcasted externally through the Bluetooth module, and the connection data packet carries the target device address, the own device address, and the forced connection information; After the terminal device confirms through the slave Bluetooth module in scanning mode that there is a connection data packet sent in the form of broadcast and carrying a target device address that matches itself, it disconnects the Bluetooth connection of the master Bluetooth module and initiates a Bluetooth connection request, and then establishes a wireless Bluetooth connection with the corresponding terminal device through the Bluetooth module in response to the received Bluetooth connection request.
9. An audio interaction system, It is characterized in that The audio interaction system includes at least one audio device and at least one terminal device, each of the audio devices includes a Bluetooth module and a fingerprint recognition module, and each of the terminal devices includes a master Bluetooth module and a slave Bluetooth module; the audio interaction system is used to execute the device switching method described in any one of claims 1-8.
10. A device switching device, applied to audio equipment, It is characterized in that The audio device is provided with a fingerprint recognition module; The device switching device comprises: A pairing authentication module, used for the audio device to save corresponding connection authentication information when the main Bluetooth module of the terminal device is paired with the Bluetooth module of the audio device; a broadcast connection module, configured to compare the input fingerprint feature with a preset fingerprint feature upon receiving the input fingerprint feature identified by the fingerprint recognition module, and when confirming that the input fingerprint feature successfully matches the first fingerprint feature among the preset fingerprint features, obtain the target device address associated with the first fingerprint feature; and broadcast a connection data packet externally through a Bluetooth module, the connection data packet carrying the target device address, the own device address, and forced connection information; A connection establishment module is used to establish a wireless Bluetooth connection with the corresponding terminal device through the Bluetooth module in response to the received Bluetooth connection request after the terminal device confirms the existence of a connection data packet sent in the form of broadcast and carrying a target device address that matches itself through the Bluetooth module in scanning mode and initiates a Bluetooth connection request.
11. An audio device, It is characterized in that The audio device comprises: Fingerprint recognition module; Bluetooth module; one or more processors; The storage device is configured to store one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the device switching method described in claim 8.
12. A non-volatile storage medium storing computer executable instructions, It is characterized in that When the computer executable instructions are executed by a computer processor, they are configured to perform the device switching method according to any one of claims 1 to 8.
