Electronic device, server, and multi-terminal multi-bluetooth device management method

By establishing a cloud-based device state pool on the server, terminal devices can quickly obtain information about the target Bluetooth device and establish a connection, solving the problem that multiple terminal devices cannot be bound at the same time and improving the user experience.

CN116321526BActive Publication Date: 2026-03-03HISENSE VISUAL TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310134559.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-17
Publication Date
2026-03-03
Estimated Expiration
2043-02-17

AI Technical Summary

Technical Problem

In existing Bluetooth management systems, multiple terminal devices cannot be paired with multiple Bluetooth devices simultaneously. This forces terminal devices to continuously search for Bluetooth devices they have not previously connected to, resulting in longer user wait times and a reduced user experience.

Method used

By establishing a cloud-based device state pool on the server to store information about connected Bluetooth devices in the area, terminal devices can obtain the online and connection information of target Bluetooth devices by querying the state pool and directly establish a communication connection with them, avoiding repeated searches.

Benefits of technology

It improves user experience, reduces waiting time when terminal devices connect to Bluetooth devices they have not connected to before, and enables efficient management of multiple terminals and devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116321526B_ABST
    Figure CN116321526B_ABST
Patent Text Reader

Abstract

This application provides an electronic device, a server, and a method for managing multiple terminals and multiple Bluetooth devices. The method responds to a Bluetooth connection command by obtaining the registration status of a target Bluetooth device, wherein the target Bluetooth device is a Bluetooth device that has not previously established a communication connection with the electronic device. If the target Bluetooth device's registration status is "registered," the method requests the server to retrieve a cloud-based device status pool, and then queries the cloud-based device status pool for the target Bluetooth device's device information, including device online information and device connection information. If the target Bluetooth device's online information is found to be online and its connection information is found to be "not connected," a Bluetooth communication connection is established with the target Bluetooth device. The method provided by this application, through the cloud-based device status pool, allows terminal devices to connect to previously unconnected Bluetooth devices without waiting for extended periods, improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of multi-terminal Bluetooth management, and in particular to an electronic device, a server, and a method for managing multiple terminals and multiple Bluetooth devices. Background Technology

[0002] Many smart home devices are placed in the living space of a home, such as speakers, body fat scales, fitness equipment, air conditioners, washing machines, and range hoods. To facilitate the management of smart homes, these devices are equipped with Bluetooth functionality, allowing users to connect to them via their own devices to remotely start or stop various functions, thus enhancing the user's home experience.

[0003] Most current Bluetooth management systems only support single-device pairing, meaning a single terminal device can be paired and controlled simultaneously. They do not support pairing with multiple terminals or devices. When a terminal device wants to connect to a Bluetooth device it has never connected to before, it cannot determine whether the device is available and must continuously search for it, resulting in longer waiting times and a poor user experience. Summary of the Invention

[0004] This application provides an electronic device, a server, and a method for managing multiple terminals and multiple Bluetooth devices to solve the problem that when an electronic device connects to a Bluetooth device it has never connected to before, the continuous search process of the terminal device causes a long waiting time for the user, resulting in a poor user experience.

[0005] In a first aspect, some embodiments of this application provide an electronic device, which includes a communicator and a controller. The communicator is configured to establish a communication connection with a server. The controller is configured to:

[0006] In response to a Bluetooth connection command, the registration status of the target Bluetooth device on the server is obtained; the target Bluetooth device is a Bluetooth device that has not established a communication connection with the electronic device; the registration status is either registered or unregistered.

[0007] If the target Bluetooth device is registered, then a request is made to the server to retrieve the cloud device state pool; the cloud device state pool includes device information of Bluetooth devices that have established communication connections with other terminal devices in a preset area, where the preset area is the area where the electronic device is located;

[0008] Query the device information of the target Bluetooth device in the cloud device status pool; the device information includes device online information and device connection information.

[0009] When the target Bluetooth device is found to be online and its connection information is not connected, a Bluetooth communication connection is established with the target Bluetooth device.

[0010] Secondly, some embodiments of this application also provide a server, which establishes a communication connection with the electronic device provided in the first aspect. The server stores a cloud device state pool, which includes device information of Bluetooth devices that have established communication connections with other terminal devices in a preset area. The preset area is the area where the electronic device is located.

[0011] The server is configured as follows:

[0012] Obtain the pull request sent by the electronic device, wherein the pull request is a request sent by the electronic device in response to the Bluetooth connection command when the registration status of the target Bluetooth device is obtained as registered;

[0013] In response to the pull request, the cloud device status pool is sent to the electronic device so that the electronic device can query the device information of the target Bluetooth device in the cloud device status pool, and establish a Bluetooth communication connection with the target Bluetooth device when the online status of the target Bluetooth device is found to be online and the connection information of the target Bluetooth device is not connected.

[0014] Thirdly, some embodiments of this application also provide a multi-terminal, multi-Bluetooth device management method, applied to the electronic device provided in the first aspect, wherein the electronic device includes a communicator and a controller, and the method includes:

[0015] In response to a Bluetooth connection command, the registration status of the target Bluetooth device on the server is obtained; the target Bluetooth device is a Bluetooth device that has not established a communication connection with the electronic device; the registration status is either registered or unregistered.

[0016] If the target Bluetooth device is registered, then a request is made to the server to retrieve the cloud device state pool; the cloud device state pool includes device information of Bluetooth devices that have established communication connections with other terminal devices in a preset area, where the preset area is the area where the electronic device is located;

[0017] Query the device information of the target Bluetooth device in the cloud device status pool; the device information includes device online information and device connection information.

[0018] When the target Bluetooth device is found to be online and its connection information is not connected, a Bluetooth communication connection is established with the target Bluetooth device.

[0019] As can be seen from the above solutions, some embodiments of this application provide an electronic device, a server, and a method for managing multiple terminals and multiple Bluetooth devices. The method responds to a Bluetooth connection command by obtaining the registration status of a target Bluetooth device, wherein the target Bluetooth device is a Bluetooth device that has not previously established a communication connection with the electronic device. If the target Bluetooth device's registration status is "registered," a request is made to the server to retrieve the cloud-based device status pool. Then, the device information of the target Bluetooth device is queried from the terminal device status pool. The device information includes device online information and device connection information. When the target Bluetooth device's online information is found to be online and its connection information is found to be "not connected," a Bluetooth communication connection is established with the target Bluetooth device. The method provided by this application can share Bluetooth device information located in the same area as the electronic device through the cloud-based device status pool. When a terminal device connects to a Bluetooth device that has not been connected before, it can connect to the Bluetooth device without waiting for a long time, improving the user experience. Attached Figure Description

[0020] To more clearly illustrate the technical solution of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a schematic diagram illustrating the operational scenario between the electronic device and the control device in an embodiment of this application;

[0022] Figure 2 This is a hardware configuration block diagram of the electronic device in the embodiments of this application;

[0023] Figure 3 A flowchart illustrating a multi-terminal, multi-Bluetooth device management method provided in an embodiment of this application;

[0024] Figure 4 This is a schematic diagram illustrating the multi-terminal, multi-device connection between electronic devices and Bluetooth devices in the embodiments of this application;

[0025] Figure 5 This is a schematic diagram illustrating that the target Bluetooth device is outside the Bluetooth connection range in an embodiment of this application;

[0026] Figure 6 This is a schematic diagram illustrating the process of replacing other terminal devices with electronic devices in the embodiments of this application;

[0027] Figure 7 This is a schematic diagram illustrating the process of connected devices agreeing to switch in an embodiment of this application;

[0028] Figure 8This is a flowchart illustrating how the occupied device information in the cloud device state pool is switched by updating information in an embodiment of this application.

[0029] Figure 9 This is a schematic diagram illustrating the process of switching the device's online information to an offline state in an embodiment of this application;

[0030] Figure 10 A flowchart illustrating the operation of a server as provided in this application embodiment;

[0031] Figure 11 This is a schematic diagram illustrating the registration process performed by the server on the target Bluetooth device in an embodiment of this application. Detailed Implementation

[0032] To make the objectives and implementation methods of this application clearer, the exemplary implementation methods of this application will be clearly and completely described below with reference to the accompanying drawings of the exemplary embodiments of this application. Obviously, the exemplary embodiments described are only some embodiments of this application, and not all embodiments.

[0033] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.

[0034] The terms "first," "second," "third," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar or related objects or entities, and do not necessarily imply a specific order or sequence, unless otherwise specified. It should be understood that such terms are interchangeable where appropriate.

[0035] The terms “comprising” and “having”, and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device that includes a range of components is not necessarily limited to all of the components that are clearly listed, but may include other components that are not clearly listed or that are inherent to such product or device.

[0036] The electronic device provided in this application can have various implementation forms, such as a television, laser projection device, monitor, electronic bulletin board, electronic table, etc.

[0037] Figure 1 This is a schematic diagram illustrating the operational scenario between the electronic device and the control device according to the embodiment. Figure 1 As shown, the user can operate the electronic device 200 through the control device 300 or the control unit 100.

[0038] In some embodiments, the control device 100 may be a remote control. Communication between the remote control and the electronic device 200 includes infrared protocol communication, Bluetooth protocol communication, and other short-range communication methods, controlling the electronic device 200 wirelessly or via wired means. Users can control the electronic device 200 by inputting user commands through buttons on the remote control, voice input, control panel input, etc.

[0039] In some embodiments, a control device 300 (such as a mobile phone, tablet computer, computer, laptop computer, etc.) may also be used to control the electronic device 200. For example, an application running on the control device 300 may be used to control the electronic device 200.

[0040] In some embodiments, the electronic device 200 may receive instructions not by using the control device 300 or control unit 100 described above, but by receiving user control through touch or gestures.

[0041] In some embodiments, the electronic device 200 may also be controlled in ways other than the control device 100 and the control device 300. For example, it may be controlled by directly receiving the user's voice commands through a module configured inside the electronic device 200 for acquiring voice commands, or it may be controlled by receiving the user's voice commands through a voice control device set outside the electronic device 200.

[0042] In some embodiments, the electronic device 200 also communicates with the server 400. The electronic device 200 may be allowed to communicate via a local area network (LAN), wireless local area network (WLAN), and other networks. The server 400 may provide various content and interactive features to the electronic device 200. The server 400 may be a cluster or multiple clusters, and may include one or more types of servers.

[0043] like Figure 2 As shown, the electronic device 200 may include at least one of the following: a tuner 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface.

[0044] In some embodiments, controller 250 may include a processor, a video processor, an audio processor, a graphics processor, RAM, ROM, and a first to an nth interface for input / output.

[0045] The display 260 may include the following components: a display screen component for displaying images; a driving component for driving image display; a component for receiving image signals output from the controller 250 and displaying video content, image content, and a menu control interface, as well as a user control UI interface, etc.

[0046] The display 260 can be an LCD display, an OLED display, or a projection display, and can also be a projection device and a projection screen.

[0047] The communicator 220 is a component used to communicate with external devices or the server 400 according to various communication protocol types. For example, the communicator 220 may include at least one of the following: a Wi-Fi module, a Bluetooth module, a wired Ethernet module, other network communication protocol chips or near-field communication protocol chips, and an infrared receiver. The electronic device 200 can establish the transmission and reception of control signals and data signals with the external control device 100 or the server 400 through the communicator 220.

[0048] The user interface can be used to receive control signals from the control device 100 (such as an infrared remote control).

[0049] Detector 230 is used to collect signals from the external environment or to interact with the external environment. For example, detector 230 includes a light receiver, a sensor for collecting ambient light intensity; or, detector 230 includes an image acquisition device, such as a camera, which can be used to collect external environmental scenes, user attributes, or user interaction gestures; or, detector 230 includes a sound acquisition device, such as a microphone, for receiving external sounds.

[0050] The external device interface 240 may include, but is not limited to, one or more of the following: High Definition Multimedia Interface (HDMI), analog or high-definition component input interface (component), composite video input interface (CVBS), USB input interface (USB), RGB port, etc. It may also be a composite input / output interface formed by multiple interfaces mentioned above.

[0051] The tuner / demodulator 210 receives broadcast television signals via wired or wireless means, and demodulates audio and video signals, such as EPG data signals, from multiple wireless or wired broadcast television signals. In some embodiments, the controller 250 and the tuner / demodulator 210 may be located in different separate devices, that is, the tuner / demodulator 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.

[0052] The controller 250 controls the operation of the electronic device and responds to user operations through various software control programs stored in the memory. The controller 250 controls the overall operation of the electronic device 200. For example, in response to receiving a user command to select a UI object to display on the display 260, the controller 250 can execute operations related to the object selected by the user command.

[0053] In some embodiments, the controller 250 includes at least one of a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), a RAM (Random Access Memory), a ROM (Read-Only Memory), a first to an nth interface for input / output, a communication bus, etc.

[0054] Users can input commands through a graphical user interface (GUI) displayed on the monitor 260, and the user input interface receives the user input commands through the GUI. Alternatively, users can input commands by entering specific sounds or gestures, and the user input interface receives the user input commands by recognizing the sounds or gestures through sensors.

[0055] A user interface (GUI) is the medium through which an application or operating system interacts and exchanges information with the user. It converts information from its internal form to a form that the user can accept. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be an icon, window, control, or other interface element displayed on the screen of an electronic device. Controls can include visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.

[0056] In some embodiments, the system is divided into four layers, from top to bottom: the Applications layer (referred to as the "Application Layer"), the Application Framework layer (referred to as the "Framework Layer"), the Android Runtime and System Library layer (referred to as the "System Runtime Layer"), and the kernel layer.

[0057] In some embodiments, at least one application runs in the application layer. These applications may be Windows programs, system settings programs, or clock programs that come with the operating system; they may also be applications developed by third-party developers. In specific implementations, the applications in the application layer include, but are not limited to, the examples above.

[0058] The framework layer provides application programming interfaces (APIs) and a programming framework for applications. The application framework layer includes predefined functions. It acts as a central processing unit, determining the actions taken by applications within the application layer. Applications can access system resources and obtain system services during execution through the API interface.

[0059] In some embodiments, the Bluetooth module in the communicator 220 can initiate Bluetooth communication connections to other Bluetooth devices. The electronic device 200 can activate the Bluetooth function of its Bluetooth module and continuously scan for Bluetooth devices in its vicinity to determine connectable devices, selecting one of them as the target Bluetooth device. After receiving the Bluetooth connection request from the electronic device 200, the target Bluetooth device can generate corresponding connection feedback information. If the connection feedback information indicates agreement to connect, a Bluetooth communication connection is established between the electronic device 200 and the target Bluetooth device.

[0060] In this embodiment, the Bluetooth device is a device that supports Bluetooth Low Energy (BLE), including but not limited to televisions, refrigerator screens, range hood screens, mobile phones, and smart screens. The electronic device 200 is a terminal device with Bluetooth capability, such as speakers, fitness equipment, air conditioners, televisions, washing machines, smart curtains, smart lights, and body fat scales. Bluetooth BLE refers to a Bluetooth Low Energy module: a module that supports Bluetooth protocol 4.0 or higher, also known as a BLE module. Bluetooth BLE can be used in electronic products with high real-time requirements but low data rates, such as remote controls (mice, keyboards) and data transmission from sensing devices (heart rate monitors, blood pressure monitors, temperature sensors).

[0061] In some embodiments, after the Bluetooth module is turned on, the electronic device 200 can also receive Bluetooth connection requests sent to the electronic device 200 by other Bluetooth devices, and generate corresponding connection feedback information for the Bluetooth connection requests to inform other Bluetooth devices whether the electronic device 200 has established a Bluetooth communication connection with them.

[0062] In some embodiments, if multiple Bluetooth-enabled devices and multiple terminal devices are present in the same area, most Bluetooth devices only support pairing with a single terminal device. That is, only one terminal device can be paired and controlled at a time, and multi-terminal, multi-device pairing is not supported. Taking a home indoor area as an example, a large number of smart home devices are installed in the living space, such as speakers, body fat scales, fitness equipment, air conditioners, washing machines, and range hoods. To facilitate smart home management, these smart home devices are equipped with Bluetooth functionality. Users can connect to these smart home devices through their own terminal devices to remotely start or stop various functions of the smart home system, providing convenience for users.

[0063] In scenarios with multiple terminal devices, if a terminal device has not established a Bluetooth communication connection with the smart home device, it cannot be discovered by other terminal devices once a Bluetooth communication connection has been established. Other terminal devices, having not established a Bluetooth communication connection with the target Bluetooth device and wishing to connect, are unaware of the target Bluetooth device's connection status. Therefore, the terminal devices can only continuously search for the target Bluetooth device using their own Bluetooth modules, resulting in longer waiting times for the user.

[0064] To reduce the long waiting time and poor user experience caused by the continuous search process of a terminal device when connecting to a Bluetooth device it has never connected to before, some embodiments of this application provide an electronic device 200, which includes at least a communicator 220 and a controller 250. The communicator 220 is configured to establish a communication connection with a server 400, which stores a cloud-based device state pool. The controller 250 is configured to execute a multi-terminal, multi-Bluetooth device management method. This method can share Bluetooth device information located in the same area as the electronic device 200, allowing the terminal device to connect to a Bluetooth device without a long waiting time when connecting to a device it has never connected to before. Figure 3 As shown, the method includes:

[0065] S100, in response to the Bluetooth connection command, obtains the registration status of the target Bluetooth device on server 400.

[0066] The target Bluetooth device is a Bluetooth device that has not established a communication connection with the electronic device 200. The registration status of the target Bluetooth device is either registered or unregistered. After the controller 250 responds to the Bluetooth connection command, it also needs to establish a communication connection with the server 400 through the communicator 220. Based on the server 400, the controller 250 can also obtain the registration status of the target Bluetooth device so that the electronic device 200 can retrieve Bluetooth device information through the server 400.

[0067] In some embodiments, before responding to a Bluetooth connection command, the controller 250 also needs to obtain the Bluetooth startup status of the Bluetooth module in the electronic device 200. If the Bluetooth module of the electronic device 200 is not started, the Bluetooth module is turned on to perform subsequent Bluetooth connection functions.

[0068] S200, if the target Bluetooth device is registered, then request the server 400 to retrieve the cloud device state pool.

[0069] The cloud-based device state pool includes device information for Bluetooth devices that have established communication connections with other terminal devices within a preset area. The controller 250 can share device information for Bluetooth devices within the preset area by pulling the cloud-based device state pool from the server 400. The preset area is the region where the electronic device 200 is located; it can be a specific enclosed space, such as a home, office, restaurant, or shopping mall. The cloud-based device state pool stores device information for all registered Bluetooth devices within the preset area.

[0070] For example, such as Figure 4 As shown, within the area, there are electronic device 200, terminal device, Bluetooth device A, and Bluetooth device B. Electronic device 200 has established a Bluetooth communication connection with Bluetooth device A, and terminal device has established a communication connection with Bluetooth device B. Since electronic device 200 and terminal device are in the same area, the device information of both Bluetooth device A and Bluetooth device B is uploaded to the cloud device state pool. If electronic device 200 wants to establish a Bluetooth communication connection with Bluetooth device B, since Bluetooth device B has not established a Bluetooth communication connection with electronic device 200 before, the controller of electronic device 200 directly establishes a Bluetooth communication connection between electronic device 200 and Bluetooth device B by pulling from the cloud device state pool, without requiring electronic device 200 to search for Bluetooth device B.

[0071] In some embodiments, when the electronic device 200 is unsure whether the target Bluetooth device can be connected or whether the target Bluetooth device has established a Bluetooth communication connection with other terminal devices, the controller 250 can retrieve the device status pool in the cloud to determine the device information of the target Bluetooth device. This avoids the situation where the Bluetooth module of the electronic device 200 cannot discover the target Bluetooth device because the target Bluetooth device is establishing a Bluetooth communication connection with other terminal devices, resulting in a long search time for the user.

[0072] It should be noted that the cloud device status pool only stores device information of Bluetooth devices registered with server 400. If the target Bluetooth device is not registered, server 400 cannot obtain the device information of the target Bluetooth device. Controller 250 needs to wait for the target Bluetooth device to bind with the Bluetooth device in server 400 or an electronic device 200 within the coverage area of ​​the local area network corresponding to server 400 to complete the registration of the target Bluetooth device before it can obtain the device information of the target Bluetooth device.

[0073] S300, query the device information of the target Bluetooth device in the cloud device status pool.

[0074] In this embodiment, the controller 250 can determine the connection status and online status of the target Bluetooth device by querying the device information of the target Bluetooth device.

[0075] In some embodiments, to better preview the device information of Bluetooth devices in the cloud device state pool, the controller 250 can also pull a list of Bluetooth devices from the cloud device state pool and query the device information of the target Bluetooth device in the list. The device information includes device online information and device connection information, wherein the device online information indicates the status of the target Bluetooth device, and the device connection information indicates whether the target Bluetooth device has established a Bluetooth communication connection with other terminal devices.

[0076] In some embodiments, if the device online information indicates an online status, the device information may further include device occupancy information, which indicates the connected device information currently established with the target Bluetooth device. The connected device information may include the device model of the connected device, Bluetooth connection duration, historical connection count with the target Bluetooth device, and remote operations performed on the target Bluetooth device, so that the user can understand the currently connected device information of the target Bluetooth device. The device information may also include the target Bluetooth device's historical connection information, which includes terminal device information that the target Bluetooth device has established Bluetooth communication connections with.

[0077] S400: When the target Bluetooth device is found to be online and its connection information is not connected, a Bluetooth communication connection is established with the target Bluetooth device.

[0078] In this embodiment, the target Bluetooth device needs to be online to establish a Bluetooth communication connection with other terminal devices. Therefore, when querying the device information of the target Bluetooth device, the controller 250 needs to first query the target Bluetooth device's online status. If the device is online, the controller 250 then queries the target Bluetooth device's connection information. If the target Bluetooth device is offline, the controller 250 does not need to query the target Bluetooth device's connection information.

[0079] When the target Bluetooth device's online status is "online" and its connection status is "not connected," it means that no other terminal device has established a Bluetooth communication connection with the target Bluetooth device. The controller 250 can then establish a Bluetooth communication connection between the electronic device 200 and the target Bluetooth device. After establishing the Bluetooth communication connection, the controller 250 needs to generate device switching information based on the electronic device 200's device information and send this information to the server 400 to change the target Bluetooth device's connection status in the cloud device status pool from "not connected" to the electronic device's device information.

[0080] In some embodiments, different identifiers can be used in the cloud device state pool to represent the device connection information of the target Bluetooth device. For example, "1" indicates that the target Bluetooth device is connected to the terminal, and "0" indicates that the target Bluetooth device is not connected to the terminal. It should be noted that the above identifiers are only illustrative examples, and in actual applications, two different identifiers can be used to distinguish the two connection states.

[0081] In some embodiments, before establishing a Bluetooth connection between the electronic device 200 and the target Bluetooth device, the controller 250 also needs to confirm whether the target Bluetooth device is within the Bluetooth connection range of the electronic device 200. The controller 250 obtains the Bluetooth devices within the Bluetooth connection range of the Bluetooth module, queries the Bluetooth devices for the target Bluetooth device, and then establishes a Bluetooth communication connection between the electronic device 200 and the target Bluetooth device.

[0082] See Figure 5 If the controller 250 cannot find the target Bluetooth device in the Bluetooth device list, it means that the target Bluetooth device is outside the Bluetooth connection range of the electronic device 200. Even if the target Bluetooth device has no device connection at present, it cannot establish a Bluetooth communication connection with the electronic device 200.

[0083] In some embodiments, the controller 250 can obtain the target positioning information of the target Bluetooth device and the local positioning information of the electronic device 200, and calculate the position distance between the target positioning information and the local positioning information within a preset area. In this way, the controller can calculate the distance required for the target Bluetooth device to move into the connection range of the electronic device 200 in combination with the connection range, so that the user can move the electronic device 200 or move the target Bluetooth device to bring the target Bluetooth device into the connection range of the electronic device 200.

[0084] In some embodiments, if the target Bluetooth device's device connection information shows "connected," it indicates that the target Bluetooth device is currently establishing a Bluetooth communication connection with other terminal devices, such as... Figure 6 As shown, controller 250 can extract the connected devices of the target Bluetooth device from the device connection information, and send a handover request to the connected devices to inquire whether the connected devices agree to the handover. The connected devices will respond to the handover request and generate feedback information to return to electronic device 200. If the feedback information indicates agreement to the handover, controller 250 establishes a Bluetooth communication connection between the target Bluetooth device and electronic device 200.

[0085] After the controller 250 establishes a Bluetooth communication connection, the connected device of the target Bluetooth device changes from the original terminal device to the electronic device 200. Therefore, as Figure 8 As shown, controller 250 also needs to generate update information, which indicates that the target Bluetooth device's occupied device information has changed to electronic device 200. Controller 250 also needs to upload the update information to server 400 to update the cloud device state pool. Terminal devices that have disconnected their Bluetooth communication connection from the target Bluetooth device can also obtain a disconnection notification from the cloud device state pool, enabling the terminal device to establish a Bluetooth communication connection with other Bluetooth devices.

[0086] In some embodiments, if the feedback information is a rejection of switching, the controller 250 generates a rejection prompt based on the feedback information. The controller 250 can output the rejection prompt and broadcast the rejection prompt to other terminal devices via the server 400 to prompt other terminal devices that the terminal device currently connected to the target Bluetooth device rejects the other terminal device's switch of Bluetooth communication connection.

[0087] In some embodiments, after the controller 250 generates a rejection message, it can monitor the dynamic device connection information of the target Bluetooth device through the cloud device state pool. If the device connection information changes, the cloud device state pool will generate a change message based on the target Bluetooth device and send it to the electronic device 200.

[0088] For example, when a terminal device communicating with a target Bluetooth device disconnects from the target Bluetooth device, the device connection information of the target Bluetooth device in the cloud device state pool will change from "connectionless" to "no connection". Based on this connection status change, the cloud device state pool will generate a change notification message such as "The device connection information of the target Bluetooth device has changed from 'connectionless' to 'no connection'" and send it to the electronic device 200. After receiving the change notification message, the controller 250 can choose whether to re-initiate a Bluetooth connection request to the target Bluetooth device based on the content of the change notification message, to avoid the electronic device 200 missing the connection with the target Bluetooth device.

[0089] Due to signal delay, connection failure can occur even when the target Bluetooth device is online. In some embodiments, when establishing a Bluetooth communication connection between the electronic device 200 and the target Bluetooth device, the controller 250 obtains the result information of establishing the Bluetooth communication connection with the target Bluetooth device. If the result information indicates a connection failure, it means that the current communication signal environment of the target Bluetooth device is poor and cannot establish a normal Bluetooth communication connection with the electronic device 200. In this case, the controller 250 can re-establish a Bluetooth communication connection with the target Bluetooth device after a first preset time interval.

[0090] When the target Bluetooth device switches from online to offline, network latency or communication signal delay may cause the target Bluetooth device's online status information in the cloud device status pool to not switch in time. The cloud device status pool may still show the target Bluetooth device as online, resulting in connection failure.

[0091] In some embodiments, when the controller 250 re-establishes a connection with the target Bluetooth device, if the connection information still indicates a connection failure, the controller 250 can re-evaluate the target Bluetooth device's online status by setting a failure count threshold. In this case, the controller 250 obtains the number of connection failures when the target Bluetooth device attempts to establish a Bluetooth communication connection. If the number of failed connections is greater than or equal to the failure count threshold, it indicates that the current signal environment of the target Bluetooth device does not support establishing a Bluetooth communication connection with the terminal device, and the controller 250 generates online status update information. This online status update information is used to switch the target Bluetooth device's online status in the cloud device status pool to an offline status. The controller 250 sends the online status update information to the server 400 to update the target Bluetooth device's online status in the cloud device status pool from online to offline, and the server 400 dynamically broadcasts the switch of the target Bluetooth device's online status to other terminal devices.

[0092] In some embodiments, after establishing a Bluetooth communication connection between the target Bluetooth device and the electronic device 200, if the target Bluetooth device or terminal device disconnects the Bluetooth communication connection through active or passive disconnection, the controller 250 needs to update the cloud device state pool based on the moment the disconnection is confirmed. The controller 250 can continuously monitor the Bluetooth connection status between the electronic device 200 and the target Bluetooth device to confirm the online status of the target Bluetooth device, so as to switch the device online information of the target Bluetooth device in a timely manner.

[0093] If the Bluetooth connection status changes to disconnected, the controller 250 can detect the disconnection command to confirm whether the disconnection was initiated by the user. If the controller 250 does not detect the disconnection command, it determines that the target Bluetooth device was passively disconnected, such as due to insufficient battery power or damage to the target Bluetooth device's communication module, which prevents the target Bluetooth device from establishing a normal Bluetooth communication connection. In this case, the controller 250 can generate connection status switching information to change the device connection information of the target Bluetooth device to disconnected.

[0094] If the target Bluetooth device is in a poor communication state, it may restore the Bluetooth communication connection with electronic device 200 within a certain period of time. See also Figure 9 In some embodiments, the controller 250 may also start timing after the Bluetooth connection state changes to a disconnected state, and generate connection state update information if the duration of the disconnected state exceeds a second preset duration. The controller 250 also needs to send the connection state update information to the server 400 to update the cloud device state pool.

[0095] Some embodiments of this application also provide a server 400, which can establish a communication connection with the electronic device 200 provided in any of the above embodiments. The server 400 stores a cloud device state pool, which includes device information of Bluetooth devices that have established communication connections with other terminal devices within a preset area. The preset area is the area where the electronic device 200 is located. For example... Figure 10 As shown, the server 400 can receive the pull request sent by the electronic device 200 after responding to the Bluetooth connection command and obtaining the registration status of the target Bluetooth device as registered. In response to the pull request, the server 400 can send a cloud-based device status pool to the electronic device 200, enabling the electronic device 200 to query the device information of the target Bluetooth device in the cloud-based device status pool. Furthermore, if the electronic device 200 finds that the target Bluetooth device's online status is online and its connection status is not connected, it can establish a Bluetooth communication connection with the target Bluetooth device.

[0096] In some embodiments, if the target Bluetooth device is not registered with the server 400, the registration status of the target Bluetooth device obtained by the electronic device 200 is "unregistered," and the electronic device 200 cannot find the target Bluetooth device in the cloud device status pool. Therefore, before the electronic device 200 can connect to the target Bluetooth device, the target Bluetooth device needs to complete its registration with the server 400.

[0097] like Figure 11 As shown, the target Bluetooth device can send a registration request to the server 400 to request the server 400 to perform a registration process for the target Bluetooth device. In response to the registration request, the server 400 activates the Bluetooth function of the registration terminal. The registration terminal is a terminal device capable of registering the target Bluetooth device; the target Bluetooth device needs to be bound to the registration terminal to complete the registration process on the server 400. The registration terminal may include the electronic device 200 and other terminal devices located in the same area as the electronic device 200.

[0098] After the Bluetooth function of the registration terminal is activated, the server 400 obtains a list of Bluetooth devices within the Bluetooth scanning range of the registration terminal to determine which registration terminal the target Bluetooth device is within the Bluetooth scanning range. The server 400 then queries the Bluetooth device list for the online status of the target Bluetooth device. If the device is online, the server 400 establishes an association between the target Bluetooth device and the registration terminal to complete the registration process for the target Bluetooth device.

[0099] After the target Bluetooth device completes the registration process on server 400, server 400 will receive the device information of the target Bluetooth device and store it in the cloud device status pool so that other terminal devices or electronic devices 200 can establish Bluetooth communication connections with the target Bluetooth device through server 400.

[0100] In some embodiments, since the target Bluetooth device is in a state of maintaining a Bluetooth communication connection with the registered terminal when the association is established, the server 400 will modify the device information of the target Bluetooth device according to the device information of the registered terminal after the target Bluetooth device completes registration. Specifically, the server 400 will directly switch the device connection information of the target Bluetooth device in the cloud device state pool to "connected". Then, the server 400 will obtain the device information of the registered terminal and register the device information of the registered terminal as the connected device of the target Bluetooth device, informing other terminal devices that the target Bluetooth device has been successfully bound and is establishing a Bluetooth communication connection with the registered terminal device.

[0101] In some embodiments, the server 400 can also receive connection status update information generated by the connected device according to the disconnection command, and in response to the connection status update information, switch the device connection information of the target Bluetooth device in the cloud device status pool to not connected. At this time, all registered terminal devices in the cloud device status pool can initiate a Bluetooth connection request to the target Bluetooth device through the server 400.

[0102] In some embodiments, if the connected device of the target Bluetooth device is changed, the server 400 can also receive update information sent by the changed terminal device. After receiving the update information, the server 400 will update the device connection information of the target Bluetooth device in the cloud device state pool. Specifically, the server 400 will update the updated terminal device as a connected device.

[0103] Some embodiments of this application also provide a multi-terminal, multi-Bluetooth device management method, applied to an electronic device 200, the method comprising:

[0104] S100, in response to a Bluetooth connection command, obtains the registration status of the target Bluetooth device on the server.

[0105] The target Bluetooth device is a Bluetooth device that has not established a communication connection with the electronic device. The registration status is either registered or unregistered.

[0106] S200, if the target Bluetooth device is registered, then request the server to retrieve the cloud device state pool.

[0107] The cloud device status pool includes device information of Bluetooth devices that have established communication connections with other terminal devices within a preset area, where the preset area is the region where the electronic device is located.

[0108] S300, query the device information of the target Bluetooth device in the cloud device status pool.

[0109] The device information includes device online information and device connection information;

[0110] S400: When the target Bluetooth device is found to be online and its connection information is not connected, a Bluetooth communication connection is established with the target Bluetooth device.

[0111] As can be seen from the above solutions, some embodiments of this application provide an electronic device, a server, and a method for managing multiple terminals and multiple Bluetooth devices. The method responds to a Bluetooth connection command by obtaining the registration status of a target Bluetooth device, wherein the target Bluetooth device is a Bluetooth device that has not previously established a communication connection with the electronic device. If the target Bluetooth device's registration status is "registered," a request is made to the server to retrieve the cloud device status pool. Then, the device information of the target Bluetooth device is queried from the cloud device status pool. The device information includes device online information and device connection information. When the target Bluetooth device's online information is found to be online and its connection information is found to be "not connected," a Bluetooth communication connection is established with the target Bluetooth device. The method provided by this application can share Bluetooth device information located in the same area as the electronic device through the cloud device status pool. When a terminal device connects to a Bluetooth device that has not been connected before, it can connect to the Bluetooth device without waiting for a long time, improving the user experience.

[0112] Those skilled in the art will clearly understand that the techniques in the embodiments of the present invention can be implemented using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of a software product, which can be stored in a computer-readable storage medium.

[0113] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

[0114] For ease of explanation, the above description has been provided in conjunction with specific embodiments. However, the foregoing exemplary discussion is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Various modifications and variations can be made based on the foregoing teachings. The selection and description of the above embodiments are for the purpose of better explaining the contents of this disclosure, thereby enabling those skilled in the art to better utilize the described embodiments.

Claims

1. An electronic device, characterized in that, include: The communicator is configured to establish a communication connection with the server. The controller is configured as follows: In response to a Bluetooth connection command, the registration status of the target Bluetooth device on the server is obtained; the target Bluetooth device is a Bluetooth device that has not established a communication connection with the electronic device; the registration status is either registered or unregistered, and being registered means that the target Bluetooth device is bound to a Bluetooth device on the server or an electronic device located within the coverage area of ​​the local area network corresponding to the server; If the target Bluetooth device is registered, then a request is made to the server to retrieve the cloud device state pool; the cloud device state pool includes device information of Bluetooth devices that have established communication connections with other terminal devices in a preset area, where the preset area is the area where the electronic device is located; Query the device information of the target Bluetooth device in the cloud device status pool; the device information includes device online information and device connection information. When the target Bluetooth device is found to be online and its connection information is not connected, a Bluetooth communication connection is established with the target Bluetooth device. When the target Bluetooth device is found to be online and connected, the connected devices of the target Bluetooth device are extracted from the device connection information, and a handover request is sent to the connected devices. Obtain the feedback information sent by the connected device in response to the handover request; If the feedback information indicates agreement to switch, then a Bluetooth communication connection is established between the target Bluetooth device and the electronic device. Update information is generated and uploaded to the server to update the cloud device state pool. The update information indicates that the occupant device information of the target Bluetooth device has changed to the electronic device.

2. The electronic device according to claim 1, characterized in that, The controller is further configured to: If the feedback information indicates a refusal to switch, a refusal prompt message is generated based on the feedback information. The rejection message is output, and the rejection message is broadcast to the other terminal devices via the server.

3. The electronic device according to claim 1, characterized in that, The controller is further configured to: Obtain the result information when establishing a Bluetooth communication connection with the target Bluetooth device; If the result information indicates a connection failure, a new Bluetooth communication connection will be established with the target Bluetooth device after a first preset time interval.

4. The electronic device according to claim 3, characterized in that, The controller is further configured to: Obtain the number of connection failures when establishing a Bluetooth communication connection with the target Bluetooth device; If the number of connection failures is greater than or equal to the failure number threshold, online status update information is generated. The online status update information is used to switch the online status of the target Bluetooth device in the cloud device status pool to offline status. The online status update information is sent to the server to update the cloud device status pool.

5. The electronic device according to claim 1, characterized in that, After the controller establishes a Bluetooth communication connection with the target Bluetooth device, it is further configured to: Monitor the Bluetooth connection status between the electronic device and the target Bluetooth device; When the Bluetooth connection status changes to disconnected and the duration of the disconnected state exceeds a second preset duration, connection status update information is generated. The connection status update information is used to switch the device connection information of the target Bluetooth device to not connected. The connection status update information is sent to the server to update the cloud device status pool.

6. A server, characterized in that, The server establishes a communication connection with the electronic device according to any one of claims 1-5. The server stores a cloud device status pool. The cloud device status pool includes device information of Bluetooth devices that have established communication connections with other terminal devices in a preset area. The preset area is the area where the electronic device is located. The server is configured as follows: The electronic device sends a pull request, which is a request sent by the electronic device in response to a Bluetooth connection command when the registration status of the target Bluetooth device is obtained as registered. The registered status means that the target Bluetooth device is bound to a Bluetooth device in the server or an electronic device within the coverage area of ​​the local area network corresponding to the server. In response to the pull request, the cloud device status pool is sent to the electronic device so that the electronic device can query the device information of the target Bluetooth device in the cloud device status pool, and establish a Bluetooth communication connection with the target Bluetooth device when the online status of the target Bluetooth device is found to be online and the device connection information of the target Bluetooth device is not connected. Alternatively, when the electronic device finds that the target Bluetooth device's online status is online and the target Bluetooth device's connection information is connected, it can extract the connected devices of the target Bluetooth device from the device connection information and send a handover request to the connected devices; and obtain feedback information sent by the connected devices in response to the handover request. If the feedback information indicates agreement to switch, then a Bluetooth communication connection is established between the target Bluetooth device and the electronic device. Generate update information and upload the update information to the server; The cloud device state pool is updated according to the update information, which indicates that the occupancy information of the target Bluetooth device has changed to the electronic device.

7. The server according to claim 6, characterized in that, The server is further configured to: In response to a registration request sent by the target Bluetooth device, the Bluetooth function of the registration terminal is activated. The registration terminal includes the electronic device and other terminal devices located in the same area as the electronic device. Obtain the list of Bluetooth devices within the Bluetooth scanning range corresponding to the registered terminal; Query the online device information of the target Bluetooth device from the list of Bluetooth devices; If the device is online, establish an association between the target Bluetooth device and the registered terminal.

8. The server according to claim 7, characterized in that, The server performs the Bluetooth function to start the registration terminal, and is further configured as follows: Switch the device connection information of the target Bluetooth device in the cloud device status pool to "connected"; Obtain the device information of the registered terminal; The device information of the registered terminal is registered as a connected device of the target Bluetooth device.

9. A method for managing multiple terminals and multiple Bluetooth devices, applied to an electronic device, the electronic device including a communicator and a controller, characterized in that, The method includes: In response to a Bluetooth connection command, the registration status of the target Bluetooth device on the server is obtained; the target Bluetooth device is a Bluetooth device that has not established a communication connection with the electronic device; the registration status is either registered or unregistered, and being registered means that the target Bluetooth device is bound to a Bluetooth device on the server or an electronic device located within the coverage area of ​​the local area network corresponding to the server; If the target Bluetooth device is registered, then a request is made to the server to retrieve the cloud device state pool; the cloud device state pool includes device information of Bluetooth devices that have established communication connections with other terminal devices in a preset area, where the preset area is the area where the electronic device is located; Query the device information of the target Bluetooth device in the cloud device status pool; the device information includes device online information and device connection information. When the target Bluetooth device is found to be online and its connection information is not connected, a Bluetooth communication connection is established with the target Bluetooth device. When the target Bluetooth device is found to be online and connected, the connected devices of the target Bluetooth device are extracted from the device connection information, and a handover request is sent to the connected devices. Obtain the feedback information sent by the connected device in response to the handover request; If the feedback information indicates agreement to switch, then a Bluetooth communication connection is established between the target Bluetooth device and the electronic device. Update information is generated and uploaded to the server to update the cloud device state pool. The update information indicates that the occupancy information of the target Bluetooth device has changed to the electronic device.

Citation Information

Patent Citations

  • Bluetooth pairing processing method, electrical equipment, terminal and server

    CN115529574A