Communication Method, Device and System for Low Energy Bluetooth Device and Terminal Device

By determining the registration status between the low-power Bluetooth device and the terminal device and sending corresponding broadcast messages, the power consumption and resource occupation problems when the low-power Bluetooth device communicates with the terminal device is solved, and the balance of low-power consumption, low resource proportion and communication immediacy is achieved.

CN115767491BActive Publication Date: 2025-07-18NINGBO BABY FIRST BABY PROD CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211371794.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-03
Publication Date
2025-07-18
Estimated Expiration
2042-11-03

AI Technical Summary

Technical Problem

When existing low-power Bluetooth devices communicate with terminal devices, there are power consumption and resource usage problems, which also affects communication immediacy.

Method used

By determining the registration status of the low-power Bluetooth device, sending corresponding broadcast messages, and receiving response messages from the terminal device, in order to realize communication connections under different registration statuses, including unregistered and registered statuses, different broadcast message modes are adopted, such as unregistered and first-time supernormal broadcast messages, as well as registered normal and non-first supernormal broadcast messages, switch broadcast messages to achieve low power consumption and low resource proportion registration and connection.

Benefits of technology

It realizes real-time communication between low-power Bluetooth devices and terminal devices under low-power consumption and low resource proportion, taking into account the needs of low-power consumption, low resource proportion and communication immediacy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115767491B_ABST
    Figure CN115767491B_ABST
Patent Text Reader

Abstract

The present application provides a communication method, device and system for a low-power Bluetooth device and a terminal device. Among them, the method includes: the low-power Bluetooth device sends corresponding broadcast messages according to the registration status, receives the response messages of the terminal device, and communicates with the terminal device according to the response messages. By sending different broadcast messages to terminal devices with different registration statuses, registration or connection with the terminal device can be achieved by switching the broadcast messages, so as to realize the registration and connection of the terminal device with the low-power Bluetooth device under the conditions of low power consumption and low resource occupancy, instantaneously obtain the uplink data of the low-power Bluetooth device, and instantaneously control the downlink data of the low-power Bluetooth device through the mobile terminal, thereby taking into account the requirements of low power consumption, low resource occupancy and communication instantaneity in the communication between the low-power Bluetooth device and the terminal device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technologies, and in particular, to a communication method, device, and system for a low-power Bluetooth device and a terminal device. Background Art

[0002] With the advent of the intelligent era, all fields have been associated with intelligence, such as smart home, smart wearables, smart healthcare, etc. Wireless communication technologies are often used in intelligent scenarios to achieve short-range transmission of communication messages, such as data communication between a mobile phone and a vehicle head unit system in an intelligent vehicle cockpit.

[0003] Bluetooth Low Energy (BLE) is a commonly used wireless communication technology with two communication modes: central-peripheral mode and beacon mode. For low-power Bluetooth devices, intermittent broadcasting can be used to reduce power consumption in the central-peripheral mode. However, for mobile terminals, the central-peripheral mode will cause long-term resource occupation.

[0004] To solve the problems of power consumption and resource occupation in the central-peripheral mode, the connection with the low-power Bluetooth device can be disconnected when the user exits the application or places the application in the background. However, this will cause the problem of low communication immediacy of the device.

[0005] Therefore, how to reduce power consumption and resource occupation ratio while not affecting communication immediacy when a low-power Bluetooth device communicates with a terminal device has become an urgent problem to be solved. Summary of the Invention

[0006] The purpose of the present application is to provide a communication method, device, and system for a low-power Bluetooth device and a terminal device to solve the problem of low communication efficiency between the low-power Bluetooth device and the terminal device in the prior art.

[0007] To achieve the above purpose, the technical solution adopted in the present application is as follows:

[0008] In a first aspect, the present application provides a communication method for a low-power Bluetooth device, which is applied to the low-power Bluetooth device. The method includes:

[0009] After the low-power Bluetooth device is started, determine the registration status of the low-power Bluetooth device, where the registration status is used to indicate whether the low-power Bluetooth device is registered on the terminal device;

[0010] According to the registration status of the low-power Bluetooth device, send a broadcast message corresponding to the registration status;

[0011] Receive the response message from the terminal device, where the response message includes: a message indicating successful registration, and / or, a message for establishing a connection.

[0012] Communicate with the terminal device according to the response message.

[0013] Optionally, the sending the broadcast message corresponding to the registration status according to the registration status of the low-power Bluetooth device includes:

[0014] If the registration status is unregistered, send an unregistered normal broadcast message and a first abnormal broadcast message.

[0015] Optionally, the response message includes: a first response message, where the first response message is a message for establishing a connection and indicating successful registration;

[0016] Communicating with the terminal device according to the response message includes:

[0017] Establish a communication connection with the terminal device according to the first response message;

[0018] Read and store the registration information from the second response message according to the first response message, and modify the registration status to registered.

[0019] Optionally, the sending the broadcast message corresponding to the registration status according to the registration status of the low-power Bluetooth device includes:

[0020] If the registration status is registered, send a registered normal broadcast message and a non-first abnormal broadcast message.

[0021] Optionally, the response message is a second response message, where the second response message is a message for establishing a connection;

[0022] Communicating with the terminal device according to the response message includes:

[0023] Establish a communication connection with the terminal device according to the second response message.

[0024] Optionally, the method further includes:

[0025] If it is detected that the connection with the terminal device is disconnected, send a registered normal broadcast message and a non-first abnormal broadcast message to the terminal device.

[0026] In a second aspect, the present application further provides a communication method for a terminal device, which is applied to the terminal device, and the method includes:

[0027] Receive the broadcast message sent by the low-power Bluetooth device;

[0028] Determine the registration status of the low-power Bluetooth device according to the broadcast message;

[0029] Communicate with the low-power Bluetooth device according to the registration status of the low-power Bluetooth device.

[0030] Optionally, the communicating with the low-power Bluetooth device according to the registration status of the low-power Bluetooth device includes:

[0031] If the registration status is unregistered, send a first response message to the low-power Bluetooth device according to the registration result of the user for the low-power Bluetooth device, so as to establish a connection with the low-power Bluetooth device and upload the registration information to the server, and the first response message includes the registration information.

[0032] Optionally, the communicating with the low-power Bluetooth device according to the registration status of the low-power Bluetooth device includes:

[0033] If the registration status is registered, send a second response message to the low-power Bluetooth device to establish a connection with the low-power Bluetooth device.

[0034] In a third aspect, the present application further provides a low-power Bluetooth device, including: a first processor, a first memory, and a first bus. The memory stores machine-readable instructions executable by the first processor. When the fault detection device runs, the first processor communicates with the first memory through the first bus. The first processor executes the machine-readable instructions to perform the steps of the communication method of the low-power Bluetooth device as described above.

[0035] In a fourth aspect, the present application further provides a terminal device, including: a second processor, a second memory, and a second bus. The second memory stores machine-readable instructions executable by the second processor. When the fault detection device runs, the second processor communicates with the second memory through the second bus. The second processor executes the machine-readable instructions to perform the steps of the communication method of the terminal device as described above.

[0036] In a fifth aspect, the present application further provides a communication system, and the communication system includes the above-mentioned low-power Bluetooth device and the terminal device.

[0037] In a sixth aspect, the present application provides a communication device for a low-power Bluetooth device, and the device includes:

[0038] A determination module, configured to: after the low-power Bluetooth device is started, determine the registration status of the low-power Bluetooth device, and the registration status is used to indicate whether the low-power Bluetooth device is registered on the terminal device;

[0039] A sending module, configured to: send a broadcast message corresponding to the registration status according to the registration status of the low-power Bluetooth device;

[0040] A receiving module, configured to: receive a response message from the terminal device, where the response message includes: a message indicating successful registration, and / or, a message for establishing a connection;

[0041] A first communication module, configured to: communicate with the terminal device according to the response message.

[0042] Optionally, the sending module is further configured to:

[0043] If the registration status is unregistered, send an unregistered normal broadcast message and a first abnormal broadcast message.

[0044] Optionally, the first communication module is further configured to:

[0045] Establish a communication connection with the terminal device according to the first response message;

[0046] Read and store registration information from the second response message according to the first response message, and modify the registration status to registered.

[0047] Optionally, the sending module is further configured to:

[0048] If the registration status is registered, send a registered normal broadcast message and a non-first abnormal broadcast message.

[0049] Optionally, the first communication module is further configured to:

[0050] Establish a communication connection with the terminal device according to the second response message.

[0051] In a seventh aspect, the present application provides a communication device for a terminal device, the device includes:

[0052] A message receiving module, configured to: receive a broadcast message sent by a low-power Bluetooth device;

[0053] A status determination module, configured to: determine the registration status of the low-power Bluetooth device according to the broadcast message;

[0054] A second communication module, configured to: communicate with the low-power Bluetooth device according to the registration status of the low-power Bluetooth device.

[0055] Optionally, the second communication module is further configured to:

[0056] If the registration status is unregistered, a first response message is sent to the low-power Bluetooth device according to the registration result of the user for the low-power Bluetooth device, so as to establish a connection with the low-power Bluetooth device and upload the registration information to the server, and the registration information is included in the first response message.

[0057] Optionally, the second communication module is further configured to:

[0058] If the registration status is registered, a second response message is sent to the low-power Bluetooth device to establish a connection with the low-power Bluetooth device.

[0059] The beneficial effect of this application is that by sending different broadcast messages to terminal devices with different registration statuses, registration or connection with the terminal device can be achieved by switching the broadcast messages, so as to realize the registration and connection of the terminal device with the low-power Bluetooth device under the conditions of low power consumption and low resource occupancy, immediately obtain the uplink data of the low-power Bluetooth device, and immediately control the downlink data of the low-power Bluetooth device through the mobile terminal, thus taking into account the requirements of low power consumption, low resource occupancy and communication instantaneity in the communication between the low-power Bluetooth device and the terminal device. Description of the Drawings

[0060] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application and should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.

[0061] Figure 1 Shows a schematic diagram of a communication scenario provided by an embodiment of the present application;

[0062] Figure 2 Shows a flowchart of a communication method of a low-power Bluetooth device provided by an embodiment of the present application;

[0063] Figure 3 Shows a flowchart of communicating with a terminal device in an unregistered state provided by an embodiment of the present application;

[0064] Figure 4 Shows a flowchart of a communication method of a terminal device provided by an embodiment of the present application;

[0065] Figure 5 Shows a flowchart of another communication method of a low-power Bluetooth device provided by an embodiment of the present application;

[0066] Figure 6 Shows a flowchart of another communication method of a terminal device provided by an embodiment of the present application;

[0067] Figure 7 Shows a schematic structural diagram of a communication device of a low-power Bluetooth device provided by an embodiment of the present application;

[0068] Figure 8 Shows a schematic structural diagram of a communication device of a terminal device provided by an embodiment of the present application;

[0069] Figure 9 Shows a schematic structural diagram of a low-power Bluetooth device provided by an embodiment of the present application;

[0070] Figure 10 Shows a schematic structural diagram of a terminal device provided by an embodiment of the present application. Detailed implementation manners

[0071] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It should be understood that the accompanying drawings in the present application are only for the purposes of illustration and description, and are not used to limit the protection scope of the present application. In addition, it should be understood that the schematic drawings are not drawn in actual proportions. The flowcharts used in the present application show the operations implemented according to some embodiments of the present application. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical context relationships may be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart or remove one or more operations from the flowchart under the guidance of the content of the present application.

[0072] In addition, the described embodiments are only some embodiments of the present application, rather than all embodiments. The components of the embodiments of the present application usually described and illustrated in the accompanying drawings here can be arranged and designed in various different configurations. 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 to be protected, but only represents the selected embodiments of the present application. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative efforts fall within the protection scope of the present application.

[0073] It should be noted that the term "including" will be used in the embodiments of the present application to indicate the existence of the subsequently stated features, but does not exclude the addition of other features.

[0074] For ease of understanding, first, the modes of Bluetooth Low Energy are described. Bluetooth Low Energy has two modes: Central-Peripheral and Beacon. Among them, the Central-Peripheral mode can achieve broadcasting and connection. In the Internet of Things scenario, generally, Bluetooth Low Energy devices act as peripheral roles for broadcasting, and mobile terminals generally act as central roles for scanning broadcasts, obtaining corresponding broadcasts, and then establishing connections. The Beacon mode is a mode that only broadcasts and does not connect.

[0075] With the increasing maturity of Bluetooth Low Energy technology, there are also many applications of Bluetooth Low Energy in daily life, such as smart home and smart wearables.

[0076] In some usage scenarios, such as the connection scenario between a safety seat and an intelligent vehicle system, continuously using the Central-Peripheral mode has a relatively high power consumption. For Bluetooth Low Energy devices, the power consumption can be reduced by using intermittent broadcasting. However, for mobile terminals, on the one hand, they need to continuously scan for broadcasts, and on the other hand, after scanning a broadcast, the Central-Peripheral mode will also cause long-term resource occupation.

[0077] To solve the problems of power consumption and resource occupation in the Central-Peripheral mode, the general approach is to disconnect the connection with the Bluetooth Low Energy device when the user exits the application or places the application in the background. However, this will cause the problem of low communication immediacy of the device.

[0078] Therefore, how to reduce power consumption and resource occupation ratio while not affecting the communication immediacy when a Bluetooth Low Energy device communicates with a terminal device has become an urgent problem to be solved.

[0079] In view of the above problems, the present application proposes a communication method for a Bluetooth Low Energy device and a communication method for a terminal device, which are applied to a Bluetooth Low Energy device and a terminal device. As Figure 1 shown, it is an application scenario of the method of the present application given in an embodiment of the present application. Referring to Figure 1 , the Bluetooth Low Energy device can first send a broadcast message within a certain range. If the terminal device is within the broadcast range of the Bluetooth Low Energy device, the terminal device can identify and receive the broadcast message of the Bluetooth Low Energy, and establish a connection with the Bluetooth Low Energy to achieve communication.

[0080] Next, in combination with Figure 2 , the communication method of the Bluetooth Low Energy device of the present application will be further described. As Figure 2 shown, the execution subject of this method is the Bluetooth Low Energy device, and this method includes:

[0081] S201: After the Bluetooth Low Energy device is started, determine the registration status of the Bluetooth Low Energy device, where the registration status is used to indicate whether the Bluetooth Low Energy device is registered on the terminal device.

[0082] Optionally, the Bluetooth Low Energy device may be a device adopting the Bluetooth Low Energy technology, such as smart earphones, smart safety seats, smart watches, etc. adopting the Bluetooth Low Energy technology.

[0083] Optionally, the terminal device may be a device that can be connected to the Bluetooth Low Energy device. Exemplarily, the terminal device may be a mobile terminal, a smart vehicle-mounted system, etc.

[0084] Optionally, the registration status of the Bluetooth Low Energy may characterize the connection registration situation between the Bluetooth Low Energy device and the terminal device. For example, the connection registration situation between the Bluetooth Low Energy device and the terminal device may be unregistered and first connection, registered and non-first connection.

[0085] S202: Send a broadcast message corresponding to the registration status according to the registration status of the Bluetooth Low Energy device.

[0086] Optionally, the Bluetooth Low Energy device may send a broadcast message corresponding to the registration status to the terminal device according to the registration status.

[0087] Optionally, the Bluetooth Low Energy device may determine the registration status of the Bluetooth Low Energy device when the terminal device appears within the broadcast range, and send a broadcast message corresponding to the registration status to the terminal devices within the range.

[0088] It should be noted that in order to ensure the independence of different broadcast message transmissions of the Bluetooth Low Energy device, different message channels may be set for different broadcast messages.

[0089] Exemplarily, the link layer packet structure of the broadcast message sent by the Bluetooth Low Energy device may be as shown in Table 1 below. Referring to Table 1, the broadcast message may include information related to the Bluetooth Low Energy device, such as the device serial number or MAC address, which can be used for device binding; it may also include broadcast information and characterization data information, where the characterization data information may characterize that the registration status of the terminal device is unregistered or registered, and the connection status is first connection or non-first connection.

[0090] Table 1 Broadcast Message Structure

[0091]

[0092] S203: Receive the response message from the terminal device, where the response message includes: a message indicating successful registration, and / or, a message for connection.

[0093] Optionally, after the low-power Bluetooth device sends a broadcast message, it can receive a response message sent by the terminal device to the low-power Bluetooth device. The process of the terminal device receiving the above broadcast message and sending the above response message will be described in detail in the embodiments of the terminal device below.

[0094] As a possible implementation, if the low-power Bluetooth device and the terminal device are connected for the first time, that is, the low-power Bluetooth device is not registered on the terminal device, the response message can be a message indicating that the registration of the low-power Bluetooth device with the terminal device is successful and a connection is established.

[0095] As another possible implementation, if the low-power Bluetooth device and the terminal device are not connected for the first time, that is, the low-power Bluetooth device is already registered on the terminal device, the response message can be a message indicating that the low-power Bluetooth device is connected to the terminal device.

[0096] S204: Communicate with the terminal device according to the response message.

[0097] Optionally, the low-power Bluetooth device can communicate with the terminal device according to the response message.

[0098] In the embodiments of the present application, the low-power Bluetooth device sends a corresponding broadcast message according to the registration status, receives the response message of the terminal device, and communicates with the terminal device according to the response message. By sending different broadcast messages to terminal devices with different registration statuses, registration or connection with the terminal device can be achieved by switching the broadcast message, so as to realize the registration and connection of the terminal device with the low-power Bluetooth device under the conditions of low power consumption and low resource occupancy, obtain the uplink data of the low-power Bluetooth device in real time, and control the downlink data of the low-power Bluetooth device in real time through the mobile terminal, thus taking into account the requirements of low power consumption, low resource occupancy and communication timeliness in the communication between the low-power Bluetooth device and the terminal device.

[0099] Next, the step of sending a broadcast message corresponding to the registration status according to the registration status of the low-power Bluetooth device in S202 above will be described. The S202 step includes:

[0100] If the registration status is unregistered, an unregistered normal broadcast message and a first abnormal broadcast message are sent.

[0101] Optionally, if the registration status of the low-power Bluetooth device and the terminal device is unregistered, that is, the device information of the terminal device is not included in the low-power Bluetooth device, the low-power Bluetooth device can send an unregistered normal broadcast message and a first abnormal broadcast message to the terminal device.

[0102] Optionally, the unregistered normal broadcast message can be a broadcast message sent by the low-power Bluetooth device as a peripheral role in the central peripheral mode.

[0103] Optionally, the first abnormal broadcast message may be a broadcast message sent by a low-power Bluetooth device in beacon mode.

[0104] Exemplarily, the low-power Bluetooth device may send the first abnormal broadcast message to the terminal device to wake up the atomic service of the terminal device. The user can enter the application through the atomic service. At this time, the low-power Bluetooth device may send an unregistered normal broadcast message to the mobile terminal. After the mobile terminal completes scanning, discovery, and connection of the unregistered normal broadcast message, it can be considered that the user has successfully added the low-power Bluetooth device through the application and completed registration.

[0105] Optionally, the low-power Bluetooth device may intermittently send the unregistered normal broadcast message and the first abnormal broadcast message within a preset range. The unregistered normal broadcast message and the first abnormal broadcast message may have different message channels.

[0106] It should be noted that there may be one or more terminal devices in the preset range of the low-power Bluetooth device that have not been connected to the low-power Bluetooth device. Each unregistered terminal device can receive the unregistered normal broadcast message and the first abnormal broadcast message sent by the low-power Bluetooth device.

[0107] It is worth noting that a device that is first connected to the low-power Bluetooth device can also be considered unregistered on the low-power Bluetooth device. Therefore, a terminal device with an unregistered status can also be considered to be a first connection.

[0108] After the low-power Bluetooth device sends a broadcast message to the terminal device, the terminal device may send a response message to the low-power Bluetooth device so that the low-power Bluetooth device can communicate with the terminal device according to the response message. The process of the terminal device sending a response message to the low-power Bluetooth device will be described later and will not be elaborated here.

[0109] As another possible implementation manner, when the registration status is unregistered, after the above-mentioned low-power Bluetooth device sends the first abnormal broadcast message, if no response message is received within the preset time period for sending the first abnormal broadcast message, the first abnormal broadcast message may be stopped from being sent.

[0110] Exemplarily, a low-power Bluetooth device can send a first abnormal broadcast message to a terminal device within a preset period after being turned on, for example, within the first T time after being turned on. If a response message is not received within the preset period, it can be considered that the user has not established a connection between the application on the terminal device and the low-power Bluetooth device. Then, the low-power Bluetooth device can stop sending the first abnormal broadcast message. In the embodiments of the present application, a re-trigger mechanism can also be set for the low-power Bluetooth device. When the low-power Bluetooth device does not receive a response message from the terminal device within the preset period, the low-power Bluetooth device can perform the above-mentioned S202 step through the re-trigger mechanism to re-send the broadcast message. The above response message includes a first response message, and the first response message is a message for connection and indicating successful registration.

[0111] Optionally, if the registration status of the low-power Bluetooth device and the terminal device is unregistered, the low-power Bluetooth device can connect to the terminal device through the first response message sent by the terminal device, and modify the data of the terminal device in the low-power Bluetooth device according to the first response message.

[0112] As Figure 3 shown, in the above S204 step, the step of communicating with the terminal device according to the response message includes:

[0113] S301: Establish a communication connection with the terminal device according to the first response message.

[0114] Optionally, the first response message can be a message for the terminal device to send to the low-power Bluetooth device for connection. Exemplarily, the user can scan the low-power Bluetooth device through the application on the terminal device, add the low-power Bluetooth device, and complete the registration and first connection with the low-power Bluetooth device. When the terminal device sends a first response message to the low-power Bluetooth device, it can be considered that the low-power Bluetooth device and the terminal device have successfully established a connection.

[0115] S302: Read and store the registration information from the first response message according to the first response message, and modify the registration status to registered.

[0116] Optionally, the first response message can indicate to the low-power Bluetooth device that the registration of the terminal device is successful. The first response message can include the device data of the terminal device. After receiving the first response message, the low-power Bluetooth device can obtain the device data of the terminal device by parsing the first response message, and store the device data of the terminal device as registration information in the low-power Bluetooth device.

[0117] Optionally, after receiving the first response message, the low-power Bluetooth device may modify the registration status of the terminal device to registered, modify the connection status to non-first connection, and stop sending the unregistered normal broadcast message and the first abnormal broadcast message to the terminal device.

[0118] In the embodiment of the present application, the low-power Bluetooth device establishes a connection with the terminal device by sending an unregistered normal broadcast message and a first abnormal broadcast message, and obtains the registration data of the terminal device through the unregistered normal broadcast. Among them, the unregistered normal broadcast is in the central peripheral mode, and the first abnormal broadcast is in the beacon mode. The corresponding application on the terminal device is awakened through the first abnormal broadcast, and device registration and connection are performed through the unregistered normal broadcast. In this way, low power consumption and low resource occupancy of the communication between the two can be achieved.

[0119] The above is the description of the communication process with the registration status being unregistered. Next, the above S202 step will be further described. Sending the broadcast message corresponding to the registration status according to the registration status of the low-power Bluetooth device includes:

[0120] If the registration status is registered, then send a registered normal broadcast message and a non-first abnormal broadcast message.

[0121] Optionally, if the registration status of the low-power Bluetooth device and the terminal device is registered, that is, the device information of the terminal device is included in the low-power Bluetooth device, the low-power Bluetooth device may send a registered normal broadcast message and a non-first abnormal broadcast message to the terminal device.

[0122] Optionally, the registered normal broadcast message may be a broadcast message sent by the low-power Bluetooth device as a peripheral role in the central peripheral mode.

[0123] Optionally, the non-first abnormal broadcast message may be a broadcast message sent by the low-power Bluetooth device in the beacon mode.

[0124] Exemplarily, the low-power Bluetooth device may send a non-first abnormal broadcast message to the terminal device to wake up the atomic service of the terminal device. The user may enter the application through the atomic service. At this time, the low-power Bluetooth device may send a registered normal broadcast message to the mobile terminal, and the mobile terminal completes scanning, discovery, and connection of the registered normal broadcast message, that is, it can be considered that the user successfully connects to the low-power Bluetooth device through the application.

[0125] Optionally, the low-power Bluetooth device may intermittently send the registered normal broadcast message and the non-first abnormal broadcast message within a preset range. The registered normal broadcast message, the non-first abnormal broadcast message, and the above unregistered normal broadcast message and the first abnormal broadcast may have different message channels.

[0126] It should be noted that a device that is not connecting to the low-power Bluetooth device for the first time can be considered to have been registered on the low-power Bluetooth device. Therefore, a terminal device with a registered status can be considered to be a non-first connection. As another possible implementation, when the registered status is registered, after the above low-power Bluetooth device sends a non-first abnormal broadcast message, if no response message is received within a preset period after sending the non-first abnormal broadcast message, the non-first abnormal broadcast message can be stopped from being sent.

[0127] If the registered status is registered, the above response message can be a second response message, and the second response message is a message for establishing a connection.

[0128] The above communication with the terminal device according to the response message includes:

[0129] Establish a communication connection with the terminal device according to the second response message.

[0130] Optionally, the second response message can be a message sent by the registered terminal device to the low-power Bluetooth device for establishing a connection. Exemplarily, a user can scan the low-power Bluetooth device through an application on the terminal device, add the low-power Bluetooth device, and complete the connection with the low-power Bluetooth device. When the terminal device sends a second response message to the low-power Bluetooth device, it can be considered that the low-power Bluetooth device and the terminal device have successfully established a connection.

[0131] In the embodiments of the present application, the low-power Bluetooth device establishes a connection with the terminal device by sending a registered normal broadcast message and a non-first abnormal broadcast message, where the registered normal broadcast is in the central peripheral mode and the non-first abnormal broadcast is in the beacon mode. The non-first abnormal broadcast wakes up the application on the terminal device, and data transmission can be achieved through the registered normal broadcast. In this way, low power consumption and low resource occupancy of the two-way communication can be achieved through the switching of broadcasts.

[0132] The above is a description of the steps for the low-power Bluetooth device and the terminal device in the present application to perform registration and / or establish a connection in the registered and unregistered states. After establishing the connection, the method of the present application further includes:

[0133] If it is detected that the connection with the terminal device is disconnected, a registered normal broadcast message and a non-first abnormal broadcast message are sent to the terminal device.

[0134] Exemplarily, assume that the user exits the application or moves the application to the system background. At this time, in order to save resources, the connection between the terminal device and the low-power Bluetooth device can be disconnected.

[0135] Optionally, the low-power Bluetooth device can send the registered normal broadcast message and the non-first abnormal broadcast message to the terminal device after disconnection. Among them, the non-first abnormal broadcast message can be used to wake up the application or atomic service of the terminal device, and send an alarm message to the terminal device through the atomic service.

[0136] It should be noted that the low-power Bluetooth device can re-establish a connection with the terminal device by sending the registered normal broadcast message and the non-first abnormal broadcast message and receiving the response message of the terminal device.

[0137] In the embodiment of the present application, after the low-power Bluetooth device is disconnected from the terminal device, the low-power Bluetooth device can send an alarm message to the terminal device through the non-first abnormal broadcast message, and can also re-establish a connection with the terminal device through the registered normal broadcast message and the non-first abnormal broadcast message, ensuring the immediacy of alarm message transmission, and also taking into account low power consumption and low resource occupancy.

[0138] The above are all descriptions of communication on the low-power Bluetooth device side. As Figure 1 shown, in the scenario where the low-power Bluetooth device communicates with the terminal device, the terminal device also needs to respond to establish a connection and perform data transmission. Next, a communication method of a terminal device provided in the present application will be described. The execution subject of this method can be, for example, the terminal device. As Figure 4 shown, the communication method of the terminal device includes:

[0139] S401: Receive the broadcast message sent by the low-power Bluetooth device.

[0140] Optionally, after the low-power Bluetooth device sends the broadcast message in the above S201 step, the terminal device within the preset range of the low-power Bluetooth device can receive the broadcast message.

[0141] Optionally, the broadcast message can be one of an unregistered normal broadcast message, a first abnormal broadcast message, a registered normal broadcast message, and a non-first abnormal broadcast message.

[0142] S402: Determine the registration status of the low-power Bluetooth device according to the broadcast message.

[0143] Optionally, the terminal device can determine the registration status of the low-power Bluetooth device according to the broadcast message.

[0144] As a possible implementation, the terminal device can determine the registration status of the low-power Bluetooth device according to the type of the broadcast message. Assuming that the broadcast message received by the terminal device is an unregistered normal broadcast message or a first abnormal broadcast message, the registration status can be determined as unregistered. Assuming that the broadcast message received by the terminal device is a registered normal broadcast message or a non-first abnormal broadcast message, the registration status can be determined as registered.

[0145] As another possible implementation, the terminal device can identify the registration device information in the broadcast message to determine the registration status of the low-power Bluetooth device. If the registration device information in the broadcast message is identified to include the information of the terminal device, the registration status of the terminal device is registered; otherwise, it is unregistered.

[0146] S403: Communicate with the low-power Bluetooth device according to the registration status of the low-power Bluetooth device.

[0147] Optionally, the terminal device communicates with the low-power Bluetooth device. For example, it can be to register and establish a connection, or establish a connection with the low-power Bluetooth device.

[0148] Next, the communication with the low-power Bluetooth device according to the registration status of the low-power Bluetooth device will be described. The above S403 step includes:

[0149] If the registration status is unregistered, according to the registration result of the user for the low-power Bluetooth device, send a first response message to the low-power Bluetooth device to establish a connection with the low-power Bluetooth device and upload the registration information to the server. The first response message includes the registration information.

[0150] Optionally, after the terminal device receives the broadcast message sent by the low-power Bluetooth device, it can determine that the broadcast message is an unregistered normal broadcast message or a first abnormal broadcast message by reading the data in the broadcast message. Exemplarily, in the characterization data of the unregistered normal broadcast message and the first abnormal broadcast message, the registration status of the terminal device and the low-power Bluetooth device can be unregistered, and the connection status can be the first connection.

[0151] Exemplarily, after the terminal device receives the first abnormal broadcast message, it can start the atomic service. The user can enter the application through the atomic service, scan and discover the low-power Bluetooth device, and fill in the registration information to complete the registration and connection.

[0152] It should be noted that the process in which the user scans and discovers the low-power Bluetooth device on the terminal device and fills in the registration information to complete the registration and connection is the process in which the terminal device scans, discovers, and connects to the unregistered normal broadcast message.

[0153] Optionally, after successful connection, the terminal device may send a first response message to the low-power Bluetooth device to prompt the low-power Bluetooth device that the registration and connection are successful. At this time, the terminal device may upload the registration information to the server, and the low-power Bluetooth device may parse the first response message to obtain and store the registration information of the terminal device. Exemplarily, after receiving the first response message from the terminal device, the low-power Bluetooth device may store the registration information of the terminal device, modify the registration status of the terminal device on the low-power Bluetooth device to registered, and modify the connection status to non-first connection.

[0154] Optionally, after the terminal device and the low-power Bluetooth device are registered and bound, the terminal device may store the registration information locally or upload the registration information to the server. When establishing a connection again, it may connect to the low-power Bluetooth device for the first or non-first time according to the registration information stored locally or read from the server.

[0155] It should be noted that when the terminal device and the low-power Bluetooth device are successfully registered and connected, it can be considered that the terminal device communicates with the low-power Bluetooth device through the registered normal broadcast message.

[0156] Next, in combination with Figure 5 the example, the steps of communication between the terminal device and the low-power Bluetooth device in the unregistered case are further described.

[0157] As Figure 5 shown, the low-power Bluetooth device intermittently sends an unregistered normal broadcast message and a first super-normal broadcast message to the terminal device. The terminal device receives the first super-normal broadcast message, pulls up the atomic service, scans the unregistered normal broadcast message, completes registration, establishes a connection, and sends a first response message to the low-power Bluetooth device. The low-power Bluetooth device stores the registration information of the terminal device according to the first response message, and modifies the characterization data of the terminal device in the firmware program of the low-power Bluetooth device. The characterization data may be the characterization data in the link layer packet structure shown in Table 1, modifies the registration status in the characterization data to registered, and modifies the connection status to non-first connection.

[0158] The above is the description of the steps of communication between the terminal device side and the low-power Bluetooth device when the registration status is unregistered. Next, the situation where the registration status is registered is described. The above step S403 further includes:

[0159] If the registration status is registered, send a second response message to the low-power Bluetooth device to establish a connection with the low-power Bluetooth device.

[0160] Optionally, after receiving a non-first abnormal broadcast message, the terminal device can launch an atomic service, through which the user can enter the application, scan and discover low-power Bluetooth devices, and establish a connection with them.

[0161] It should be noted that the steps of the user scanning, discovering, and connecting to a low-power Bluetooth device on the terminal device can be regarded as the process of the terminal device scanning, discovering, and connecting to a registered normal broadcast message.

[0162] Next, in combination with Figure 6 the following example, the steps of communication between the terminal device and the low-power Bluetooth device in the case of registration will be further described.

[0163] As shown in Figure 6 , the low-power Bluetooth device intermittently sends registered normal broadcast messages and non-first abnormal broadcast messages to the terminal device. The terminal device receives the non-first abnormal broadcast message, launches the atomic service, scans the registered normal broadcast message, completes the connection, and sends a second response message to the low-power Bluetooth device.

[0164] It should be noted that in the case of registration, the terminal device can identify the registered normal broadcast message, automatically or manually connect to a low-power Bluetooth device that has been bound, and thus, in the mode of a central peripheral, perform data writing, reading, and notification.

[0165] In some usage scenarios, the user may need to unbind a connected terminal device and a low-power Bluetooth device. The following are the steps for unbinding.

[0166] As a possible implementation, the user can unbind on the terminal device side. The specific process can be, for example: the terminal device performs an unbinding process on the registration information, uploads the information, stores it locally, and issues a download instruction to control the low-power Bluetooth device firmware to perform an unbinding process on the characterization data.

[0167] As another possible implementation, the user can unbind the low-power Bluetooth device on the low-power Bluetooth device side according to a preset unbinding mechanism, and change the characterization data to unregistered and first connection.

[0168] Based on the same inventive concept, embodiments of the present application also provide a communication device for a low-power Bluetooth device corresponding to the communication method of the low-power Bluetooth device, and a communication device for a terminal device corresponding to the communication method of the terminal device. Since the principle of solving problems by the devices in the embodiments of the present application is similar to that of the communication method of the low-power Bluetooth device and the communication method of the terminal device in the above embodiments of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be elaborated.

[0169] Referring to Figure 7As shown in the figure, it is a schematic diagram of a communication device of a low-power Bluetooth device provided by an embodiment of the present application. The device includes: a determination module 701, a sending module 702, a receiving module 703, and a first communication module 704, where:

[0170] The determination module 701 is configured to: after the low-power Bluetooth device is started, determine the registration status of the low-power Bluetooth device, and the registration status is used to indicate whether the low-power Bluetooth device is registered on the terminal device;

[0171] The sending module 702 is configured to: send a broadcast message corresponding to the registration status according to the registration status of the low-power Bluetooth device;

[0172] The receiving module 703 is configured to: receive a response message from the terminal device, and the response message includes: a message indicating successful registration, and / or, a message for establishing a connection;

[0173] The first communication module 704 is configured to: communicate with the terminal device according to the response message.

[0174] Optionally, the sending module 702 is further configured to:

[0175] If the registration status is unregistered, send an unregistered normal broadcast message and a first abnormal broadcast message.

[0176] Optionally, the first communication module 704 is further configured to:

[0177] Establish a communication connection with the terminal device according to the first response message;

[0178] Read and store the registration information from the second response message according to the first response message, and modify the registration status to registered.

[0179] Optionally, the sending module 702 is further configured to:

[0180] If the registration status is registered, send a registered normal broadcast message and a non-first abnormal broadcast message.

[0181] Optionally, the first communication module 704 is further configured to:

[0182] Establish a communication connection with the terminal device according to the second response message.

[0183] Refer to Figure 8 As shown in the figure, it is a schematic diagram of a communication device of a terminal device provided by an embodiment of the present application. The device includes: a message receiving module 801, a status determination module 802, and a second communication module 803, where:

[0184] The message receiving module 801 is configured to: receive a broadcast message sent by the low-power Bluetooth device;

[0185] A status determination module 802, configured to: determine the registration status of the low-power Bluetooth device according to the broadcast message;

[0186] A second communication module 803, configured to: communicate with the low-power Bluetooth device according to the registration status of the low-power Bluetooth device.

[0187] Optionally, the second communication module 803 is further configured to:

[0188] If the registration status is unregistered, send a first response message to the low-power Bluetooth device according to the registration result of the user for the low-power Bluetooth device, so as to establish a connection with the low-power Bluetooth device, and upload the registration information to the server. The first response message includes the registration information.

[0189] Optionally, the second communication module 803 is further configured to:

[0190] If the registration status is registered, send a second response message to the low-power Bluetooth device to establish a connection with the low-power Bluetooth device.

[0191] For the processing flow of each module in the device and the interaction flow between modules, reference can be made to the relevant descriptions in the above method embodiments, which will not be elaborated here.

[0192] In the embodiments of the present application, by sending different broadcast messages to terminal devices with different registration statuses, registration or connection with the terminal device can be achieved by switching the broadcast message, so as to realize the registration and connection of the terminal device with the low-power Bluetooth device under the conditions of low power consumption and low resource occupancy, instantaneously obtain the uplink data of the low-power Bluetooth device, and instantaneously control the downlink data of the low-power Bluetooth device through the mobile terminal, thereby taking into account the requirements of low power consumption, low resource occupancy and communication instantaneity in the communication between the low-power Bluetooth device and the terminal device.

[0193] The embodiments of the present application further provide a low-power Bluetooth device, as Figure 9 shown, which is a schematic structural diagram of the low-power Bluetooth device provided by the embodiments of the present application, including: a first processor 91, a first memory 92 and a bus. The first memory 92 stores machine-readable instructions executable by the first processor 91 (such as Figure 7 the execution instructions corresponding to the determination module 701, the sending module 702, the receiving module 703 and the first communication module 704 in the device in

[0194] When the low-power Bluetooth device runs, the first processor 91 communicates with the first memory 92 through the bus. When the machine-readable instructions are executed by the first processor 91, the processing of the communication method of the above low-power Bluetooth device is executed. Figure 10As shown in the figure, it is a schematic structural diagram of a terminal device provided by an embodiment of the present application, including: a second processor 1001, a second memory 1002, and a second bus. The second memory 1002 stores machine-readable instructions executable by the second processor 1001 (for example, Figure 8 execution instructions corresponding to the message receiving module 801, the status determination module 802, and the second communication module 803 in the device in

[0195] ), etc.). When the terminal device is running, the second processor 1001 communicates with the second memory 1002 through the bus. When the machine-readable instructions are executed by the second processor 1001, the communication method of the above terminal device is processed.

[0196] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described systems and devices can refer to the corresponding processes in the method embodiments, which will not be elaborated in this application. In several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division, and there can be other division methods in actual implementation. For another example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some communication interfaces. The indirect couplings or communication connections of the devices or modules can be in electrical, mechanical, or other forms.

[0197] In addition, each functional unit in various embodiments of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. If the function is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, may be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.

[0198] The above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of changes or substitutions, which should all be covered by the protection scope of the present application.

Claims

1. A communication method for a low-power Bluetooth device, characterized in that Applied to a low-power Bluetooth device, the method includes: After the low-power Bluetooth device is started, determining the registration status of the low-power Bluetooth device, where the registration status is used to indicate whether the low-power Bluetooth device is registered on the terminal device; According to the registration status of the low-power Bluetooth device, sending a broadcast message corresponding to the registration status, where the broadcast message includes: a broadcast message sent by the low-power Bluetooth device in the central peripheral mode, and a broadcast message sent by the low-power Bluetooth device in the beacon mode; Receiving a response message from the terminal device, where the response message includes: a message indicating successful registration, and / or, a message for establishing a connection; Communicating with the terminal device according to the response message; The step of sending a broadcast message corresponding to the registration status according to the registration status of the low-power Bluetooth device includes: If the registration status is unregistered, sending an unregistered normal broadcast message and a first abnormal broadcast message, where the unregistered normal broadcast is in the central peripheral mode, and the first abnormal broadcast is in the beacon mode. The corresponding application on the terminal device is awakened through the first abnormal broadcast, and device registration and connection are performed through the unregistered normal broadcast; If the registration status is registered, sending a registered normal broadcast message and a non-first abnormal broadcast message, where the registered normal broadcast is in the central peripheral mode, and the non-first abnormal broadcast is in the beacon mode. The application on the terminal device is awakened through the non-first abnormal broadcast, and data transmission is achieved through the registered normal broadcast.

2. The method according to claim 1, wherein The response message includes: a first response message, where the first response message is a message for establishing a connection and indicating successful registration; Communicating with the terminal device according to the response message includes: Establishing a communication connection with the terminal device according to the first response message; Reading and storing registration information from the first response message according to the first response message, and modifying the registration status to registered.

3. The method according to claim 1, wherein The response message is a second response message, where the second response message is a message for establishing a connection; Communicating with the terminal device according to the response message includes: Establishing a communication connection with the terminal device according to the second response message.

4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: If it is detected that the connection with the terminal device is disconnected, sending a registered normal broadcast message and a non-first abnormal broadcast message to the terminal device.

5. A communication method for a terminal device, characterized in that, Applied to a terminal device, the method includes: Receiving a broadcast message sent by a low-power Bluetooth device, where the broadcast message includes: a broadcast message sent by the low-power Bluetooth device in the central peripheral mode, and a broadcast message sent by the low-power Bluetooth device in the beacon mode; Determining the registration status of the low-power Bluetooth device according to the broadcast message; Communicating with the low-power Bluetooth device according to the registration status of the low-power Bluetooth device; When the registration status of the low-power Bluetooth device is unregistered, the broadcast message includes: an unregistered normal broadcast message and a first abnormal broadcast message. Among them, the unregistered normal broadcast is in the central peripheral mode, and the first abnormal broadcast is in the beacon mode. The first abnormal broadcast is used to wake up the corresponding application on the terminal device, and the unregistered normal broadcast is used for device registration and connection. When the registration status of the low-power Bluetooth device is registered, the broadcast message includes: a registered normal broadcast message and a non-first abnormal broadcast message. Among them, the registered normal broadcast is in the central peripheral mode, and the non-first abnormal broadcast is in the beacon mode. The non-first abnormal broadcast is used to wake up the application on the terminal device, and the registered normal broadcast is used to implement data transmission.

6. The method according to claim 5, characterized in that, Communicating with the low-power Bluetooth device according to the registration status of the low-power Bluetooth device includes: If the registration status is unregistered, according to the registration result of the user for the low-power Bluetooth device, send a first response message to the low-power Bluetooth device to establish a connection with the low-power Bluetooth device and upload the registration information to the server. The registration information is included in the first response message.

7. The method according to claim 5, wherein Communicating with the low-power Bluetooth device according to the registration status of the low-power Bluetooth device includes: If the registration status is registered, send a second response message to the low-power Bluetooth device to establish a connection with the low-power Bluetooth device.

8. A low-power Bluetooth device, characterized in that, Includes: A first processor, a first memory, and a first bus. The first memory stores machine-readable instructions executable by the first processor. When the fault detection device runs, the first processor communicates with the first memory through the first bus. The first processor executes the machine-readable instructions to perform the steps of the communication method of the low-power Bluetooth device as described in any one of claims 1-4.

9. A terminal device, characterized in that, Includes: A second processor, a second memory, and a second bus. The second memory stores machine-readable instructions executable by the second processor. When the fault detection device runs, the second processor communicates with the second memory through the second bus. The second processor executes the machine-readable instructions to perform the steps of the communication method of the terminal device as described in any one of claims 5-7.

10. A communication system, characterized in that, The communication system includes the low-power Bluetooth device and the terminal device as described in any one of claims 1-9.

Citation Information

Patent Citations

  • Instrument communication bus converter and conversion device based on BLE Bluetooth

    CN114885313A