Message processing method and system for realizing wearable device based on BLE protocol
Through the message processing method based on the BLE protocol, the problem of low message processing efficiency of traditional wearable devices is solved, cross-platform adaptation and efficient message processing are realized, and user experience and device battery life are improved.
Patent Information
- Application Number
- CN202510491951.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-18
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2045-04-18
AI Technical Summary
Message processing of traditional wearable devices relies on serial communication, resulting in the parameter settings of different devices varying greatly, lacking unified standards, resulting in a decrease in message processing efficiency, and urgently requiring cross-platform adaptation solutions.
The message processing method based on the BLE protocol is adopted, by identifying the data transmission channel between the wearable device and the paired device, analyzing the protocol interaction characteristics, identifying the operating system categories, setting cross-platform adaptation mechanisms, defining message reception conditions and parsing rules, setting message processing priority, creating low-power management methods and recovery rules, monitoring user status in real time, defining personalized message notification methods and adaptive wake-up mechanisms.
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, ensures low-power operation, extends device battery life, and improves user experience.
Smart Images

Figure CN120017632A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a message processing method and system for implementing a wearable device based on a BLE protocol, and belongs to the technical field of wearable devices. Background Art
[0002] Wearable devices refer to portable devices that can be worn on the user's body or clothing. They usually have built-in components such as sensors, processors, memory, batteries and wireless communication modules to support various functions. For example, they collect user motion data through sensors such as accelerometers, gyroscopes and heart rate monitors, and synchronize the data to the user's mobile device or cloud storage with the help of Bluetooth or Wi-Fi. With the vigorous development of Internet technology and the rapid improvement of electronic product performance, wearable devices are gradually becoming a necessity in people's lives. Its message processing capability has become one of the important indicators to measure its market competitiveness. Therefore, in order to meet the growing needs of users, wearable device manufacturers need to continuously optimize the message processing mechanism and improve device performance and user experience.
[0003] The message processing of traditional wearable devices mainly relies on serial communication. Wearable devices are connected to other devices through serial cables to achieve data transmission. However, the serial port parameter settings of different devices vary greatly, and there is a lack of unified standards in the industry. When interacting with wearable devices through messages, it may be necessary to adjust parameters frequently, 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 message processing method and system for a wearable device based on the BLE protocol, the main purpose of which is to achieve cross-platform adaptation of the wearable device and improve message processing efficiency.
[0006] To achieve the above object, the present invention provides a message processing method for a wearable device based on the BLE protocol, comprising: 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, creating a low power consumption management mode of the wearable device according to the message queue state, and defining a low power consumption recovery rule of the wearable device based on the low power consumption management mode and the message processing priority; 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.
[0007] Optionally, 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.
[0008] Optionally, setting a cross-platform adaptation mechanism of 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.
[0009] Optionally, defining a 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.
[0010] Optionally, 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; 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.
[0011] Optionally, 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. Indicates the changing trend of task load, Represents a variant of the Sigmoid function; The task load index and the dynamic adjustment mechanism are combined to create a low power consumption management method for the wearable device.
[0012] Optionally, defining a 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.
[0013] Optionally, 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.
[0014] Optionally, the setting of 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.
[0015] In order to solve the above problems, the present invention also provides a message processing system for wearable devices based on the BLE protocol, the system comprising: 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, create a low power consumption management mode of the wearable device according to the message queue status, and define a low power consumption recovery rule of the wearable device based on the low power consumption management mode and the message processing priority; 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.
[0016] Compared with the problems described in the background technology, the embodiment of the present invention obtains a wearable device and a paired device that support the BLE protocol, identifies the data transmission channel between the wearable device and the paired device, analyzes the protocol interaction characteristics between the wearable device and the paired device, understands the functional support of the wearable device and the paired device, performs functional matching and negotiation, and ensures that both parties can correctly exchange data and use each other's functions to achieve interoperability; further, the embodiment of the present invention sets a cross-platform adaptation mechanism for the wearable device according to the operating system category and the BLE protocol, so as to ensure that all functions of the wearable device can be fully implemented on different operating systems; the embodiment of the present invention sets the message processing priority of the wearable device according to the message receiving condition and the message parsing rule, so as to ensure that the wearable device prioritizes and presents the messages that the user cares about most or is most urgent to the user, and at the same time, avoids system freeze or slow response due to processing too many messages at the same time, and ensures stable operation of the system; further, the embodiment of the present invention creates a low-power management mode for the wearable device according to the message queue status, so as to ensure that key tasks can be completed quickly and accurately, and avoid delays or losses in key message processing due to insufficient power. , to ensure the health and safety of users; the embodiment of the present invention defines the low-power recovery rules of the wearable device based on the low-power management mode and the message processing priority, which can maximize the device life while meeting the message processing requirements; further, the embodiment of the present invention defines the personalized message notification mode of the wearable device based on the user status, which can avoid excessive messages from interfering with users and improve user experience; the embodiment of the present invention sets the adaptive wake-up mechanism of the wearable device based on the user status, the message processing priority and the low-power recovery rule, which can accurately match the wake-up timing of the device and ensure the normal operation of the key functions of the device; finally, the embodiment of the present invention performs 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 mode to obtain the message processing result, which can realize the communication between the wearable device and the devices of different platforms, reduce the adaptation cost and complexity caused by platform differences, and improve the stability and reliability of message processing. At the same time, through the BLE protocol priority transmission, it can ensure that the key information can reach the target device in a timely and accurate manner, and improve the overall efficiency and effectiveness of message processing. Therefore, the message processing method and system for wearable devices based on the BLE protocol provided by the embodiments of the present invention can achieve cross-platform adaptation of wearable devices and improve message processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A flowchart of a message processing method for a wearable device based on the BLE protocol provided by an embodiment of the present invention; Figure 2 A schematic diagram of a module for implementing a message processing system for a wearable device based on the BLE protocol provided in one embodiment of the present invention.
[0018] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION
[0019] 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.
[0020] The embodiment of the present application provides a message processing method for a wearable device based on the BLE protocol. The execution subject of the message processing method for a wearable device based on the BLE protocol includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiment of the present application. In other words, the message processing method for 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.
[0021] Embodiment 1: Reference Figure 1 FIG. 1 is a flow chart of a method for processing messages of a wearable device based on the BLE protocol according to an embodiment of the present invention. In this embodiment, the method for processing messages of a wearable device based on the BLE protocol includes:
[0022] S1. 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.
[0023] The embodiment of the present invention can establish a communication connection between the wearable device and the paired device to achieve message transmission by acquiring a wearable device and a paired device that support the BLE protocol. The BLE protocol refers to a low-power wireless communication protocol, which was introduced by the Bluetooth Technology Alliance from Bluetooth 4.0 version and is specifically used to achieve low-power, 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 pairing relationship with the wearable device through the BLE protocol, such as a mobile phone.
[0024] Furthermore, the embodiment of the present invention can identify the data transmission channel between the wearable device and the paired device based on the BLE protocol, so that the wearable device and the paired device can communicate on a dedicated channel, effectively avoiding conflicts with signals of 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.
[0025] Exemplarily, based on the BLE protocol, the data transmission channel between the wearable device and the paired device can utilize the paired device to send a service discovery request to obtain a list of services supported by the wearable device, and then send a feature discovery request for each service. By querying the attributes of the feature, the paired device can know the data transmission method supported by the feature, and can also read descriptors such as data format and unit from the feature information. Once the paired device discovers the target service and feature, and understands its attributes and descriptors, it can establish a data transmission channel based on this information.
[0026] The embodiment of the present invention analyzes the protocol interaction characteristics between the wearable device and the paired device according to the data transmission channel, so as to understand the functional support of the wearable device and the paired device, perform function matching and negotiation, and ensure that both parties can correctly exchange data and use each other's functions to achieve interoperability. The protocol interaction characteristics refer to the protocol-related characteristics and behavior modes exhibited during the data transmission and communication process between the wearable device and the paired device based on the BLE protocol, such as the data format of the data transmitted between the wearable device and the paired device.
[0027] As an embodiment of the present invention, analyzing 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.
[0028] Among them, the data transmission direction refers to the path for data transmission between the wearable device and the paired device, the data transmission trigger condition refers to the trigger rule for starting data transmission between the wearable device and the paired device, such as when the wearable device detects that the number of steps exceeds 1000, it automatically transmits data to the paired device, the transmission data refers to the specific information content transmitted between the wearable device and the paired device, the data structure refers to the organization form and arrangement order of the transmission data, the data interaction scenario refers to the specific context of data interaction between the wearable device and the paired device, for example, in the sports monitoring scenario, the wearable device mainly transmits sports-related data to the paired device, such as sports distance, calories consumed, etc., 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, such as connection request message, data read request message, data write request message, etc., the protocol interaction behavior refers to a series of actions and operation methods taken by both devices when data is exchanged between the wearable device and the paired device according to a specific communication protocol, such as data transmission behavior and command execution behavior.
[0029] Optionally, according to the data transmission channel, the data transmission triggering condition between the wearable device and the paired device can be determined by using application code, for example, by checking the conditional judgment and event monitoring mechanism in the code, the specific conditions for triggering data transmission can be clearly defined, the data structure of the transmission data can be parsed by a data packet analysis tool, such as a Wireshark tool, according to the data structure, the data interaction scenario between the wearable device and the paired device can be analyzed by a protocol analyzer, based on the data interaction scenario, the message type of the data transmission channel can be identified by a message header identifier, such as a byte or several bytes specifically used to represent the encoding of the message type, and by extracting and parsing these header identifier fields, the type of the message can be quickly determined, according to the message type and the data interaction scenario, the protocol interaction behavior between the wearable device and the paired device can be determined by a state machine modeling tool, such as a UML State Machine tool.
[0030] S2. Based on the protocol interaction characteristics, identify the operating system category of the paired device, and set a cross-platform adaptation mechanism for the wearable device according to the operating system category and the BLE protocol.
[0031] The embodiment of the present invention can ensure that data can be accurately and stably transmitted on different systems and improve the reliability of communication by identifying the operating system category of the paired device based on the protocol interaction characteristics. The operating system category refers to the classification of the operating system based on its characteristic differences in protocol interaction, including Apple's iOS system and Android system.
[0032] Optionally, based on the protocol interaction characteristics, the operating system category of the paired device can be identified through an extended protocol. For example, the iOS system has its own unique protocol extension, such as the protocol content related to the MFi (Made for iPhone / iPad / iPod) certification. Some Android devices also use specific Android extended protocols to implement fast pairing, device discovery and other functions, such as the Android Fast Pair protocol.
[0033] Furthermore, the embodiment of the present invention can ensure that various functions of the wearable device can be fully implemented on different operating systems by setting a cross-platform adaptation mechanism for the wearable device according to the operating system category and the BLE protocol. The cross-platform adaptation mechanism refers to a series of technologies and strategies that enable the wearable device to run stably and efficiently on different operating systems (such as Apple iOS and Android) and provide users with a consistent experience.
[0034] 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 channel 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 channel; setting the message conversion unit of the operating system category according to the data transmission method and the data format; monitoring the BLE connection signal strength of the wearable device in real time, and analyzing the connection signal quality of the wearable device according to the BLE connection signal strength; creating a fault-tolerant control system of the BLE protocol based on the connection signal quality; and setting the cross-platform adaptation mechanism of the wearable device in combination with the adaptive configuration parameters, the message conversion unit and the fault-tolerant control system.
[0035] Among them, the adaptive configuration parameters refer to the adaptive adjustment parameters set according to different operating system categories to make the BLE (Bluetooth Low Energy) connection between the wearable device and the paired device reach the best state. For example, the iOS device is configured with ATT_MTU≥128 bytes, Connection Interval≤20ms, 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, APNS can be used to push messages to the device. Android wearable devices can use FCM to receive messages from the server. The data transmission method refers to the method used to transmit messages 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 the message during the transmission process. For example, many message push services use 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, the JSON data of APNS and the JSON data of FCM are converted into a unified message object inside the wearable device. The BLE signal strength refers to the BLE signal strength between the wearable device and the paired device. The signal strength of the connection, the connection signal quality refers to the strength and clarity of the signal transmitted on the connection established between the wearable device and the paired device, and the fault-tolerant control system refers to a set of mechanisms and strategies for dealing with abnormal BLE connection situations.
[0036] 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. The configuration table can set corresponding optimization parameters for the iOS system. The message push channel corresponding to the operating system category can be identified by using the system identification field, such as the User-Agent field in the HTTP request header will contain the type and version information 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 through 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 TLV encoding technology. The BLE connection signal strength of the wearable device can be monitored in real time by a Bluetooth tester. Based on the connection signal quality, the fault-tolerant control system of the BLE protocol can be created using an adaptive learning mechanism.
[0037] S3. 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.
[0038] The embodiment of the present invention defines the message receiving conditions of the wearable device according to the cross-platform adaptation mechanism, so that only messages from specific contacts, specific applications or messages containing specific keywords can be received to avoid interference from invalid information. The message receiving conditions refer to the rules set by the wearable device under the cross-platform adaptation mechanism for accurately, efficiently and safely receiving messages. For example, if a user is interested in sports events, messages containing keywords such as "football" and "basketball" can be set as receiving objects, so that relevant sports information can be obtained in a timely manner.
[0039] As an embodiment of the present invention, defining the message reception condition of the wearable device according to the cross-platform adaptation mechanism includes: determining the adaptation 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 adaptation device type; identifying the user's information reception preference 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 information reception preference; 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 adaptation device type; and defining the message reception condition of the wearable device in combination with the message importance score, the message filtering conditions and the message notification order.
[0040] Among them, the adapted device type refers to other types of devices that the wearable device can interact and adapt with, such as the iPhone with iOS system and various mobile phones with Android system. The message reception influencing factors refer to various conditions and situations that will affect the wearable device's reception of messages, such as the device processor speed. The user's message reception preference refers to the user's preference and reception tendency 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 factor used to represent the relative importance of the factor when calculating the importance of the message. The message importance score refers to a value obtained after a comprehensive evaluation of each message based on each message reception influencing factor and its corresponding weight. The message filtering condition refers to the rule that messages set according to the message importance score can be received and filtered by the wearable device. The message notification order refers to the order of message reminders determined according to certain rules when the wearable device receives multiple messages.
[0041] Optionally, based on the adapted device type, the message reception influencing factors of the wearable device can be analyzed using a linear regression algorithm, 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 grading method, for example, for smart watches, messages with an importance score higher than 80 points are set as level one notifications, 70-80 points as level two notifications, and less than 70 points as level three notifications, and 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 sum algorithm.
[0042] Furthermore, the embodiment of the present invention can reduce computing resources and power consumption and improve the overall performance and battery life of the device by setting message parsing rules for the wearable device based on the operating system category. The message parsing rules refer to a set of specifications and guidelines for converting received message data into a format and content that can be understood and processed.
[0043] Optionally, based on the operating system category, the message parsing rule of the wearable device can be set by a programming language, such as by writing code logic and using string processing, data structure operation and other methods to parse message data.
[0044] The embodiment of the present invention sets the message processing priority of the wearable device according to the message receiving condition and the message parsing rule, thereby ensuring that the wearable device prioritizes and presents the messages that the user cares about most or is most urgent to the user, and at the same time avoids system freezes or slow responses caused by processing too many messages at the same time, thereby 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 and urgency of the message and the relevance to user needs.
[0045] 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.
[0046] 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.
[0047] Optionally, according to the device performance requirements, the multi-device interaction mechanism of the message content can be constructed by a distributed consistency algorithm, such as a 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 by a decision tree algorithm. For example, the decision tree will judge based on 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 affairs 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 ordinary notification message arrive at the same time, the communication of the emergency alarm message is given priority. According to the message priority, the communication conflict resolution rule of the multi-device interaction mechanism can be defined by a proportional fair scheduling algorithm. For example, the system allocates resource ratios to devices according to message priorities. High-priority devices obtain 70% of resources, medium-priority devices obtain 20% of resources, and low-priority devices obtain 10% of resources. In each scheduling cycle, communication time and bandwidth are allocated to each device according to this ratio.
[0048] In an optional embodiment of the present invention, the device performance requirement corresponding to the message characteristic is 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 a specific message feature, which can be 10. Indicates the actual performance score of the device under the g-type message feature, which can be 5. Indicates the weight of the g-th type of message feature, which can be 0.3, m indicates the total number of message features, g indicates the message feature index, Represents the Sigmoid function, which is used to normalize the device performance requirements to the [0, 1] interval.
[0049] It should be noted that in this application, by calculating the difference between actual performance and expected performance, the performance requirements of the equipment can be optimized and improved. In particular, the formula It is used to analyze the difference between the performance of the device under specific message characteristics and the expected performance. It reflects 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 performance requirements.
[0050] S4. Based on the message processing priority, identify the message queue status of the wearable device, create a low power consumption management mode for the wearable device according to the message queue status, and define a low power consumption recovery rule for the wearable device based on the low power consumption management mode and the message processing priority.
[0051] The embodiment of the present invention can ensure timely transmission of data to connected devices such as mobile phones and realize rational use of resources by identifying the message queue status of the wearable device based on the message processing priority. 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.
[0052] Optionally, based on the message processing priority, the message queue status of the wearable device can be identified by setting a priority identification bit, 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 a corresponding position or queue segment according to its priority identification bit. By traversing the queue and checking the priority identification bit of each message, the message queue status can be identified.
[0053] Furthermore, the embodiment of the present invention creates a low-power management method for the wearable device based on the message queue status, thereby ensuring that key tasks can be completed quickly and accurately, avoiding delays or losses in key message processing due to insufficient power, and protecting the health and safety of users. The low-power management method refers to a strategy for optimizing and controlling the energy consumption of wearable devices.
[0054] As an embodiment of the present invention, the low power consumption management method of the wearable device is created according to the message queue status, including: based on the message queue status, extracting the queue messages of the wearable device, and determining the message level of the queue messages and their corresponding occurrence frequency and message quantity; according to the message level, the occurrence frequency and the message quantity, setting the sleep depth of the message queue status, and setting the key event triggering condition of the wearable device; analyzing the changing trend corresponding to the message queue status and the message level; based on the changing trend and the key event triggering condition, setting the dynamic adjustment mechanism of 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, creating the low power consumption management method of the wearable device.
[0055] 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 mobile phones, user operation instructions for the device, etc. The message level refers to the message level obtained after classification according to the importance and urgency of the queue message, such as high priority messages and low priority messages. The frequency of occurrence refers to the number of times messages of a specific message level appear in the message queue within a certain period of time. The number of messages refers to the specific number of messages of a specific message level in the message queue. For example, at a certain point in time, 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 used to describe the wearable device in 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 is detected or the condition is met. For example, when the frequency of occurrence of high-level messages exceeds 3 times within one minute, or the number of low-level messages reaches 100 in total. When a message is received, 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 status and the 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 status and the key event triggering conditions. For example, when an increase in high-level messages or a key event is detected, the dynamic adjustment mechanism will adjust the sleep depth to a shallower level so that the device can respond quickly to process the message. The task load index refers to the work task index undertaken by the wearable device at a certain moment or time period. For example, when the user turns on multiple functions at the same time, such as sports 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 device's message queue, and the frequency of occurrence will also be higher. At this time, the task load of the device is heavier.
[0056] Optionally, according to the message level, the occurrence frequency and the number of messages, the sleep depth of the message queue status can be set by a threshold-based algorithm. For example, when the occurrence frequency of high-level messages reaches 5 times every 5 minutes, or the number of messages reaches 20, the sleep depth is set to shallow sleep. According to the message level, the occurrence frequency and the number of messages, the key event triggering condition of the wearable device can be set using a support vector machine algorithm. The changing trends of the message queue status and the message level can be analyzed by data visualization tools, such as a line chart. Based on the changing trends and the key event triggering conditions, the dynamic adjustment mechanism of the sleep depth can be set by a rule algorithm.
[0057] In an optional embodiment of the present invention, the task load index of the wearable device is calculated according to the occurrence frequency 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. Indicates the changing trend of task load, Represents a variant of the Sigmoid function used to smooth out the effects of trends.
[0058] It should be noted that in this application, the task load index calculated using the above formula can quantify the task load of the wearable device and help optimize resource allocation and task scheduling. In particular, it should be noted that the formula Used to reflect the overall frequency of occurrence of messages of different priorities in the system, where: Indicates the frequency of high priority messages. Indicates the frequency of medium priority messages. Indicates the frequency of low priority messages.
[0059] The embodiment of the present invention defines the low power recovery rules of the wearable device based on the low power management method and the message processing priority, so as to maximize the battery life of the device while meeting the message processing requirements. The low power recovery rules refer to a set of criteria for determining how the wearable device switches from a low power mode to a normal working mode.
[0060] As an embodiment of the present invention, the low-power recovery rules of the wearable device are defined based on the low-power management method and the message processing priority, including: 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 method of the wearable device; setting the hierarchical response method of the wearable device in combination with the BLE signal transmission method 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 rules of the wearable device based on the wake-up threshold, the hierarchical wake-up mechanism and the hierarchical response method.
[0061] Among them, the recovery delay time refers to the time interval from determining that the wearable device needs to be restored from a low-power state to a normal working state to actually performing the recovery operation. The wake-up threshold refers to a critical value or condition used to determine whether the wearable device should be awakened from a 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-power protocol. The hierarchical response mode refers to the wearable device responding to various messages or events to different degrees and in different 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 with a high data transmission rate and high power consumption mode to quickly complete data processing and transmission. The wake-up source sequence refers to the order in which various possible wake-up sources are activated when the wearable device wakes up from a low-power state. For example, the key sensor and processor modules are awakened first, and then other auxiliary modules are awakened as needed. The hierarchical wake-up mechanism refers to a device wake-up strategy that combines message processing priority and wake-up source sequence.
[0062] 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 by a dynamic programming algorithm. For example, in the case where there are many high-priority messages and the recovery delay time is short, selecting a high-power but efficient transmission mode can enable the system to complete the task 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 by a priority mapping rule, for example, by constructing a mapping table of message processing priority and wake-up source order.
[0063] S5. 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 priority and the low power recovery rule.
[0064] The embodiments of the present invention help the wearable device to reasonably allocate processing resources and improve message processing efficiency by monitoring the user status of the paired device in real time based on the wearable device. The user status refers to a collection of information that can be monitored by the wearable device and reflects the user's current behavior, physiology, environment and other conditions, such as the user's psychological state and physiological state.
[0065] Optionally, according to the wearable device, the user status of the paired device can be monitored in real time through a built-in sensor of the wearable device.
[0066] Furthermore, the embodiment of the present invention can avoid excessive messages disturbing the user and improve the user experience by defining a personalized message notification method for the wearable device based on the user status. The personalized message notification method refers to a message notification presentation form and strategy tailored for the user based on factors such as the user's personal preferences, usage habits, current status, and message attributes.
[0067] As an embodiment of the present invention, defining a personalized message notification method for the wearable device based on the user status includes: collecting historical interaction data of the wearable device based on the user status; extracting context information corresponding to the user status based on the historical interaction data; identifying a connected device corresponding to the wearable device based on the context information; setting an environmental adaptive system for the wearable device in combination with the context information and the user status; creating a context synchronization mechanism between the wearable device and the connected device based on the environmental adaptive system; setting an adaptive interface notification form for the wearable device based on the environmental adaptive system and the user status; and defining a personalized message notification method for the wearable device in combination with the environmental adaptive system, the context synchronization mechanism and the adaptive interface notification form.
[0068] Among them, the historical interaction data refers to the data generated by the wearable device interacting with the user and the external environment in the past period of time, the context information refers to the relevant information extracted from the historical interaction data that can reflect the user's current situation and environment. For example, based on the motion data and time, it can be judged whether the user is exercising, resting or working. The connected device refers to other electronic devices connected to the wearable device by wired or wireless means. The environmental adaptation system refers to a system in which the wearable device dynamically adjusts the form, intensity or trigger logic of the notification by real-time perception of external environmental conditions (such as light, sound, position, etc.), such as enhancing tactile feedback in a noisy environment and reducing screen brightness in a dark environment. The context synchronization mechanism refers to a set of rules and methods for sharing and synchronizing context information between the wearable device and the connected device. For example, when the wearable device detects that the user has entered a sleep state, the connected smartphone is notified through the context synchronization mechanism, and the mobile phone is set to silent or do not disturb mode to avoid disturbing the user's sleep. The adaptive interface notification form refers to a method for dynamically adjusting the presentation mode of message notifications on the wearable device interface according to the environmental adaptation system and the user state. For example, when the user is busy, the notification is displayed in a simple icon form and only important information is displayed.
[0069] Optionally, based on the historical interaction data, the contextual information corresponding to the user status can be extracted using a recurrent neural network algorithm, and in combination with the contextual information and the user status, the environmental adaptation system of the wearable device can be set through a light sensor and a sound sensor, and based on the environmental adaptation system, the context synchronization mechanism between the wearable device and the connected device can be created using a BLE protocol stack, and based on the environmental adaptation system and the user status, the adaptive interface notification form of the wearable device can be set through an Adobe XD tool.
[0070] The embodiment of the present invention sets an adaptive wake-up mechanism for the wearable device based on the user status, the message processing priority and the low-power recovery rule, so as to accurately match the wake-up timing of the device and 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 status of the wearable device and the low-power recovery rule.
[0071] As an embodiment of the present invention, the adaptive wake-up mechanism of the wearable device is set based on the user status, the message processing priority and the low power recovery rule, including: based on the user status, identifying the user behavior pattern of the wearable device; according to the user behavior pattern, extracting the key monitor and the auxiliary monitor of the wearable device; determining the 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 method for the key monitor and the auxiliary monitor; according to the low power recovery rule, identifying the current BLE connection status of the key monitor and the auxiliary monitor; based on the current BLE connection status, setting the BLE error reconnection mechanism of the key monitor and the auxiliary monitor; in combination with the hierarchical wake-up method, the monitor wake-up order and the BLE error reconnection mechanism, setting the adaptive wake-up mechanism of the wearable device.
[0072] Among them, the user behavior pattern refers to the daily activity pattern and behavior characteristics of the user. For example, the user usually exercises in the morning, may rest at noon, and may be in a static state watching TV or playing with the mobile phone at night. 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 to obtaining key information. For example, when the user is in a sports behavior mode, the acceleration sensor, heart rate sensor and other components used to monitor the sports state and health indicators are key monitors. The auxiliary monitor refers to a sensor or functional module that is helpful for obtaining secondary or supplementary information under a specific user behavior mode, such as an air pressure sensor and a temperature sensor. The monitor wake-up order refers to the order in which each monitor is awakened according to the user behavior pattern and the importance and relevance of the monitor. The hierarchical wake-up method refers to the use of different wake-up strategies for key monitors and auxiliary monitors based on the message processing priority. For example, for high-priority messages, the key monitor will be awakened immediately. 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 when the BLE When a connection error occurs (such as connection interruption, signal loss, etc.), a series of rules and operations are taken to restore the connection. For example, when the BLE connection of the key monitor is interrupted, the reconnection mechanism may be started immediately, and multiple attempts to reconnect may be made in a short period of time. The connection parameters are adjusted according to the connection situation to restore communication with the external device as soon as possible. The reconnection mechanism of the auxiliary monitor may be relatively mild, and the reconnection time will be appropriately delayed according to the low power consumption requirements, and the number of reconnections will be reduced to avoid excessive power consumption.
[0073] Optionally, based on the user status, the user behavior pattern of the wearable device can be identified by 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, based on the low-power recovery rule, the current BLE connection status of the key monitor and the auxiliary monitor can be identified by a heartbeat packet detection algorithm, and based on the current BLE connection status, the BLE error reconnection mechanism of the key monitor and the auxiliary monitor can be set using an Arduino IDE tool, such as writing code using relevant library functions of the Arduino IDE, and after detecting a connection error, attempting to reconnect according to a set reconnection strategy (such as reconnecting at a fixed time interval).
[0074] S6. 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.
[0075] The embodiment of the present invention combines 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 of the wearable device and obtain a message processing result, thereby realizing communication between the wearable device and devices on different platforms, reducing the adaptation cost and complexity caused by platform differences, and improving the stability and reliability of message processing. At the same time, through the BLE protocol priority transmission, it can ensure that key information can reach the target device in a timely and accurate manner, thereby improving the overall efficiency and effectiveness of message processing. The intelligent message processing refers to the process of intelligently managing and processing messages received by the wearable device using the above-mentioned multiple technologies and mechanisms. The message processing result refers to the final output or status obtained by the wearable device after executing the intelligent message processing process for the received message, for example, displaying "message received and processed", "message being processed" or "message processing failed".
[0076] The embodiment of the present invention obtains a wearable device and a paired device that support the BLE protocol, identifies the data transmission channel between the wearable device and the paired device, analyzes the protocol interaction characteristics between the wearable device and the paired device, understands the functional support of the wearable device and the paired device, performs functional matching and negotiation, and ensures that both parties can correctly exchange data and use each other's functions to achieve interoperability; further, the embodiment of the present invention sets a cross-platform adaptation mechanism for the wearable device according to the operating system category and the BLE protocol, and ensures that all functions of the wearable device can be fully implemented on different operating systems; the embodiment of the present invention sets the message processing priority of the wearable device according to the message receiving condition and the message parsing rule, and ensures that the wearable device prioritizes and presents the user's most concerned or most urgent messages to the user, and at the same time, avoids system freezes or slow responses due to processing too many messages at the same time, and ensures stable operation of the system; further, the embodiment of the present invention creates a low-power management mode for the wearable device according to the message queue status, and ensures that key tasks can be completed quickly and accurately, avoids delays or losses in key message processing due to insufficient power, and ensures the user's Health and safety; the embodiment of the present invention defines the low-power recovery rule of the wearable device based on the low-power management mode and the message processing priority, which can maximize the device life while meeting the message processing requirements; further, the embodiment of the present invention defines the personalized message notification mode of the wearable device based on the user status, which can avoid excessive messages from interfering with users and improve user experience; the embodiment of the present invention sets the adaptive wake-up mechanism of the wearable device based on the user status, the message processing priority and the low-power recovery rule, which can accurately match the wake-up timing of the device and ensure the normal operation of the key functions of the device; finally, the embodiment of the present invention performs 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 mode to obtain the message processing result, which can realize the communication between the wearable device and the devices of different platforms, reduce the adaptation cost and complexity caused by platform differences, and improve the stability and reliability of message processing. At the same time, through the BLE protocol priority transmission, it can ensure that the key information can reach the target device in a timely and accurate manner, and improve the overall efficiency and effectiveness of message processing. Therefore, the message processing method and system for wearable devices based on the BLE protocol provided by the embodiments of the present invention can achieve cross-platform adaptation of wearable devices and improve message processing efficiency.
[0077] Embodiment 2: like Figure 2 , is a functional module diagram of a message processing system for wearable devices based on the BLE protocol of the present invention.
[0078] The message processing system 200 for implementing a wearable device based on the BLE protocol described in the present invention can be installed in an electronic device. According to the functions implemented, the message processing system for implementing a wearable device based on the BLE protocol can 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 module described in the present invention can also be referred to as a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0079] In the embodiment of the present invention, the functions of each module / unit are as follows: The protocol interaction module 201 is 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; 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; The message priority module 203 is 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; The power consumption management module 204 is used to identify the message queue state of the wearable device based on the message processing priority, create a low power consumption management mode of the wearable device according to the message queue state, and define a low power consumption recovery rule of the wearable device based on the low power consumption management mode and the message processing priority; 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 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 rule; The message processing module 206 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.
[0080] In detail, the modules in the message processing system 200 for implementing a wearable device based on the BLE protocol in the embodiment of the present invention are used in the same manner as described above. Figure 1 The same technical means as the message processing method for wearable devices based on the BLE protocol described in the specification and the like can produce the same technical effects, which will not be repeated here.
[0081] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0082] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution 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, creating a low power consumption management mode of the wearable device according to the message queue state, and defining a low power consumption recovery rule of the wearable device based on the low power consumption management mode and the message processing priority; 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; 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 step of creating a low power consumption management mode for 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. Indicates the changing trend of task load, Represents a variant of the Sigmoid function; The task load index and the dynamic adjustment mechanism are combined to create a low power consumption management method for the wearable device.
7. 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.
8. 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.
9. 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.
10. 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, create a low power consumption management mode of the wearable device according to the message queue status, and define a low power consumption recovery rule of the wearable device based on the low power consumption management mode and the message processing priority; 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
Multi-core processor task migration and power consumption adjustment method and architecture based on performance monitoring mechanism
CN115576664A
Health state low-power-consumption real-time monitoring method
CN116506823A
Cross-platform BLE equipment automatic connection method
CN116567858A
Messaging via low energy wireless transmissions
US20220166563A1
Cited By
Bluetooth connection method, device, equipment, vehicle, system and storage medium
CN120475386A