An interactive method based on bluetooth device and related equipment

Through the binding and parsing of iBeacon broadcast information, the client can receive Bluetooth device data without establishing a connection, which solves the problems of client connection limitation and high power consumption of Bluetooth devices, and achieves the effect of data reception and power consumption reduction .

CN114554470BActive Publication Date: 2024-11-19HANGZHOU TUYA INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210182664.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-25
Publication Date
2024-11-19
Estimated Expiration
2042-02-25

AI Technical Summary

Technical Problem

There is a limit on the number of Bluetooth devices connected to the client, and long-term connection will lead to higher power consumption of Bluetooth devices, especially when the temperature and humidity do not change, unnecessary communication increases power consumption.

Method used

Through the binding and parsing of iBeacon broadcast information, the client can receive data from Bluetooth devices without establishing a connection, break through connection restrictions, and expand the anti-loss function on Bluetooth devices to reduce power consumption, and only send iBeacon if necessary Broadcast package.

Benefits of technology

It has achieved breakthroughs in client connection limitations, reduced power consumption of Bluetooth devices, and realized data reception without establishing a connection, improving the implementability and efficiency of the solution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114554470B_ABST
    Figure CN114554470B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses an interaction method based on a Bluetooth device and related devices, which are used to solve the problem of the number of Bluetooth devices that a client can connect to. The method of the embodiment of the present application includes: the client obtains the iBeacon broadcast information of the Bluetooth device, and the iBeacon broadcast information includes the device identification information of the Bluetooth device and the broadcast identification information of the iBeacon broadcast information; the client binds the device identification information and the broadcast identification information; after obtaining the iBeacon broadcast information to be identified, the client determines whether the broadcast identification information to be identified has a binding relationship with the device identification information according to the broadcast identification information to be identified of the iBeacon broadcast information to be identified; if so, the client parses the iBeacon broadcast information to be identified, and performs a preset operation according to the iBeacon broadcast information to be identified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and in particular to an interaction method based on a Bluetooth device and related devices. Background Art

[0002] iBeacon is a function configured on the mobile terminal operating system. Its working method is that a Bluetooth device equipped with low-power Bluetooth (BLE) communication function sends its own unique ID to the surrounding by using BLE technology, and the client (including but not limited to mobile phones, tablets, computers, etc.) that receives the ID will execute the processing flow according to the ID. The processing flow generally depends on the business scenario in which the Bluetooth device is used. The general process includes pushing advertisements, sending error codes or alarms, etc.

[0003] The BLE technology used by iBeacon, specifically, is the broadcast frame called "Advertising" in BLE. Advertising frames are periodically sent frames that can be received by any Bluetooth device that supports BLE. iBeacon is implemented by embedding data in Apple's proprietary format in the payload of such advertising frames.

[0004] Bluetooth devices with Bluetooth version 4.0 and above can establish a connection with a client to communicate with each other. However, in general, there is a limit on the number of Bluetooth devices that a client can connect to. At the same time, when a client and a Bluetooth device are always connected, the power consumption of the Bluetooth device will be relatively high. Summary of the invention

[0005] The embodiment of the present application provides an interaction method based on a Bluetooth device and related devices, which are used to solve the problem of the number of Bluetooth devices connected to the client being limited.

[0006] A first aspect of an embodiment of the present application provides an interaction method based on a Bluetooth device, comprising:

[0007] The client obtains the iBeacon broadcast information of the Bluetooth device, where the iBeacon broadcast information includes the device identification information of the Bluetooth device and the broadcast identification information of the iBeacon broadcast information;

[0008] The client binds the device identification information and the broadcast identification information;

[0009] After obtaining the iBeacon broadcast information to be identified, the client determines whether the broadcast identification information to be identified has a binding relationship with the device identification information according to the broadcast identification information to be identified of the iBeacon broadcast information to be identified;

[0010] If it exists, the client parses the iBeacon broadcast information to be identified and performs a preset operation according to the iBeacon broadcast information to be identified.

[0011] In the embodiment of the present application, the client can receive data through Bluetooth broadcasting based on iBeacon, thereby breaking through the limitation of the client connecting to Bluetooth devices and improving the feasibility of the solution.

[0012] A second aspect of the embodiment of the present application provides an interaction method based on a Bluetooth device, including:

[0013] The client obtains the iBeacon broadcast information of the Bluetooth device, where the iBeacon broadcast information includes the device identification information of the Bluetooth device and the broadcast identification information of the iBeacon broadcast information;

[0014] The client binds the device identification information and the broadcast identification information;

[0015] After obtaining the iBeacon broadcast information to be identified, the client determines whether the broadcast identification information to be identified has a binding relationship with the device identification information according to the broadcast identification information to be identified of the iBeacon broadcast information to be identified;

[0016] If it exists, the client parses the iBeacon broadcast information to be identified and performs a preset operation according to the iBeacon broadcast information to be identified.

[0017] Optionally, before the client obtains the iBeacon broadcast information of the Bluetooth device, the method further includes:

[0018] The client obtains the Bluetooth broadcast information of the Bluetooth device;

[0019] The client connects to the Bluetooth device via the Bluetooth broadcast information;

[0020] After the client is connected to the Bluetooth device, the client registers the Bluetooth device in the cloud to obtain device maintenance information;

[0021] The client sends the device maintenance information to the Bluetooth device, so that the Bluetooth device is bound to the device identification information and the device maintenance information.

[0022] Optionally, after the client sends the device maintenance information to the Bluetooth device, the method further includes:

[0023] The client sends device setting information to the Bluetooth device;

[0024] The client updates the Bluetooth device according to the device setting information;

[0025] Alternatively, the client sets parameters of the Bluetooth device according to the device setting information.

[0026] Optionally, after the client sends the device maintenance information to the Bluetooth device, the method further includes:

[0027] The client receives data information sent by the Bluetooth device, where the data information includes historical data information and real-time data information of the Bluetooth device.

[0028] Optionally, performing a preset operation according to the iBeacon broadcast information to be identified includes:

[0029] If the iBeacon broadcast information to be identified is search information, the client performs a ringing operation or a vibration operation.

[0030] Optionally, before the client determines whether the broadcast identification information to be identified has a binding relationship with the device identification information according to the broadcast identification information to be identified of the iBeacon broadcast information to be identified, the method further includes:

[0031] If the client is in a disconnected state from the Bluetooth device, the client receives the iBeacon broadcast information to be identified that is sent by the Bluetooth device at a preset frequency.

[0032] Optionally, the iBeacon broadcast information to be identified includes at least one of ambient temperature or ambient humidity.

[0033] Optionally, after the client binds the device identification information and the broadcast identification information, the method further includes:

[0034] The client monitors the iBeacon broadcast information that is bound to the device identification information according to the device identification information.

[0035] Optionally, the device maintenance information includes communication key information or real-time time information.

[0036] The embodiment of the present application proposes an interactive method based on a Bluetooth device, which can break through the limitation of the client connecting to the Bluetooth device, and the client can receive data through the Bluetooth broadcast based on iBeacon. The anti-loss function of iBeacon is extended on the Bluetooth device, and the Bluetooth device can reversely search for the client based on the Bluetooth broadcast of iBeacon. At the same time, the power consumption of the Bluetooth device can also be reduced. In the case of no connection, it only needs to send an iBeacon broadcast packet every once in a while.

[0037] A third aspect of the embodiments of the present application provides an interactive system based on a Bluetooth device, including:

[0038] An acquiring unit, configured to acquire iBeacon broadcast information of a Bluetooth device, wherein the iBeacon broadcast information includes device identification information of the Bluetooth device and broadcast identification information of the iBeacon broadcast information;

[0039] A binding unit, used to bind the device identification information and the broadcast identification information;

[0040] A judging unit, configured to, after acquiring the iBeacon broadcast information to be identified, judge whether the broadcast identification information to be identified has a binding relationship with the device identification information according to the broadcast identification information to be identified of the iBeacon broadcast information to be identified;

[0041] The execution unit is used to parse the iBeacon broadcast information to be identified when there is a binding relationship between the broadcast identification information to be identified and the device identification information, and perform a preset operation according to the iBeacon broadcast information to be identified.

[0042] The interactive system based on Bluetooth devices provided in the third aspect of the embodiment of the present application is used to execute the method described in the first aspect.

[0043] A fourth aspect of the embodiments of the present application provides an interactive system based on a Bluetooth device, including:

[0044] A first acquisition unit is used to acquire iBeacon broadcast information of a Bluetooth device, wherein the iBeacon broadcast information includes device identification information of the Bluetooth device and broadcast identification information of the iBeacon broadcast information;

[0045] A binding unit, used to bind the device identification information and the broadcast identification information;

[0046] A judging unit, configured to, after acquiring the iBeacon broadcast information to be identified, judge whether the broadcast identification information to be identified has a binding relationship with the device identification information according to the broadcast identification information to be identified of the iBeacon broadcast information to be identified;

[0047] The execution unit is used to parse the iBeacon broadcast information to be identified when there is a binding relationship between the broadcast identification information to be identified and the device identification information, and perform a preset operation according to the iBeacon broadcast information to be identified.

[0048] Optionally, the system further includes: a second acquiring unit, a connecting unit, a registering unit and a first sending unit.

[0049] The second acquiring unit is used to acquire the Bluetooth broadcast information of the Bluetooth device;

[0050] The connecting unit is used to connect with the Bluetooth device through the Bluetooth broadcast information;

[0051] The registration unit is used to register the Bluetooth device in the cloud to obtain device maintenance information after the client is connected to the Bluetooth device;

[0052] The first sending unit is used to send the device maintenance information to the Bluetooth device, so that the Bluetooth device is bound to the device identification information and the device maintenance information.

[0053] Optionally, the system further includes: a second sending unit, an updating unit and a setting unit.

[0054] The second sending unit is used to send device setting information to the Bluetooth device;

[0055] The updating unit is used to update the Bluetooth device according to the device setting information;

[0056] Or, the setting unit is used to set parameters of the Bluetooth device according to the device setting information.

[0057] Optionally, the system further includes: a first receiving unit.

[0058] The first receiving unit is used to receive data information sent by the Bluetooth device, where the data information includes historical data information and real-time data information of the Bluetooth device.

[0059] Optionally, the execution unit includes: an execution subunit.

[0060] The execution subunit is used to perform a ringing operation or a vibration operation when the iBeacon broadcast information to be identified is search information.

[0061] Optionally, the system further includes: a second receiving unit.

[0062] The second receiving unit is used to receive the iBeacon broadcast information to be identified sent by the Bluetooth device at a preset frequency when the client is in a disconnected state from the Bluetooth device.

[0063] Optionally, the system further includes: a monitoring unit.

[0064] The monitoring unit is used to monitor the iBeacon broadcast information that is bound to the device identification information according to the device identification information.

[0065] The fourth aspect of the embodiment of the present application provides an interactive system based on a Bluetooth device for executing the method described in the second aspect.

[0066] A fifth aspect of the embodiments of the present application provides an interactive device based on a Bluetooth device, including:

[0067] CPU, memory, input and output interfaces, wired or wireless network interfaces, and power supply;

[0068] The memory is a short-term storage memory or a persistent storage memory;

[0069] The central processing unit is configured to communicate with the memory and execute instructions in the memory to perform the method described in the first aspect or the second aspect.

[0070] A sixth aspect of an embodiment of the present application provides a computer-readable storage medium, characterized in that the computer-readable storage medium includes instructions, and when the instructions are executed on a computer, the computer executes the method described in the first aspect or the second aspect.

[0071] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages: through the method proposed in the embodiments of the present application, the limitation of the client connecting to the Bluetooth device can be broken, and the client can receive data through the Bluetooth broadcast based on iBeacon. At the same time, the power consumption of the Bluetooth device can also be reduced. In the case of no connection, it is only necessary to send an iBeacon broadcast packet every once in a while. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] 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 recorded in the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0073] Figure 1 A schematic diagram of a communication network architecture disclosed in an embodiment of the present application;

[0074] Figure 2 A flowchart of an interactive method based on a Bluetooth device disclosed in an embodiment of the present application;

[0075] Figure 3 A signaling diagram of an interaction method based on a Bluetooth device disclosed in an embodiment of the present application;

[0076] Figure 4 A schematic diagram of the format of an iBeacon broadcast packet disclosed in an embodiment of the present application;

[0077] Figure 5 A schematic diagram of the format of a device scan response packet disclosed in an embodiment of the present application;

[0078] Figure 6 A schematic diagram of the structure of an interactive system based on a Bluetooth device disclosed in an embodiment of the present application;

[0079] Figure 7 A schematic diagram of the structure of another interactive system based on a Bluetooth device disclosed in an embodiment of the present application;

[0080] Figure 8 This is a schematic diagram of the structure of an interactive device based on a Bluetooth device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0081] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0082] iBeacon is a function configured on the mobile terminal operating system. Its working method is that a Bluetooth device equipped with low-power Bluetooth (BLE) communication function sends its own unique ID to the surrounding by using BLE technology, and the client (including but not limited to mobile phones, tablets, computers, etc.) that receives the ID will execute the processing flow according to the ID. The processing flow generally depends on the business scenario in which the Bluetooth device is used. The general process includes pushing advertisements, sending error codes or alarms, etc.

[0083] The BLE technology used by iBeacon, specifically, is the broadcast frame called "Advertising" in BLE. Advertising frames are periodically sent frames that can be received by any Bluetooth device that supports BLE. iBeacon is implemented by embedding data in Apple's proprietary format in the payload of such advertising frames.

[0084] Bluetooth 4.0 can establish a connection between the host and the slave to communicate between devices. However, there is a limit to the number of Bluetooth devices that can be connected to a mobile phone. It is understandable that the host mentioned in the embodiments of the present application generally refers to the client, that is, a smart terminal such as a mobile phone, tablet or computer with a Bluetooth module, which is not specifically limited here. The slave generally refers to a Bluetooth headset or a similar wireless terminal with a Bluetooth module, which is not specifically limited here. It should be noted that a Bluetooth headset working in slave mode can only be searched by the host and cannot be actively searched. After the Bluetooth device is connected to the host, it can also send and receive data with the host.

[0085] However, it should be noted that, for the sake of ease of understanding, the slaves are described as Bluetooth headsets, and the hosts or clients are described as mobile phones. This will not be described in detail in the following. For the sake of ease of understanding, the following descriptions are all described as mobile phones and Bluetooth devices. It should be noted that Bluetooth devices working in slave mode can only be searched by the host, not actively searched. After the Bluetooth device is connected to the host, it can also send and receive data with the host.

[0086] Therefore, the embodiments of the present application provide an interaction method based on a Bluetooth device and related devices to solve the following problems:

[0087] (1) There is a limit on the number of Bluetooth devices that can be connected to a mobile phone;

[0088] (2) The mobile phone and Bluetooth device are always connected, and the power consumption of Bluetooth device is relatively high. When the temperature and humidity do not change, the Bluetooth device does not need to communicate with the mobile phone.

[0089] As for the second question, it is understandable that the temperature or humidity of the environment is a high-frequency data, and the purpose of communication between the mobile phone and the Bluetooth device is not just to inform the temperature and humidity changes, but also to set the Bluetooth device parameters, transmit historical data, etc. However, setting Bluetooth device parameters and transmitting historical data are low-frequency operations. If the temperature and humidity do not change, there is no need to establish a connection in most cases.

[0090] Therefore, please refer to Figure 1 , Figure 1 Schematic diagram of a communication network architecture disclosed in an embodiment of the present application. The communication network architecture mainly includes a Bluetooth device 101 and a client 102. Multiple Bluetooth devices 101 and the client 102 are connected one by one.

[0091] In the embodiment of the present application, the Bluetooth device 101 not only has the function of sending Bluetooth broadcasts, but also has the function of sending iBeacon broadcasts. Among them, the purpose of sending Bluetooth broadcasts is mainly to transfer files or share networks with the client 102, that is, when the Bluetooth device 101 and the client 102 are matched by Bluetooth, the two terminals can also share a data flow through Bluetooth sharing. It should be noted that sending Bluetooth broadcasts can also include other uses, which are not specifically limited here. For the function of sending iBeacon broadcasts, its main working method is that the Bluetooth device 101 equipped with BLE communication function uses BLE technology to send a specific ID of its own device to the surrounding, and the application software in the client 102 that receives the ID will take some processing procedures according to the ID. The processing flow generally depends on which business scenario the Bluetooth device 101 is carried out in. The general process includes pushing advertisements, sending error codes or alarms, etc., and the specific method of the processing flow is not specifically limited here. The BLE technology used by iBeacon, specifically, uses the broadcast frame of the "advertising" technology in BLE. The announcement frame is a frame that is sent periodically and can be received by any client 102 that supports BLE.

[0092] The client 102 mainly includes devices that support BLE, such as mobile phones, tablets, and computers. At the same time, it is not difficult to understand that the client 102 also has the function of connecting to the Bluetooth device 101 through Bluetooth. It should be noted that the specific existence form of the client 102 is not limited here, and will not be elaborated on later.

[0093] In general, the Bluetooth device 101 can only establish a one-to-one connection with the client 102 through Bluetooth technology, but in the embodiment of the present application, there can be multiple Bluetooth devices 101, and the client 102 can receive data based on the broadcast of iBeacon, that is, the client 102 continuously scans the Bluetooth broadcast packets of the Bluetooth device 101, obtains data information from the broadcast packets, and thus establishes a communication connection. As a result, the client 102 breaks through the limitation of connecting to the Bluetooth device 101.

[0094] The above describes the connection method between the client and the Bluetooth device. The following describes the steps for the Bluetooth device to interact with the client. Figure 2 , Figure 2 The flowchart of a method for interacting with a Bluetooth device disclosed in an embodiment of the present application is shown in FIG.

[0095] 201. The client obtains the iBeacon broadcast information of the Bluetooth device.

[0096] iBeacon broadcast information, i.e., iBeacon broadcast packets, are described as iBeacon broadcast packets in the following for the convenience of description, and will not be described in detail in the following. Before the client obtains the iBeacon broadcast packet sent by the Bluetooth device, the client will be in a broadcast scanning state. At this time, the client will scan a Bluetooth device that is in an unconfigured network state. It should be noted that the unconfigured network state means that the Bluetooth device and the client have not established a connection and are in a broadcast scanning state. When the client has scanned the Bluetooth broadcast sent by the Bluetooth device in the unconfigured network state, the client will obtain the Bluetooth broadcast information, and use this Bluetooth device to connect to the client.

[0097] When the client is connected to the Bluetooth device, the client's Bluetooth usage permission can be automatically turned on, and then the client will perform network configuration operations on the Bluetooth device. Specifically, the client now registers the information of the Bluetooth device in the cloud to obtain the corresponding device maintenance information. The device maintenance information generally includes a communication key, and can also obtain real-time time and time zone information according to the communication requirements of the Bluetooth device. It should be noted that this embodiment does not limit the data information. The data information may also include other information required according to the communication requirements of the Bluetooth device. It should also be understood that the communication key is a strategy to ensure communication security and is also for communication security. After obtaining the device maintenance information, the APP on the client or the Bluetooth gateway will send the device maintenance information to the Bluetooth device, thereby writing the device maintenance information into the Bluetooth device. It should be noted that this embodiment does not limit the way the client writes the device maintenance information into the Bluetooth device. The client may also have other ways to write information into the Bluetooth device, which is not specifically limited here.

[0098] It should be noted that when the client registers the Bluetooth device in the cloud and successfully configures the Bluetooth device, that is, after sending the device maintenance information to the Bluetooth device, the Bluetooth device is successfully configured. At this time, the Bluetooth device will send a corresponding response message to the client. The response message includes a successful network configuration message of the Bluetooth device, thereby informing the client of the network configuration status of the Bluetooth device at this time.

[0099] When the client receives the corresponding response information, it will synchronize the activation status of the Bluetooth device to the cloud, perform network activation, and write the communication rule information to the Bluetooth device, which includes the key exchange rules of the Bluetooth device. It should be understood that this embodiment does not specifically limit the content of the communication rule information. It should be noted that when the client receives the corresponding response information, the client will enable the positioning permission.

[0100] When the Bluetooth device is successfully paired with the network, the client obtains the iBeacon broadcast packet sent by the Bluetooth device. The iBeacon broadcast packet includes the universally unique identifier (UUID) of the Bluetooth device and the UUID of the iBeacon broadcast packet. In order to unify the description of UUID, the subsequent description of UUID is described as uuid. It should be noted that the uuid of the iBeacon broadcast packet is generated according to the uuid of the Bluetooth device that sent the iBeacon broadcast packet.

[0101] 202. The client binds the device identification information and the broadcast identification information.

[0102] When the client obtains the iBeacon broadcast packet, it will bind the uuid and the iBeacon's uuid. At this point, the APP on the client will automatically register and listen to the iBeacon broadcast packet based on the uuid. The Bluetooth device will also send the corresponding iBeacon broadcast packet based on the uuid in accordance with the communication protocol. It should be understood that registration and monitoring can be understood as a method in which we initialize the uuid into the APP system and then monitor the APP system. When the Bluetooth device with the uuid sends a Bluetooth broadcast, the APP system will inform us of the Bluetooth broadcast of the Bluetooth device through the monitoring method. It should also be understood that the APP on the client is only an embodiment of the monitoring method. The client can also register and monitor the iBeacon broadcast packet in other ways, which will not be described in detail here. The specific monitoring rule is that the 8-byte uuid is converted into the American Standard Information Interchange Code (ASCII, American Standard Code for Information Interchange) through hexadecimal, and composed of 16 characters for monitoring.

[0103] 203. The client determines whether the broadcast identification information to be identified has a binding relationship with the device identification information according to the broadcast identification information to be identified of the iBeacon broadcast information to be identified. If so, execute step 204.

[0104] When the client is disconnected from the Bluetooth device, the Bluetooth device will send an iBeacon broadcast packet at a certain frequency. It is understandable that the frequency is generally set to 3 seconds, or 5 seconds. There is no specific limit on the sending frequency here. Because different Bluetooth devices have different sending frequencies, if high accuracy is required, the sending frequency will generally be higher. If low power consumption of the Bluetooth device is required, the sending frequency will be lower.

[0105] The client continuously scans the Bluetooth broadcast of the Bluetooth device. When an iBeacon broadcast is scanned, the client will determine whether the uuid of the iBeacon in the iBeacon broadcast packet obtained at this time is the same as the uuid of the initially bound Bluetooth device.

[0106] If they are the same, execute step 204.

[0107] 204. The client parses the iBeacon broadcast information to be identified, and performs a preset operation according to the iBeacon broadcast information to be identified.

[0108] If the uuid of the iBeacon in the iBeacon broadcast packet is the same as the uuid of the initially bound Bluetooth device, the client will parse the iBeacon broadcast packet to obtain the information carried in the iBeacon broadcast packet and perform corresponding operations based on the information.

[0109] Specifically, the iBeacon broadcast packet may contain temperature or humidity data detected by the Bluetooth device. After the client parses the iBeacon broadcast packet and obtains the temperature and humidity data, the customer can make linkages based on his or her own decision-making judgment. For example, if the temperature is lower than 5°, turn on the air conditioner at home; if the humidity is lower than a certain threshold, turn on the humidifier, etc. Or if the temperature is higher than a certain value, a mobile phone notification will be triggered. It should be noted that temperature and humidity data is only a specific implementation method of this implementation. Bluetooth devices can also obtain different data information through the sensor modules installed on them, such as carbon dioxide concentration, PM2.5, etc. The data information detected by the Bluetooth device is not limited here, and it will not be elaborated later.

[0110] It is also understandable that when the Bluetooth device triggers iBeacon monitoring, the client will process the corresponding uuid information of the monitoring to wake up the corresponding APP. Specifically, when the physical button of the Bluetooth device to find the mobile phone is triggered, the Bluetooth device will send an iBeacon broadcast to trigger the client to register the monitoring event. After the client parses the data and confirms that the data in the iBeacon broadcast package is a search event, the client will respond by ringing and vibrating, so as to achieve the purpose of finding the mobile phone. It is not difficult to understand that the client can also respond in other ways, and the client response method is not specifically limited here. It is also necessary to understand that the client search function can wake up the client through geo-fences or Bluetooth connection events, which are not specifically limited here.

[0111] The method proposed in this embodiment can break through the limitation of the client connecting to the Bluetooth device, and the client can receive data through the Bluetooth broadcast based on iBeacon. The anti-loss function of iBeacon is extended on the Bluetooth device, and the Bluetooth device can reversely search for the client based on the Bluetooth broadcast of iBeacon. At the same time, the power consumption of the Bluetooth device can also be reduced. In the case of no connection, it only needs to send an iBeacon broadcast packet every once in a while.

[0112] See also Figure 3 , Figure 3 The signaling diagram of a Bluetooth device-based interaction method disclosed in an embodiment of the present application is shown in FIG. Specifically, steps 301-310 are included.

[0113] 301. The Bluetooth device sends a Bluetooth broadcast to the client.

[0114] A Bluetooth device that is not connected to a client is in an unconnected state and will send Bluetooth broadcasts to the surrounding area. Specifically, if the client is at the receiving end, the Bluetooth device will send Bluetooth broadcasts to the client.

[0115] 302. The client connects to the Bluetooth device.

[0116] The client scans the Bluetooth broadcast in the unconnected state, and thus the client makes a preliminary connection with the Bluetooth device. The preliminary connection means that the client is connected to the Bluetooth device, but the Bluetooth device has not yet been registered in the cloud. At this time, the client will turn on the Bluetooth usage permission in the system.

[0117] 303. The client registers the Bluetooth device in the cloud.

[0118] When the client is connected to the Bluetooth device, the client will perform network configuration operations on the Bluetooth device. Specifically, the client will register the device information of the Bluetooth device in the cloud to obtain the corresponding device maintenance information. The device maintenance information generally includes a communication key, and can also obtain real-time time and time zone information according to the communication requirements of the Bluetooth device. It should be noted that this embodiment does not limit the data information, and the data information may also include other information required according to the communication requirements of the Bluetooth device. It should also be understood that the communication key is a strategy to ensure communication security, and it is also for communication security. For the convenience of description, the subsequent device maintenance information is described in terms of the communication key, and this will not be repeated later.

[0119] 304. The cloud sends the device key to the client.

[0120] When the cloud obtains the communication key associated with the blue device, it will send the communication key to the client. After the client receives the communication key, it will store the communication key locally. At the same time, the APP on the client will also extract the communication key accordingly. It is understandable that other systems on the client, such as the Bluetooth gateway, can also obtain the communication key. This embodiment does not limit the method and system for obtaining the communication key. For the convenience of description, this embodiment is only described in terms of the APP, and will not be repeated later.

[0121] 305. The client sends the device key to the Bluetooth device.

[0122] When the client obtains the communication key, it will send the communication key to the Bluetooth device. Specifically, the APP on the client will write the communication key into the Bluetooth device.

[0123] 306. The Bluetooth device stores the secret key and binds the uuid.

[0124] When the Bluetooth device obtains the communication key, it will store the communication key locally and bind the communication key to the UUID of the Bluetooth device to ensure the communication security of the Bluetooth device and the client as much as possible. It can be understood that when the Bluetooth device stores the communication key, it means that the Bluetooth device has been successfully configured. At this time, the Bluetooth device will send a corresponding response message to the client, which contains a successful network configuration message of the Bluetooth device, so as to inform the client of the current network configuration status of the Bluetooth device.

[0125] Correspondingly, when the client receives the response information, it will synchronize the network configuration status of the Bluetooth device to the cloud, and synchronize the network configuration activation status of the Bluetooth device to the cloud, so that the Bluetooth device is marked as activated in the cloud, and the communication rule information is written to the Bluetooth device. The communication rule information includes the key exchange rules of the Bluetooth device. It should be noted that the activation status of the Bluetooth device needs to be performed in the client, that is, the client activates the network status information sent by the Bluetooth device and then feeds it back to the cloud. It should also be noted that when the client receives the response information, the client will enable the positioning permission. This positioning permission is required to receive iBeacon broadcast packets.

[0126] It should also be noted that when the Bluetooth device is successfully paired with the network, the uuid of the iBeacon broadcast packet, i.e. the uuid of the iBeacon, will be generated based on the uuid of its own Bluetooth device.

[0127] It is not difficult to understand that if a Bluetooth device sends an iBeacon broadcast packet to a client, the iBeacon broadcast packet includes at least uuid and the iBeacon's uuid. When the client receives the iBeacon broadcast packet, it will parse and identify the iBeacon broadcast packet and bind the uuid and the iBeacon's uuid. At this time, the APP on the client will automatically register to listen to the iBeacon broadcast packet based on the uuid. The Bluetooth device will also send the corresponding iBeacon broadcast packet based on the uuid in accordance with the communication protocol.

[0128] 307. The client enters the panel page and connects to the Bluetooth device.

[0129] The client enters the device panel page, which can also be understood as the operation page of the APP on the client. The user can make the client and the Bluetooth device finally connected by operating on the APP. It should be noted that the final connection in this embodiment means that the Bluetooth device and the client are connected to each other by Bluetooth. At this time, the Bluetooth device connects and communicates with the client via Bluetooth. It is not difficult to understand that at this time, the Bluetooth device may not send iBeacon broadcasts, the client and the Bluetooth device can interact in both directions, the Bluetooth device can synchronize information to the client, and the client can also send settings, such as Over-the-Air Technology (OTA) information to the Bluetooth device.

[0130] 308. The Bluetooth device synchronizes data with the client.

[0131] After the Bluetooth device and the client establish a Bluetooth connection, the Bluetooth device and the client can synchronize data. Specifically, the Bluetooth device can synchronize information to the client, and the client can also send settings or OTA information to the Bluetooth device. It is not difficult to understand that this embodiment does not limit the interactive data between the client and the Bluetooth device, and the interactive data between the two can also be other types of information. It is understandable that the Bluetooth device can send the historical data or real-time data of the Bluetooth device to the client in the form of Bluetooth broadcast (Bluetooth communication), and the client can also send setting information to the Bluetooth device, so that the Bluetooth device can update the device or modify the device parameters according to the setting information.

[0132] It can also be understood that the Bluetooth device and the client can not only use Bluetooth connection for data synchronization, but also use iBeacon broadcasting for data synchronization. This embodiment does not limit the method of data synchronization and will not be elaborated on later.

[0133] 309. The Bluetooth device sends data to the client via iBeacon broadcast.

[0134] When the client exits the device panel page, the client disconnects from the Bluetooth device. The Bluetooth device will alternately send iBeacon broadcasts and Bluetooth broadcasts, which can also be understood as network distribution broadcasts. The client can connect to the Bluetooth device through the network distribution broadcast, that is, continue to execute step 301, or it can receive temperature and humidity data by scanning the iBeacon broadcast. It should be understood that the iBeacon broadcast sent by the Bluetooth device is sent at a certain frequency. Step 203 has described the frequency and the method of obtaining temperature and humidity data in detail, which will not be repeated here.

[0135] The client continuously scans the Bluetooth broadcast of the Bluetooth device. When the iBeacon broadcast is scanned, the client will determine whether the uuid of the iBeacon in the iBeacon broadcast packet obtained at this time is the same as the uuid of the initially bound Bluetooth device. If the uuid of the iBeacon in the obtained iBeacon broadcast packet is the same as the uuid of the initially bound Bluetooth device. The client will parse the iBeacon broadcast packet to obtain the data information carried in the iBeacon broadcast packet, and display the data information on the client or prompt the user to make corresponding decisions based on the information. It should be noted that this embodiment does not limit the data information detected by the Bluetooth device. The data information can be ambient temperature, ambient humidity, carbon dioxide concentration or PM2.5, etc.

[0136] 310. The Bluetooth device triggers a search broadcast, and the client responds to the search function.

[0137] When the Bluetooth device triggers iBeacon monitoring, the client will process the corresponding uuid information of the monitoring to wake up the corresponding APP. Specifically, when the physical button of the Bluetooth device to find the mobile phone is triggered, the Bluetooth device will send an iBeacon broadcast to trigger the client to register the monitoring event. When the client parses the data and confirms that the data in the iBeacon broadcast package is a search event, the client will respond by ringing and vibrating, so as to achieve the purpose of finding the mobile phone.

[0138] This embodiment does not limit step 310 and steps 307 - 309 . Step 310 may be performed first and then steps 307 - 309 , or steps 307 - 309 may be performed first and then step 310 .

[0139] The method proposed in this embodiment can break through the limitation of the client connecting to the Bluetooth device, and the client can receive data through the Bluetooth broadcast based on iBeacon. The anti-loss function of iBeacon is expanded on the Bluetooth device, and the Bluetooth device can reversely search for the client based on the Bluetooth broadcast of iBeacon. At the same time, the power consumption of the Bluetooth device can also be reduced. Without establishing a connection, it is only necessary to send an iBeacon broadcast packet every once in a while. At the same time, the Bluetooth device can connect to the client through Bluetooth connection or iBeacon broadcast, which improves the feasibility of the solution.

[0140] The above describes the interaction method based on Bluetooth devices in the embodiment of the present application. The following describes the message content structure and iBeacon data format in detail. Figure 4 and Figure 5 . Figure 4 This is a schematic diagram of the format of an iBeacon broadcast packet disclosed in an embodiment of the present application. Figure 5 A schematic diagram of the format of a device scan response packet disclosed in an embodiment of the present application.

[0141] Figure 4 In the data packet, the format is the format of the iBeacon broadcast packet. Among them, fields 6-7 carry CompanyID, which is the company ID (identification). The Company ID in the iBeacon broadcast packet is in the format of 0x004C. Fields 10-25 carry uuid, which requires that the devices of the same company have a unique identification code. Among them, fields 10-25 used by uuid are used to map the universal unique identification code with the Bluetooth connection broadcast packet, so that the client can distinguish whether it is a data packet sent by the same Bluetooth device based on the uuid. Fields 26-27 carry Major, which indicates the main value or main data in the iBeacon broadcast packet. Fields 28-29 carry Minor, which indicates the secondary value or secondary data in the iBeacon broadcast packet. Fields 30-31 carry Tx Power, which indicates the broadcast power of the device with iBeacon function.

[0142] Figure 5In, the data packet is expressed as ManufacturerData, which is a device scan response packet. Among them, fields 5-7 carry the data of ambient temperature and ambient humidity obtained by the temperature and humidity sensor on the Bluetooth device. Therefore, it can be understood that when the Bluetooth device sends an iBeacon broadcast packet to the client, the iBeacon broadcast packet will carry temperature and humidity data. At the same time, the temperature and humidity data can also exist in the Bluetooth broadcast packet. When the client scans the Bluetooth broadcast packet sent by the Bluetooth device, the client can obtain the temperature and humidity data at the same time. It is not difficult to understand that the client can also obtain temperature and humidity data in other ways. Therefore, the embodiment of the present application does not limit the specific method for the client to obtain temperature and humidity data.

[0143] The above describes the interaction method based on Bluetooth device and iBeacon data format in the embodiment of the present application. The following describes the structure of the interaction system based on Bluetooth device in the embodiment of the present application. Figure 6 , a structure based on the interaction of Bluetooth devices includes:

[0144] An acquiring unit 601 is used to acquire iBeacon broadcast information of a Bluetooth device, where the iBeacon broadcast information includes device identification information of the Bluetooth device and broadcast identification information of the iBeacon broadcast information;

[0145] The binding unit 602 is used to bind the device identification information and the broadcast identification information;

[0146] The judging unit 603 is used to judge whether the broadcast identification information to be identified has a binding relationship with the device identification information according to the broadcast identification information to be identified of the iBeacon broadcast information to be identified after obtaining the broadcast information to be identified;

[0147] The execution unit 604 is used to parse the iBeacon broadcast information to be identified when there is a binding relationship between the broadcast identification information to be identified and the device identification information, and perform a preset operation according to the iBeacon broadcast information to be identified.

[0148] In this embodiment, the client can receive data through Bluetooth broadcasting based on iBeacon, thereby breaking through the limitation of the client connecting to Bluetooth devices and improving the feasibility of the solution.

[0149] The structure of the interactive system based on Bluetooth devices in the embodiment of the present application is described in detail below. Figure 7 , another structure of an interactive system based on a Bluetooth device disclosed in an embodiment of the present application includes:

[0150] The first acquisition unit 701 is used to acquire iBeacon broadcast information of a Bluetooth device, where the iBeacon broadcast information includes device identification information of the Bluetooth device and broadcast identification information of the iBeacon broadcast information;

[0151] The binding unit 702 is used to bind the device identification information and the broadcast identification information;

[0152] The judging unit 703 is used to judge whether the broadcast identification information to be identified has a binding relationship with the device identification information according to the broadcast identification information to be identified of the iBeacon broadcast information to be identified after obtaining the broadcast information to be identified of the iBeacon broadcast information to be identified;

[0153] The execution unit 704 is used to parse the iBeacon broadcast information to be identified when there is a binding relationship between the broadcast identification information to be identified and the device identification information, and perform a preset operation according to the iBeacon broadcast information to be identified.

[0154] For example,

[0155] The system further includes: a second acquiring unit 705 , a connecting unit 706 , a registering unit 707 and a first sending unit 708 .

[0156] The second acquisition unit 705 is used to acquire Bluetooth broadcast information of the Bluetooth device;

[0157] A connection unit 706, configured to connect to a Bluetooth device via Bluetooth broadcast information;

[0158] A registration unit 707, configured to register the Bluetooth device in the cloud to obtain device maintenance information after the client is connected to the Bluetooth device;

[0159] The first sending unit 708 is configured to send device maintenance information to the Bluetooth device, so that the Bluetooth device is bound with the device identification information and the device maintenance information.

[0160] For example,

[0161] The system further includes: a second sending unit 709 , an updating unit 710 and a setting unit 711 .

[0162] The second sending unit 709 is used to send device setting information to the Bluetooth device;

[0163] An updating unit 710, configured to update the Bluetooth device according to the device setting information;

[0164] Or, the setting unit 711 is used to set the parameters of the Bluetooth device according to the device setting information.

[0165] For example,

[0166] The system also includes: a first receiving unit 712 .

[0167] The first receiving unit 712 is used to receive data information sent by the Bluetooth device, where the data information includes historical data information and real-time data information of the Bluetooth device.

[0168] For example,

[0169] The execution unit 704 includes: an execution subunit 7041 .

[0170] The execution subunit 7041 is used to perform a ringing operation or a vibration operation when the iBeacon broadcast information to be identified is search information.

[0171] For example,

[0172] The system also includes: a second receiving unit 713.

[0173] The second receiving unit 713 is configured to receive the iBeacon broadcast information to be identified sent by the Bluetooth device at a preset frequency when the client is in a disconnected state from the Bluetooth device.

[0174] For example,

[0175] The system further includes: a monitoring unit 714 .

[0176] The monitoring unit 714 is used to monitor the iBeacon broadcast information that has a binding relationship with the device identification information according to the device identification information.

[0177] The interactive method based on Bluetooth device proposed in this embodiment can break through the limitation of client connecting to Bluetooth device, and the client can receive data through Bluetooth broadcast based on iBeacon. The anti-loss function of iBeacon is extended on the Bluetooth device, and the Bluetooth device can reversely search for the client based on the Bluetooth broadcast of iBeacon. At the same time, the power consumption of Bluetooth device can also be reduced. In the case of no connection, it only needs to send iBeacon broadcast packet once every period of time.

[0178] See below Figure 8 , a schematic diagram of a structure of an interactive device based on a Bluetooth device disclosed in an embodiment of the present application includes:

[0179] CPU 801, memory 805, input / output interface 804, wired or wireless network interface 803 and power supply 802;

[0180] The memory 805 is a temporary storage memory or a permanent storage memory;

[0181] The CPU 801 is configured to communicate with the memory 805 and execute the instructions in the memory 805 to perform the aforementioned Figure 2 or Figure 3 The method in the illustrated embodiment.

[0182] The embodiment of the present application also provides a chip system, characterized in that the chip system includes at least one processor and a communication interface, the communication interface and the at least one processor are interconnected through a line, and the at least one processor is used to run a computer program or instruction to execute the aforementioned Figure 2 or Figure 3 The method in the illustrated embodiment.

[0183] 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.

[0184] In the several embodiments provided in the present application, it should be understood that the disclosed systems, 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 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 system, 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0185] 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.

[0186] 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.

[0187] 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 technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

Claims

1. An interactive method based on a Bluetooth device, characterized in that: The method comprises: The client obtains the Bluetooth broadcast information of the Bluetooth device; The client connects to the Bluetooth device via the Bluetooth broadcast information; After the client is connected to the Bluetooth device, the client registers the Bluetooth device in the cloud to obtain device maintenance information; The client sends the device maintenance information to the Bluetooth device, so that the Bluetooth device is bound to the device identification information and the device maintenance information; The client obtains iBeacon broadcast information sent by the Bluetooth device, where the iBeacon broadcast information includes device identification information of the Bluetooth device and broadcast identification information of the iBeacon broadcast information; The client binds the device identification information and the broadcast identification information; when the client is disconnected from the Bluetooth device, the Bluetooth device sends an iBeacon broadcast information once at a preset frequency, and the client continuously scans the Bluetooth broadcast information of the Bluetooth device; After obtaining the iBeacon broadcast information to be identified, the client determines whether the broadcast identification information to be identified has a binding relationship with the device identification information according to the broadcast identification information to be identified of the iBeacon broadcast information to be identified; If it exists, the client parses the iBeacon broadcast information to be identified and performs a preset operation according to the iBeacon broadcast information to be identified.

2. The method according to claim 1, characterized in that After the client sends the device maintenance information to the Bluetooth device, the method further includes: The client sends device setting information to the Bluetooth device; The client updates the Bluetooth device according to the device setting information; or, The client sets parameters of the Bluetooth device according to the device setting information.

3. The method according to claim 1, characterized in that After the client sends the device maintenance information to the Bluetooth device, the method further includes: The client receives data information sent by the Bluetooth device, where the data information includes historical data information and real-time data information of the Bluetooth device.

4. The method according to claim 1, characterized in that: Before the client determines whether the broadcast identification information to be identified has a binding relationship with the device identification information according to the broadcast identification information to be identified of the iBeacon broadcast information to be identified, the method further includes: If the client is in a disconnected state from the Bluetooth device, the client receives the iBeacon broadcast information to be identified that is sent by the Bluetooth device at a preset frequency.

5. The method according to any one of claims 1 to 4, characterized in that The preset operation according to the iBeacon broadcast information to be identified includes: If the iBeacon broadcast information to be identified is search information, the client performs a ringing operation or a vibration operation.

6. The method according to any one of claims 1 to 5, characterized in that The iBeacon broadcast information to be identified includes at least one of ambient temperature or ambient humidity.

7. An interactive system based on Bluetooth devices, characterized in that: The system comprises: A first acquisition unit is used to acquire iBeacon broadcast information of a Bluetooth device, wherein the iBeacon broadcast information includes device identification information of the Bluetooth device and broadcast identification information of the iBeacon broadcast information; A binding unit, used to bind the device identification information and the broadcast identification information; A judging unit, configured to, after acquiring the iBeacon broadcast information to be identified, judge whether the broadcast identification information to be identified has a binding relationship with the device identification information according to the broadcast identification information to be identified of the iBeacon broadcast information to be identified; An execution unit, configured to parse the iBeacon broadcast information to be identified and perform a preset operation according to the iBeacon broadcast information to be identified when there is a binding relationship between the broadcast identification information to be identified and the device identification information; An acquiring unit, configured to acquire iBeacon broadcast information of a Bluetooth device, wherein the iBeacon broadcast information includes device identification information of the Bluetooth device and broadcast identification information of the iBeacon broadcast information; A binding unit, used to bind the device identification information and the broadcast identification information; when the client is disconnected from the Bluetooth device, the Bluetooth device will send iBeacon broadcast information once according to a preset frequency, and the client will continue to scan the Bluetooth broadcast information of the Bluetooth device; A judging unit, configured to, after acquiring the iBeacon broadcast information to be identified, judge whether the broadcast identification information to be identified has a binding relationship with the device identification information according to the broadcast identification information to be identified of the iBeacon broadcast information to be identified; The execution unit is used to parse the iBeacon broadcast information to be identified when there is a binding relationship between the broadcast identification information to be identified and the device identification information, and perform a preset operation according to the iBeacon broadcast information to be identified.

8. An interactive device based on a Bluetooth device, characterized in that: The device comprises: CPU, memory, input and output interfaces, wired or wireless network interfaces, and power supply; The memory is a short-term storage memory or a persistent storage memory; The central processing unit is configured to communicate with the memory and execute instructions in the memory to perform the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises instructions, and when the instructions are executed on a computer, the computer is caused to perform the method according to any one of claims 1 to 6.