Bluetooth connection method, Bluetooth connection device and Bluetooth device
By obtaining and broadcasting broadcast information adapted to each software platform, the problem that the Bluetooth module cannot be adapted to different software platforms is solved, and the diversity of software platforms that can be connected to the Bluetooth module is increased.
Patent Information
- Application Number
- CN202210303446.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-24
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2042-03-24
AI Technical Summary
The broadcast information broadcasted by existing Bluetooth modules cannot be adapted to different software platforms, resulting in the limitation of the software platforms that Bluetooth modules can connect to.
By obtaining the broadcast information adapted to each software platform and the broadcast time interval between different broadcast information, and broadcasting the broadcast information in sequence according to the broadcast time interval, each software platform can establish a Bluetooth connection with the Bluetooth module based on the received broadcast information.
It realizes that each software platform establishes Bluetooth connection with the Bluetooth module in sequence at different times, increasing the diversity of software platforms that can be connected to the Bluetooth module.
Smart Images

Figure CN114554622B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Bluetooth communication technology, and more specifically, to a Bluetooth connection method, a Bluetooth connection device and a Bluetooth equipment. Background Art
[0002] With the rapid development of mobile Internet, it has brought more and more convenience to our lives, and Bluetooth application software (Application, APP) development has become more and more popular. Bluetooth APP development is a software platform for setting relevant functions for Bluetooth devices on terminal devices. The software platform can establish a Bluetooth connection with the Bluetooth module of the Bluetooth device, so that users can control the Bluetooth device through the software platform.
[0003] The process of establishing a Bluetooth connection between the software platform and the Bluetooth module is that the Bluetooth module broadcasts pre-set broadcast information to the software platform. When the software platform receives the broadcast information broadcast by the Bluetooth module and it is adapted to the software platform, the software platform establishes a Bluetooth connection with the Bluetooth module according to the received broadcast information.
[0004] However, the broadcast information broadcast by the existing Bluetooth module cannot be adapted to different software platforms, resulting in limitations on the software platforms to which the Bluetooth module can be connected. Summary of the invention
[0005] In view of the above problems, the present application proposes a Bluetooth connection method, a Bluetooth connection device and a Bluetooth device, which can enable each software platform to establish a Bluetooth connection with the Bluetooth module in turn at different times, thereby increasing the diversity of software platforms that the Bluetooth module can connect to.
[0006] In the first aspect, an embodiment of the present application provides a Bluetooth connection method, which is applied to a Bluetooth module. The Bluetooth connection method includes: obtaining broadcast information adapted by each software platform and the broadcast time interval between different broadcast information, the broadcast information adapted by each software platform is different; broadcasting the broadcast information in sequence according to the broadcast time interval, so that each software platform establishes a Bluetooth connection with the Bluetooth module according to the received broadcast information.
[0007] In the second aspect, the embodiment of the present application provides a Bluetooth connection device, which is applied to a Bluetooth module, and the Bluetooth connection device includes: an acquisition module and a broadcast module. The acquisition module is used to acquire the broadcast information adapted by each software platform and the broadcast time interval between different broadcast information, and the broadcast information adapted by each software platform is different; the broadcast module is used to broadcast the broadcast information in sequence according to the broadcast time interval, so that each software platform establishes a Bluetooth connection with the Bluetooth module according to the received broadcast information.
[0008] In a third aspect, an embodiment of the present application provides a Bluetooth device, comprising a memory; one or more processors coupled to the memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the Bluetooth connection method provided in the first aspect above.
[0009] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored. The program code can be called by a processor to execute the Bluetooth connection method provided in the first aspect above.
[0010] The solution provided by the present application obtains the broadcast information adapted by each software platform and the broadcast time interval between different broadcast information. The broadcast information adapted by each software platform is different, and the broadcast information is broadcast in sequence according to the broadcast time interval, so that each software platform establishes a Bluetooth connection with the Bluetooth module according to the received broadcast information, thereby realizing that each software platform establishes a Bluetooth connection with the Bluetooth module in sequence at different times, thereby increasing the diversity of software platforms that can be connected to the Bluetooth module. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0012] Figure 1 A schematic diagram of a scenario of a Bluetooth connection system provided in an embodiment of the present application is shown.
[0013] Figure 2 A schematic diagram of a flow chart of a Bluetooth connection method provided in an embodiment of the present application is shown.
[0014] Figure 3 A schematic diagram of a scenario of a Bluetooth connection process provided in an embodiment of the present application is shown.
[0015] Figure 4 Another flow chart of the Bluetooth connection method provided in an embodiment of the present application is shown.
[0016] Figure 5 A structural block diagram of a Bluetooth connection device provided in an embodiment of the present application is shown.
[0017] Figure 6 A functional block diagram of a Bluetooth device provided in an embodiment of the present application is shown.
[0018] Figure 7 A computer-readable storage medium provided in an embodiment of the present application for storing or carrying a program code for implementing a Bluetooth connection method provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0020] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0021] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0022] In the description of the present application, it should be noted that the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0023] With the rapid development of mobile Internet, it has brought more and more convenience to our lives, and Bluetooth application software (Application, APP) development has become more and more popular. Bluetooth APP development is a software platform for setting relevant functions for Bluetooth devices on terminal devices. The software platform can establish a Bluetooth connection with the Bluetooth module of the Bluetooth device, so that users can control the Bluetooth device through the software platform.
[0024] The process of establishing a Bluetooth connection between the software platform and the Bluetooth module is that the Bluetooth module broadcasts pre-set broadcast information to the software platform. When the software platform receives the broadcast information broadcast by the Bluetooth module and it is adapted to the software platform, the software platform establishes a Bluetooth connection with the Bluetooth module according to the received broadcast information.
[0025] However, the broadcast information broadcast by the existing Bluetooth module cannot be adapted to different software platforms, resulting in limitations on the software platforms to which the Bluetooth module can be connected.
[0026] In response to the above problems, the inventors have conducted a long period of research and proposed the Bluetooth connection method, Bluetooth connection device and Bluetooth device provided in the embodiments of the present application, which enable each software platform to establish a Bluetooth connection with the Bluetooth module in turn at different times, thereby increasing the diversity of software platforms that can be connected to the Bluetooth module.
[0027] See also Figure 1 , which shows a schematic diagram of an application scenario of the Bluetooth connection system provided in an embodiment of the present application, including a Bluetooth module 100 and multiple software platforms 200. The Bluetooth module 100 can establish Bluetooth connections with multiple software platforms 200 and interact with multiple software platforms through a Bluetooth network.
[0028] In some implementations, the Bluetooth module 200 may include multiple connection addresses, each connection address is different, and each connection address may be used to establish a Bluetooth connection with a software platform 200 .
[0029] In some embodiments, the Bluetooth connection system may further include a smart device 300 , which may be connected to the Bluetooth module 100 and perform data exchange with the Bluetooth module 100 .
[0030] Among them, the smart devices 300 may include at least any one of smart lighting equipment, smart air conditioners, smart door locks, smart TVs, smart speakers, smart mirrors, smart sweeping robots, smart hangers, smart curtains, smart cameras, smart temperature and humidity detectors, smart carbon monoxide alarms, door and window sensors, human body sensors, smart water detectors, smart alarm devices, smart sockets, and smart power strips.
[0031] The Bluetooth module 100 can be installed in the smart device 300 and form a whole with the smart device 300. For example, the Bluetooth module 100 can be embedded in the smart device 300 and serve as a wireless communication module of the smart device 300; the Bluetooth module 100 can also be an independent module connected to the smart device 300 via a network or a communication cable.
[0032] The network can be based on a controller area network (CAN), a Bluetooth network, a wireless fidelity (Wi-Fi) network, an infrared network, a Digital Living Network Alliance (DLNA) network, a ZigBee network, a wide area network (WAN), a local area network (LAN), a metropolitan area network (MAN) or a wireless personal area network (WPAN), etc.
[0033] See also Figure 2 , which shows a flowchart of a Bluetooth connection method provided by an embodiment of the present application. In a specific embodiment, the Bluetooth connection method can be applied to Figure 1 The Bluetooth module 100 in the Bluetooth connection system shown in FIG. 1 is taken as an example below. Figure 2 The process shown is described in detail, and the Bluetooth connection method may include the following steps S110 to S130.
[0034] Step S110: Acquire broadcast information adapted to each software platform and the broadcast time interval between different broadcast information.
[0035] In an embodiment of the present application, in order to increase the diversity of software platforms to which the Bluetooth module can connect, the Bluetooth module can obtain broadcast information adapted to each software platform and the broadcast time interval between different broadcast information, wherein the broadcast information adapted to each software platform is different.
[0036] In some embodiments, the Bluetooth connection system may further include a server, which is connected to the Bluetooth module via a network, and the server pre-stores broadcast information adapted to each software platform and the broadcast time interval between different broadcast information. The Bluetooth module may send a first acquisition instruction to the server via the network, and the server receives and responds to the first acquisition instruction, and sends the pre-stored multiple broadcast information and broadcast time interval to the Bluetooth module via the network, and the Bluetooth module receives the multiple broadcast information and broadcast time interval returned by the server.
[0037] Among them, the server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), big data, and artificial intelligence platforms.
[0038] In some embodiments, the Bluetooth connection system may further include a client, the client is connected to the Bluetooth module via a network, and the client pre-stores broadcast information adapted to various software platforms and the broadcast time intervals between different broadcast information. The Bluetooth module may send a second acquisition instruction to the client via the network, the client receives and responds to the second acquisition instruction, sends the pre-stored multiple broadcast information and broadcast time intervals to the Bluetooth module via the network, and the Bluetooth module receives the multiple broadcast information and broadcast time intervals returned by the client.
[0039] In some embodiments, the device to which the Bluetooth module belongs may be provided with an operation panel, and the user may input the customized broadcast information adapted to each software platform and the broadcast time interval between different broadcast information on the operation panel, and the Bluetooth module receives the multiple broadcast information and broadcast time intervals input by the user on the operation panel. The user may input the customized broadcast information adapted to each software platform and the broadcast time interval between different broadcast information by touch input or key input on the operation panel.
[0040] Step S130: broadcasting information in sequence according to the broadcasting time interval, so that each software platform establishes a Bluetooth connection with the Bluetooth module according to the received broadcasting information.
[0041] In an embodiment of the present application, after obtaining the broadcast information adapted to each software platform and the broadcast time interval between different broadcast information, the Bluetooth module can broadcast the broadcast information to each software platform in sequence according to the broadcast time interval. Each software platform establishes a Bluetooth connection with the Bluetooth module at a different time based on the received broadcast information, thereby enabling each software platform to establish a Bluetooth connection with the Bluetooth module in sequence at a different time, thereby increasing the diversity of software platforms that can be connected to the Bluetooth module.
[0042] For example, the broadcast information may include broadcast information A, broadcast information B and broadcast information C, and the broadcast time interval between different broadcast information may be 100 milliseconds (ms). The Bluetooth module may broadcast broadcast information B to each software platform after broadcasting broadcast information A to each software platform, and then broadcast broadcast information C to each software platform after an interval of 100ms. The Bluetooth module may also broadcast broadcast information C to each software platform after broadcasting broadcast information A to each software platform, and then broadcast broadcast information B to each software platform after an interval of 100ms, etc. The number of broadcast information and the broadcast time interval are not limited here, and can be specifically set according to actual needs.
[0043] In some embodiments, after obtaining the broadcast information adapted by each software platform and the broadcast time interval between different broadcast information, the Bluetooth module can modify the current broadcast information to the next broadcast information according to the broadcast time interval, and broadcast the modified broadcast information to each software platform until each broadcast information is broadcast to each software platform. Each software platform establishes a Bluetooth connection with the Bluetooth module according to the received broadcast information at different times, so that each software platform can establish a Bluetooth connection with the Bluetooth module in turn at different times, increasing the diversity of software platforms that can be connected to the Bluetooth module. In this embodiment, since the broadcast information supports content modification, the Bluetooth module only needs to obtain one broadcast information in advance, and broadcast broadcast information with different contents can be broadcasted by dynamically adjusting the broadcast information.
[0044] For example, when the Bluetooth module obtains broadcast information adapted to each software platform, namely, broadcast information A, broadcast information B, and broadcast information C, and the broadcast time interval between different broadcast information is 60ms, the Bluetooth module can broadcast broadcast information A to each software platform, and then modify broadcast information A to broadcast information B (referring to modifying the content of broadcast information A itself, such as modifying the logo of broadcast information A) after an interval of 60ms, and broadcast broadcast information B to each software platform, and then modify broadcast information B to broadcast information C after an interval of 60ms, and broadcast broadcast information C to each software platform.
[0045] In some embodiments, the Bluetooth module may include multiple connection addresses, for example, the connection address may be a Media Access Control (MAC) address. After obtaining the broadcast information adapted by each software platform and the broadcast time interval between different broadcast information, the Bluetooth module may associate multiple broadcast information with multiple connection addresses, each broadcast information is associated with a connection address, and broadcast the broadcast information to each software platform in turn according to the broadcast time interval, and each software platform establishes a Bluetooth connection with the connection address corresponding to the broadcast information at different times according to the received broadcast information.
[0046] For example, the broadcast information may include broadcast information A, broadcast information B, and broadcast information C, the broadcast time interval between different broadcast information may be 90ms, and the connection address may include MAC address A, MAC address B, and MAC address C. The Bluetooth module may associate broadcast information A with MAC address A, broadcast information B with MAC address B, and broadcast information C with MAC address C, respectively, and broadcast broadcast information A carrying MAC address A to each software platform, and then broadcast broadcast information B carrying MAC address B to each software platform after an interval of 90ms, and then broadcast broadcast information C carrying MAC address C to each software platform after an interval of 90ms.
[0047] In some embodiments, after the Bluetooth module obtains the broadcast information adapted to each software platform and the broadcast time interval between different broadcast information, and associates multiple broadcast information with multiple connection addresses, it can modify the current broadcast information to the next broadcast information according to the broadcast time interval, and broadcast the modified broadcast information and its corresponding connection address to each software platform. Each software platform establishes a Bluetooth connection with the connection address corresponding to the broadcast information at different times based on the received broadcast information.
[0048] For example, the Bluetooth module obtains broadcast information adapted to each software platform as broadcast information A, broadcast information B, and broadcast information C, the broadcast time interval between different broadcast information is 120ms, and the connection addresses are MAC address A, MAC address B, and MAC address C. The Bluetooth module can associate broadcast information A with MAC address A, and after broadcasting broadcast information A carrying MAC address A to each software platform, it can modify broadcast information A to broadcast information C at an interval of 120ms (referring to modifying the content of broadcast information A itself, such as modifying the identifier of broadcast information A), and modify MAC address A to MAC address C, and broadcast broadcast information C carrying MAC address C to each software platform, and then modify broadcast information C to broadcast information B at an interval of 120ms, and modify MAC address C to MAC address B (referring to modifying the content of broadcast information C itself, such as modifying the identifier of broadcast information C), and broadcast broadcast information B carrying MAC address B to each software platform.
[0049] In some implementations, in order to ensure the software platform receives the broadcast information broadcast by the Bluetooth module with a successful reception rate, each platform requires the Bluetooth module to broadcast the corresponding broadcast information at a preset broadcast period, which is the platform rule of the software platform. The broadcast period is the repetition time interval of the Bluetooth module repeatedly broadcasting the corresponding broadcast information.
[0050] After obtaining the broadcast information adapted to each software platform and the broadcast time interval between different broadcast information, the Bluetooth module can determine the broadcast period of the broadcast information adapted to each software platform according to the platform rules of each software platform, and broadcast the broadcast information to each software platform in turn according to the broadcast period and the broadcast time interval. Each software platform establishes a Bluetooth connection with the Bluetooth module according to the received broadcast information at different times, thereby realizing repeated broadcasting of each broadcast information to each software platform, avoiding the failure of the software platform to receive the broadcast information due to unstable signal of the corresponding software platform when broadcasting each broadcast information once, thereby improving the success rate of the software platform receiving the broadcast information.
[0051] In some embodiments, after obtaining the broadcast information adapted by each software platform and the broadcast time interval between different broadcast information, the Bluetooth module can determine the broadcast order corresponding to multiple broadcast information, and broadcast the broadcast information to each software platform in turn according to the broadcast order and the broadcast time interval. Each software platform establishes a Bluetooth connection with the Bluetooth module at different times based on the received broadcast information.
[0052] For example, the broadcast information may include broadcast information A, broadcast information B and broadcast information C, and the broadcast time interval between different broadcast information may be 50ms. When the Bluetooth module determines that the broadcast order of broadcast information A, broadcast information B and broadcast information C is the order of broadcast information A, broadcast information B and broadcast information C, broadcast information A may be broadcast to each software platform first, broadcast information B may be broadcast to each software platform after an interval of 50ms, and broadcast information C may be broadcast to each software platform after an interval of 50ms. When the Bluetooth module determines that the broadcast order of broadcast information A, broadcast information B and broadcast information C is the order of broadcast information B, broadcast information A and broadcast information C, broadcast information B may be broadcast to each software platform first, broadcast information A may be broadcast to each software platform after an interval of 50ms, and broadcast information C may be broadcast to each software platform after an interval of 50ms. The number of broadcast information, broadcast time interval and broadcast order are not limited here, and may be specifically set according to actual needs.
[0053] As an implementation method, the Bluetooth module can record the time when each broadcast message is received and use it as the receiving time corresponding to the broadcast message, and sort multiple broadcast messages according to the sequence of multiple receiving times and use it as the broadcast order corresponding to the multiple broadcast messages.
[0054] As another implementation, the Bluetooth module can encode each received broadcast message, obtain the information coding value corresponding to each broadcast message, and sort the multiple broadcast messages in order from small to large according to the multiple information coding values, and use them as the broadcast order corresponding to the multiple broadcast messages.
[0055] In one application scenario, such as Figure 3 As shown, it shows a scenario schematic diagram of the Bluetooth connection process. The software platform may include software platform A and software platform B, and the broadcast information may include broadcast information A and broadcast information B, wherein broadcast information A is adapted to software platform A, broadcast information B is adapted to software platform B, and the broadcast time interval between broadcast information A and broadcast information B is 80ms. The Bluetooth module can broadcast broadcast information A to software platform A and software platform B, and both software platform A and software platform B receive broadcast information A. Software platform A establishes Bluetooth connection A with the Bluetooth module according to broadcast information A, and software platform B cannot establish Bluetooth connection with the Bluetooth module according to broadcast information A. When the duration after the Bluetooth module broadcasts broadcast information A to software platform A and software platform B is 80ms, the Bluetooth module can broadcast broadcast information B to software platform A and software platform B, and both software platform A and software platform B receive broadcast information B. Software platform A cannot establish Bluetooth connection with the Bluetooth module according to broadcast information B, and software platform B establishes Bluetooth connection B with the Bluetooth module according to broadcast information B.
[0056] It should be noted that the type of software platform, the type of broadcast information, the value of the broadcast time interval, and the sequence of broadcast information are not limited here, and can be set according to actual needs.
[0057] The solution provided by the present application obtains the broadcast information adapted by each software platform and the broadcast time interval between different broadcast information. The broadcast information adapted by each software platform is different, and the broadcast information is broadcast in sequence according to the broadcast time interval, so that each software platform establishes a Bluetooth connection with the Bluetooth module according to the received broadcast information, thereby realizing that each software platform establishes a Bluetooth connection with the Bluetooth module in sequence at different times, thereby increasing the diversity of software platforms that can be connected to the Bluetooth module.
[0058] See also Figure 4 , which shows a flowchart of a Bluetooth connection method provided by another embodiment of the present application. In a specific embodiment, the Bluetooth connection method can be applied to Figure 1 The Bluetooth module 100 in the Bluetooth connection system shown in FIG. 1 is taken as an example below. Figure 4 The process shown is described in detail, and the Bluetooth connection method may include the following steps S210 to S290.
[0059] Step S210: Acquire broadcast information adapted to each software platform and the broadcast time interval between different broadcast information.
[0060] Step S230: broadcasting information in sequence according to the broadcasting time interval, so that each software platform establishes a Bluetooth connection with the Bluetooth module according to the received broadcasting information.
[0061] In this embodiment, step S210 and step S230 may refer to the contents of the corresponding steps in the aforementioned embodiments, which will not be described in detail here.
[0062] Step S250: receiving a control request sent by the software platform.
[0063] In this embodiment, the Bluetooth module broadcasts the broadcast information to each software platform in sequence according to the broadcast time interval. Each software platform establishes a Bluetooth connection with the Bluetooth module according to the received broadcast information at different times. When the user inputs a control instruction for the Bluetooth module on the software platform, the software platform receives and responds to the control instruction, and sends a corresponding control request to the Bluetooth module via the Bluetooth network. The Bluetooth module receives the control request sent by the software platform via the Bluetooth network.
[0064] Step S270: parse the control request to obtain corresponding control parameters.
[0065] In this embodiment, after receiving the control request sent by the software platform, the Bluetooth module may parse the control request and obtain control parameters corresponding to the control request.
[0066] Step S290: sending the control parameters to the smart device connected to the Bluetooth module, so that the smart device works based on the control parameters.
[0067] In this embodiment, after parsing the control request and obtaining the corresponding control parameters, the Bluetooth module can send the control parameters to the smart device connected to the Bluetooth module. The smart device receives and responds to the control parameters and works based on the control parameters, thereby realizing a Bluetooth connection established with the Bluetooth module based on different software platforms, controlling the smart device, and increasing the diversity of software platforms for controlling smart devices.
[0068] In some embodiments, after parsing the control request and obtaining the corresponding control parameters, the Bluetooth module can match the control parameters with the service support of the smart device to obtain a matching degree, and determine whether the control parameters match the service support of the smart device based on the matching degree and a matching degree threshold. When it is determined that the control parameters match the service support of the smart device, the control parameters are sent to the smart device connected to the Bluetooth module, which can avoid energy waste caused by the smart device receiving an unsupported control parameter in response, thereby ensuring effective utilization of energy.
[0069] When the matching degree is greater than or equal to the matching degree threshold, it is determined that the control parameter matches the service support of the smart device; when the matching degree is less than the matching degree threshold, it is determined that the control parameter does not match the service support of the smart device.
[0070] The solution provided in this embodiment obtains the broadcast information adapted by each software platform and the broadcast time interval between different broadcast information. The broadcast information adapted by each software platform is different, and the broadcast information is broadcast in sequence according to the broadcast time interval, so that each software platform establishes a Bluetooth connection with the Bluetooth module according to the received broadcast information, thereby realizing that each software platform establishes a Bluetooth connection with the Bluetooth module in sequence at different times, thereby increasing the diversity of software platforms that can be connected to the Bluetooth module.
[0071] Furthermore, by receiving the control request sent by the software platform and parsing the control request, the corresponding control parameters are obtained, and the control parameters are sent to the smart device connected to the Bluetooth module, so that the smart device works based on the control parameters, a Bluetooth connection established between different software platforms and the Bluetooth module is realized, and the smart device is controlled, thereby increasing the diversity of software platforms for controlling smart devices.
[0072] See also Figure 5, which shows a Bluetooth connection device 300 provided by an embodiment of the present application, and the Bluetooth connection device 300 can be applied to Figure 1 The Bluetooth module 100 in the Bluetooth connection system shown in FIG. 1 is taken as an example below. Figure 5 The Bluetooth connection device 300 shown is described in detail. The Bluetooth connection device 300 may include an acquisition module 310 and a broadcast module 330 .
[0073] The acquisition module 310 can be used to obtain the broadcast information adapted by each software platform and the broadcast time interval between different broadcast information. The broadcast information adapted by each software platform is different; the broadcast module 330 can be used to broadcast the broadcast information in sequence according to the broadcast time interval, so that each software platform establishes a Bluetooth connection with the Bluetooth module based on the received broadcast information.
[0074] In some implementations, the Bluetooth module includes multiple connection addresses, and the Bluetooth connection device 300 may further include an association module.
[0075] The association module may be used to associate multiple broadcast information with multiple connection addresses before the broadcast module 330 broadcasts the broadcast information in sequence according to the broadcast time interval, with each broadcast information being associated with one connection address.
[0076] In some implementations, the broadcast module 330 may include a first broadcast unit.
[0077] The first broadcast unit may be used to broadcast broadcast information in sequence according to the broadcast time interval, so that each software platform establishes a Bluetooth connection with a connection address corresponding to the broadcast information according to the received broadcast information.
[0078] In some implementations, the Bluetooth connection device 300 may further include a first determination module.
[0079] The first determination module may be used to determine the broadcast period of the broadcast information adapted to each software platform according to the platform rules of each software platform before the broadcast module 330 broadcasts the broadcast information in sequence according to the broadcast time interval.
[0080] In some implementations, the broadcast module 330 may further include a second broadcast unit.
[0081] The second broadcast unit may be configured to broadcast the broadcast information in sequence according to a broadcast cycle and a broadcast time interval.
[0082] In some implementations, the Bluetooth connection device 300 may further include a second determination module.
[0083] The second determination module may be used to determine a broadcasting sequence corresponding to a plurality of broadcast information before the broadcasting module 330 broadcasts the broadcast information in sequence according to the broadcasting time interval.
[0084] In some implementations, the broadcast module 330 may further include a third broadcast unit.
[0085] The third broadcast unit may be configured to broadcast the broadcast information in sequence according to a broadcast order and a broadcast time interval.
[0086] In some implementations, the second determining module may include a first acquiring unit and a first sorting unit.
[0087] The first acquisition unit can be used to acquire the receiving times corresponding to the multiple broadcast information; the first sorting unit can be used to sort the multiple broadcast information according to the sequence of the multiple receiving times and use the sequence as the broadcast order corresponding to the multiple broadcast information.
[0088] In some implementations, the second determining module may further include a second acquiring unit and a second sorting unit.
[0089] The second acquisition unit can be used to acquire information coding values corresponding to multiple broadcast information; the second sorting unit can be used to sort the multiple broadcast information in order from small to large according to the multiple information coding values, and use them as the broadcast order corresponding to the multiple broadcast information.
[0090] In some implementations, the Bluetooth connection device 300 may further include a receiving module, a parsing module, and a sending module.
[0091] The receiving module can be used to receive the control request sent by the software platform after the broadcast module 330 broadcasts the broadcast information in sequence according to the broadcast time interval; the parsing module can be used to parse the control request and obtain the corresponding control parameters; the sending module can be used to send the control parameters to the smart device connected to the Bluetooth module, so that the smart device works based on the control parameters.
[0092] In some implementations, the Bluetooth connection device 300 may further include a third determination module.
[0093] The third determination module may be used to determine whether the control parameter matches the service support of the smart device before the sending module sends the control parameter to the smart device connected to the Bluetooth module.
[0094] In some embodiments, the sending module may include a sending unit.
[0095] The sending unit may be configured to send the control parameter to the smart device connected to the Bluetooth module when it is determined that the control parameter matches the service support of the smart device.
[0096] The solution provided by the present application obtains the broadcast information adapted by each software platform and the broadcast time interval between different broadcast information. The broadcast information adapted by each software platform is different, and the broadcast information is broadcast in sequence according to the broadcast time interval, so that each software platform establishes a Bluetooth connection with the Bluetooth module according to the received broadcast information, thereby realizing that each software platform establishes a Bluetooth connection with the Bluetooth module in sequence at different times, thereby increasing the diversity of software platforms that can be connected to the Bluetooth module.
[0097] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. Any processing method described in the method embodiment can be implemented by the corresponding processing module in the device embodiment, and will not be repeated one by one in the device embodiment.
[0098] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0099] See also Figure 6 , which shows a functional block diagram of a Bluetooth device 400 provided in another embodiment of the present application, the Bluetooth device 400 may include one or more of the following components: a memory 410, a processor 420, and one or more applications, wherein the one or more applications may be stored in the memory 410 and configured to be executed by the one or more processors 420, and the one or more applications are configured to execute the method described in the aforementioned method embodiment.
[0100] The memory 410 may include a random access memory (RAM), or may include a read-only memory (ROM). The memory 410 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 410 may include a storage program area and a storage data area, wherein the storage program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as obtaining broadcast information, obtaining broadcast time interval, broadcasting broadcast information, establishing a Bluetooth connection between a software platform and a Bluetooth module, associating broadcast information with a connection address, establishing a Bluetooth connection between a software platform and a connection address, determining a broadcast cycle, determining a broadcast order, obtaining a receiving time, sorting broadcast information, obtaining information encoding values, receiving control requests, parsing control requests, obtaining control parameters, sending control parameters, and determining whether control parameters match service support, etc.), instructions for implementing the following various method embodiments, etc. The storage data area may also store data (such as broadcast information, broadcast time interval, connection address, platform rules, broadcast cycle, broadcast order, receiving time, sequential order, information encoding values, size order, control requests, control parameters, and service support) etc. created by the Bluetooth device 400 in use.
[0101] The processor 420 may include one or more processing cores. The processor 420 uses various interfaces and lines to connect the various parts of the entire Bluetooth device 400, and executes various functions and processes data of the Bluetooth device 400 by running or executing instructions, programs, code sets or instruction sets stored in the memory 410, and calling data stored in the memory 410. Optionally, the processor 420 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 420 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 420, but may be implemented separately through a communication chip.
[0102] Please refer to Figure 7, which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable storage medium 500 stores a program code 510, which can be called by a processor to execute the method described in the above method embodiment.
[0103] The computer-readable storage medium 500 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 500 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 500 has storage space for program code 510 that performs any method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code 510 can be compressed, for example, in an appropriate form.
[0104] The solution provided by the present application obtains the broadcast information adapted by each software platform and the broadcast time interval between different broadcast information. The broadcast information adapted by each software platform is different, and the broadcast information is broadcast in sequence according to the broadcast time interval, so that each software platform establishes a Bluetooth connection with the Bluetooth module according to the received broadcast information, thereby realizing that each software platform establishes a Bluetooth connection with the Bluetooth module in sequence at different times, thereby increasing the diversity of software platforms that can be connected to the Bluetooth module.
[0105] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A Bluetooth connection method, characterized in that: Applied to the Bluetooth module, the Bluetooth connection method includes: Acquire broadcast information adapted by each software platform and the broadcast time interval between different broadcast information, wherein the broadcast information adapted by each software platform is different, and the software platform is a software platform for setting relevant functions on the terminal device for the Bluetooth device; The broadcast information is broadcasted in sequence according to the broadcast time interval, so that each software platform establishes a Bluetooth connection with the Bluetooth module according to the received broadcast information.
2. The Bluetooth connection method according to claim 1, characterized in that: The Bluetooth module includes a plurality of connection addresses. Before broadcasting the broadcast information in sequence according to the broadcast time interval, the Bluetooth connection method further includes: Associating a plurality of broadcast information with a plurality of the connection addresses, each broadcast information being associated with one connection address; The broadcasting of the broadcast information in sequence according to the broadcast time interval so that each software platform establishes a Bluetooth connection with the Bluetooth module according to the received broadcast information includes: The broadcast information is broadcasted sequentially according to the broadcast time interval, so that each software platform establishes a Bluetooth connection with a connection address corresponding to the broadcast information according to the received broadcast information.
3. The Bluetooth connection method according to claim 1, characterized in that: Before broadcasting the broadcast information in sequence according to the broadcast time interval, the Bluetooth connection method further includes: Determine the broadcast period of broadcast information adapted to each software platform according to the platform rules of each software platform; The broadcasting the broadcast information in sequence according to the broadcast time interval includes: The broadcast information is broadcasted sequentially according to the broadcast cycle and the broadcast time interval.
4. The Bluetooth connection method according to claim 1, characterized in that: Before broadcasting the broadcast information in sequence according to the broadcast time interval, the Bluetooth connection method further includes: Determine a broadcast order corresponding to multiple broadcast information; The broadcasting the broadcast information in sequence according to the broadcast time interval includes: The broadcast information is broadcasted sequentially according to the broadcast order and the broadcast time interval.
5. The Bluetooth connection method according to claim 4, characterized in that: The determining of the broadcast order corresponding to the plurality of broadcast information includes: Get the receiving time corresponding to multiple broadcast information; The plurality of broadcast information are sorted according to the sequence of the plurality of receiving times, and the sequence is used as the broadcast sequence corresponding to the plurality of broadcast information.
6. The Bluetooth connection method according to claim 4, characterized in that: The determining of the broadcast order corresponding to the plurality of broadcast information includes: Obtain information encoding values corresponding to multiple broadcast information; The plurality of broadcast information are sorted in order from small to large according to the plurality of information coding values, and the order is used as the broadcast order corresponding to the plurality of broadcast information.
7. The Bluetooth connection method according to any one of claims 1 to 6, characterized in that: After broadcasting the broadcast information in sequence according to the broadcast time interval, the Bluetooth connection method further includes: Receiving a control request sent by the software platform; Parsing the control request to obtain corresponding control parameters; The control parameters are sent to a smart device connected to the Bluetooth module, so that the smart device works based on the control parameters.
8. The Bluetooth connection method according to claim 7, characterized in that: Before sending the control parameter to the smart device connected to the Bluetooth module, the Bluetooth connection method further includes: Determining whether the control parameter matches the service support of the smart device; The step of sending the control parameter to a smart device connected to the Bluetooth module comprises: When it is determined that the control parameter matches the service support of the smart device, the control parameter is sent to the smart device connected to the Bluetooth module.
9. A Bluetooth connection device, characterized in that: Applied to a Bluetooth module, the Bluetooth connection device comprises: An acquisition module, used to acquire the broadcast information adapted by each software platform and the broadcast time interval between different broadcast information, wherein the broadcast information adapted by each software platform is different, and the software platform is a software platform for setting relevant functions on the terminal device for the Bluetooth device; The broadcast module is used to broadcast the broadcast information in sequence according to the broadcast time interval, so that each software platform establishes a Bluetooth connection with the Bluetooth module according to the received broadcast information.
10. A Bluetooth device, characterized in that: include: Memory; One or more processors coupled to the memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by one or more processors, and the one or more applications are configured to execute the Bluetooth connection method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Remote control method and device
CN111093105A
Internet of Things module, Internet of Things control method and intelligent equipment
CN111163144A