Message processing method, apparatus and first electronic device
By employing a different state design for the first and second processors in wearable devices, utilizing the second processor to handle message display and quick operations, and waking up the first processor only when custom operations are required, the problem of insufficient battery life in wearable devices is solved, achieving longer battery usage time.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2022-05-09
- Publication Date
- 2026-06-02
AI Technical Summary
Wearable devices frequently wake up the application processor (AP) when communicating with mobile phones, especially during the delivery of notification messages in instant messaging applications, resulting in insufficient battery life.
The first electronic device employs a design with different states for the first processor and the second processor. The second processor is in the running state and is responsible for message display and quick operation processing. It only wakes up the first processor when a custom operation is required, thus avoiding frequent wake-up of the AP.
By reducing the number of times the AP is woken up, the battery life of wearable devices is improved.
Smart Images

Figure CN116133091B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart terminal technology, and in particular to a message processing method, apparatus, and first electronic device. Background Technology
[0002] In existing related technologies, wearable devices can be implemented using an architecture of application processor (AP) + micro control unit (MCU). Specifically, the AP is responsible for the application and user interface (UI) display, while the MCU is responsible for background monitoring of sports and health, and does not support application and UI display.
[0003] In the AP+MCU architecture, the AP is mainly responsible for all front-end services and AP back-end services. When a user receives a notification message from the mobile phone, the AP will be woken up in the foreground, and the AP will be responsible for displaying the message notification interface and completing the reply action on the AP side. When there is no AP-side intervention, the AP side is in a dormant state.
[0004] However, Bluetooth-based services between wearable devices and mobile phones, such as syncing watch health data to the phone and / or syncing application notifications from the phone to the wearable device, require the AP to be woken up and processed for each application notification. This is especially true for instant messaging applications, which can cause the AP to be woken up frequently, thus preventing the overall battery life of the wearable device from reaching its optimal level. Summary of the Invention
[0005] This application provides a message processing method, apparatus, and first electronic device. It also provides a computer-readable storage medium to avoid frequent AP wake-ups and improve the battery life of the first electronic device.
[0006] In a first aspect, embodiments of this application provide a message processing method applied to a first electronic device. The first electronic device includes a first processor and a second processor. The first processor is different from the second processor; the first processor is in a sleep state, while the second processor is in a running state. The method may include: the first electronic device receiving a message sent by the second electronic device; controlling the display screen of the first electronic device to display the message through the second processor; then the first electronic device acquiring the user's operation on the message; when the operation type is a first operation type, processing the operation through the second processor; wherein the first operation type includes a shortcut operation.
[0007] In the above message processing method, after the first electronic device receives the message sent by the second electronic device, it controls the display screen to display the message through the MCU, and then obtains the operation of the user of the first electronic device on the message. When the type of the operation is the first operation type, the operation is processed by the MCU. This allows the MCU to process the user's operation, avoids frequent wake-up of the AP, and thus improves the battery life of the first electronic device.
[0008] The first electronic device can be a wearable device, and the second electronic device can be a smart electronic device. The first processor can be an application processor (AP), and the second processor can be an MCU.
[0009] In one possible implementation, controlling the display screen of the first electronic device to display the message via the second processor can be as follows: the second processor controls the display screen to display the message on half screen; if the first electronic device detects that the user has triggered an operation to view the message within a predetermined time after receiving the message, the second processor controls the display screen to display the message on full screen.
[0010] In one possible implementation, the message sent by the second electronic device includes a message obtained from the notification bar of the second electronic device; in this way, after the first electronic device receives the message sent by the second electronic device, it can also determine whether the message supports a reply through the second processor.
[0011] In one possible implementation, determining whether a message supports a reply via the second processor can be done by: determining whether a reply-supporting marker exists in the message; wherein the reply-supporting marker is added to the message obtained from the notification bar by the second electronic device after determining that the message supports a reply; if a reply-supporting marker exists in the message, then the message is determined to support a reply; if a reply-supporting marker does not exist in the message, then the second processor determines whether the message matches a pre-saved reply-supporting message, and if so, the message is determined to support a reply.
[0012] In one possible implementation, when the operation type is the first operation type, the operation can be processed by the second processor as follows: when the message supports reply and the operation is a quick reply operation, the content of the quick reply is obtained by the second processor; the content of the quick reply is sent to the second electronic device through the channel between the second processor and the second electronic device.
[0013] In one possible implementation, after obtaining the user's operation on the message using the first electronic device, when the operation type is a second operation type, the first processor is woken up by the second processor, and the first processor processes the operation; wherein, the second operation type includes a custom operation.
[0014] In one possible implementation, when the type of the above operation is the second operation type, the first processor is woken up by the second processor, and the first processor processes the above operation as follows: when the above message supports a reply, and the above operation is an operation that triggers a custom reply, the first processor is woken up by the second processor, the content of the custom reply is obtained by the first processor, and the content of the custom reply is sent to the second electronic device through the channel between the first processor and the second electronic device.
[0015] In one possible implementation, the aforementioned support for replying includes the application package name in the second electronic device that sent the message, the user-level identifier within the application, and the process ID of the application running.
[0016] In one possible implementation, before the first electronic device obtains the user's operation on the message, it may also display a prompt message to indicate that the message is to be processed by the second electronic device. Thus, when the operation type is a first operation type, the processing of the operation by the second processor can be as follows: when the operation is a confirmation instruction from the user to the prompt message, the confirmation instruction is sent to the second electronic device through the channel between the second processor and the second electronic device; the processing result of the message sent by the second electronic device is received; and the processing result is displayed on the screen by the second processor.
[0017] Secondly, embodiments of this application provide a message processing apparatus, which is included in a first electronic device. This apparatus has the function of implementing the behaviors of the first electronic device in the first aspect and its possible implementations. The function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above-described functions. For example, a receiving module or unit, a processing module or unit, a sending module or unit, etc.
[0018] Thirdly, embodiments of this application provide a first electronic device, including: a first processor and a second processor; a memory; multiple application programs; and one or more computer programs; wherein the first processor and the second processor are different, the first processor is in a sleep state, the second processor is in a running state, the one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the first electronic device, cause the first electronic device to perform the following steps: receiving a message sent by the second electronic device; controlling the display screen of the first electronic device to display the message through the second processor; obtaining the user's operation on the message; when the type of the operation is a first operation type, processing the operation through the second processor; wherein the first operation type includes a shortcut operation.
[0019] In one possible implementation, when the above instruction is executed by the first electronic device, the step of causing the first electronic device to control the display screen of the first electronic device to display the above message through the second processor can be: controlling the display screen to display the above message half-screen through the second processor; if the first electronic device detects that the user triggers the operation of viewing the message within a predetermined time after receiving the above message, then controlling the display screen to display the above message in full-screen mode through the second processor.
[0020] In one possible implementation, the message sent by the second electronic device includes a message obtained from the notification bar of the second electronic device; when the above instruction is executed by the first electronic device, after the first electronic device performs the step of receiving the message sent by the second electronic device, it also performs the following steps: determining whether the message supports a reply by the second processor.
[0021] In one possible implementation, when the above instruction is executed by the first electronic device, the step of determining whether the message supports a reply by the second processor can be as follows: the second processor determines whether there is a reply-supporting marker in the message; wherein, the reply-supporting marker is added to the message obtained from the notification bar after the second electronic device determines that the message obtained from the notification bar supports a reply; if there is a reply-supporting marker in the message, then the message is determined to support a reply; if there is no reply-supporting marker in the message, then the second processor determines whether the message matches a pre-saved reply-supporting message, and if so, the message is determined to support a reply.
[0022] In one possible implementation, when the above instruction is executed by the first electronic device, causing the first electronic device to perform the step of processing the above operation by the second processor when the type of the above operation is the first operation type, the steps may be as follows: when the above message supports reply and the above operation is a quick reply operation, the content of the quick reply is obtained by the second processor; the content of the quick reply is sent to the second electronic device through the channel between the second processor and the second electronic device.
[0023] In one possible implementation, when the above instruction is executed by the first electronic device, after the first electronic device performs the step of obtaining the user's operation on the above message, the following steps are also performed: when the type of the above operation is a second operation type, the first processor is woken up by the second processor, and the first processor processes the above operation; wherein, the second operation type includes a custom operation.
[0024] In one possible implementation, when the above instruction is executed by the first electronic device, causing the first electronic device to perform the following steps when the type of the above operation is the second operation type: the second processor wakes up the first processor, and the first processor processes the above operation. The steps are as follows: when the above message supports a reply, and the above operation is an operation that triggers a custom reply, the second processor wakes up the first processor, and the first processor obtains the content of the custom reply; the content of the custom reply is sent to the second electronic device through the channel between the first processor and the second electronic device.
[0025] In one possible implementation, the aforementioned support for replying includes the application package name in the second electronic device that sent the message, the user-level identifier within the application, and the process ID of the application.
[0026] In one possible implementation, before the first electronic device executes the step of obtaining the user's operation on the message when the instruction is executed, the following steps are performed: displaying a prompt message to indicate that the message is to be processed by the second electronic device; when the first electronic device executes the instruction, and the first electronic device processes the operation by the second processor when the operation is of the first operation type, the step of processing the operation by the second processor may be: when the operation is a confirmation instruction from the user to the prompt message, sending the confirmation instruction to the second electronic device through the channel between the second processor and the second electronic device; receiving the processing result of the message sent by the second electronic device; and controlling the display screen to display the processing result by the second processor.
[0027] It should be understood that the second and third aspects of the embodiments of this application are consistent with the technical solutions of the first aspect of the embodiments of this application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation are similar, and will not be described again.
[0028] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to perform the method provided in the first aspect.
[0029] Fifthly, embodiments of this application provide a computer program that, when executed by a computer, performs the method provided in the first aspect.
[0030] In one possible design, the program in the fifth aspect can be stored wholly or partially on a storage medium packaged with the processor, or it can be stored wholly or partially on a memory not packaged with the processor. Attached Figure Description
[0031] Figure 1 This is a schematic diagram of the structure of a first electronic device provided in one embodiment of this application;
[0032] Figure 2 A schematic diagram of a message display interface on a wearable device 100 according to one embodiment of this application;
[0033] Figure 3 A schematic diagram of a system architecture provided for one embodiment of this application;
[0034] Figure 4 A flowchart illustrating a message processing method provided in one embodiment of this application;
[0035] Figure 5 A flowchart of a message processing method provided in another embodiment of this application;
[0036] Figure 6 A flowchart of a message processing method provided in another embodiment of this application;
[0037] Figure 7 A schematic diagram of the structure of a first electronic device provided in another embodiment of this application. Detailed Implementation
[0038] The terminology used in the implementation section of this application is for the purpose of explaining specific embodiments of this application only, and is not intended to limit this application.
[0039] In existing technologies, wearable devices can be implemented using an AP+MCU architecture. The communication between the wearable device and the mobile phone is based on Bluetooth. The delivery of each application-related notification message will wake up the AP and process the business. Especially for instant messaging applications, this will cause the AP to be woken up frequently, which will also cause the overall battery life of the wearable device to not reach the optimal level.
[0040] Based on the above problems, this application provides a message processing method that can determine the processing channel of a service according to the power consumption processing strategy of the service and the type of the reply content, thereby dynamically running the service on the MCU side or the AP side, avoiding frequent AP wake-ups, and thus improving the battery life of wearable devices.
[0041] The message processing method provided in this application embodiment can be applied to a first electronic device, wherein the first electronic device can be a wearable device, an in-vehicle device, an augmented reality (AR) / virtual reality (VR) device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc.; this application embodiment does not impose any restrictions on the specific type of the first electronic device.
[0042] For example, Figure 1 This is a schematic diagram of the structure of a first electronic device provided in one embodiment of this application, as shown below. Figure 1 As shown, the first electronic device 100 may include: a display unit 110, an input unit 120, a radio communication unit 130, a Bluetooth unit 140, a sensing unit 150, a storage unit 160, a first processor 170, a second processor 180, and a global positioning system (GPS) unit 190.
[0043] The first processor 170 can be responsible for executing various software programs (e.g., application programs and operating systems) to provide computational and processing operations for the first electronic device 100. The first processor 170 can be a central processing unit (CPU) or an application processor (AP).
[0044] The second processor 180 is primarily responsible for detecting data from the sensing unit 150. The second processor 180 includes any of the following: a low-power processor, a low-power microprocessor (MPU), or an MCU. The second processor 180 runs appropriate software, or a combination of hardware and software components.
[0045] Normally, the first processor 170 is in sleep mode, while the second processor 180 is in running mode. Specifically, after the first electronic device 100 receives a message sent by the second electronic device, the second processor 180 displays the message. If the message supports a reply, the first electronic device 100 can quickly reply to the message through the second processor 180. If the user needs to make a custom reply, the second processor 180 wakes up the first processor 170, which then processes the message.
[0046] Display unit 110 is configured to display graphics, images, or data to a user. Display unit 110 is configured to provide various screens associated with the operation of the first electronic device 100. Display unit 110 provides a main screen, a message composing screen, a telephone screen, a game screen, a music playback screen, and a video playback screen. Display unit 110 may be implemented using a flat panel display panel (such as a liquid crystal display (LCD), an organic light-emitting diode (OLED), and an active-matrix OLED (AMOLED)).
[0047] Display unit 110 is connected to first processor 170 and second processor 180. First processor 170 and display unit 110 can be configured to communicate with each other using interfaces such as (but not limited to) RGB interface, MDDI (Mobile Display Digital Interface), and MIPI (Mobile Industry Processor Interface). Second processor 180 and display unit 110 can be configured to communicate with each other using interfaces such as (but not limited to) SPI (Serial Peripheral Interface) or I2C (Internal Integrated Circuit).
[0048] When the display unit 110 is implemented as a touchscreen, it can function as an input device. In the case of the display unit 110 as a touchscreen, it includes a touch panel for detecting touch gestures. The touch panel is configured to convert pressure applied to a specific location of the display unit 110 or capacitance changes in a specific area of the display unit 110 into an electrical input signal. The touch panel can be implemented as either an add-on or an on-cell (or in-cell) type.
[0049] The touch panel can be implemented as one of the following: a resistive touch panel, a capacitive touch panel, an electromagnetic induction touch panel, and a pressure-sensitive touch panel. The touch panel is configured to detect the pressure of a touch as well as the location and area of the touch. If a touch gesture is made on the touch panel, a corresponding input signal is generated to the first processor 170. The first processor 170 then examines the user's touch input information to execute the corresponding function.
[0050] Input unit 120 includes modules associated with input to the first electronic device 100. Input unit 120 receives user input associated with the configuration and control of the functions of the first electronic device 100 and generates corresponding input signals to the first processor 170. Input unit 120 may be implemented using at least one of the following: a touchpad, a touchscreen, a standard keyboard, a QWERTY keyboard, and special function keys (e.g., a power button or volume keys). Input unit 120 is connected to the first processor 170 and the second processor 180.
[0051] The radio communication unit 130 is responsible for the communication functions of the electronic device. The radio communication unit 130 establishes a communication channel with a supported mobile communication network to enable voice calls, video conferencing, and data communication. The radio communication unit 130 includes a radio frequency (RF) transmitter and an RF receiver, wherein the RF transmitter is used to upconvert and amplify the transmitted signal, and the RF receiver is used to perform low-noise amplification and downconversion of the received signal. The radio communication unit 130 includes a cellular communication module (e.g., a third-generation (3G) cellular communication module and / or a 4G cellular communication module) and a digital broadcasting module.
[0052] Global Positioning System (GPS) unit 190. GPS unit 190 receives satellite GPS signals from GPS satellites and transmits the GPS signals to first processor 170. First processor 170 is configured to calculate the current location of the electronic device based on the satellite GPS signals.
[0053] The sensing unit 150 is connected to the second processor 180, detects the position information of the first electronic device 100 or changes in the surrounding environment, and sends the sensed information to the second processor 180. Specifically, the sensing unit 150 includes at least one of the following: a gyroscope sensor for detecting rotation, rotational movement, angular displacement, tilt, or any other nonlinear motion; a triaxial accelerometer for sensing acceleration in one or more directions; a barometer for measuring barometric altitude; an ambient light sensor for sensing ambient light; an infrared (IR) sensor for sensing gestures; and a proximity sensor. The sensing unit 150 operates under the control of the second processor 180.
[0054] The first electronic device 100 can receive motion sensor data generated by a motion sensor (e.g., a gyroscope or accelerometer) in the sensing unit 150, thereby generating a specific motion event (e.g., a walking event or a swaying event) based on the motion sensor data. The first electronic device 100 can process the generated motion sensor data using a motion sensing application. For example, a processor running a motion sensing application can analyze the motion sensor data to identify the specific type of motion event.
[0055] Optionally, the sensing unit 150 may be connected to the first processor 170 and the second processor 180 respectively.
[0056] The first processor 170 and the second processor 180 may be configured to communicate with each other using interfaces such as (but not limited to) the following: one or more Universal Serial Bus (USB) interfaces, Micro USB interfaces, Universal Asynchronous Receiver Transmitter (UART) interfaces, Universal Input / Output (GPIO) interfaces, etc.
[0057] The first electronic device 100 may also include another processor, and may be implemented as a dual-core or multi-core chip with the first processor 170 and the second processor 180 located on a single chip, that is, the first processor 170 and the second processor 180 are disposed in the same integrated circuit chip, or they may be disposed in different integrated circuit chips.
[0058] Storage unit 160 is configured to store various data executed and processed in the first electronic device 100, as well as the electronic device's operating system (OS) and various applications. Storage unit 160 is implemented using at least one of, but not limited to, RAM, ROM, flash memory, volatile memory, EPROM, and EEPROM. Storage unit 160 includes a data area and a program area. The data area of storage unit 160 stores data generated by the first electronic device 100 and data downloaded from external sources.
[0059] The program area of storage unit 160 stores the operating system (OS) for booting the electronic device under the control of the first processor 170, as well as applications required for navigation, video and audio playback, and image display functions. The program area is also configured to store applications required for broadcast playback, audio recording, calculator, calendar, and other similar functions. Although storage unit 160 is shown as separate from and located outside the first processor 170 for illustrative purposes, in various embodiments, a portion or all of storage unit 160 may be integrated with the first processor 170 on the same integrated circuit.
[0060] The storage area of storage cell 160 also includes an additional storage area controlled by the second processor 180. This additional storage area controlled by the second processor 180 is accessible even when the first processor 170 is in power-saving mode. The additional storage area controlled by the second processor 180 may be integrated onto the same integrated circuit as the second processor 180, but is not limited to this.
[0061] Bluetooth unit 140 is responsible for short-range communication with another Bluetooth communication device (e.g., a tablet or smartphone). Bluetooth unit 140 can be any hardware and / or software element configured to transmit data (e.g., send and / or receive) using one or more wired and / or wireless protocols. Bluetooth unit 140 primarily utilizes the Bluetooth protocol to transmit data.
[0062] Bluetooth unit 140 is connected to first processor 170 and second processor 180.
[0063] It should be noted that in the following description of the embodiments of this application, the first electronic device 100 is described as a wearable device 100. Furthermore, the message sending method provided in the embodiments of this application also involves a second electronic device, which can be a smartphone, tablet computer, wearable device, in-vehicle device, AR / VR device, laptop computer, UMPC, netbook, or personal digital assistant (PDA), etc. The embodiments of this application do not impose any restrictions on the specific type of the second electronic device. In the following description of the embodiments of this application, a smartphone is used as an example of the second electronic device.
[0064] The message sending method provided in this application embodiment is based on Bluetooth dual-channel, that is, based on the ability of a smartphone to simultaneously establish two Bluetooth logical channels with the first processor 170 and the second processor 180 in the wearable device 100. Specifically, after a message from an application on the smartphone is sent to the notification bar on the phone side, the management APP (e.g., a sports and health application) on the smartphone, which is responsible for handling message forwarding and connecting to the wearable device 100, will transmit the message to the wearable device 100 side. When the wearable device 100 receives the message sent by the smartphone, it will display it by default through the MCU, for example, by popping up a half-screen notification on the wearable device 100 side, and displaying the message in full screen after the user clicks on it.
[0065] When a message in the notification bar on the phone is a replyable message, such as a message sent by an instant messaging app, the management app on the smartphone can obtain key information from the replyable message, such as the process ID, application package name, and / or message timestamp, and package this key information into a Bluetooth command for transmission to the wearable device 100. When the wearable device 100 receives this type of tagged message, it displays it via the second processor 180 by default. For example, a half-screen notification pops up on the wearable device 100, and the message is displayed in full screen after the user clicks on it. Figure 2 As shown, Figure 2 This is a schematic diagram of a message display interface on a wearable device 100 according to one embodiment of this application. Figure 2As can be seen, after the wearable device 100 receives a replyable message from the smartphone, the pop-up half-screen notification can be as shown in interface 21. After the user clicks on the half-screen notification, the wearable device 100 can display the message in full screen, as shown in interface 22.
[0066] For replyable messages, the wearable device 100 can provide a quick reply function through the second processor 180, such as transmitting predefined text information or emoji-based expressions; when the user needs to make a custom reply (e.g., pictures, voice, text, custom expressions, exercise records or contact cards, etc.), the second processor 180 wakes up the first processor 170, which then processes the message.
[0067] See Figure 2 Wearable device 100 can provide a quick reply function via icons 23 and 24. Specifically, when the user clicks icon 23, wearable device 100 can display interface 27, from... Figure 2 As can be seen, interface 27 displays emojis. After the user selects an emoji from interface 27, the wearable device 100 can obtain the selected emoji and transmit it to the smartphone's APP (hereinafter referred to as the "management APP"), which is responsible for message forwarding and connecting the wearable device 100, via the second processor 180. The management APP on the smartphone then pushes the emoji transmitted by the second processor 180 from the wearable device 100 to the smartphone's notification bar, thereby enabling the smartphone-side application to complete the reply operation. When the user clicks icon 24, the wearable device 100 can display interface 28, from which... Figure 2 As can be seen, interface 28 displays predefined text information. After the user selects the predefined text information from interface 28, the wearable device 100 can obtain the text information selected by the user and transmit it to the management APP in the smartphone through the second processor 180. The management APP in the smartphone then pushes the text information transmitted by the second processor 180 in the wearable device 100 to the notification bar of the smartphone, and then completes the reply operation using the application on the smartphone side.
[0068] When a user needs to make a custom reply, the user can click on the information box 25 to enter custom text, or click on the icon 26 to select a custom emoticon, exercise record, or contact card, or click on the icon 29 to enter voice. The wearable device 100 then obtains the information entered by the user and transmits it to the management APP on the smartphone through the first processor 170. The management APP on the smartphone then pushes the information transmitted by the first processor 170 in the wearable device 100 to the notification bar of the smartphone, and then completes the reply operation using the application on the smartphone side.
[0069] It should be noted that if the notification bar messages on the smartphone side have been cleared by the user, and the status of the messages on the wearable device 100 side has not been synchronized, the message reply on the wearable device 100 side may fail.
[0070] Figure 3 This is a schematic diagram of a system architecture provided in one embodiment of this application. Figure 3 As shown, the smartphone establishes Bluetooth channels with the MCU and AP in the wearable device 100, respectively. The message response mechanism of the wearable device 100 may include:
[0071] 301. A replyable message notification was received in the notification bar of an instant messaging app on the smartphone side.
[0072] 302. The smartphone-side management app is responsible for synchronizing messages with the wearable device 100. This management app can be a smartphone app responsible for handling message forwarding and connecting to the wearable device 100, such as a fitness and health app.
[0073] 303. In the case of the first processor 170 on the wearable device 100 going to sleep, the message is processed by the second processor 180; if the user customizes the reply, the second processor 180 will wake up the first processor 170 to perform the relevant operation.
[0074] 304-305, the smartphone-side management app is responsible for forwarding the message to the notification bar, and ultimately relies on the smartphone's system capabilities to send the message to the application to complete the reply operation.
[0075] The message reply strategy on the wearable device 100 side can be shown in Table 1.
[0076] Table 1
[0077]
[0078] For ease of understanding, the following embodiments of this application will be described using the following methods: Figure 1 Taking the wearable device 100 with the structure shown as an example, combined with Figure 3 The system architecture shown illustrates the message processing method provided in the embodiments of this application.
[0079] Figure 4 This is a flowchart illustrating a message processing method provided in one embodiment of this application. The message processing method can be applied to a wearable device 100, which may include a first processor 170 and a second processor 180. The first processor 170 differs from the second processor 180; the first processor 170 is in a sleep state, while the second processor 180 is in a running state. In the following description of the embodiments, the first processor 170 is used as an access point (AP), and the second processor 180 is used as an MCU (Microcontroller Unit).
[0080] like Figure 4 As shown, the above message processing method may include:
[0081] Step 401: Wearable device 100 receives a message sent by smartphone.
[0082] The messages sent by the smartphone can be obtained from the smartphone's notification bar; for example, the messages can be received by instant messaging apps, or push messages received by news apps or video apps. This embodiment does not limit the type of the messages.
[0083] Specifically, after the management app on the smartphone receives a message from the notification bar, it can select a channel between the smartphone and the MCU of the wearable device 100 according to the channel selection strategy, and send the message received from the notification bar to the MCU of the wearable device 100. The channel between the smartphone and the MCU of the wearable device 100 can be a Bluetooth channel, a WiFi channel, or other types of wireless communication channels. This embodiment does not limit the channel type between the smartphone and the MCU of the wearable device 100. In specific implementation, the MCU of the wearable device 100 can establish the aforementioned channel with the smartphone through the Bluetooth unit 140.
[0084] Step 402: The above message is displayed on the screen of the wearable device 100 by controlling the MCU.
[0085] The display screen of the wearable device 100 can be Figure 1 The display unit 110 in the middle.
[0086] Specifically, controlling the display screen of the wearable device 100 to display the aforementioned message via the MCU can be as follows: the MCU controls the display screen to display the message on half-screen; if the wearable device 100 detects a user triggering an operation to view the message within a predetermined time period after receiving the message, the MCU controls the display screen to display the message on full-screen. The operation triggering the viewing of the message can be a user clicking, double-clicking, or long-pressing the message displayed on half-screen, or it can be a user raising their wrist. This embodiment does not limit the type of operation triggering the viewing of the message; this embodiment uses a user raising their wrist as an example for explanation.
[0087] The aforementioned predetermined duration can be set by the system based on performance and / or implementation requirements during the actual implementation. This embodiment does not limit the length of the aforementioned predetermined duration. For example, the aforementioned predetermined duration can be 1 minute.
[0088] Specifically, after the MCU of the wearable device 100 receives the message, it implements a dual-system collaboration mechanism to transfer the message between the MCU of the wearable device 100 and the AP. The MCU is responsible for caching the message and listening to the AP's wake-up and caching threshold. It also actively synchronizes the cached message to the AP side.
[0089] After the MCU receives the message sent by the smartphone, it controls the display unit 110 to display the message on half of the screen, such as... Figure 2 As shown in interface 21, if the user raises their wrist to view the message within one minute of receiving it, the MCU controls the display unit 110 to display the message in full screen. Figure 2 As shown in interface 22, the MCU does not need to wake up the AP at this time. If the user does not view the message within 1 minute of receiving the message, then after 1 minute, the user needs to swipe to enter the message center (wake up the AP) on the interface displayed on display unit 110 and click to view a message.
[0090] Step 403: Obtain the user's operation on the above message using the wearable device 100.
[0091] Step 404: When the above operation is of the first operation type, the above operation is processed by the MCU.
[0092] The first operation type mentioned above may include quick operations. For example, the quick operation may be a quick reply operation, a quick setting operation, and / or a quick control operation. This embodiment does not limit the specific operation form of the quick operation.
[0093] In the above message processing method, the wearable device 100 receives a message sent by a smartphone, displays the message on the screen of the wearable device 100 through the MCU, and then obtains the user's operation on the message. When the operation type is the first operation type, the operation is processed by the MCU. This allows the MCU to process the user's operation, avoids frequent wake-up of the AP, and improves the battery life of the wearable device 100.
[0094] Figure 5 A flowchart of a message processing method provided in another embodiment of this application is shown below. Figure 5 As shown, this application Figure 4 In the illustrated embodiment, after step 401, the following may also be included:
[0095] Step 501: Determine whether the above message supports a reply via the MCU.
[0096] Specifically, determining whether a message supports a reply via the MCU can be done by: checking if a reply-supporting marker exists in the message; where the reply-supporting marker is added to the message obtained from the notification bar by the smartphone after determining that the message supports a reply; thus, if the message contains a reply-supporting marker, it can be determined that the message supports a reply; if the message does not contain a reply-supporting marker, the MCU can determine whether the message matches a pre-saved message that supports a reply, and if so, it can be determined that the message supports a reply.
[0097] In this embodiment, the messages sent by the smartphone may include messages with added tags and messages without added tags. Among them, messages without added tags may be push messages received by news apps or video apps on the smartphone, and these messages do not support replies. The messages with added tags are obtained by the smartphone after determining that the messages obtained from the notification bar support replies, and then adding a tag that supports replies to the messages obtained from the notification bar. For example, the messages that support replies may be messages received by instant messaging apps.
[0098] The tags indicating that a message supports a reply include the application package name that sent the message on the smartphone, the user-level identifier within the application, and the process ID of the application running the message. Specifically, the smartphone can tag messages that support replies in the following way: pkg+"|"+id+"|"+tag+"|"+uid;
[0099] Pkg: Application package name;
[0100] id: A user-level identifier within the application;
[0101] Tag: Usually null, reserved by the system;
[0102] uid: Process ID.
[0103] In practice, the MCU can pre-store a list of messages that support replies. When the wearable device 100 receives a message from the smartphone, the MCU can first determine whether there is a flag indicating that a reply is supported in the message. If so, the message can be determined to support a reply. If there is no flag indicating that a reply is supported in the message, the MCU can determine whether the message matches a message in the pre-stored message list. If they match, the message can be determined to support a reply.
[0104] Thus, step 404 may include:
[0105] Step 502: When the above message supports replying and the above operation is a quick reply operation, obtain the content of the quick reply through the MCU.
[0106] Specifically, see Figure 2 The quick reply operation described above can be performed by the user clicking icon 23. In this case, the quick reply content can be an emoji selected by the user from interface 27. Alternatively, the quick reply operation described above can be performed by the user clicking icon 24. In this case, the quick reply content can be predefined text information selected by the user from interface 28.
[0107] Step 503: Send the content of the quick reply to the smartphone through the channel between the MCU and the smartphone.
[0108] Furthermore, in this embodiment, after step 403, the following steps may also be included:
[0109] Step 504: When the type of the above operation is the second operation type, the AP is woken up by the MCU and the above operation is processed by the AP; wherein, the second operation type may include a custom operation.
[0110] For example, the above-mentioned custom operations may include custom replies, custom settings, and / or custom controls. This embodiment does not limit the specific operation form of the above-mentioned custom operations.
[0111] Specifically, when the above operation is of the second operation type, the AP is woken up by the MCU and the AP processes the above operation as follows: when the above message supports reply and the above operation is an operation that triggers a custom reply, the AP is woken up by the MCU, the content of the custom reply is obtained by the AP, and the content of the custom reply is sent to the smartphone through the channel between the AP and the smartphone.
[0112] Similarly, the channel between the AP of the wearable device 100 and the smartphone can be a Bluetooth channel, a WiFi channel, or other types of wireless communication channels. This embodiment does not limit the channel type between the smartphone and the AP of the wearable device 100. In specific implementation, the AP of the wearable device 100 can establish the above-mentioned channel with the smartphone through the Bluetooth unit 140.
[0113] Specifically, see Figure 2 The above-mentioned actions that trigger a custom reply can be that the user clicks on information box 25, in which case the custom reply content can be the user's custom text; or, the above-mentioned actions that trigger a custom reply can be that the user clicks on icon 26, in which case the custom reply content can be the user's custom emoticon, exercise record and / or contact card, etc.; or, the above-mentioned actions that trigger a custom reply can be that the user clicks on icon 29, in which case the custom reply content can be the user's voice.
[0114] In this embodiment, the wearable device 100 determines the default processing channel of the service based on the type of the reply content, thereby dynamically running the service on the MCU side or the AP side, avoiding frequent wake-up of the AP and improving the battery life of the wearable device 100.
[0115] Figure 6 A flowchart of a message processing method provided in another embodiment of this application is shown below. Figure 6 As shown, this application Figure 4 In the illustrated embodiment, before step 403, the following may also be included:
[0116] Step 601: Display a prompt message. The prompt message is used to indicate that the above message is processed by a smartphone.
[0117] Thus, step 404 may include:
[0118] Step 602: When the above operation is a confirmation instruction from the user to the above prompt information, the confirmation instruction is sent to the smartphone through the channel between the MCU and the smartphone.
[0119] Step 603: Receive the processing result of the above message sent by the smartphone.
[0120] Step 604: The MCU controls the display screen to show the above processing results.
[0121] Specifically, when a card-type application or a FA-type application is sent from a smartphone, after the MCU displays the card-type application or FA-type application, a prompt message can be displayed on the display screen 194 of the wearable device 100 to indicate that the card-type application or FA-type application is being handled by the smartphone. After obtaining the user's confirmation instruction for the prompt message, the wearable device 100 can send the confirmation instruction to the smartphone through the channel between the MCU and the smartphone. Then, the wearable device 100 receives the processing result of the message sent by the smartphone and controls the display screen to display the processing result through the MCU.
[0122] Among them, the FA type of application mentioned above can be a similar functional unit that does not require installation.
[0123] It is understood that some or all of the steps or operations in the above embodiments are merely examples, and other operations or variations thereof can be performed in the embodiments of this application. Furthermore, the steps may be performed in different orders as presented in the above embodiments, and it is not necessary to perform all the operations in the above embodiments.
[0124] It is understood that, in order to achieve the above-mentioned functions, the first electronic device includes hardware and / or software modules corresponding to the execution of each function. Based on the algorithm steps of the various examples described in conjunction with the embodiments disclosed in this application, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered beyond the scope of this application.
[0125] This embodiment can divide the first electronic device into functional modules according to the above method embodiment. For example, each function can be divided into a separate functional module, or two or more functions can be integrated into one module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0126] Figure 7 This is a schematic diagram of the structure of a first electronic device provided in another embodiment of this application. In the case where functional modules are divided according to their respective functions, Figure 7 A schematic diagram of a possible composition of the first electronic device 700 involved in the above embodiments is shown, such as... Figure 7 As shown, the first electronic device 700 may include: a receiving unit 701, a processing unit 702, and a transmitting unit 703;
[0127] The receiving unit 701 can be used to support the first electronic device 700 in performing steps 401 and 603, and / or other processes for the technical solutions described in the embodiments of this application;
[0128] The processing unit 702 can be used to support the first electronic device 700 in executing steps 402, 403, 404, 501, 502, 601 and 604, and / or other processes used in the technical solutions described in the embodiments of this application.
[0129] The transmitting unit 703 can be used to support the first electronic device 700 in performing steps 503 and 602, and / or in other processes of the technical solutions described in the embodiments of this application.
[0130] It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here.
[0131] The first electronic device 700 provided in this embodiment is used to execute the above message processing method, and thus can achieve the same effect as the above method.
[0132] It should be understood that the first electronic device 700 can correspond to Figure 1 The first electronic device 100 shown. The functions of the receiving unit 701 and the transmitting unit 703 can be determined by... Figure 1 The processor 110, antenna 1, and mobile communication module 150 in the first electronic device 100 shown are, and / or, implemented by the processor 110, antenna 2, and wireless communication module 160; the function of the processing unit 702 can be implemented by... Figure 1 The processor 110 and display screen 194 in the first electronic device 100 shown are implemented.
[0133] When using integrated units, the first electronic device 700 may include a processing module, a storage module, and a communication module.
[0134] The processing module can be used to control and manage the actions of the first electronic device 700. For example, it can support the first electronic device 700 in executing the steps performed by the receiving unit 701, processing unit 702, and sending unit 703. The storage module can support the first electronic device 700 in storing program code and data. The communication module can support communication between the first electronic device 700 and other devices.
[0135] The processing module can be a processor or controller, which can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of an MCU and an AP, etc. The storage module can be a memory. The communication module can specifically be a device that interacts with other electronic devices, such as radio frequency circuits, Bluetooth chips, and / or Wi-Fi chips.
[0136] In one embodiment, when the processing module is a processor and the storage module is a memory, the first electronic device 700 involved in this embodiment can be a device having... Figure 1 The device with the structure shown.
[0137] This application also provides a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to execute this application. Figures 2-6 The method provided in the illustrated embodiment.
[0138] This application also provides a computer program product, which includes a computer program that, when run on a computer, causes the computer to execute this application. Figures 2-6 The method provided in the illustrated embodiment.
[0139] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, A and B simultaneously, or B alone. A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single or multiple.
[0140] Those skilled in the art will recognize that the units and algorithm steps described in the embodiments disclosed herein can be implemented using electronic hardware, computer software, or a combination of electronic hardware and software. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0141] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0142] In the several embodiments provided in this application, any function, if implemented as a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0143] The above description is merely a specific embodiment of this application. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the protection scope of this application. The protection scope of this application should be determined by the protection scope of the claims.
Claims
1. A message processing method, characterized in that, Applied to a first electronic device, the first electronic device including a first processor and a second processor, wherein the first processor is different from the second processor, the first processor is in a sleep state, and the second processor is in a running state, the method includes: The first electronic device receives a message sent by the second electronic device; The second processor controls the display screen of the first electronic device to display the message; Obtain the user's actions on the message using the first electronic device; When the operation type is the first operation type, the operation is processed by the second processor while the first processor is in a sleep state; wherein, the first operation type includes a shortcut operation, the shortcut operation includes a shortcut reply operation, and the shortcut reply operation includes the user triggering the reply with predefined text or emoticons; When the operation type is the second operation type, if the first processor is in a sleep state, the second processor wakes up the first processor and processes the operation; wherein, the second operation type includes a custom operation, the custom operation includes a custom reply operation, and the custom reply operation includes the operation of the user triggering a reply with custom content.
2. The method according to claim 1, characterized in that, The step of controlling the display screen of the first electronic device to display the message via the second processor includes: The second processor controls the display screen to display the message on half of its screen. If the first electronic device detects that the user has triggered an operation to view the message within a predetermined time period after receiving the message, the second processor controls the display screen to display the message in full screen.
3. The method according to claim 1, characterized in that, The messages sent by the second electronic device include messages obtained from the notification bar of the second electronic device; After the first electronic device receives the message sent by the second electronic device, it also includes: The second processor determines whether the message supports a reply.
4. The method according to claim 3, characterized in that, The step of determining whether the message supports a reply via the second processor includes: The second processor determines whether there is a flag indicating that a reply is supported in the message; wherein, the flag indicating that a reply is supported is added to the message obtained from the notification bar by the second electronic device after determining that the message obtained from the notification bar supports a reply; If the message contains a flag indicating that a reply is supported, then the message is determined to support a reply. If the message does not contain a flag indicating that a reply is supported, the second processor determines whether the message matches a pre-saved message that supports a reply. If so, the message is determined to support a reply.
5. The method according to claim 3, characterized in that, When the type of the operation is a first operation type, processing the operation by the second processor includes: When the message supports a reply and the operation is a quick reply operation, the content of the quick reply is obtained through the second processor; The content of the quick reply is sent to the second electronic device through the channel between the second processor and the second electronic device.
6. The method according to claim 1, characterized in that, When the operation type is the second operation type, waking up the first processor through the second processor and processing the operation through the first processor includes: When the message supports a reply, and the operation is one that triggers a custom reply, the second processor wakes up the first processor, and the first processor obtains the content of the custom reply. The content of the custom reply is sent to the second electronic device through the channel between the first processor and the second electronic device.
7. The method according to claim 4, characterized in that, The markers supporting a response include the application package name that sent the message in the second electronic device, the user-level identifier within the application, and the process ID of the application.
8. The method according to claim 1, characterized in that, Before obtaining the user's operation on the message using the first electronic device, the method further includes: A prompt message is displayed, indicating that the message is being processed by the second electronic device. When the operation type is a first operation type, processing the operation by the second processor includes: When the operation is a confirmation instruction from the user to the prompt information, the confirmation instruction is sent to the second electronic device through the channel between the second processor and the second electronic device; Receive the processing result of the message sent by the second electronic device; The second processor controls the display screen to show the processing results.
9. The method according to any one of claims 1-8, characterized in that, The first electronic device is a wearable device, and the second electronic device is a smart electronic device.
10. The method according to any one of claims 1-8, characterized in that, The first processor is an application processor, and the second processor is a microcontroller unit.
11. A message processing device, characterized in that, The message processing device is included in a first electronic device, which includes a first processor and a second processor. The first processor is different from the second processor, and the first processor is in a sleep state while the second processor is in a running state. The message processing device includes a receiving unit and a processing unit. The receiving unit is used to receive messages sent by the second electronic device; The processing unit is configured to control the display screen of the first electronic device to display the message through the second processor, and to obtain the user's operation on the message using the first electronic device; when the operation type is a first operation type, the operation is processed by the second processor while the first processor is in a sleep state; wherein, the first operation type includes a shortcut operation, the shortcut operation includes a shortcut reply operation, and the shortcut reply operation includes the user triggering a reply with predefined text or emoticons; The processing unit is further configured to, when the type of the operation is a second operation type, wake up the first processor through the second processor while the first processor is in a sleep state, and process the operation through the first processor; wherein, the second operation type includes a custom operation, the custom operation includes a custom reply operation, and the custom reply operation includes the operation of the user triggering a reply with custom content.
12. A first electronic device, characterized in that, include: First processor and second processor; memory; Multiple applications; and one or more computer programs; wherein the first processor is different from the second processor, the first processor is in a sleep state and the second processor is in a running state, the one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the first electronic device, cause the first electronic device to perform the following steps: Receive messages sent by a second electronic device; The second processor controls the display screen of the first electronic device to display the message; Obtain the user's actions on the message using the first electronic device; When the operation type is the first operation type, the operation is processed by the second processor while the first processor is in a sleep state; wherein, the first operation type includes a shortcut operation, the shortcut operation includes a shortcut reply operation, and the shortcut reply operation includes the user triggering the reply with predefined text or emoticons; When the operation type is the second operation type, if the first processor is in a sleep state, the second processor wakes up the first processor and processes the operation; wherein, the second operation type includes a custom operation, the custom operation includes a custom reply operation, and the custom reply operation includes the operation of the user triggering a reply with custom content.
13. The first electronic device according to claim 12, characterized in that, When the instruction is executed by the first electronic device, causing the first electronic device to perform the step of displaying the message via the second processor on the screen of the first electronic device includes: The second processor controls the display screen to display the message on half of its screen. If the first electronic device detects that the user has triggered an operation to view the message within a predetermined time period after receiving the message, the second processor controls the display screen to display the message in full screen.
14. The first electronic device according to claim 12, characterized in that, The messages sent by the second electronic device include messages obtained from the notification bar of the second electronic device; When the instruction is executed by the first electronic device, after the first electronic device performs the step of receiving the message sent by the second electronic device, it further performs the following steps: The second processor determines whether the message supports a reply.
15. The first electronic device according to claim 14, characterized in that, When the instruction is executed by the first electronic device, causing the first electronic device to perform the step of determining whether the message supports a reply via the second processor includes: The second processor determines whether there is a flag indicating that a reply is supported in the message; wherein, the flag indicating that a reply is supported is added to the message obtained from the notification bar by the second electronic device after determining that the message obtained from the notification bar supports a reply; If the message contains a flag indicating that a reply is supported, then the message is determined to support a reply. If the message does not contain a flag indicating that a reply is supported, the second processor determines whether the message matches a pre-saved message that supports a reply. If so, the message is determined to support a reply.
16. The first electronic device according to claim 14, characterized in that, When the instruction is executed by the first electronic device, causing the first electronic device to perform the step of processing the operation by the second processor when the type of the operation is a first operation type, the steps include: When the message supports a reply and the operation is a quick reply operation, the content of the quick reply is obtained through the second processor; The content of the quick reply is sent to the second electronic device through the channel between the second processor and the second electronic device.
17. The first electronic device according to claim 16, characterized in that, When the instruction is executed by the first electronic device, causing the first electronic device to perform the step of waking up the first processor via the second processor when the type of the operation is a second operation type, and processing the operation by the first processor includes: When the message supports a reply, and the operation is one that triggers a custom reply, the second processor wakes up the first processor, and the first processor obtains the content of the custom reply. The content of the custom reply is sent to the second electronic device through the channel between the first processor and the second electronic device.
18. The first electronic device according to claim 15, characterized in that, The markers supporting a response include the application package name that sent the message in the second electronic device, the user-level identifier within the application, and the process ID of the application.
19. The first electronic device according to claim 12, characterized in that, When the instruction is executed by the first electronic device, before the first electronic device performs the step of obtaining the user's operation on the message, the following steps are also performed: A prompt message is displayed, indicating that the message is being processed by the second electronic device. When the instruction is executed by the first electronic device, causing the first electronic device to perform the steps of processing the operation by the second processor when the type of the operation is a first operation type, the steps include: When the operation is a confirmation instruction from the user to the prompt information, the confirmation instruction is sent to the second electronic device through the channel between the second processor and the second electronic device; Receive the processing result of the message sent by the second electronic device; The second processor controls the display screen to show the processing results.
20. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when run on a computer, causes the computer to perform the method as described in any one of claims 1-10.