Message Processing Method and System for Wearable Devices Based on BLE Protocol

Through the message processing method based on the BLE protocol, the problems of low message processing efficiency and insufficient cross-platform adaptation capabilities of traditional wearable devices are solved, efficient message processing and cross-platform adaptation are achieved, and user experience and device battery life are improved.

CN120017632BActive Publication Date: 2025-06-17SHENZHEN CORE CLOUD TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510491951.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-18
Publication Date
2025-06-17
Estimated Expiration
2045-04-18

AI Technical Summary

Technical Problem

Message processing of traditional wearable devices relies on serial port communication, resulting in frequent parameter adjustments, reduced message processing efficiency, and lack of cross-platform adaptability.

Method used

The message processing method based on the BLE protocol is adopted, and by identifying the data transmission channel between the wearable device and the paired device, analyzing the protocol interaction characteristics, setting a cross-platform adaptation mechanism, defining message reception conditions and processing priority, and creating a low-power management method and an adaptive wake-up mechanism.

Benefits of technology

It realizes cross-platform adaptation of wearable devices, improves message processing efficiency, ensures priority processing of messages that users care about the most, avoids system lag, extends device battery life, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120017632B_ABST
    Figure CN120017632B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of wearable devices, and discloses a method and system for message processing of wearable devices based on the BLE protocol, including: identifying the data transmission channel between the wearable device and the paired device, analyzing the protocol interaction characteristics between the wearable device and the paired device to identify the operating system category of the paired device, and setting the cross-platform adaptation mechanism of the wearable device; defining the message reception conditions and message parsing rules of the wearable device to set the message processing priority of the wearable device; identifying the message queue status of the wearable device and creating a low-power management method for the wearable device; setting the adaptive wake-up mechanism of the wearable device according to the user status, message processing priority, and low-power recovery rules; and performing intelligent message processing of the wearable device by combining the cross-platform adaptation mechanism, message processing priority, adaptive wake-up mechanism, and personalized message notification method. The present invention can achieve cross-platform adaptation of wearable devices and improve the message processing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method and system for message processing of wearable devices based on the BLE protocol, belonging to the technical field of wearable devices. Background Art

[0002] A wearable device refers to a portable device that can be worn on a user's body or clothing, usually equipped with components such as sensors, processors, memories, batteries, and wireless communication modules to support various functions. For example, it can collect user movement data through sensors such as accelerometers, gyroscopes, and heart rate monitors, and synchronize the data to a user's mobile device or cloud storage via Bluetooth or Wi-Fi. With the booming development of Internet technology and the rapid improvement of electronic product performance, wearable devices are gradually becoming a necessity in people's lives, and their message processing capabilities have become one of the important indicators to measure their market competitiveness. Therefore, to meet the growing needs of users, wearable device manufacturers need to continuously optimize the message processing mechanism and improve the device performance and user experience.

[0003] The message processing of traditional wearable devices mainly relies on serial communication. The wearable device is connected to other devices through a serial cable to achieve data transmission. However, the serial port parameters of different devices vary greatly, and there is no unified standard in the industry. When interacting with wearable devices, it may be necessary to frequently adjust the parameters, resulting in a significant decrease in message processing efficiency.

[0004] Therefore, there is an urgent need for a solution that can achieve cross-platform adaptation of wearable devices and improve message processing efficiency. Summary of the Invention

[0005] The present invention provides a method and system for message processing of wearable devices based on the BLE protocol, and its main purpose is to achieve cross-platform adaptation of wearable devices and improve message processing efficiency.

[0006] To achieve the above object, a method for message processing of wearable devices based on the BLE protocol provided by the present invention includes:

[0007] Obtain a wearable device and a paired device that support the BLE protocol, based on the BLE protocol, identify the data transmission channel between the wearable device and the paired device, and analyze the protocol interaction characteristics between the wearable device and the paired device according to the data transmission channel;

[0008] Based on the protocol interaction characteristics, identify the operating system category of the paired device, and set the cross-platform adaptation mechanism of the wearable device according to the operating system category and the BLE protocol;

[0009] According to the cross-platform adaptation mechanism, define the message reception conditions of the wearable device, set the message parsing rules of the wearable device based on the operating system category, and set the message processing priorities of the wearable device according to the message reception conditions and the message parsing rules;

[0010] Based on the message processing priorities, identify the message queue status of the wearable device, create a low-power management method for the wearable device according to the message queue status, and define the low-power recovery rules of the wearable device based on the low-power management method and the message processing priorities;

[0011] According to the wearable device, monitor the user status of the paired device in real time, define the personalized message notification method of the wearable device based on the user status, and set the adaptive wake-up mechanism of the wearable device according to the user status, the message processing priorities and the low-power recovery rules;

[0012] Combine the cross-platform adaptation mechanism, the message processing priorities, the adaptive wake-up mechanism and the personalized message notification method to perform intelligent message processing on the wearable device and obtain a message processing result.

[0013] Optionally, the analysis of the protocol interaction characteristics between the wearable device and the paired device according to the data transmission channel includes:

[0014] According to the data transmission channel, identify the data transmission direction between the wearable device and the paired device and determine the data transmission trigger condition between the wearable device and the paired device;

[0015] Based on the data transmission direction and the data transmission trigger condition, extract the transmission data of the data transmission channel;

[0016] Analyze the data structure of the transmission data and analyze the data interaction scenario between the wearable device and the paired device according to the data structure;

[0017] Based on the data interaction scenario, identify the message type of the data transmission channel;

[0018] According to the message type and the data interaction scenario, determine the protocol interaction behavior between the wearable device and the paired device;

[0019] Based on the protocol interaction behavior, analyze the protocol interaction characteristics between the wearable device and the paired device.

[0020] Optionally, the setting of the cross-platform adaptation mechanism of the wearable device according to the operating system category and the BLE protocol includes:

[0021] Set the adaptive configuration parameters of the BLE protocol according to the operating system category;

[0022] Identify the message push channel corresponding to the operating system category, and based on the message push channel, determine the data transmission method and data format of the operating system category;

[0023] Set the message conversion unit of the operating system category according to the data transmission method and the data format;

[0024] Real-time monitor the BLE connection signal strength of the wearable device, and analyze the connection signal quality of the wearable device according to the BLE connection signal strength;

[0025] Create a fault tolerance control system for the BLE protocol based on the connection signal quality;

[0026] Set the cross-platform adaptation mechanism of the wearable device by combining the adaptive configuration parameters, the message conversion unit and the fault tolerance control system.

[0027] Optionally, define the message receiving conditions of the wearable device according to the cross-platform adaptation mechanism, including:

[0028] Determine the adapted device type of the wearable device according to the cross-platform adaptation mechanism;

[0029] Analyze the message receiving influencing factors of the wearable device based on the adapted device type;

[0030] Identify the user's message receiving preference of the wearable device according to the message receiving influencing factors;

[0031] Set the factor weight of the message receiving influencing factors based on the user's message receiving preference;

[0032] Calculate the message importance score of the wearable device according to the factor weight and the message receiving influencing factors;

[0033] Set the message filtering condition of the wearable device based on the message importance score, and set the message notification order corresponding to the adapted device type;

[0034] Define the message receiving conditions of the wearable device by combining the message importance score, the message filtering condition and the message notification order.

[0035] Optionally, set the message processing priority of the wearable device according to the message receiving conditions and the message parsing rules, including:

[0036] Extract the message content of the wearable device according to the message reception conditions, and locate the message source of the message content;

[0037] Based on the message source, determine the message characteristics of the message content;

[0038] Use the following formula to identify the device performance requirements corresponding to the message characteristics:

[0039] ;

[0040] where Q represents the device performance requirements corresponding to the message characteristics, F represents the ideal performance score of the device when processing specific message characteristics, represents the actual performance score of the device under the g-th type of message characteristics, represents the weight of the g-th type of message characteristics, m represents the total number of message characteristics, g represents the message characteristic index, represents the Sigmoid function;

[0041] Construct a multi-device interaction mechanism for the message content according to the device performance requirements;

[0042] Based on the message parsing rules, extract the key message features under the multi-device interaction mechanism;

[0043] Analyze the user behavior intention of the wearable device according to the key message features;

[0044] Set the message priority of the wearable device based on the user behavior intention and the key message features;

[0045] Define the BLE communication standard and communication conflict resolution rules of the multi-device interaction mechanism according to the message priority;

[0046] Set the message processing priority of the wearable device in combination with the message priority, the BLE communication standard and the communication conflict resolution rules.

[0047] Optionally, the creation of the low-power management method of the wearable device according to the message queue state includes:

[0048] Based on the message queue state, extract the queue messages of the wearable device, and determine the message level, the corresponding occurrence frequency and the number of messages of the queue messages;

[0049] Set the sleep depth of the message queue state according to the message level, the occurrence frequency and the number of messages, and set the key event trigger conditions of the wearable device;

[0050] Analyze the change trend corresponding to the message queue state and the message level;

[0051] Based on the change trend and the critical event triggering condition, set a dynamic adjustment mechanism for the sleep depth;

[0052] According to the occurrence frequency, use the following formula to calculate the task load index of the wearable device:

[0053] ;

[0054] where, R represents the task load index of the wearable device, B represents the total amount of tasks that the wearable device needs to process, represents the occurrence frequency of the message level of the queue messages in the wearable device, represents the change trend of the task load, represents a variant of the Sigmoid function;

[0055] Combine the task load index and the dynamic adjustment mechanism to create a low-power management method for the wearable device.

[0056] Optionally, based on the low-power management method and the message processing priority, define the low-power recovery rules for the wearable device, including:

[0057] Based on the message processing priority, calculate the recovery delay time of the wearable device;

[0058] According to the recovery delay time, define the wake-up threshold of the wearable device and set the BLE signal transmission mode of the wearable device;

[0059] Combine the BLE signal transmission mode and the message processing priority to set the hierarchical response mode of the wearable device;

[0060] According to the low-power management method, determine the wake-up source order of the wearable device;

[0061] Based on the message processing priority and the wake-up source order, set the hierarchical wake-up mechanism of the wearable device;

[0062] Based on the wake-up threshold, the hierarchical wake-up mechanism and the hierarchical response mode, define the low-power recovery rules for the wearable device.

[0063] Optionally, based on the user state, define the personalized message notification method for the wearable device, including:

[0064] Based on the user state, collect the historical interaction data of the wearable device;

[0065] According to the historical interaction data, extract the context information corresponding to the user state;

[0066] Based on the described context information, identify the connection device corresponding to the wearable device;

[0067] Combine the described context information and the user state to set up the environment adaptation system of the wearable device;

[0068] According to the environment adaptation system, create a context synchronization mechanism between the wearable device and the connection device;

[0069] Based on the environment adaptation system and the user state, set the adaptive interface notification form of the wearable device;

[0070] Combine the environment adaptation system, the context synchronization mechanism and the adaptive interface notification form to define the personalized message notification method of the wearable device.

[0071] Optionally, based on the user state, the message processing priority and the low-power recovery rule, set up the adaptive wake-up mechanism of the wearable device, including:

[0072] Based on the user state, identify the user behavior pattern of the wearable device;

[0073] According to the user behavior pattern, extract the key monitors and auxiliary monitors of the wearable device;

[0074] Combine the key monitors and the auxiliary monitors to determine the monitor wake-up order of the wearable device;

[0075] Based on the message processing priority, set the hierarchical wake-up method of the key monitors and the auxiliary monitors;

[0076] According to the low-power recovery rule, identify the current BLE connection status of the key monitors and the auxiliary monitors;

[0077] Based on the current BLE connection status, set the BLE error reconnection mechanism of the key monitors and the auxiliary monitors;

[0078] Combine the hierarchical wake-up method, the monitor wake-up order and the BLE error reconnection mechanism to set up the adaptive wake-up mechanism of the wearable device.

[0079] To solve the above problems, the present invention also provides a message processing system for a wearable device based on the BLE protocol, and the system includes:

[0080] A protocol interaction module, which is used to obtain wearable devices and paired devices that support the BLE protocol, identify the data transmission channels between the wearable device and the paired device based on the BLE protocol, and analyze the protocol interaction characteristics between the wearable device and the paired device according to the data transmission channels;

[0081] A cross-platform adaptation module, which is used to identify the operating system category of the paired device based on the protocol interaction characteristics, and set the cross-platform adaptation mechanism of the wearable device according to the operating system category and the BLE protocol;

[0082] A message priority module, which is used to define the message reception conditions of the wearable device according to the cross-platform adaptation mechanism, set the message parsing rules of the wearable device based on the operating system category, and set the message processing priority of the wearable device according to the message reception conditions and the message parsing rules;

[0083] A power consumption management module, which is used to identify the message queue status of the wearable device based on the message processing priority, create a low-power management method for the wearable device according to the message queue status, and define the low-power recovery rules of the wearable device based on the low-power management method and the message processing priority;

[0084] A device wake-up module, which is used to monitor the user status of the paired device in real time according to the wearable device, define the personalized message notification method of the wearable device based on the user status, and set the adaptive wake-up mechanism of the wearable device according to the user status, the message processing priority and the low-power recovery rules;

[0085] A message processing module, which is used to perform intelligent message processing of the wearable device by combining the cross-platform adaptation mechanism, the message processing priority, the adaptive wake-up mechanism and the personalized message notification method to obtain a message processing result.

[0086] Compared with the problems described in the background art, in the embodiments of the present invention, by obtaining a wearable device and a paired device that support the BLE protocol, identifying the data transmission channel between the wearable device and the paired device, the protocol interaction characteristics between the wearable device and the paired device can be analyzed, the function support situations of the wearable device and the paired device can be understood, function matching and negotiation can be performed to ensure that both parties can correctly interact with data and use each other's functions, and interoperability can be achieved; further, in the embodiments of the present invention, by setting the cross-platform adaptation mechanism of the wearable device according to the operating system category and the BLE protocol, it can be ensured that all functions of the wearable device can be fully realized on different operating systems; in the embodiments of the present invention, by setting the message processing priority of the wearable device according to the message reception condition and the message parsing rule, it can be ensured that the wearable device preferentially processes and presents to the user the messages that the user cares most about or is most urgent, and at the same time, it can avoid system lag or slow response caused by processing too many messages at the same time, and ensure the stable operation of the system; further, in the embodiments of the present invention, by creating a low-power management method for the wearable device according to the message queue state, it can be ensured that critical tasks can be completed quickly and accurately, and avoid delays or losses of critical messages due to insufficient power, and guarantee the health and safety of users; in the embodiments of the present invention, by defining the low-power recovery rule of the wearable device based on the low-power management method and the message processing priority, while meeting the message processing requirements, the battery life of the device can be extended to the greatest extent; further, in the embodiments of the present invention, by defining the personalized message notification method of the wearable device based on the user state, it can avoid excessive message interference with the user and improve the user experience; in the embodiments of the present invention, by setting the adaptive wake-up mechanism of the wearable device based on the user state, the message processing priority, and the low-power recovery rule, the wake-up timing of the device can be accurately matched to ensure the normal operation of the key functions of the device; finally, in the embodiments of the present invention, by combining the cross-platform adaptation mechanism, the message processing priority, the adaptive wake-up mechanism, and the personalized message notification method, performing the intelligent message processing of the wearable device to obtain the message processing result, the communication between the wearable device and devices on different platforms can be realized, the adaptation cost and complexity caused by platform differences can be reduced, the stability and reliability of message processing can be improved, and at the same time, through the priority transmission of the BLE protocol, it can be ensured that critical information can reach the target device in a timely and accurate manner, and the overall efficiency and effectiveness of message processing can be improved. Therefore, a method and system for implementing message processing of a wearable device based on the BLE protocol provided by the embodiments of the present invention can achieve cross-platform adaptation of the wearable device and improve the message processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0087] Figure 1 It is a schematic flowchart of a method for implementing message processing of a wearable device based on the BLE protocol provided by an embodiment of the present invention;

[0088] Figure 2 This is a schematic diagram of the module for implementing the message processing system of a wearable device based on the BLE protocol provided by an embodiment of the present invention.

[0089] The implementation of the object, functional features, and advantages of the present invention will be further described in conjunction with the embodiments with reference to the accompanying drawings. Detailed implementation manners

[0090] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0091] The embodiments of the present application provide a method for processing messages of a wearable device based on the BLE protocol. The execution subjects of the method for processing messages of a wearable device based on the BLE protocol include, but are not limited to, at least one of electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiments of the present application. In other words, the method for processing messages of a wearable device based on the BLE protocol can be executed by software or hardware installed on a terminal device or a server device. The server includes, but is not limited to: a single server, a server cluster, a cloud server, or a cloud server cluster, etc.

[0092] Embodiment 1:

[0093] Refer to Figure 1 As shown, it is a flowchart of a method for processing messages of a wearable device based on the BLE protocol provided by an embodiment of the present invention. In this embodiment, the method for processing messages of a wearable device based on the BLE protocol includes:

[0094] S1. Obtain a wearable device and a paired device that support the BLE protocol, identify the data transmission channel between the wearable device and the paired device based on the BLE protocol, and analyze the protocol interaction characteristics between the wearable device and the paired device according to the data transmission channel.

[0095] In the embodiments of the present invention, by obtaining a wearable device and a paired device that support the BLE protocol, a communication connection can be established between the wearable device and the paired device to achieve message transmission. The BLE protocol refers to a low-power wireless communication protocol, which was introduced by the Bluetooth Special Interest Group starting from Bluetooth version 4.0 and is specifically used to achieve low-power and low-rate data transmission between devices. The wearable device refers to a portable electronic device that can be directly worn on the human body or integrated into the user's clothes or accessories, such as a smart watch. The paired device refers to other devices that have established a paired relationship with the wearable device through the BLE protocol, such as a mobile phone.

[0096] Furthermore, in the embodiment of the present invention, by identifying the data transmission channel between the wearable device and the paired device based on the BLE protocol, the wearable device and the paired device can communicate on a dedicated channel, effectively avoiding signal conflicts with other devices and improving the stability and reliability of communication. The data transmission channel refers to the specific path or medium for data transmission between the wearable device and the paired device under the BLE protocol framework.

[0097] Exemplarily, based on the BLE protocol, the data transmission channel between the wearable device and the paired device can be established by the paired device sending a service discovery request to obtain the list of services supported by the wearable device, and then for each service, sending a characteristic discovery request. By querying the attributes of the characteristics, the paired device can know the data transmission methods supported by the characteristics, and can also read descriptors such as data format and unit from the characteristic information. Once the paired device discovers the target service and characteristics and understands their attributes and descriptors, it can establish a data transmission channel based on this information.

[0098] In the embodiment of the present invention, by analyzing the protocol interaction characteristics between the wearable device and the paired device according to the data transmission channel, the function support situations of the wearable device and the paired device can be understood, function matching and negotiation can be carried out to ensure that both parties can correctly interact data and use each other's functions, realizing interoperability. The protocol interaction characteristics refer to the protocol-related characteristics and behavior patterns shown during the data transmission and communication between the BLE protocol-based wearable device and the paired device, such as the data format for data transmission between the wearable device and the paired device.

[0099] As an embodiment of the present invention, the analysis of the protocol interaction characteristics between the wearable device and the paired device according to the data transmission channel includes: identifying the data transmission direction between the wearable device and the paired device according to the data transmission channel and determining the data transmission trigger condition between the wearable device and the paired device; extracting the transmission data of the data transmission channel based on the data transmission direction and the data transmission trigger condition; parsing the data structure of the transmission data and analyzing the data interaction scenario between the wearable device and the paired device according to the data structure; identifying the message type of the data transmission channel based on the data interaction scenario; determining the protocol interaction behavior between the wearable device and the paired device according to the message type and the data interaction scenario; and analyzing the protocol interaction characteristics between the wearable device and the paired device based on the protocol interaction behavior.

[0100] Among them, the data transmission direction refers to the path along which data is transmitted between the wearable device and the paired device. The data transmission trigger condition refers to the trigger rule for the start of data transmission between the wearable device and the paired device. For example, when the wearable device detects that the number of steps exceeds 1000 steps, it automatically transmits the data to the paired device. The transmitted data refers to the specific information content transmitted between the wearable device and the paired device. The data structure refers to the organizational form and arrangement order of the transmitted data. The data interaction scenario refers to the specific situation in which data interaction occurs between the wearable device and the paired device. For example, in a sports monitoring scenario, the wearable device mainly transmits sports-related data, such as the distance traveled and the calories burned, to the paired device. The message type refers to the classification of different types of information units used when the wearable device and the paired device communicate based on the data transmission channel. Examples include connection request messages, data read request messages, data write request messages, etc. The protocol interaction behavior refers to a series of actions and operation methods taken by both devices when data interaction occurs between the wearable device and the paired device according to a specific communication protocol. Examples include data transmission behavior and command execution behavior.

[0101] Optionally, based on the data transmission channel, the data transmission trigger condition between the wearable device and the paired device can be determined using application code. For example, by examining the conditional judgment and event listening mechanisms in the code, the specific conditions for triggering data transmission can be identified. The data structure of the transmitted data can be parsed using a packet analysis tool, such as the Wireshark tool. Based on the data structure, the data interaction scenario between the wearable device and the paired device can be analyzed using a protocol analyzer. Based on the data interaction scenario, the message type of the data transmission channel can be identified using message header identifiers. For example, one byte or several bytes are specifically used to represent the encoding of the message type. By extracting and parsing these header identifier fields, the type of the message can be quickly determined. Based on the message type and the data interaction scenario, the protocol interaction behavior between the wearable device and the paired device can be determined using a state machine modeling tool, such as the UML State Machine tool.

[0102] S2. Based on the protocol interaction characteristics, identify the operating system category of the paired device, and set the cross-platform adaptation mechanism of the wearable device according to the operating system category and the BLE protocol.

[0103] In the embodiment of the present invention, by identifying the operating system category of the paired device based on the protocol interaction characteristics, it can be ensured that data can be accurately and stably transmitted on different systems, improving the reliability of communication. The operating system category refers to the classification of operating systems based on the characteristic differences in protocol interaction, including Apple's iOS system and the Android system.

[0104] Optionally, based on the protocol interaction characteristics, the operating system category of the paired device can be identified through extended protocols. For example, the iOS system has its own unique protocol extensions, such as the protocol content related to MFi (Made for iPhone / iPad / iPod) authentication. Some Android devices also use specific Android extended protocols to implement functions such as fast pairing and device discovery, such as the Android Fast Pair protocol.

[0105] Furthermore, in the embodiments of the present invention, by setting the cross-platform adaptation mechanism of the wearable device according to the operating system category and the BLE protocol, it can be ensured that all functions of the wearable device can be fully realized on different operating systems. The cross-platform adaptation mechanism refers to a series of technologies and strategies that enable the wearable device to operate stably and efficiently on different operating systems (such as Apple iOS and Android Android) and provide a consistent experience for users.

[0106] As an embodiment of the present invention, setting the cross-platform adaptation mechanism of the wearable device according to the operating system category and the BLE protocol includes: setting the adaptive configuration parameters of the BLE protocol according to the operating system category; identifying the message push channels corresponding to the operating system category, and determining the data transmission method and data format of the operating system category based on the message push channels; setting the message conversion unit of the operating system category according to the data transmission method and the data format; real-time monitoring the BLE connection signal strength of the wearable device, and analyzing the connection signal quality of the wearable device according to the BLE connection signal strength; creating a fault tolerance control system for the BLE protocol based on the connection signal quality; and setting the cross-platform adaptation mechanism of the wearable device by combining the adaptive configuration parameters, the message conversion unit, and the fault tolerance control system.

[0107] Among them, the adaptive configuration parameter refers to an adaptive adjustment parameter set to achieve the best state of the BLE (Bluetooth Low Energy) connection between the wearable device and the paired device according to different operating system categories. For example, for iOS devices, ATT_MTU≥128 bytes, Connection Interval≤20ms are configured, and LE Coded PHY is enabled. The message push channel refers to the service or mechanism used by different operating systems to push messages to the wearable device. For example, when the wearable device is paired with iOS, messages can be pushed to the device through APNS. Wearable devices running on the Android system can use FCM to receive messages from the server. The data transmission method refers to the method used for messages to be transmitted between the sender and the receiver, such as the MQTT data transmission method. The data format refers to the structure and encoding method used by messages during transmission. For example, many message push services use the JSON format to transmit data. The message conversion unit refers to a system component that converts data from different message push channels into a unified transmission format. For example, it converts the JSON data of APNS and the JSON data of FCM into a unified message object inside the wearable device. The BLE signal strength refers to the strength of the BLE connection signal between the wearable device and the paired device. The connection signal quality refers to the strength and clarity of the transmission signal on the connection established between the wearable device and the paired device. The fault tolerance control system refers to a set of mechanisms and strategies for dealing with abnormal BLE connection situations.

[0108] Optionally, according to the operating system category, the adaptive configuration parameters of the BLE protocol can be set through a predefined configuration table. For example, the iOS system may have specific requirements for the connection interval and the broadcast interval, and corresponding optimization parameters can be set for the iOS system in the configuration table. The message push channel corresponding to the operating system category can be identified using a system identification field. For example, the User - Agent field in the HTTP request header contains information about the type and version of the operating system. Based on the message push channel, the data transmission method and data format of the operating system category can be determined at the message protocol level. According to the data transmission method and the data format, the message conversion unit of the operating system category can be set using data format conversion technology, such as the TLV encoding technology. The BLE connection signal strength of the wearable device can be monitored in real time through a Bluetooth tester. Based on the connection signal quality, the fault tolerance control system of the BLE protocol can be created using an adaptive learning mechanism.

[0109] S3. According to the cross-platform adaptation mechanism, define the message reception conditions of the wearable device, set the message parsing rules of the wearable device based on the operating system category, and set the message processing priority of the wearable device according to the message reception conditions and the message parsing rules.

[0110] In the embodiment of the present invention, by defining the message reception conditions of the wearable device according to the cross-platform adaptation mechanism, it is possible to only receive messages from specific contacts, specific applications, or messages containing specific keywords, avoiding interference from invalid information. The message reception conditions refer to the rules set by the wearable device under the cross-platform adaptation mechanism to accurately, efficiently, and securely receive messages. For example, if a user is interested in sports events, messages containing keywords such as "football" and "basketball" can be set as the reception objects, so that relevant sports information can be obtained in a timely manner.

[0111] As an embodiment of the present invention, the defining of the message reception conditions of the wearable device according to the cross-platform adaptation mechanism includes: determining the adapted device type of the wearable device according to the cross-platform adaptation mechanism; analyzing the message reception influencing factors of the wearable device based on the adapted device type; identifying the user's message reception preferences of the wearable device according to the message reception influencing factors; setting the factor weights of the message reception influencing factors based on the user's message reception preferences; calculating the message importance score of the wearable device according to the factor weights and the message reception influencing factors; setting the message filtering conditions of the wearable device based on the message importance score, and setting the message notification order corresponding to the adapted device type; and defining the message reception conditions of the wearable device by combining the message importance score, the message filtering conditions, and the message notification order.

[0112] Among them, the adapted device type refers to other device types that the wearable device can interact with and adapt to, such as iPhone for iOS system and various mobile phones for Android system. The message reception influencing factors refer to various conditions and situations that will affect the wearable device's message reception, such as the device processor speed. The user's message reception preferences refer to the user's preferences and reception tendencies for different types of messages. For example, some users only receive work messages during working hours and block most non-urgent messages during rest time. The factor weight refers to the relative importance degree used to represent the factor in calculating the message importance. The message importance score refers to a value obtained by comprehensively evaluating each message according to the message reception influencing factors and their corresponding weights. The message filtering conditions refer to the rules for the wearable device to receive and filter messages based on the message importance score. The message notification order refers to the order of message reminders determined according to certain rules when the wearable device receives multiple messages.

[0113] Optionally, the message reception influencing factors of the wearable device can be analyzed using a linear regression algorithm based on the adapted device type. Based on the message reception influencing factors, the user's information reception preference of the wearable device can be identified through an association rule mining algorithm. Based on the message importance score, the message filtering condition of the wearable device can be set using a fixed threshold method. For example, the threshold is set to 70 points, and only messages with an importance score of 70 points or above will be received by the wearable device. Based on the message importance score, the message notification order corresponding to the adapted device type can be set by an importance threshold classification method. For example, for a smartwatch, messages with an importance score higher than 80 points are set as first-level notifications, those with a score of 70 - 80 points are second-level notifications, and those with a score lower than 70 points are third-level notifications. Based on the factor weights and the message reception influencing factors, the message importance score of the wearable device can be calculated using a weighted summation algorithm.

[0114] Furthermore, in the embodiments of the present invention, by setting the message parsing rules of the wearable device based on the operating system category, the consumption of computing resources and power can be reduced, and the overall performance and battery life of the device can be improved. The message parsing rules refer to a set of specifications and guidelines for converting the received message data into an understandable and processable format and content.

[0115] Optionally, the message parsing rules of the wearable device can be set through a programming language. For example, by writing code logic and using methods such as string processing and data structure operations to parse the message data.

[0116] In the embodiments of the present invention, by setting the message processing priority of the wearable device according to the message reception conditions and the message parsing rules, it can be ensured that the wearable device preferentially processes and presents the messages that the user cares about or is most urgent, and at the same time, it can avoid system lag or slow response caused by processing too many messages simultaneously, ensuring the stable operation of the system. The message processing priority refers to the order of message processing set according to factors such as the importance, urgency, and relevance to the user's needs of the message.

[0117] As an embodiment of the present invention, setting the message processing priority of the wearable device according to the message receiving condition and the message parsing rule includes: extracting the message content of the wearable device according to the message receiving condition, and locating the message source of the message content; determining the message characteristics of the message content based on the message source; identifying the device performance requirements corresponding to the message characteristics; constructing a multi-device interaction mechanism for the message content according to the device performance requirements; extracting key message features under the multi-device interaction mechanism based on the message parsing rule; analyzing the user behavior intention of the wearable device according to the key message features; setting the message priority of the wearable device based on the user behavior intention and the key message features; defining the BLE communication standard and communication conflict resolution rules of the multi-device interaction mechanism according to the message priority; and setting the message processing priority of the wearable device in combination with the message priority, the BLE communication standard and the communication conflict resolution rule.

[0118] Among them, the message content refers to the specific information received by the wearable device, such as heart rate data, exercise steps, and SMS text. The message source refers to the source where the message is generated or sent, such as a mobile phone, cloud server, or other smart wearable device. The message characteristics refer to some attributes and characteristics based on the source of the message, such as urgency, type, time sensitivity, etc. The device performance requirements refer to the device resources and capabilities required to process the message, such as computing power, storage space, battery life, network connection, etc. The multi-device interaction mechanism refers to the method and rules for message interaction and collaborative work between multiple devices. For example, some messages may need to be processed jointly between multiple devices, such as receiving a preliminary reminder on a wearable device and viewing and replying in detail on a smartphone. The key message features It refers to the features extracted from the message content that are crucial to message processing and analysis. The user behavior intention refers to the intention or demand expressed by the user through the message, such as whether the user wants to view and process the message immediately, or wants to view it later when free, or wants the device to automatically perform certain operations without user intervention. The message priority refers to a relative importance level assigned to the message based on factors such as the key message features and user behavior intention of the message. The BLE communication standard refers to the technical standard that defines the wireless communication method and data transmission format between devices, including communication frequency, data transmission rate, data packet format, connection method, security mechanism, etc. The communication conflict resolution rule refers to the rules and algorithms for solving problems such as signal interference and data conflict in a multi-device communication environment.

[0119] Optionally, according to the device performance requirements, the multi-device interaction mechanism for the message content can be constructed through a distributed consistency algorithm, such as the Paxos algorithm. Based on the message parsing rules, the key message features under the multi-device interaction mechanism can be extracted using a keyword extraction algorithm. According to the key message features, the user behavior intention of the wearable device can be analyzed through a decision tree algorithm. For example, the decision tree will judge according to the message reception time in the key message features. If a message from a work-related message source is received during working hours, the user's behavior intention may be to handle the work transaction in a timely manner. According to the message priority, the BLE communication standard of the multi-device interaction mechanism can be defined using a priority preemption rule. For example, when a high-priority emergency alarm message and a low-priority normal notification message arrive simultaneously, the communication of the emergency alarm message is processed first. According to the message priority, the communication conflict resolution rule of the multi-device interaction mechanism can be defined through a proportional fairness scheduling algorithm. For example, the system allocates resource ratios for devices according to the message priority. High-priority devices obtain 70% of the resources, medium-priority devices obtain 20% of the resources, and low-priority devices obtain 10% of the resources. In each scheduling cycle, communication time and bandwidth are allocated to each device according to this ratio.

[0120] In an optional embodiment of the present invention, the following formula is used to identify the device performance requirements corresponding to the message characteristics:

[0121] ;

[0122] where Q represents the device performance requirements corresponding to the message characteristics, F represents the ideal performance score of the device when processing specific message characteristics, which can be 10, represents the actual performance score of the device under the g-th type of message characteristics, which can be 5, represents the weight of the g-th type of message characteristics, which can be 0.3, m represents the total number of message characteristics, g represents the message characteristic index, represents the Sigmoid function, which is used to normalize the device performance requirements to the [0, 1] interval.

[0123] It should be noted that in this application, by calculating the difference between the actual performance and the expected performance, the device performance requirements can be optimized and improved. In particular, it should be noted that the formula is used to analyze the difference between the performance and the expected performance of the device under specific message characteristics, reflecting the deficiencies or deviations of the device when processing specific characteristics. A lower error value indicates that the device can process and respond to messages more effectively and meet the performance requirements.

[0124] S4. Based on the message processing priority, identify the message queue status of the wearable device. According to the message queue status, create a low-power management method for the wearable device. Based on the low-power management method and the message processing priority, define the low-power recovery rule of the wearable device.

[0125] In the embodiment of the present invention, by identifying the message queue status of the wearable device based on the message processing priority, it can ensure that data is timely transmitted to connected devices such as mobile phones, realizing the reasonable utilization of resources. The message queue status refers to the specific situation of the message queue at a certain moment, including the number of messages in the queue, the processing progress of the messages, the priority distribution of the messages, etc.

[0126] Optionally, based on the message processing priority, the message queue status of the wearable device can be identified by setting a priority flag. For example, 0 represents the highest priority, 1 represents the second highest priority, and so on. When a message enters the queue, it is placed in the corresponding position or queue segment according to its priority flag. By traversing the queue and checking the priority flag of each message, the message queue status can be identified.

[0127] Furthermore, in the embodiment of the present invention, by creating a low-power management method for the wearable device according to the message queue status, it can ensure that critical tasks can be completed quickly and accurately, avoiding delays or losses in critical message processing due to insufficient power, and guaranteeing the health and safety of users. The low-power management method refers to a strategy for optimizing and controlling the energy consumption of the wearable device.

[0128] As an embodiment of the present invention, creating the low-power management method for the wearable device according to the message queue status includes: based on the message queue status, extracting the queue messages of the wearable device, and determining the message level, the corresponding occurrence frequency and the number of messages of the queue messages; according to the message level, the occurrence frequency and the number of messages, setting the sleep depth of the message queue status, and setting the critical event trigger condition of the wearable device; analyzing the change trend corresponding to the message queue status and the message level; based on the change trend and the critical event trigger condition, setting a dynamic adjustment mechanism for the sleep depth; according to the occurrence frequency, calculating the task load index of the wearable device; combining the task load index and the dynamic adjustment mechanism, and creating the low-power management method for the wearable device.

[0129] Among them, the queue message refers to various information waiting to be processed in the message queue of the wearable device, such as notifications sent by the mobile phone, operation instructions of the user on the device, etc. The message level refers to the message level obtained after classifying according to the importance and urgency of the queue message, such as high-priority messages and low-priority messages. The occurrence frequency refers to the number of times a message of a specific message level appears in the message queue within a certain period of time. The message quantity refers to the specific number of messages of a specific message level in the message queue. For example, at a specific time point, there are 20 low-level system update prompt messages in the message queue. The sleep depth refers to the power consumption level and wake-up difficulty of the wearable device in the standby or inactive state. The key event trigger condition refers to the mechanism by which the device automatically executes a preset action or issues an alarm when a specific event or condition is detected. For example, when the occurrence frequency of high-level messages exceeds 3 times within one minute, or the cumulative number of low-level messages reaches 100, the sleep depth is increased or the device is woken up for message processing. The change trend refers to the change of the message queue state and message level over time. The dynamic adjustment mechanism refers to a mechanism that automatically adjusts the sleep depth of the device according to the change trend of the message queue state and the key event trigger condition. For example, when it is detected that high-level messages increase or a key event is triggered, the dynamic adjustment mechanism will adjust the sleep depth to a shallower level so that the device can quickly respond to process messages. The task load index refers to the work task index borne by the wearable device at a certain moment or time period. For example, when the user simultaneously enables multiple functions, such as motion monitoring, real-time heart rate tracking, and receiving a large number of mobile phone notifications, there will be more high-level and medium-level messages in the message queue of the device, and the occurrence frequency will also be higher. At this time, the task load of the device is relatively heavy.

[0130] Optionally, according to the message level, the occurrence frequency, and the message quantity, the sleep depth of the message queue state can be set by an algorithm based on a threshold. For example, when the occurrence frequency of high-level messages reaches 5 times every 5 minutes, or the message quantity reaches 20, the sleep depth is set to shallow sleep. According to the message level, the occurrence frequency, and the message quantity, the key event trigger condition of the wearable device can be set using a support vector machine algorithm. The change trend corresponding to the message queue state and the message level can be analyzed by a data visualization tool, such as a line chart. Based on the change trend and the key event trigger condition, the dynamic adjustment mechanism of the sleep depth can be set by a rule algorithm.

[0131] In an optional embodiment of the present invention, according to the occurrence frequency, the task load index of the wearable device is calculated using the following formula:

[0132] ;

[0133] Among them, R represents the task load index of the wearable device, B represents the total amount of tasks that the wearable device needs to process, represents the occurrence frequency of the message level of the queue messages in the wearable device, represents the change trend of the task load, represents a variant of the Sigmoid function, which is used to smooth the trend impact.

[0134] It should be noted that in this application, the task load index calculated by the above formula can quantify the task load situation of the wearable device, helping to optimize resource allocation and task scheduling. In particular, it should be noted that the formula is used to reflect the overall occurrence frequency of messages with different priorities in the system. Among them, represents the message frequency of high priority, represents the message frequency of medium priority, represents the message frequency of low priority.

[0135] In an embodiment of the present invention, by defining the low-power recovery rule of the wearable device based on the low-power management method and the message processing priority, the battery life of the device can be maximally extended while meeting the message processing requirements. The low-power recovery rule refers to a set of criteria for determining how the wearable device switches back from the low-power mode to the normal working mode.

[0136] As an embodiment of the present invention, defining the low-power recovery rule of the wearable device based on the low-power management method and the message processing priority includes: calculating the recovery delay time of the wearable device based on the message processing priority; defining the wake-up threshold of the wearable device according to the recovery delay time, and setting the BLE signal transmission mode of the wearable device; setting the hierarchical response mode of the wearable device in combination with the BLE signal transmission mode and the message processing priority; determining the wake-up source order of the wearable device according to the low-power management method; setting the hierarchical wake-up mechanism of the wearable device based on the message processing priority and the wake-up source order; defining the low-power recovery rule of the wearable device based on the wake-up threshold, the hierarchical wake-up mechanism and the hierarchical response mode.

[0137] Among them, the recovery delay time refers to the time interval elapsed from the determination that the wearable device needs to be restored from the low-power state to the normal working state to the actual execution of the recovery operation. The wake-up threshold refers to a critical value or condition used to determine whether the wearable device should be woken up from the low-power state. The BLE signal transmission mode refers to the specific mode and parameter settings adopted by the wearable device when transmitting data through the Bluetooth Low Energy protocol. The hierarchical response mode means that the wearable device responds to various messages or events in different degrees and ways according to factors such as different message processing priorities and BLE signal transmission modes. For example, for high-priority messages, it may immediately respond in a high data transmission rate and high-power consumption mode to quickly complete data processing and transmission. The wake-up source order refers to the order in which various possible wake-up sources are activated when the wearable device wakes up from the low-power state. For example, key sensor and processor modules are woken up first, and then other auxiliary modules are woken up as needed. The hierarchical wake-up mechanism refers to a device wake-up strategy that combines message processing priorities and wake-up source order.

[0138] Optionally, according to the recovery delay time, the wake-up threshold of the wearable device can be defined using a rule engine. According to the recovery delay time, the BLE signal transmission mode of the wearable device can be set through a dynamic programming algorithm. For example, in the case of a large number of high-priority messages and a short recovery delay time, selecting a high-power but efficient transmission mode can enable the system to complete tasks as soon as possible. According to the low-power management mode, the wake-up source order of the wearable device can be determined using a fuzzy logic algorithm. Based on the message processing priority and the wake-up source order, the hierarchical wake-up mechanism of the wearable device can be set through a priority mapping rule. For example, a mapping table of message processing priority and wake-up source order is constructed.

[0139] S5. According to the wearable device, the user state of the paired device is monitored in real time. Based on the user state, the personalized message notification method of the wearable device is defined. According to the user state, the message processing priority, and the low-power recovery rule, the adaptive wake-up mechanism of the wearable device is set.

[0140] In the embodiment of the present invention, by monitoring the user state of the paired device in real time according to the wearable device, it helps the wearable device to reasonably allocate processing resources and improve the message processing efficiency. The user state refers to a set of information that can be monitored by the wearable device and reflects various aspects of the user's current behavior, physiology, and environment, such as the user's mental state and physiological state.

[0141] Optionally, according to the wearable device, the user state of the paired device can be monitored in real time through the built-in sensors of the wearable device.

[0142] Furthermore, the embodiment of the present invention defines a personalized message notification method for the wearable device based on the user state, which can avoid excessive message interference with the user and improve the user experience. The personalized message notification method refers to a message notification presentation form and strategy customized for the user according to factors such as the user's personal preferences, usage habits, current state, and the attributes of the message.

[0143] As an embodiment of the present invention, the defining of the personalized message notification method for the wearable device based on the user state includes: collecting historical interaction data of the wearable device based on the user state; extracting context information corresponding to the user state according to the historical interaction data; identifying the connected device corresponding to the wearable device based on the context information; setting up an environment adaptive system for the wearable device by combining the context information and the user state; creating a context synchronization mechanism between the wearable device and the connected device according to the environment adaptive system; setting the adaptive interface notification form of the wearable device based on the environment adaptive system and the user state; and defining the personalized message notification method for the wearable device by combining the environment adaptive system, the context synchronization mechanism, and the adaptive interface notification form.

[0144] Among them, the historical interaction data refers to the data generated by the wearable device during the interaction with the user and the external environment in the past period of time. The scenario information refers to the relevant information extracted from the historical interaction data that can reflect the user's current situation and environment. For example, according to the motion data and time, it can be judged whether the user is in motion, at rest, or at work. The connected device refers to other electronic devices connected to the wearable device by wired or wireless means. The environment adaptive system refers to a system in which the wearable device dynamically adjusts the form, intensity, or triggering logic of notifications by real-time sensing of external environmental conditions (such as light, sound, location, etc.). For example, in a noisy environment, the tactile feedback is enhanced, and in a low-light environment, the screen brightness is reduced. The context synchronization mechanism refers to a set of rules and methods for realizing context information sharing and synchronization between the wearable device and the connected device. For example, when the wearable device detects that the user enters the sleep state, it notifies the connected smartphone through the context synchronization mechanism to set the phone to the silent or do not disturb mode to avoid disturbing the user's sleep. The adaptive interface notification form refers to a way of dynamically adjusting the presentation method of message notifications on the interface of the wearable device according to the environment adaptive system and the user state. For example, when the user is in a busy state, the notification is displayed in a simple icon form, only showing important information.

[0145] Optionally, according to the historical interaction data, the context information corresponding to the user state can be extracted using a recurrent neural network algorithm. By combining the context information and the user state, the environment adaptation system of the wearable device can be set through a light sensor and a sound sensor. According to the environment adaptation system, the context synchronization mechanism between the wearable device and the connected device can be created using a BLE protocol stack. Based on the environment adaptation system and the user state, the adaptive interface notification form of the wearable device can be set using Adobe XD tools.

[0146] In an embodiment of the present invention, by setting the adaptive wake-up mechanism of the wearable device based on the user state, the message processing priority, and the low-power recovery rule, the wake-up timing of the device can be accurately matched to ensure the normal operation of the key functions of the device. The adaptive wake-up mechanism refers to a functional mechanism that can automatically adjust the device wake-up strategy according to the user state of the wearable device and the low-power recovery rule.

[0147] As an embodiment of the present invention, setting the adaptive wake-up mechanism of the wearable device based on the user state, the message processing priority, and the low-power recovery rule includes: identifying the user behavior pattern of the wearable device based on the user state; extracting the key monitor and the auxiliary monitor of the wearable device according to the user behavior pattern; determining the monitor wake-up order of the wearable device by combining the key monitor and the auxiliary monitor; setting the hierarchical wake-up method of the key monitor and the auxiliary monitor based on the message processing priority; identifying the current BLE connection status of the key monitor and the auxiliary monitor according to the low-power recovery rule; setting the BLE error reconnection mechanism of the key monitor and the auxiliary monitor based on the current BLE connection status; and setting the adaptive wake-up mechanism of the wearable device by combining the hierarchical wake-up method, the monitor wake-up order, and the BLE error reconnection mechanism.

[0148] Among them, the user behavior pattern refers to the daily activity rules and behavior characteristics of the user. For example, the user usually exercises in the morning, may take a rest at noon, and may be in a static state watching TV or playing with the mobile phone in the evening. The key monitor refers to the sensor or functional module in the wearable device that is closely related to the current user behavior pattern and is crucial for obtaining key information. For example, when the user is in the exercise behavior pattern, components such as the acceleration sensor and heart rate sensor for monitoring the exercise state and health indicators are key monitors. The auxiliary monitor refers to the sensor or functional module that helps obtain secondary or supplementary information in a specific user behavior pattern, such as the barometric pressure sensor and temperature sensor. The monitor wake-up sequence refers to the order in which each monitor is awakened determined according to the user behavior pattern and the importance and relevance of the monitor. The hierarchical wake-up method refers to adopting different wake-up strategies for the key monitor and the auxiliary monitor based on the message processing priority. For example, for high-priority messages, the key monitor will be immediately awakened. The current BLE connection state refers to the real-time state when the key monitor and the auxiliary monitor are connected to other devices (such as mobile phones, base stations, etc.) through Bluetooth Low Energy (BLE) technology. The BLE error reconnection mechanism refers to a series of rules and operations taken to restore the connection when a BLE connection error occurs (such as connection interruption, signal loss, etc.). For example, when the BLE connection of the key monitor is interrupted, the reconnection mechanism may be immediately started, and multiple attempts to reconnect are made within a short period of time, and the connection parameters are adjusted according to the connection situation to quickly restore communication with the external device; while the reconnection mechanism of the auxiliary monitor may be relatively gentle, and the reconnection time will be appropriately delayed according to the low-power consumption requirement, and the number of reconnection attempts will be reduced to avoid excessive power consumption.

[0149] Optionally, based on the user state, the user behavior pattern of the wearable device can be identified through a Hidden Markov Model. Based on the message processing priority, the hierarchical wake-up method of the key monitor and the auxiliary monitor can be set using a Python library. According to the low-power recovery rule, the current BLE connection state of the key monitor and the auxiliary monitor can be identified through a heartbeat packet detection algorithm. Based on the current BLE connection state, the BLE error reconnection mechanism of the key monitor and the auxiliary monitor can be set using the Arduino IDE tool, such as writing code using the relevant library functions of the Arduino IDE, and attempting to reconnect according to the set reconnection strategy (such as reconnection at a fixed time interval) after detecting a connection error.

[0150] S6. Combine the cross-platform adaptation mechanism, the message processing priority, the adaptive wake-up mechanism, and the personalized message notification method to perform intelligent message processing on the wearable device to obtain a message processing result.

[0151] In an embodiment of the present invention, by combining the cross-platform adaptation mechanism, the message processing priority, the adaptive wake-up mechanism, and the personalized message notification method, the intelligent message processing of the wearable device is performed to obtain a message processing result, which can realize the communication between the wearable device and devices of different platforms, reduce the adaptation cost and complexity caused by platform differences, improve the stability and reliability of message processing. At the same time, through the priority transmission of the BLE protocol, it can ensure that key information can reach the target device in a timely and accurate manner, improve the overall efficiency and effectiveness of message processing. The intelligent message processing refers to the process of intelligently managing and processing the messages received by the wearable device by using the above-mentioned various technologies and mechanisms. The message processing result refers to the final output or state obtained by the wearable device after executing the intelligent message processing process for the received messages. For example, it displays "Message received and processed", "Message is being processed", or "Message processing failed", etc.

[0152] In an embodiment of the present invention, by obtaining a wearable device and a paired device that support the BLE protocol, identifying the data transmission channel between the wearable device and the paired device, the protocol interaction characteristics between the wearable device and the paired device can be analyzed, the function support situation of the wearable device and the paired device can be understood, function matching and negotiation can be performed, ensuring that both parties can correctly interact data and use each other's functions, and interoperability can be achieved; further, in an embodiment of the present invention, by setting the cross-platform adaptation mechanism of the wearable device according to the operating system category and the BLE protocol, it can be ensured that all functions of the wearable device can be fully realized on different operating systems; in an embodiment of the present invention, by setting the message processing priority of the wearable device according to the message reception condition and the message parsing rule, it can be ensured that the wearable device gives priority to processing and presenting to the user the messages that the user is most concerned about or the most urgent, and at the same time, it can avoid system jamming or slow response caused by processing too many messages at the same time, ensuring the stable operation of the system; further, in an embodiment of the present invention, by creating a low-power management method for the wearable device according to the message queue state, it can be ensured that critical tasks can be completed quickly and accurately, avoiding delay or loss of critical messages due to insufficient power, and ensuring the health and safety of users; in an embodiment of the present invention, by defining the low-power recovery rule of the wearable device based on the low-power management method and the message processing priority, while meeting the message processing requirements, the battery life of the device can be extended to the greatest extent; further, in an embodiment of the present invention, by defining the personalized message notification method of the wearable device based on the user state, it can avoid excessive message interference with the user and improve the user experience; in an embodiment of the present invention, by setting the adaptive wake-up mechanism of the wearable device based on the user state, the message processing priority, and the low-power recovery rule, the wake-up timing of the device can be accurately matched, ensuring the normal operation of the key functions of the device; finally, in an embodiment of the present invention, by combining the cross-platform adaptation mechanism, the message processing priority, the adaptive wake-up mechanism, and the personalized message notification method, performing the intelligent message processing of the wearable device, and obtaining the message processing result, communication between the wearable device and devices on different platforms can be achieved, reducing the adaptation cost and complexity caused by platform differences, improving the stability and reliability of message processing. At the same time, by preferentially transmitting through the BLE protocol, it can be ensured that critical information can reach the target device in a timely and accurate manner, improving the overall efficiency and effectiveness of message processing. Therefore, a method and system for implementing message processing of a wearable device based on the BLE protocol provided by an embodiment of the present invention can achieve cross-platform adaptation of the wearable device and improve the message processing efficiency.

[0153] Embodiment 2:

[0154] As Figure 2 shown, it is a functional module diagram of a message processing system for a wearable device based on the BLE protocol of the present invention.

[0155] The message processing system 200 for wearable devices implemented based on the BLE protocol according to the present invention can be installed in an electronic device. According to the implemented functions, the message processing system for wearable devices implemented based on the BLE protocol may include a protocol interaction module 201, a cross-platform adaptation module 202, a message priority module 203, a power consumption management module 204, a device wake-up module 205, and a message processing module 206. The modules in the present invention may also be referred to as units, which refer to a series of computer program segments that can be executed by the processor of the electronic device and can complete fixed functions, and are stored in the memory of the electronic device.

[0156] In the embodiment of the present invention, the functions of each module / unit are as follows:

[0157] The protocol interaction module 201 is used to obtain wearable devices and paired devices that support the BLE protocol, identify the data transmission channels between the wearable device and the paired device based on the BLE protocol, and analyze the protocol interaction characteristics between the wearable device and the paired device according to the data transmission channels;

[0158] The cross-platform adaptation module 202 is used to identify the operating system category of the paired device based on the protocol interaction characteristics, and set the cross-platform adaptation mechanism of the wearable device according to the operating system category and the BLE protocol;

[0159] The message priority module 203 is used to define the message reception conditions of the wearable device according to the cross-platform adaptation mechanism, set the message parsing rules of the wearable device based on the operating system category, and set the message processing priority of the wearable device according to the message reception conditions and the message parsing rules;

[0160] The power consumption management module 204 is used to identify the message queue status of the wearable device based on the message processing priority, create a low-power management method for the wearable device according to the message queue status, and define a low-power recovery rule for the wearable device based on the low-power management method and the message processing priority;

[0161] The device wake-up module 205 is used to monitor the user status of the paired device in real time according to the wearable device, define a personalized message notification method for the wearable device based on the user status, and set an adaptive wake-up mechanism for the wearable device according to the user status, the message processing priority, and the low-power recovery rule;

[0162] The message processing module 206 is configured to perform intelligent message processing of the wearable device by combining the cross-platform adaptation mechanism, the message processing priority, the adaptive wake-up mechanism, and the personalized message notification method, so as to obtain a message processing result.

[0163] Specifically, when the modules in the message processing system 200 for a wearable device implemented based on the BLE protocol in the embodiments of the present invention are used, they adopt the same technical means as those in the Figure 1 message processing method for a wearable device implemented based on the BLE protocol described above, and can produce the same technical effects, which will not be elaborated here.

[0164] For those skilled in the art, it is obvious that the present invention is not limited to the details of the above exemplary embodiments, and without departing from the spirit or basic characteristics of the present invention, the present invention can be implemented in other specific forms.

[0165] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present invention.

Claims

1. A message processing method for a wearable device based on the BLE protocol, characterized in that: The method comprises: Acquire a wearable device and a paired device that support the BLE protocol, identify a data transmission channel between the wearable device and the paired device based on the BLE protocol, and analyze protocol interaction characteristics between the wearable device and the paired device according to the data transmission channel; Based on the protocol interaction feature, identifying the operating system category of the paired device, and setting a cross-platform adaptation mechanism of the wearable device according to the operating system category and the BLE protocol; According to the cross-platform adaptation mechanism, define the message receiving condition of the wearable device, set the message parsing rule of the wearable device based on the operating system category, and set the message processing priority of the wearable device according to the message receiving condition and the message parsing rule; Based on the message processing priority, identifying the message queue state of the wearable device, and creating a low power consumption management mode of the wearable device according to the message queue state, wherein creating a low power consumption management mode of the wearable device according to the message queue state includes: Based on the message queue state, extract the queue message of the wearable device, and determine the message level of the queue message and its corresponding occurrence frequency and message quantity; According to the message level, the occurrence frequency and the number of messages, the dormancy depth of the message queue state is set, and the key event triggering condition of the wearable device is set; Analyze the change trend of the message queue status and the message level; Based on the change trend and the key event triggering condition, setting a dynamic adjustment mechanism for the sleep depth; According to the occurrence frequency, the task load index of the wearable device is calculated using the following formula: ; Among them, R represents the task load index of the wearable device, B represents the total amount of tasks that the wearable device needs to handle, Indicates the frequency of occurrence of message levels of queue messages in wearable devices, where: Indicates the frequency of high priority messages. Indicates the frequency of medium priority messages. Indicates the frequency of low priority messages. Indicates the changing trend of task load, Represents a variant of the Sigmoid function, used to smooth trend effects; In combination with the task load index and the dynamic adjustment mechanism, a low power consumption management mode of the wearable device is created, and based on the low power consumption management mode and the message processing priority, a low power consumption recovery rule of the wearable device is defined; According to the wearable device, the user status of the paired device is monitored in real time, and based on the user status, a personalized message notification method of the wearable device is defined, and an adaptive wake-up mechanism of the wearable device is set according to the user status, the message processing priority and the low power recovery rule; In combination with the cross-platform adaptation mechanism, the message processing priority, the adaptive wake-up mechanism and the personalized message notification method, intelligent message processing of the wearable device is performed to obtain a message processing result.

2. A message processing method for a wearable device based on the BLE protocol as claimed in claim 1, characterized in that: Analyzing the protocol interaction characteristics between the wearable device and the paired device according to the data transmission channel includes: According to the data transmission channel, identifying the data transmission direction between the wearable device and the paired device, and determining the data transmission triggering condition between the wearable device and the paired device; Extracting transmission data of the data transmission channel based on the data transmission direction and the data transmission trigger condition; Parsing the data structure of the transmitted data, and analyzing the data interaction scenario between the wearable device and the paired device according to the data structure; Based on the data interaction scenario, identifying a message type of the data transmission channel; Determining a protocol interaction behavior between the wearable device and the paired device according to the message type and the data interaction scenario; Based on the protocol interaction behavior, the protocol interaction characteristics between the wearable device and the paired device are analyzed.

3. A message processing method for a wearable device based on the BLE protocol as claimed in claim 1, characterized in that: The step of setting a cross-platform adaptation mechanism for the wearable device according to the operating system category and the BLE protocol includes: According to the operating system category, setting the adaptive configuration parameters of the BLE protocol; Identify a message push channel corresponding to the operating system category, and determine a data transmission method and a data format of the operating system category based on the message push channel; According to the data transmission mode and the data format, a message conversion unit of the operating system category is set; Monitor the BLE connection signal strength of the wearable device in real time, and analyze the connection signal quality of the wearable device according to the BLE connection signal strength; Based on the connection signal quality, establishing a fault-tolerant control system of the BLE protocol; In combination with the adaptive configuration parameters, the message conversion unit and the fault-tolerant control system, a cross-platform adaptation mechanism of the wearable device is set.

4. A message processing method for a wearable device based on the BLE protocol as claimed in claim 1, characterized in that: Defining the message receiving condition of the wearable device according to the cross-platform adaptation mechanism includes: Determining an adaptation device type of the wearable device according to the cross-platform adaptation mechanism; Based on the adapted device type, analyzing factors affecting message reception of the wearable device; Identifying information receiving preferences of a user of the wearable device according to the message reception influencing factors; Based on the user's information receiving preference, setting the factor weight of the message receiving influencing factor; Calculating the message importance score of the wearable device according to the factor weights and the message reception influencing factors; Based on the message importance score, set the message filtering condition of the wearable device, and set the message notification order corresponding to the adapted device type; The message receiving condition of the wearable device is defined in combination with the message importance score, the message filtering condition and the message notification order.

5. A message processing method for a wearable device based on the BLE protocol as claimed in claim 1, characterized in that: The step of setting the message processing priority of the wearable device according to the message receiving condition and the message parsing rule includes: Extracting the message content of the wearable device according to the message receiving condition, and locating the message source of the message content; Based on the message source, determining a message characteristic of the message content; The device performance requirements corresponding to the message characteristics are identified using the following formula: ; Among them, Q represents the device performance requirement corresponding to the message feature, and F represents the ideal performance score of the device when processing specific message features. Indicates the actual performance score of the device under the g-type message feature. represents the weight of the g-th message feature, m represents the total number of message features, g represents the message feature index, Represents the Sigmoid function, which is used to normalize the device performance requirements to the [0, 1] interval; According to the device performance requirements, a multi-device interaction mechanism for the message content is constructed; Based on the message parsing rules, extract key message features under the multi-device interaction mechanism; Analyzing the user behavior intention of the wearable device according to the key message features; Setting the message priority of the wearable device based on the user behavior intention and the key message features; Defining the BLE communication standard and communication conflict resolution rules of the multi-device interaction mechanism according to the message priority; In combination with the message priority, the BLE communication standard and the communication conflict resolution rule, the message processing priority of the wearable device is set.

6. A message processing method for a wearable device based on the BLE protocol as claimed in claim 1, characterized in that: The defining the low power consumption recovery rule of the wearable device based on the low power consumption management mode and the message processing priority includes: Based on the message processing priority, calculating the recovery delay time of the wearable device; According to the recovery delay time, define the wake-up threshold of the wearable device, and set the BLE signal transmission mode of the wearable device; In combination with the BLE signal transmission mode and the message processing priority, a hierarchical response mode of the wearable device is set; Determining a wake-up source sequence of the wearable device according to the low power consumption management method; Based on the message processing priority and the wake-up source sequence, setting a hierarchical wake-up mechanism for the wearable device; Based on the wake-up threshold, the hierarchical wake-up mechanism and the hierarchical response mode, a low power consumption recovery rule of the wearable device is defined.

7. A message processing method for a wearable device based on the BLE protocol as claimed in claim 1, characterized in that: The method of defining a personalized message notification mode of the wearable device based on the user status includes: Based on the user status, collecting historical interaction data of the wearable device; Extracting context information corresponding to the user status according to the historical interaction data; Based on the context information, identifying a connected device corresponding to the wearable device; In combination with the context information and the user status, setting an environment adaptation system of the wearable device; According to the environmental adaptation system, a context synchronization mechanism is created between the wearable device and the connected device; Based on the environmental adaptive system and the user status, setting the adaptive interface notification form of the wearable device; In combination with the environmental adaptive system, the context synchronization mechanism and the adaptive interface notification form, a personalized message notification method of the wearable device is defined.

8. A message processing method for a wearable device based on the BLE protocol as claimed in claim 1, characterized in that: The step of setting the adaptive wake-up mechanism of the wearable device based on the user state, the message processing priority and the low power consumption recovery rule includes: Based on the user status, identifying a user behavior pattern of the wearable device; Extracting key monitors and auxiliary monitors of the wearable device according to the user behavior pattern; Determine a wake-up order of the monitors of the wearable device in combination with the key monitor and the auxiliary monitor; Based on the message processing priority, setting a hierarchical wake-up mode for the key monitor and the auxiliary monitor; identifying, according to the low power recovery rule, current BLE connection states of the key monitor and the auxiliary monitor; Based on the current BLE connection state, setting a BLE error reconnection mechanism for the key monitor and the auxiliary monitor; In combination with the hierarchical wake-up method, the monitor wake-up sequence and the BLE error reconnection mechanism, an adaptive wake-up mechanism for the wearable device is set.

9. A message processing system for wearable devices based on BLE protocol, characterized in that: The system comprises: A protocol interaction module, used to obtain a wearable device and a paired device that support the BLE protocol, identify a data transmission channel between the wearable device and the paired device based on the BLE protocol, and analyze protocol interaction characteristics between the wearable device and the paired device according to the data transmission channel; A cross-platform adaptation module, used to identify the operating system category of the paired device based on the protocol interaction characteristics, and set a cross-platform adaptation mechanism for the wearable device according to the operating system category and the BLE protocol; A message priority module, used to define the message receiving condition of the wearable device according to the cross-platform adaptation mechanism, set the message parsing rule of the wearable device based on the operating system category, and set the message processing priority of the wearable device according to the message receiving condition and the message parsing rule; A power consumption management module, configured to identify the message queue status of the wearable device based on the message processing priority, and to create a low power consumption management mode of the wearable device according to the message queue status, wherein the low power consumption management mode of the wearable device is created according to the message queue status, including: Based on the message queue state, extract the queue message of the wearable device, and determine the message level of the queue message and its corresponding occurrence frequency and message quantity; According to the message level, the occurrence frequency and the number of messages, the dormancy depth of the message queue state is set, and the key event triggering condition of the wearable device is set; Analyze the change trend of the message queue status and the message level; Based on the change trend and the key event triggering condition, setting a dynamic adjustment mechanism for the sleep depth; According to the occurrence frequency, the task load index of the wearable device is calculated using the following formula: ; Among them, R represents the task load index of the wearable device, B represents the total amount of tasks that the wearable device needs to handle, Indicates the frequency of occurrence of message levels of queue messages in wearable devices, where: Indicates the frequency of high priority messages. Indicates the frequency of medium priority messages. Indicates the frequency of low priority messages. Indicates the changing trend of task load, Represents a variant of the Sigmoid function, used to smooth trend effects; In combination with the task load index and the dynamic adjustment mechanism, a low power consumption management mode of the wearable device is created, and based on the low power consumption management mode and the message processing priority, a low power consumption recovery rule of the wearable device is defined; A device wake-up module, configured to monitor the user status of the paired device in real time according to the wearable device, define a personalized message notification method for the wearable device based on the user status, and set an adaptive wake-up mechanism for the wearable device according to the user status, the message processing priority, and the low power recovery rule; The message processing module is used to perform intelligent message processing of the wearable device in combination with the cross-platform adaptation mechanism, the message processing priority, the adaptive wake-up mechanism and the personalized message notification method to obtain a message processing result.

Citation Information

Patent Citations

  • Health state low-power-consumption real-time monitoring method

    CN116506823A

  • Cross-platform BLE equipment automatic connection method

    CN116567858A