Equipment connection method and device, intelligent equipment and storage medium

By using scene element information to filter the target device when connecting to Bluetooth devices, the problem of low connection efficiency of Bluetooth devices is solved, and a faster and more accurate connection process is achieved.

CN119316976APending Publication Date: 2025-01-14UBTECH ROBOTICS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411354993.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

In smart devices, the Bluetooth device is connected with the same default name, which makes the connection efficiency low, making it difficult to quickly find the target device, increasing the number of unnecessary connection attempts.

Method used

Obtain the device information of the Bluetooth device through searching, and filter the target device with scene element information (such as time, location, and environment), establish a Bluetooth connection, and optimize the connection process.

Benefits of technology

Improves the efficiency and accuracy of Bluetooth device connections, reduces unnecessary connection attempts, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119316976A_ABST
    Figure CN119316976A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent equipment, in particular to an equipment connection method and device, intelligent equipment and a storage medium. The method is applied to intelligent equipment and comprises the following steps: searching and acquiring equipment information of Bluetooth equipment; when a plurality of Bluetooth devices are searched, acquiring scene element information of the intelligent device; determining a target Bluetooth device from the plurality of Bluetooth devices according to the device information and the scene element information; and establishing a Bluetooth connection with the target Bluetooth device. By adopting the method, the target Bluetooth product can be quickly connected, unnecessary connection attempts are reduced, and the connection efficiency of the Bluetooth equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of smart devices, and in particular to a device connection method, apparatus, smart device and storage medium. Background Art

[0002] At present, after the smart device searches for the surrounding Bluetooth products through the Bluetooth module, the searched Bluetooth products will be displayed in the Bluetooth list of the smart device. In actual applications, most Bluetooth products are given a unified default name when they leave the factory. With the emergence of more and more Bluetooth products, there will be more and more Bluetooth products with the same name. When the smart device wants to connect to a Bluetooth product, how to quickly connect to the target Bluetooth product, reduce unnecessary connection attempts, and improve the efficiency of Bluetooth device connection is a problem that needs to be considered at present. Summary of the invention

[0003] In view of this, the embodiments of the present application provide a device connection method, apparatus, smart device and storage medium, which can improve the efficiency of the device connection algorithm and optimize the duration of device connection.

[0004] A first aspect of an embodiment of the present application provides a device connection method, which is applied to a smart device. The device connection method includes:

[0005] Search and obtain device information of Bluetooth devices;

[0006] When there are multiple Bluetooth devices found, acquiring scene element information of the smart devices;

[0007] Determining a target Bluetooth device from the plurality of Bluetooth devices according to the device information and the scene element information;

[0008] Establish a Bluetooth connection with the target Bluetooth device.

[0009] In a possible implementation manner of the first aspect, the scene element information includes a current time; and determining a target Bluetooth device from the plurality of Bluetooth devices according to the device information and the scene element information includes:

[0010] Determine the time period to which the current time belongs;

[0011] Obtaining target device information corresponding to the time period;

[0012] A target Bluetooth device is determined from the plurality of Bluetooth devices according to the target device information and the device information of the Bluetooth device.

[0013] In a possible implementation manner of the first aspect, the scene element information includes current location information of the smart device, and the device information includes a device type; and determining a target Bluetooth device from the plurality of Bluetooth devices according to the device information and the scene element information includes:

[0014] Determine the target device type according to the location information;

[0015] According to the target device type and the device type of the Bluetooth device, a target Bluetooth device is determined from the plurality of Bluetooth devices.

[0016] In a possible implementation manner of the first aspect, the scene element information includes scene environment information, and the device information includes a device type; and determining a target Bluetooth device from the plurality of Bluetooth devices according to the device information and the scene element information includes:

[0017] Determine the target device type according to the scene environment information;

[0018] According to the target device type and the device type of the Bluetooth device, a target Bluetooth device is determined from the plurality of Bluetooth devices.

[0019] In a possible implementation manner of the first aspect, the scene element information includes a current time, current location information of the smart device, and scene environment information; and determining a target Bluetooth device from a plurality of Bluetooth devices according to the device information and the scene element information includes:

[0020] Determine the target device type according to the current location information of the smart device and the scene environment information;

[0021] Performing a round of screening on the plurality of Bluetooth devices based on the target device type, and retaining Bluetooth devices matching the target device type as candidate Bluetooth devices;

[0022] When there is more than one candidate Bluetooth device, determine the target device information according to the time period to which the current time belongs;

[0023] A target Bluetooth device is determined from the candidate Bluetooth devices according to the target device information.

[0024] In a possible implementation manner of the first aspect, the device information includes a serial number; after searching and acquiring the device information of the Bluetooth device, the method further includes:

[0025] When only one Bluetooth device is found, the serial number is compared with a cached serial number in the smart device to verify whether the serial number is the same as the cached serial number;

[0026] If the sequence number is the same as the cached sequence number, the Bluetooth device is determined as a target Bluetooth device.

[0027] In a possible implementation manner of the first aspect, after establishing a Bluetooth connection with the target Bluetooth device, the method includes:

[0028] Acquire an application scenario of the smart device based on the Bluetooth connection;

[0029] If the application scenario is a timing scenario, when the timing of the timing scenario ends, monitoring the operation instructions based on the Bluetooth connection;

[0030] If the operation instruction is not detected within a preset time period, the Bluetooth connection between the smart device and the target Bluetooth device is disconnected.

[0031] A second aspect of an embodiment of the present application provides a device connection apparatus, which is applied to a smart device, and the device connection apparatus includes:

[0032] A search and acquisition unit, used to search and acquire device information of a Bluetooth device;

[0033] A scene information acquisition unit, used for acquiring scene element information of the smart device when there are multiple Bluetooth devices searched;

[0034] a target device determining unit, configured to determine a target Bluetooth device from the plurality of Bluetooth devices according to the device information and the scene element information;

[0035] A device connection unit is used to establish a Bluetooth connection with the target Bluetooth device.

[0036] A third aspect of an embodiment of the present application provides an intelligent device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the device connection method provided in the first aspect of the embodiment of the present application are implemented.

[0037] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps of the device connection method provided in the first aspect of the embodiment of the present application.

[0038] A fifth aspect of the embodiments of the present application provides a computer program product. When the computer program product runs on a terminal device, the terminal device executes the steps of the device connection method described in the first aspect of the embodiments of the present application.

[0039] In an embodiment of the present application, the smart device searches for and obtains device information of a Bluetooth device. When there are multiple Bluetooth devices searched, the smart device obtains scene element information of the smart device. Based on the device information and the scene element information, a target Bluetooth device is determined from the multiple Bluetooth devices, and a Bluetooth connection with the target Bluetooth device is established. The connection process of the Bluetooth device matching the current application scenario can be automatically optimized, and the Bluetooth device can be connected faster and more accurately, reducing unnecessary connection attempts, thereby improving the efficiency of Bluetooth device connection. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0041] Figure 1 is a schematic diagram of a device connection system using the device connection method provided in an embodiment of the present application;

[0042] Figure 2 is a flow chart for implementing the device connection method provided in the embodiment of the present application;

[0043] Figure 3 This is a specific implementation flow chart of step S203 in the device connection method provided in an embodiment of the present application;

[0044] Figure 4 This is a specific implementation flowchart of disconnecting a device in the device connection method provided in the embodiment of the present application;

[0045] Figure 5 is a structural block diagram of a device connection apparatus provided in an embodiment of the present application;

[0046] Figure 6 It is a schematic diagram of a smart device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] In the following description, specific details such as specific device structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0048] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0049] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0050] It should be understood that, as an example and not a limitation, the device connection method provided in the embodiment of the present application can be applied to various types of smart devices that need to perform device connection, specifically including mobile phones, tablet computers, laptops, ultra-mobile personal computers (ultra-mobile personal computers, UMPCs), desktop computers and other smart devices that support Bluetooth technology and can connect to Bluetooth devices. The embodiment of the present application does not impose any restrictions on the specific types of smart devices.

[0051] The following specifically describes an application scenario of a device connection method provided in an embodiment of the present application, and the specific description is as follows:

[0052] A device connection method provided in an embodiment of the present application is applied to a device connection system supporting Bluetooth technology.

[0053] Figure 1 A schematic diagram of a device connection system provided by an embodiment of the present application is shown. Figure 1 As shown, the device connection system at least includes a Bluetooth client 10 and a Bluetooth device 11. The Bluetooth client 10 and the Bluetooth device 11 can be connected based on Bluetooth wireless communication.

[0054] The Bluetooth client 10 is a smart device that supports Bluetooth, and the Bluetooth client 10 may be built with a processing control module 101 and a Bluetooth module 102. The processing control module 101 may be used to execute the device connection method provided in the embodiment of the present application, and the device information of the Bluetooth device 11 is searched and obtained by the receiving Bluetooth module 102. When there are multiple Bluetooth devices 11 searched, the scene element information is obtained; the target Bluetooth device is determined from the multiple Bluetooth devices according to the device information and the scene element information; and a Bluetooth connection with the target Bluetooth device is established through the Bluetooth module 102. The Bluetooth module 102 is used to search and obtain the device information of the Bluetooth device 11, and to establish a Bluetooth connection with the target Bluetooth device.

[0055] The number of Bluetooth modules 102 integrated in the Bluetooth client 10 can be one or more. Multiple Bluetooth modules 102 can support different Bluetooth standards (such as Bluetooth 4.0, Bluetooth 5.0, etc.). If the number of the Bluetooth module 102 is one, the Bluetooth module 102 can also be arranged on the center line of the plane where the Bluetooth client 10 is located; if the number of the Bluetooth module 102 is two or more, the multiple Bluetooth modules 102 can be symmetrically distributed on the above center line. The specific placement of the Bluetooth module 102 can be determined according to actual conditions and is not limited here.

[0056] In some implementations, the Bluetooth module 102 may be an independent external device. For example, for a desktop computer, the Bluetooth module 102 is usually connected to the desktop computer via an external interface such as a USB interface, and sends the device information of the searched Bluetooth device to the processing control module 101 in the desktop computer.

[0057] The Bluetooth client 10 may search for one or more Bluetooth devices 11 through the Bluetooth module 102 . The types and models of the devices may be different.

[0058] The device connection method provided in this application is exemplarily described below in conjunction with specific embodiments.

[0059] Figure 2 The implementation process of the device connection method provided in an embodiment of the present application is shown. The method flow is applied to a smart device, and the method flow may include the following steps S201 to S204.

[0060] Step S201: Search and obtain device information of Bluetooth devices.

[0061] The Bluetooth device may be a wearable device, a smart home product supporting Bluetooth technology, etc. The device information of the Bluetooth device includes but is not limited to a UUID (Universally Unique Identifier), a name, a MAC address or other types of addresses used to uniquely identify the device in a Bluetooth network.

[0062] In some implementations, the device information of the Bluetooth device also includes a SN number (Serial Number). The SN number is a unique code assigned to a product when it leaves the factory to verify its legal identity. The length is generally 17 digits. It usually consists of a group of numbers, but can also contain letters or symbols.

[0063] In this embodiment, the Bluetooth device that can be searched by the smart device is a Bluetooth device that turns on the Bluetooth broadcast command. The smart device turns on Bluetooth scanning to search and obtain device information of Bluetooth devices within the Bluetooth communication range. There may be multiple Bluetooth devices within the Bluetooth communication range of the smart device.

[0064] Step S202: When there are multiple Bluetooth devices found, scene element information of the smart devices is obtained.

[0065] Scene element information refers to the element information that constitutes a specific scene. Determine the scene element information of the smart device from the perspective of the basic elements that constitute the scene currently in which the smart device is located. Scene element information can be used to reflect the situation of the scene in which the smart device is currently located. Based on the scene element information, the current scene of the smart device can be quickly determined.

[0066] In a possible implementation, the scene element information of the smart device includes one or more of the current time, the current location information of the smart device, and the scene environment information. When the smart device searches for multiple Bluetooth devices, the scene element information of the smart device is obtained.

[0067] Step S203: determining a target Bluetooth device from the plurality of Bluetooth devices according to the device information and the scene element information.

[0068] In this embodiment, the scene element information is used to screen multiple Bluetooth devices in combination with the device information obtained through the search, and determine the target Bluetooth device from among them. The target Bluetooth device is the Bluetooth device that the smart device needs to connect to this time.

[0069] As a possible implementation of the present application, the scene element information includes the current time. The smart device first determines the time period to which the current time belongs, obtains the target device information corresponding to the time period, and determines the target Bluetooth device from the multiple Bluetooth devices based on the target device information and the device information of the Bluetooth device.

[0070] In this embodiment, a day is divided into several time periods, and the time periods can be divided according to day and night, or according to 24 hours. A one-to-one correspondence between time periods and target device information is pre-established, wherein one time period corresponds to only one set of target device information. A set of target device information includes at least one target smart device information. Different time periods correspond to different target device information. For example, the daytime period corresponds to group A target device information, and the evening period corresponds to group B target device information. According to the time period to which the current time belongs, the target device information is determined, and then combined with the device information of the Bluetooth device, the target Bluetooth device whose device information matches the target device information is determined from multiple Bluetooth devices.

[0071] The embodiment of the present application adopts the current time as a scene element to determine the target device information, and then uses the target device information to screen multiple Bluetooth devices, which can effectively and quickly determine the target Bluetooth device, effectively reduce unnecessary connection attempts, and improve the efficiency of Bluetooth device connection.

[0072] As a possible implementation of the present application, the scene element information includes the current location information of the smart device, and the device information includes the device type. The smart device determines the target device type according to the location information. According to the target device type and the device type of the Bluetooth device, the target Bluetooth device is determined from the multiple Bluetooth devices.

[0073] The location information includes indoor and outdoor. In some implementations, the user customizes the location information, for example, the location information includes home, company, school, etc. For smart devices in different locations, the matching target device types may be different. A one-to-one correspondence between location information and target device type is pre-established, for example, indoor corresponds to target device type A, and outdoor corresponds to target device type B. In this implementation, based on the current location of the smart device, the target device type, and the device type of the Bluetooth device, a target Bluetooth device whose device type matches the target device type is determined from multiple Bluetooth devices.

[0074] The embodiment of the present application uses location information as a scene element to determine the target device type that matches the current scene, and then uses the target device type to screen multiple Bluetooth devices to determine devices that match the type. This can effectively and quickly determine the target Bluetooth device, effectively reduce unnecessary connection attempts, and improve the efficiency of Bluetooth device connections.

[0075] As a possible implementation of the present application, the scene element information includes scene environment information. The device information includes the device type. The environment information includes at least one of light intensity, humidity, and noise. Different scene environment information corresponds to different target device types. For example, in an environment where the light intensity is greater than a preset intensity threshold, the smart device corresponds to target device type A, and in an environment where the light intensity is less than or equal to the preset intensity threshold, the smart device corresponds to target device type B; in an environment where the humidity is greater than a preset humidity threshold, the smart device corresponds to target device type A, and in an environment where the humidity is less than or equal to the preset humidity threshold, the smart device corresponds to target device type B; in an environment where the noise is greater than a preset noise threshold, the smart device corresponds to target device type A, and in an environment where the noise is less than or equal to the preset noise threshold, the smart device corresponds to target device type B; or, in an environment where the light intensity is greater than a preset intensity threshold, the humidity is greater than a preset humidity threshold, and the noise is greater than a preset noise threshold, the smart device corresponds to target device type C. The combination of different types of scene environment information has different corresponding target device types. The smart device determines the target device type according to the scene environment information. According to the target device type and the device type of the Bluetooth device, the target Bluetooth device is determined from the multiple Bluetooth devices.

[0076] The embodiment of the present application uses the scene environment information as a scene element to determine the target device type that matches the current scene, and then uses the target device type to screen multiple Bluetooth devices to determine devices that match the type. This can effectively and quickly determine the target Bluetooth device, effectively reduce unnecessary connection attempts, and improve the efficiency of Bluetooth device connections.

[0077] Users usually only need to connect Bluetooth devices related to the current scenario when using specific applications or performing specific tasks. For example, connect a heart rate monitor and sports headphones when exercising, and connect to a car audio system when driving. By filtering devices according to the scenario, smart devices can quickly find and connect to the required Bluetooth devices without the user having to manually search in the device list or try to connect to irrelevant devices, thereby greatly improving the user experience. The embodiments of the present application can automatically optimize the connection process of Bluetooth devices that match the current application scenario, reduce unnecessary connection attempts and disconnections, and thus improve the overall connection efficiency.

[0078] As a possible implementation of the present application, the scene element information includes the current time, the current location information of the smart device, and the scene environment information; Figure 3 A specific implementation process of step S203 in the method embodiment provided in the embodiment of the present application is shown, and is described in detail as follows:

[0079] A1: Determine the target device type according to the current location information of the smart device and the scene environment information.

[0080] A2: Perform a round of screening on the multiple Bluetooth devices based on the target device type, and retain Bluetooth devices matching the target device type as candidate Bluetooth devices.

[0081] By filtering device types, you can effectively prevent unauthorized or unexpected Bluetooth devices from connecting to smart devices. For example, in the medical or financial fields, only allowing specific types of devices (such as certified Bluetooth printers, scanners, etc.) to connect can reduce the risk of data leakage. By filtering device types, smart devices can find and connect to the correct Bluetooth device more quickly, improving connection efficiency and response speed.

[0082] A3: When there is more than one candidate Bluetooth device, determine the target device information according to the time period to which the current time belongs.

[0083] A4: Determine a target Bluetooth device from the candidate Bluetooth devices according to the target device information.

[0084] In this embodiment, the current location information of the smart device and multiple scene elements such as the scene environment information are combined to further accurately determine the target device type that matches the current scene, and use the target device type to screen multiple Bluetooth devices to determine the candidate Bluetooth devices, which can effectively reduce unnecessary connection attempts and improve the effectiveness of device connection. At the same time, when there is more than one candidate Bluetooth device, the target device information is determined according to the time period to which the current time belongs, and then the target Bluetooth device is quickly determined from the candidate Bluetooth devices based on the target device information.

[0085] Step S204: Establishing a Bluetooth connection with the target Bluetooth device.

[0086] In this embodiment, after determining the target Bluetooth device, the smart device initiates a Bluetooth connection request to the target Bluetooth device, and the Bluetooth device confirms the connection after receiving the Bluetooth connection request. After the smart device is successfully connected to the Bluetooth device, the smart device can send an instruction to the Bluetooth device to instruct the Bluetooth device to execute the operation corresponding to the instruction.

[0087] As a possible implementation of this application, Figure 4 A specific implementation process of disconnecting a device in a method embodiment provided in an embodiment of the present application is shown, and is described in detail as follows:

[0088] B1: Obtain an application scenario of the smart device based on the Bluetooth connection. The application scenario is a limited scenario in which the smart device applies the Bluetooth connection, and the application scenario can be customized according to user needs. The application scenario includes a timed scenario and a non-timed scenario. In some implementations, the application scenario includes a timed audio and video playback scenario, a non-timed sweeping and mopping scenario, and the like.

[0089] B2: If the application scenario is a timing scenario, after the timing of the timing scenario ends, monitoring operation instructions based on the Bluetooth connection.

[0090] B3: If the operation instruction is not detected within a preset time period, the Bluetooth connection between the smart device and the target Bluetooth device is disconnected.

[0091] For example, in an application scenario, after the smart device is successfully connected to the Bluetooth device, the smart device sends a command to instruct the Bluetooth device to play audio. Moreover, the audio playback can be determined as timed playback according to the user's operation instructions on the smart device. After the timing ends, the smart device monitors the user's operation instructions based on the Bluetooth connection, such as the continue playback instruction. If the operation instruction is not detected within the preset time, the Bluetooth connection between the smart device and the Bluetooth device is disconnected to save power consumption.

[0092] As a possible implementation of the present application, when the smart device searches for only one Bluetooth device, the serial number of the Bluetooth device is compared with the cached serial number in the smart device to verify whether the serial number is the same as the cached serial number. If the serial number is the same as the cached serial number, the Bluetooth device is determined as the target Bluetooth device.

[0093] When only one Bluetooth device is searched, the target Bluetooth device that the Bluetooth device is connected to can generally be determined. However, in order to ensure the validity of the connection, the validity of the serial number of the Bluetooth device searched is verified to ensure the validity of the connection.

[0094] In some embodiments, the smart device stores the serial number of the searched Bluetooth device in the first area of ​​the local cache, and the cached serial number is pre-stored in the second area of ​​the local cache of the smart device. The cached serial number in the second area is more than one, and the cached serial number in the second area is a legally registered serial number. The serial number of the first area is compared with the cached serial number of the second area through a polling mechanism to determine whether there is a cached sequence that is the same as the serial number of the Bluetooth device locally on the smart device. This embodiment can verify the validity of the Bluetooth device serial number locally on the smart device without verification through a remote server, which can increase the speed of verification and thereby improve the efficiency of the device Bluetooth connection.

[0095] As can be seen from the above, in an embodiment of the present application, the smart device searches for and obtains the device information of the Bluetooth device. When there are multiple Bluetooth devices searched, the scene element information of the smart device is obtained. Based on the device information and the scene element information, the target Bluetooth device is determined from the multiple Bluetooth devices, and a Bluetooth connection with the target Bluetooth device is established. The connection process of the Bluetooth device matching the current application scenario can be automatically optimized, the Bluetooth device can be connected faster and more accurately, and unnecessary connection attempts can be reduced, thereby improving the efficiency of Bluetooth device connection.

[0096] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0097] Corresponding to the device connection method described in the above embodiment, Figure 5 A structural block diagram of a device connection apparatus provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0098] Reference Figure 5 The device is applied to a smart device, and includes: a search acquisition unit 51, a scene information acquisition unit 52, a target device determination unit 53, and a device connection unit 54, wherein:

[0099] A search and acquisition unit 51, used to search and acquire device information of Bluetooth devices;

[0100] A scene information acquisition unit 52, configured to acquire scene element information of the smart device when there are multiple Bluetooth devices searched;

[0101] a target device determining unit 53, configured to determine a target Bluetooth device from the plurality of Bluetooth devices according to the device information and the scene element information;

[0102] The device connection unit 54 is used to establish a Bluetooth connection with the target Bluetooth device.

[0103] As a possible implementation manner of the present application, the scene element information includes the current time; the target device determination unit 53 includes:

[0104] A time period determination module, used to determine the time period to which the current time belongs;

[0105] A first information acquisition module, used to acquire target device information corresponding to the time period;

[0106] The first device determining module is used to determine a target Bluetooth device from a plurality of Bluetooth devices according to the target device information and the device information of the Bluetooth device.

[0107] As a possible implementation manner of the present application, the scene element information includes the current location information of the smart device, and the device information includes the device type; the target device determination unit 53 includes:

[0108] A first type determination module, used to determine the type of the target device according to the location information;

[0109] The second device determination module is used to determine a target Bluetooth device from a plurality of Bluetooth devices according to the target device type and the device type of the Bluetooth device.

[0110] As a possible implementation manner of the present application, the scene element information includes scene environment information, and the device information includes a device type; the target device determination unit 53 includes:

[0111] A second type determination module, used to determine the target device type according to the scene environment information;

[0112] The third device determination module is used to determine a target Bluetooth device from a plurality of Bluetooth devices according to the target device type and the device type of the Bluetooth device.

[0113] As a possible implementation of the present application, the scene element information includes the current time, the current location information of the smart device and the scene environment information; the target device determination unit 53 includes:

[0114] A fourth type determination module, used to determine the target device type according to the current location information of the smart device and the scene environment information;

[0115] A candidate device determination module, configured to perform a round of screening on the plurality of Bluetooth devices based on the target device type, and retain Bluetooth devices matching the target device type as candidate Bluetooth devices;

[0116] A second information determination module, configured to determine target device information according to the time period to which the current time belongs when there is more than one candidate Bluetooth device;

[0117] The fourth device determination module is used to determine a target Bluetooth device from the candidate Bluetooth devices according to the target device information.

[0118] As a possible implementation of the present application, the device information includes a serial number; the device connection device further includes:

[0119] The verification and determination unit is used to compare the serial number with the cached serial number in the smart device when only one Bluetooth device is searched, to verify whether the serial number is the same as the cached serial number; if the serial number is the same as the cached serial number, the Bluetooth device is determined as the target Bluetooth device.

[0120] As a possible implementation manner of the present application, the device connection device further includes:

[0121] An application scenario acquisition unit, used to acquire an application scenario of the smart device based on the Bluetooth connection;

[0122] An operation instruction monitoring unit, configured to monitor an operation instruction based on the Bluetooth connection when the timing of the timing scenario ends if the application scenario is a timing scenario;

[0123] The connection disconnection unit is used to disconnect the Bluetooth connection between the smart device and the target Bluetooth device if the operation instruction is not detected within a preset time period.

[0124] In an embodiment of the present application, the smart device searches for and obtains device information of a Bluetooth device. When there are multiple Bluetooth devices searched, the scene element information of the smart device is obtained. Based on the device information and the scene element information, a target Bluetooth device is determined from the multiple Bluetooth devices, and a Bluetooth connection with the target Bluetooth device is established. The connection process of the Bluetooth device matching the current application scenario can be automatically optimized, and the Bluetooth device can be connected faster and more accurately, reducing unnecessary connection attempts, thereby improving the efficiency of Bluetooth device connection.

[0125] The present application also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, Figures 2 to 4 Steps for any device connection method.

[0126] The embodiment of the present application also provides an intelligent device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, Figures 2 to 4 Steps for any device connection method.

[0127] The embodiment of the present application also provides a computer program product, when the computer program product is run on a terminal device, the terminal device executes the following Figures 2 to 4 Steps for any device connection method.

[0128] Figure 6 Schematic diagram of a smart device provided by an embodiment of the present application. Figure 6As shown, the smart device 6 of this embodiment includes: a processor 60, a memory 61, and a computer program 62 stored in the memory 61 and executable on the processor 60. When the processor 60 executes the computer program 62, the steps in the embodiments of the above-mentioned device connection method are implemented, for example Figure 2 Alternatively, when the processor 60 executes the computer program 62, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Figure 5 The functions of units 51 to 54 are shown.

[0129] The computer program 62 may be divided into one or more modules / units, which are stored in the memory 61 and executed by the processor 60 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 62 in the smart device 6.

[0130] The processor 60 may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0131] The memory 61 may be an internal storage unit of the smart device 6, such as a hard disk or memory of the smart device 6. The memory 61 may also be an external storage device of the smart device 6, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the smart device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the smart device 6. The memory 61 is used to store the computer program and other programs and data required by the smart device. The memory 61 may also be used to temporarily store data that has been output or is to be output.

[0132] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned device can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0133] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0134] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0135] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0136] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0137] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0138] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0139] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0140] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A device connection method, characterized in that: Applied to smart devices, the device connection method includes: Search and obtain device information of Bluetooth devices; When there are multiple Bluetooth devices found, acquiring scene element information of the smart devices; Determining a target Bluetooth device from the plurality of Bluetooth devices according to the device information and the scene element information; Establish a Bluetooth connection with the target Bluetooth device.

2. The device connection method according to claim 1, characterized in that: The scene element information includes the current time; and determining the target Bluetooth device from the plurality of Bluetooth devices according to the device information and the scene element information includes: Determine the time period to which the current time belongs; Obtaining target device information corresponding to the time period; A target Bluetooth device is determined from the plurality of Bluetooth devices according to the target device information and the device information of the Bluetooth device.

3. The device connection method according to claim 1, characterized in that: The scene element information includes the current location information of the smart device, and the device information includes the device type; determining the target Bluetooth device from the plurality of Bluetooth devices according to the device information and the scene element information includes: Determine the target device type according to the location information; According to the target device type and the device type of the Bluetooth device, a target Bluetooth device is determined from the plurality of Bluetooth devices.

4. The device connection method according to claim 1, characterized in that: The scene element information includes scene environment information, and the device information includes a device type; and determining a target Bluetooth device from a plurality of Bluetooth devices according to the device information and the scene element information includes: Determine the target device type according to the scene environment information; According to the target device type and the device type of the Bluetooth device, a target Bluetooth device is determined from the plurality of Bluetooth devices.

5. The device connection method according to claim 1, characterized in that: The scene element information includes the current time, the current location information of the smart device and the scene environment information; The step of determining a target Bluetooth device from the plurality of Bluetooth devices according to the device information and the scene element information includes: Determine the target device type according to the current location information of the smart device and the scene environment information; Performing a round of screening on the plurality of Bluetooth devices based on the target device type, and retaining Bluetooth devices matching the target device type as candidate Bluetooth devices; When there is more than one candidate Bluetooth device, determining the target device information according to the time period to which the current time belongs; A target Bluetooth device is determined from the candidate Bluetooth devices according to the target device information.

6. The device connection method according to claim 1, characterized in that: The device information includes a serial number; after searching and acquiring the device information of the Bluetooth device, it also includes: When only one Bluetooth device is found, the serial number is compared with a cached serial number in the smart device to verify whether the serial number is the same as the cached serial number; If the sequence number is the same as the cached sequence number, the Bluetooth device is determined as a target Bluetooth device.

7. The device connection method according to any one of claims 1 to 6, characterized in that: After establishing the Bluetooth connection with the target Bluetooth device, the method further comprises: Acquire an application scenario of the smart device based on the Bluetooth connection; If the application scenario is a timing scenario, when the timing of the timing scenario ends, monitoring the operation instructions based on the Bluetooth connection; If the operation instruction is not detected within a preset time period, the Bluetooth connection between the smart device and the target Bluetooth device is disconnected.

8. A device connection device, characterized in that: Applied to smart devices, the device connection device comprises: A search and acquisition unit, used to search and acquire device information of a Bluetooth device; A scene information acquisition unit, used for acquiring scene element information of the smart device when there are multiple Bluetooth devices searched; a target device determining unit, configured to determine a target Bluetooth device from the plurality of Bluetooth devices according to the device information and the scene element information; A device connection unit is used to establish a Bluetooth connection with the target Bluetooth device.

9. An intelligent device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the device connection method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the device connection method according to any one of claims 1 to 7 are implemented.