Application message processing method and apparatus, communication device, medium and program product
Patent Information
- Application Number
- PCT/CN2026/079039
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-02-20
- Filing Date
- 2026-02-12
- Publication Date
- 2026-08-27
Smart Images

Figure CN2026079039_27082026_PF_FP_ABST
Abstract
Description
Application message processing methods, devices, communication equipment, media and program products
[0001] Related applications
[0002] This application claims priority to Chinese patent application filed on February 20, 2025, with application number 2025101952221, entitled "Application Message Processing Method, Apparatus, Communication Equipment, Medium and Program Product", the entire contents of which are incorporated herein by reference. Technical Field
[0003] This application relates to the field of wireless communication technology, and in particular to an application message processing method, apparatus, communication equipment, medium, and program product. Background Technology
[0004] With the development of mobile communication technology, many electronic devices are now adopting a dual-system approach with big and small cores. Big core systems typically have richer functions and better performance, while small core systems typically support simpler functions and have the advantage of low power consumption.
[0005] However, traditional dual-system electronic devices suffer from high power consumption when acquiring application messages. Summary of the Invention
[0006] This application provides an application message processing method, apparatus, communication device, medium, and program product that can reduce the power consumption of electronic devices when acquiring application messages.
[0007] In a first aspect, embodiments of this application provide an application message processing method applied to an electronic device, the electronic device including a first processor and a second processor connected to each other, the first processor being used to run a first system, and the second processor being used to run a second system, the method including:
[0008] The system controls a first application on the electronic device to disconnect from the application server; wherein the first system is configured to run the first application.
[0009] Upon receiving a notification from a terminal device, the first application obtains an application message, which is triggered by the second application on the terminal device receiving the application message.
[0010] Secondly, embodiments of this application provide an application message processing method applied to a terminal device, the method comprising:
[0011] The second application of the terminal device receives application messages;
[0012] The terminal device sends a notification to the electronic device in response to the application message; the first application on the electronic device is configured to disconnect from the application server; the notification is used by the first application on the electronic device to obtain the application message.
[0013] Thirdly, embodiments of this application provide an application processing method applied to an electronic device, the electronic device including a first processor and a second processor connected to each other, the first processor being used to run a first system, and the second processor being used to run a second system, the method including: running a first application on the first system; controlling the first application not to send heartbeat packets to an application server.
[0014] Fourthly, embodiments of this application provide a wireless communication device applied to an electronic device, the electronic device including a first processor and a second processor connected to each other, the first processor being used to run a first system, and the second processor being used to run a second system; the device includes:
[0015] A control module is configured to control a first application on the electronic device to disconnect from the application server; wherein the first system is configured to run the first application;
[0016] The acquisition module is configured to acquire application messages when a notification is received from a terminal device, wherein the notification is triggered by a second application of the terminal device receiving the application messages.
[0017] Fifthly, embodiments of this application provide a wireless communication device applied to a terminal device, the device comprising:
[0018] The receiving module is configured to receive application messages for the second application of the terminal device;
[0019] A sending module is configured for the terminal device to send a notification to an electronic device in response to the application message; a first application on the electronic device is configured to disconnect from the application server; the notification is used by the first application in the electronic device to obtain the application message.
[0020] In a sixth aspect, embodiments of this application provide a communication device, which is the electronic device or the terminal device. The communication device includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of the method described in the first aspect.
[0021] In a seventh aspect, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect.
[0022] Eighthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the steps of the method described in the first aspect.
[0023] The above-mentioned application message processing method, apparatus, communication device, medium, and program product are applied to an electronic device. The electronic device includes a first processor and a second processor connected to each other. The first processor is used to run a first system, and the second processor is used to run a second system. The first application on the electronic device is controlled to disconnect from the application server. When a notification is received from a terminal device, the first application obtains the application message. Compared with the prior art, where the electronic device needs to maintain a connection with the application server, the electronic device in this embodiment does not need to maintain a connection with the application server. Instead, when the terminal device receives the application message, the terminal device sends a notification to the electronic device. When the electronic device receives the notification, the second application obtains the application message. This avoids the high power consumption of the electronic device caused by maintaining a connection with the application server, thereby reducing the power consumption of the electronic device when obtaining application messages. Attached Figure Description
[0024] To more clearly illustrate the technical solutions in the embodiments of this application or the conventional technology, the drawings used in the description of the embodiments or the conventional technology will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the disclosed drawings without creative effort.
[0025] Figure 1 is a schematic diagram of an application scenario of the message processing method in one embodiment;
[0026] Figure 2 is a schematic diagram of an application scenario of the message processing method in another embodiment;
[0027] Figure 3 is a flowchart of a message processing method applied in one embodiment;
[0028] Figure 4 is a flowchart of the message processing method applied in another embodiment;
[0029] Figure 5 is a flowchart of a message processing method applied in one embodiment;
[0030] Figure 6 is a schematic diagram of the interaction framework of an application message processing method in one embodiment;
[0031] Figure 7 is a flowchart of a message processing method applied in one embodiment;
[0032] Figure 8 is a structural block diagram of a wireless communication device in one embodiment;
[0033] Figure 9 is a structural block diagram of a wireless communication device in one embodiment;
[0034] Figure 10 is a schematic diagram of the internal structure of an electronic device in one embodiment. Detailed Implementation
[0035] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0036] Taking wearable devices as electronic devices, mobile phones as terminal devices, and instant messaging applications as the primary application as examples, wearable devices have lower battery capacity compared to mobile phones, and instant messaging applications are very power-consuming. Therefore, using instant messaging on wearable devices poses a significant challenge to the power consumption of wearable devices.
[0037] In related technologies, to ensure that instant messaging in wearable devices can receive application messages in real time, the instant messaging client needs to maintain a long connection with the application server. To maintain this connection, the instant messaging client needs to send a heartbeat packet to the application server every preset interval. This causes the processor in the wearable device used to run the instant messaging client to be woken up every preset interval, resulting in rapid power consumption. For example, the preset interval can include 5 seconds to 10 minutes. For instance, the preset interval can be 5 seconds, 30 seconds, 1 minute, 5 minutes, or 10 minutes, etc.
[0038] For example, in some solutions, wearable devices use a dual-core system. The small core can handle most of the user's needs, while the large core (such as the processor used to run instant messaging clients) is in a dormant state, which is very power-efficient. However, if instant messaging is allowed to wake up the large core periodically, the wearable device will consume power quickly, especially since the large core is also a power-intensive processor, which will result in even higher power consumption.
[0039] Therefore, this application provides an application message processing method. The application message processing method provided in this application can be applied to the application environment shown in FIG1, wherein the electronic device 102 may include a first processor and a second processor. The first processor can be used to run a first system, and the second processor can be used to run a second system. In some embodiments, the power consumption of the first processor is higher than that of the second processor. For example, the power consumption of the first processor running the first system is greater than that of the second processor running the second system. For example, the first processor can be a high-performance processor running the Android system; the second processor can be a low-power processor running a Real-Time Operating System (RTOS), FreeRTOS, or similar systems. For example, the first processor and the second processor can be packaged in a single chip; or, the first processor and the second processor can be packaged in two separate chips. For example, the first system can be understood as a program running on the first processor, and the second system can be understood as a program running on the second processor. Their types can be the same or different; for example, they can be written in the same language or different languages, and their names can be the same or different. For example, the first system and the second system communicate via a bus. For example, the first system is configured to run applications in the electronic device that have high power consumption or high resource requirements (such as hardware performance, algorithms, etc.), such as at least one of the following: instant messaging applications (such as WeChat, QQ), camera applications, playback applications, etc. For example, the second system is configured to run applications in the electronic device that have low power consumption or low resource requirements (such as hardware performance, algorithms, etc.), such as at least one of the following: time display applications, notification display applications, health data display applications, etc. The first system and the second system can also run the same type of applications. The terminal device 104 can be a personal computer, laptop, smartphone, tablet, etc., and the application server 106 can be the server corresponding to the application running in the first system in the electronic device, such as the WeChat server corresponding to the WeChat application. The electronic device can be a wearable device, mobile phone, IoT device, such as a watch.
[0040] In some scenarios, if electronic device 102 disconnects from terminal device 104 (e.g., disconnects wireless communication connection), as another application scenario, as shown in Figure 2, application server 106 can maintain a communication connection with terminal device 104 (e.g., maintains wireless network communication), and application server 106 can also maintain a communication connection with electronic device 102 (e.g., wireless network communication). In the case where terminal device 104 disconnects from electronic device 102, terminal device 104 can send information to the first processor of electronic device 102 through cloud 108, wherein cloud 108 may include a management server for managing electronic device 102.
[0041] In related technologies, a first system can run a timer with a preset duration. Even when the first system is in sleep mode, the timer continues to count down. When the timer expires or reaches the preset duration, the first system is woken up. The first system then launches a first application, which sends a heartbeat packet to the application server. Afterward, the first system can enter sleep mode if the sleep conditions are met. Specifically, when the timer expires or reaches the preset duration, the timer is reset to 0 and restarts counting down until it expires again or reaches the preset duration. This triggers the first system to wake up again, launches the first application, and sends a heartbeat packet to the application server, thus periodically waking the first system to maintain a long connection with the application server. However, the first system needs to be woken up every preset duration, resulting in high power consumption for the electronic device.
[0042] In one embodiment, as shown in FIG3, an application message processing method is provided. Taking the application of this method to the electronic device in FIG1 as an example, the electronic device includes a first processor and a second processor. The first processor is used to run a first system, and the second processor is used to run a second system. The method includes the following steps:
[0043] S301, the first application on the control electronic device disconnects from the application server; wherein the first system is configured to run the first application.
[0044] For example, the first processor can be a high-performance processor running the Android system, offering stronger performance, while the second processor can be a low-performance processor running an RTOS. Its performance is weaker than the first processor's core, but its power consumption is lower. In other words, the electronic device in this embodiment is a dual-core electronic device. The first processor can be a corresponding large core (or first processing core), such as a high-performance processing core, and the second processor can be a corresponding small core (or second processing core), such as a low-performance processing core. The first and second processors can be packaged in a single chip or in separate chips.
[0045] For example, the first system and the second system can communicate via at least one of a data bus, a control bus, or other types of buses. For example, the first system and the second system communicate via a Serial Peripheral Interface (SPI). For example, the communication protocol between the first system and the second system includes a Protocol Buffers (Protobuf) protocol.
[0046] For example, the first application can be an instant messaging application or any other application that can be used to receive application messages. This application embodiment does not limit this.
[0047] The first system provides the runtime environment for the first application, including hardware and software resources. On the hardware side, the first system manages at least one hardware device, such as the Central Processing Unit (CPU), memory, storage, and graphics card, allocating the necessary computing power and memory space to the first application to enable its normal operation. On the software side, the first system provides at least one of the following: underlying operating system functions, drivers, system libraries, etc., forming the foundation for the first application's operation.
[0048] The application server can be the server corresponding to the first application. For example, if the first application is an instant messaging application, the application server can be an instant messaging application server. In this embodiment, the first system can control the first application on the electronic device to disconnect from the application server.
[0049] If the first application disconnects from the application server, the application server will be unable to send application messages to the electronic device when needed, due to the disconnection. In this scenario, the electronic device can obtain application messages using the method described in S302 below.
[0050] S302, upon receiving a notification from the terminal device, the first application obtains the application message, which is triggered by the second application on the terminal device receiving the application message.
[0051] For example, a notification may include a flag of at least one bit, such as bit 1 or other bit values. For example, a notification may include at least one of the following: an application identifier corresponding to the application message, the type of the application message, characteristic information of the application message, and the content of the application message. For example, the application identifier may include the identifier of the application corresponding to the instant messaging service. For example, the type of application message may include one of the following: group message type, friend message type, voice call type, video call type, public account message, email message type, etc. For example, the characteristic information of the application message may include at least one of the following: the size of the application message, the sender of the application message, and the sending time of the application message.
[0052] For example, an application message may include one or more of the following: message source information, message type identifier, message content, message sending time, etc., and this application embodiment does not limit this. Message source information includes at least one of the message sender's avatar, nickname, or nickname. Message type identifier includes any one of communication application, video application, or sports application. Message content represents the content sent by the sender.
[0053] In some embodiments, the first application and the second application are of the same type, such as instant messaging applications, like WeChat on a mobile phone and WeChat on a smartwatch.
[0054] In some embodiments, the first application and the second application can be associated with accounts (e.g., using the same or related accounts) to share application messages. For example, the first application and the second application may be logged into with the same account, allowing them to be used by the same user, or the association between the first application and the second application may be achieved through the binding of electronic devices and terminal devices. For example, after the first application and the second application are associated, the application server can send application messages to both devices.
[0055] In some embodiments, after receiving a notification from a terminal device, the second system sends a notification to the first system to enable the first application to obtain application messages. For example, upon receiving a notification from a terminal device (e.g., the second system receives a notification from a terminal device via Bluetooth communication), the second system wakes up the first system to enable the first application running on the first system to obtain application messages. In one embodiment, the second system can wake up the first system by sending a wake-up signal. In another embodiment, the second system can send the notification to the first system, and the first system is woken up in response to the notification.
[0056] For example, the first application can re-establish a communication connection with the application server, allowing the application server to send application messages to the first application via the established communication connection (such as a wireless network). Another example is when the electronic device maintains a wireless communication connection with the terminal device, the first application receives application messages sent by a second application on the terminal device. Yet another example is when the electronic device retrieves application messages from the cloud; these cloud-based application messages could be sent by the terminal device or by the application server.
[0057] In the above application message processing method, the application message processing method is applied to an electronic device. The electronic device includes a first processor and a second processor connected to each other. The first processor is used to run a first system, and the second processor is used to run a second system. The first application on the electronic device is controlled to disconnect from the application server. When a notification is received from the terminal device, the first application obtains the application message. Compared with the prior art, where the electronic device needs to maintain a connection with the application server, the electronic device in this embodiment does not need to maintain a connection with the application server (e.g., it does not need to send heartbeat packets periodically to maintain the connection). Instead, when the terminal device receives the application message, the terminal device sends a notification to the electronic device. When the electronic device receives the notification, the second application obtains the application message. This avoids the situation where the electronic device maintains a connection with the application server, resulting in high power consumption, and thus reduces the power consumption of the electronic device when obtaining the application message.
[0058] In some scenarios, the primary application of the electronic device can obtain the aforementioned application messages through a wireless communication connection or wireless network between the electronic device and the terminal device. In one embodiment, the method further includes: establishing a wireless communication connection between the electronic device and the terminal device; S302 includes:
[0059] Step A: Upon receiving a notification from the terminal device, the first application obtains application messages via a wireless network or wireless communication connection.
[0060] For example, wireless communication connections include short-range wireless connections, such as point-to-point or one-to-many communication connections. For example, wireless networks may include short-range and / or long-range wireless networks. In one scenario, the communication protocol corresponding to the short-range wireless network is the same as the communication protocol corresponding to the short-range wireless connection. For example, short-range wireless connections may include Bluetooth, Wireless Fidelit (WiFi), Zigbee, or Near Field Communication (NFC) wireless connections. For example, short-range wireless networks may be Bluetooth networks, WiFi networks, Zigbee networks, or NFC networks. For example, long-range wireless networks may include cellular networks, satellite communication networks, or microwave communication networks.
[0061] For example, the wireless communication connection can be a Bluetooth connection. For example, the wireless network includes one or more of Wi-Fi networks, cellular networks, and Bluetooth networks.
[0062] In this embodiment, upon receiving a notification from a terminal device, the first application can obtain application messages through a wireless network or wireless communication connection with the terminal device.
[0063] In this embodiment, the power consumption of the first processor is higher than that of the second processor.
[0064] In this embodiment, the first application and the second application are the same application running on different devices. For example, the first application and the second application can be the same instant messaging application. This application embodiment does not limit the first application and the second application, as long as the first application and the second application are the same application running on different devices.
[0065] For example, the first application and the second application can be associated with accounts (e.g., using the same or related accounts) to share application messages. For instance, if the first application and the second application are running on different devices, the first application and the second application can log in with the same account, and application messages received or sent by the first application can be synchronized with the second application.
[0066] For example, in this embodiment, the first application runs on an electronic device, and the second application runs on a terminal device. The first application running on the electronic device is the same as the second application running on the terminal device.
[0067] In this embodiment, the electronic device establishes a wireless communication connection with the terminal device. The first application obtains application messages through the wireless network or wireless communication connection, thereby enabling the electronic device to obtain messages wirelessly, which improves the convenience of message acquisition.
[0068] In some scenarios, the first system of an electronic device can enter a sleep state to save power consumption. In one embodiment, the method further includes: the first system entering a sleep state when sleep conditions are met.
[0069] For example, the sleep conditions may include at least one of the following: no pending service is received within a predetermined period; a set time interval is set between the start and end times of the last sleep period, so that the device enters a sleep state at preset time intervals; the current battery level of the electronic device is lower than a preset battery level; the first application disconnects from the application server; a sleep request is generated in response to a user's trigger on the electronic device; no trigger operation is received for the application running on the first system within a specified period; the user closes the application function of the first system by triggering the electronic device; the electronic device enters a low-power mode. Of course, other sleep conditions can also be set, and there are no restrictions on this.
[0070] When the first system is in a dormant state, applications running on it are closed, and the system is unable to process business logic. Understandably, when the first system is in dormant, the first application is closed, thus disconnecting from the application server. While in dormant, the first system can be woken up in response to a notification or wake-up signal.
[0071] In some embodiments, when the first system is in a dormant state, step A above includes:
[0072] Step B: While the electronic device and the terminal device maintain a wireless communication connection, if the second system receives a notification via the wireless communication connection, it wakes up the first system. The first system then runs the first application, which retrieves application messages from the application server via the wireless network. And / or,
[0073] Step C: While the electronic device and the terminal device maintain a wireless communication connection, if the second system receives a notification via the wireless communication connection, it wakes up the first system. The first system then runs the first application, which retrieves application messages from the cloud. And / or,
[0074] Step D: If the electronic device loses its wireless communication connection with the terminal device, and the electronic device receives a notification from the cloud, it wakes up the first system. The first system runs the first application, which retrieves application messages from the application server via the wireless network. The notification is sent to the cloud by the terminal device upon receiving the application messages. And / or,
[0075] In step E, if the electronic device receives a notification sent by the cloud when the wireless communication connection between the electronic device and the terminal device is disconnected, the first system is awakened, the first system runs the first application, and the first application obtains application messages from the cloud through the wireless network; the notification is sent to the cloud by the terminal device after receiving the application messages; the application messages are sent to the cloud by the terminal device.
[0076] In step B, the electronic device will only retrieve the application message from the application server if the application message exists in the application server. This avoids the need for the electronic device to maintain a long connection with the application server, thereby reducing the power consumption of the electronic device.
[0077] In step C, for scenarios where the application message size is large, the application message is obtained from the cloud instead of through Bluetooth, which has a slow transmission speed, thereby improving the rate at which the application message is obtained.
[0078] In step D, where the terminal device cannot send a notification to the electronic device via a direct connection, it can instead send the notification through the cloud. This ensures the notification reaches the electronic device and improves the reliability of the notification transmission. Furthermore, since application messages do not need to be transmitted to the cloud, the risk of application message leakage is reduced, enhancing the confidentiality of information transmission and improving transmission efficiency.
[0079] In step E, when the wireless communication connection between the electronic device and the terminal device is disconnected, the terminal device cannot send a notification to the electronic device through a direct connection with the electronic device. In this case, the terminal device can send a notification to the electronic device through the cloud, so that the notification can reach the electronic device, improving the reliability of the notification transmission. Furthermore, reusing the communication link between the terminal device, the cloud and the electronic device to send application information can make fuller use of network resources, and there is no need for the first application to establish a new communication link with the application server, thereby reducing transmission latency.
[0080] In some embodiments, when the first system is in hibernation, it can retain the ability to respond to cloud notifications, thereby waking up the first system based on notifications sent from the cloud.
[0081] In some embodiments, when the first system is in a sleep state, step A above includes: if the second system receives a notification through the wireless communication connection while the electronic device and the terminal device maintain a wireless communication connection, the first system is woken up, the first system runs the first application, and the first application obtains application messages.
[0082] For example, when the electronic device and the terminal device maintain a wireless communication connection, the first application can obtain application messages in the following way: the first application obtains application messages from the application server through a wireless network. In one embodiment, the first application can establish a communication connection with the application server corresponding to the wireless network, so that the first application can obtain application messages from the application server through the communication connection corresponding to the wireless network.
[0083] For example, when the electronic device and the terminal device maintain a wireless communication connection, the first application can obtain application messages in the following way: the first application obtains application messages from the cloud via a wireless network, and the application messages are sent to the cloud by the terminal device.
[0084] For example, when an electronic device and a terminal device maintain a wireless communication connection, a first application obtains application messages from a second application via the wireless communication connection. In this case, because the electronic device and the terminal device maintain a wireless communication connection, the application messages obtained by the second application can be sent to the first application, thus eliminating the need for the electronic device to re-establish a connection with the application server, thereby improving the convenience of the electronic device obtaining application messages.
[0085] In some embodiments, when the first system is in a sleep state, step A above includes: In one embodiment, upon receiving a notification from a terminal device, the first application obtains application messages via a wireless network, which may include: If the electronic device receives a notification sent by the cloud when the wireless communication connection between the electronic device and the terminal device is disconnected, the first system is woken up, the first system runs the first application, and the first application obtains application messages. The notification may be sent by the terminal device to the cloud after receiving application messages from the application server.
[0086] For example, when the wireless communication connection between the electronic device and the terminal device is disconnected, the first application can obtain application messages in the following way: the first application obtains application messages from the application server through the wireless network; the notification is sent to the cloud by the terminal device upon receiving the application messages.
[0087] For example, when the wireless communication connection between the electronic device and the terminal device is disconnected, the first application can obtain application messages in the following ways: the first application obtains application messages from the cloud via a wireless network; the notification is sent to the cloud by the terminal device upon receiving the application messages; the application messages are sent to the cloud by the terminal device.
[0088] For example, the second system can wake up the first system when the first system is in a dormant state. For example, the second system can send a notification to the first system when the first system is running, or the second system can discard the notification. For instance, when the first system is running, and there is a wireless network connection between the first application and the application server, the first application can send a message request to the application server based on the notification, causing the application server to send an application message. As another example, when the first system is running, and there is a wireless network connection between the first application and the application server, the application server can send application messages to the first application through this wireless network; in this case, the second system can discard the notification.
[0089] In one embodiment, the first system can notify the second system when it enters a sleep state. In another embodiment, the second system can detect whether the first system is in a sleep state.
[0090] The following describes the steps performed by the electronic device after the first application obtains application messages via a wireless network. In one embodiment, when the second system receives an application message or prompt message sent by the first system, it outputs a prompt message; in response to a triggering operation based on the prompt message, the first system runs the first application to process the application message.
[0091] In one embodiment, as shown in FIG4, the above method further includes:
[0092] S401, when the second system receives an application message or prompt message sent by the first system, it outputs a prompt message; when the first system meets the sleep conditions, it enters a sleep state.
[0093] S402, in response to a trigger operation for a notification message, wakes up the first system, which then runs the first application to process the application message.
[0094] For example, when the first system sends an application message or prompt message to the second system, the first system can enter a sleep state if the sleep conditions are met. For instance, if the first system sends an application message or prompt message to the second system and no pending service is received within a predetermined time period, it enters a sleep state. Another example is that the first system directly enters a sleep state upon sending an application message or prompt message to the second system. Yet another example is that the first system enters a sleep state after a predetermined time interval upon sending an application message or prompt message to the second system.
[0095] For example, in response to a triggering operation for a notification message, if the first system is in a sleep state, the first system is woken up, and the first system runs a first application to process application messages. For example, in response to a triggering operation for a notification message, if the first system is in a running state, the first system runs a first application to process application messages.
[0096] In some embodiments, processing application messages may include at least one of the following: displaying message content in a corresponding dialog box based on the application message; for example, a message reply interface may be set up for users to reply to messages. For example, the message content in the application message may be translated, or the message content in the application message may be recognized by artificial intelligence (AI), etc., but this application embodiment does not limit this.
[0097] In the case where the first application obtains application messages through the wireless network, the first system sends application messages or prompt messages to the second system.
[0098] The notification message is used to indicate the existence of a newly acquired application message. For example, the notification message may include at least one of the following: a first application identifier, a text message notification, an image message notification, a voice message notification, a voice call notification, a video call notification, a friend add notification, a group chat invitation notification, a payment-related notification, a system message notification, a service notification, a service update notification, or an interactive notification from an instant messaging platform. For example, the notification message and the notification may be the same or different.
[0099] In some implementation scenarios, users can trigger prompt messages to make electronic devices respond to the triggering action of the prompt message.
[0100] In some embodiments, when the first system is in a dormant state, step A above includes:
[0101] Step F: While the electronic device and the terminal device maintain a wireless communication connection, the second system receives a notification via the wireless communication connection. The notification includes application messages. The second system stores the application messages and sends a prompt message. In response to triggering the prompt message, the first system is woken up. The first system runs the first application. The first application retrieves and processes the application messages stored in the second system. And / or,
[0102] Step G, in one embodiment, while the electronic device and the terminal device maintain a wireless communication connection, the second system receives a notification via the wireless communication connection. The second system issues a prompt message based on the notification. In response to triggering the prompt message, the first system is woken up. The first system runs a first application. The first application obtains and processes application messages from the second application via the wireless communication connection. The notification is sent by the terminal device upon receiving the application messages. And / or,
[0103] In step H, in one embodiment, while the electronic device and the terminal device maintain a wireless communication connection, the second system receives a notification via the wireless communication connection. The second system then wakes up the first system based on the notification. The first system runs a first application, which retrieves and processes application messages from the second application via the wireless communication connection. The notification is sent by the terminal device upon receiving the application message. In one embodiment, upon receiving an application message or prompt message from the first system, the second system outputs a prompt message. In response to a triggering operation based on the prompt message, the first system runs the first application to process the application message.
[0104] In step F, the notification includes an application message. Thus, upon receiving the application message, the terminal device sends a notification including the application message to the electronic device via a wireless communication connection with the electronic device. This eliminates the need for the electronic device to obtain the application message from other devices, thereby enabling timely notification of the application message to the electronic device and improving the efficiency of the electronic device in obtaining the application message.
[0105] In step G, the first system is only woken up when the user triggers a prompt message, and the first application running on the first system only obtains application messages. This ensures that the first system is only woken up when the user needs to view application messages, avoiding the situation where the first system is frequently woken up when the user does not need to view application messages, which would increase the power consumption of the electronic device. Therefore, this embodiment can reduce the power consumption of the electronic device.
[0106] In step H, in one embodiment, when the second system receives an application message or prompt message sent by the first system, it outputs a prompt message; in response to a triggering operation for the prompt message, the first system runs a first application to process the application message.
[0107] For example, the triggering of the above-mentioned prompt message can be that the user clicks on the prompt message interface. In some of the above embodiments, the user can be prompted first through a second system, and the big core is only woken up when the user wants to process the message according to the prompt, thereby avoiding the big core from being woken up by some messages that the user is not interested in, thereby further reducing power consumption.
[0108] This embodiment will explain the specific implementation method for controlling the first application on the electronic device to disconnect from the application server.
[0109] This embodiment will explain the specific process of disconnecting the first application on the control electronic device from the application server. In one embodiment, S201 includes: the first application is shut down and disconnected from the application server when it does not need to process business.
[0110] For example, when the large core has no business to process and meets the hibernation conditions, the applications on the large core, including the first application, can be shut down, thereby disconnecting the first application from the application server.
[0111] For example, the user closes the first application when they no longer need to use it, thus disconnecting the first application from the application server.
[0112] In one embodiment, S201 above includes: the first application disconnecting from the application server by not sending a heartbeat packet when it does not need to process business.
[0113] Understandably, since the first application needs to maintain a long connection with the application server via heartbeat packets, the connection between the first application and the application server is broken by controlling the non-sending of heartbeat packets.
[0114] In one embodiment, S201 includes: the first application will not be periodically triggered to send heartbeat packets when it is closed, thereby disconnecting from the application server.
[0115] In one embodiment, S201 includes: the first system will not be woken up periodically to run the first application and send heartbeat packets while in a hibernation state, thereby disconnecting from the application server.
[0116] It should be noted that since the first application of the electronic device does not need to send heartbeat packets, for example, the first system does not need to be woken up when it is in a sleep state, so that the first application sends heartbeat packets, the first system will not be woken up frequently, thus avoiding the problem of high power consumption of electronic devices.
[0117] For example, the first application not needing to process services may include one or more of the following: the first application does not receive any pending services within a predetermined period of time; the electronic device does not receive any trigger operation for the first application within a specified period of time; the application message is sent to the first system; no notification is received within a time interval of a target duration, starting from the moment the application message is sent to the first system; the user closes the application function of the first system / first application by triggering the electronic device; the electronic device enters a low-power mode.
[0118] Alternatively, in one embodiment, the above S201 may include: controlling the first application to disconnect from the application server when the first application does not need to process business.
[0119] Alternatively, in one embodiment, S201 above may include: controlling the first application to disconnect from the application server when the first application is closed. For example, the closure of the first application may be in response to a trigger operation for closing the first application.
[0120] Alternatively, in one embodiment, S201 above may include: controlling the first application to disconnect from the application server if the first application does not send a heartbeat packet. For example, not sending a heartbeat packet may include not sending a heartbeat packet to the application server for a preset time interval.
[0121] In this embodiment, as another optional implementation, the first application can be controlled to disconnect from the application server when the first system enters a hibernation state.
[0122] In this embodiment, the first application is shut down and disconnected from the application server when it does not need to process business, or the first application does not send heartbeat packets and thus disconnects from the application server when it does not need to process business. This allows for timely disconnection from the application server, which helps reduce the power consumption of the electronic device. Furthermore, it prevents disconnection from the application server when the first application needs to process business, thereby improving the effectiveness of information processing. In addition, by not sending heartbeat packets when the first application has no business needs, the power consumption generated by sending heartbeat packets can be reduced, and the first system does not need to be woken up periodically to send heartbeat packets, thus reducing power consumption.
[0123] In some embodiments, an application processing method may also be provided, applied to an electronic device, the electronic device including a first processor and a second processor connected to each other, the first processor being used to run a first system and the second processor being used to run a second system, the method including the following steps:
[0124] The first application runs on the first system;
[0125] Control the first application to not send heartbeat packets to the application server.
[0126] Understandably, controlling the first application not to send heartbeat packets to the application server can prevent the first application from waking up the first system every now and then to send heartbeat packets, thereby reducing system power consumption.
[0127] In some embodiments, the first application does not send heartbeat packets when it does not need to process business, thereby disconnecting from the application server.
[0128] In some embodiments, the first application will not be periodically triggered to send heartbeat packets when it is closed.
[0129] In some embodiments, the first system is not periodically woken up in a hibernation state to run the first application and send heartbeat packets.
[0130] In some embodiments, the first application can be configured to not send heartbeats to the application server. In other embodiments, the first system can be configured to control the first application to not send heartbeats to the application server. In still other embodiments, the first system can be configured to prevent the first application from using the appropriate resources to send heartbeats to the application server.
[0131] In some embodiments, when the first application is controlled not to send heartbeat packets to the application server, the first application obtains application messages upon receiving a notification from the terminal device. The notification is triggered after the second application on the terminal device receives the application messages.
[0132] In some embodiments, controlling the first application not to send heartbeat packets to the application server includes: controlling the first application not to send heartbeat packets when it does not need to process business.
[0133] In some embodiments, the method further includes the following steps:
[0134] The first system enters a dormant state when the dormant conditions are met.
[0135] Understandably, this reduces power consumption. Sleep conditions can be found in the descriptions of other embodiments.
[0136] Understandably, in the above embodiments, by not sending heartbeat packets when the first application has no business needs, the power consumption generated by sending heartbeat packets can be reduced, and the first system does not need to be woken up every once in a while to send heartbeat packets, thereby reducing some power consumption.
[0137] The above embodiments and other embodiments of this application can be combined or substituted with each other without conflict. The definitions of some features can follow the descriptions in other embodiments, and will not be repeated here.
[0138] In some embodiments, when the first system is in a dormant state, step A above includes:
[0139] Step I: While the electronic device and the terminal device maintain a wireless communication connection, if the second system receives a notification via the wireless communication connection, the second system sends a prompt message based on the notification. In response to the prompt message, the first system is woken up. The first system runs the first application, which retrieves application messages from the application server via the wireless network for processing. And / or,
[0140] Step J: While the electronic device and the terminal device maintain a wireless communication connection, if the second system receives a notification via the wireless communication connection, the second system sends a prompt message based on the notification. In response to the prompt message, the first system is woken up. The first system runs a first application, which retrieves application messages from the cloud via the wireless network for processing. The application messages are sent to the cloud by the terminal device. And / or,
[0141] Step K: When the wireless communication connection between the electronic device and the terminal device is disconnected, if the electronic device receives a notification sent from the cloud, the second system sends a prompt message based on the notification. In response to the prompt message, the first system is woken up. The first system runs the first application, which retrieves application messages from the application server via the wireless network for processing. The notification is sent to the cloud by the terminal device upon receiving the application message. And / or,
[0142] Step L: When the wireless communication connection between the electronic device and the terminal device is disconnected, if the electronic device receives a notification sent by the cloud, the second system sends a prompt message based on the notification. In response to the prompt message, the first system is woken up. The first system runs the first application. The first application obtains application messages from the cloud through the wireless network for processing. The notification is sent to the cloud by the terminal device when it receives the application message. The application message is sent to the cloud by the terminal device.
[0143] In steps I to L, when the second system receives a notification, it does not need to wake up the first system. Instead, it outputs a prompt message. When the user needs to view the prompt message and triggers it, the electronic device wakes up the first system in response to the triggering of the prompt message. This avoids the situation where the second system wakes up the first system even though the user does not need to view the notification, which would lead to an increase in the power consumption of the electronic device. Therefore, the embodiments of steps I to L can reduce the power consumption of the electronic device.
[0144] In some of the above embodiments, the second system first prompts the user with a notification message, and only wakes up the first system to start the first application to obtain and process the application message when the user wants to further process the application message. The first system will not be woken up just because a message is coming, thereby further reducing power consumption.
[0145] In one embodiment, as shown in Figure 5, an application message processing method is provided, which is applied to a terminal device. The method includes the following steps:
[0146] S501, the second application of the terminal device receives the application message.
[0147] S502, the terminal device sends a notification to the electronic device in response to the application message; the first application on the electronic device is configured to disconnect from the application server; the notification is used by the first application on the electronic device to obtain the application message.
[0148] The difference between this embodiment and related technologies lies in that, in related technologies, the first application is configured to maintain a connection with the application server. To maintain this connection, the first system needs to be woken up every preset time interval so that the first application sends a heartbeat packet to the application server, thus keeping the connection between the first application and the application server alive. However, this embodiment presents a completely different solution from related technologies. In this case, the first application is configured to disconnect from the application server. To ensure that the electronic device can also obtain application messages in a timely manner, improvements to the terminal device are necessary to facilitate the acquisition of application messages.
[0149] In this application embodiment, the strategy to ensure that the first application receives application messages in real time is to launch the first application of the electronic device through the application messages received by the terminal device. For example, when the electronic device and the terminal device are connected, the terminal device notifies the electronic device through the communication connection. When the electronic device and the terminal device disconnect the communication connection, the terminal device notifies the electronic device through the cloud.
[0150] For example, the terminal device may not need to know whether the first application is disconnected from the application server. As long as the second application receives the application message, the terminal device sends a notification to the electronic device. If the first application is disconnected from the application server, the method described above enables the first application to receive the application message. If the first application is connected to the application server, the terminal device can discard the notification.
[0151] In the above application message processing method, when the first application on the electronic device is configured to disconnect from the application server, the terminal device sends a notification to the electronic device; wherein, the notification is used for the first application on the electronic device to obtain application messages, so that even when the first application is disconnected from the application server, the first application can still obtain application messages in a timely manner, thereby improving the reliability of information transmission.
[0152] In one embodiment, while the terminal device and the electronic device maintain a first wireless communication connection, the terminal device sends a notification to the electronic device through the first wireless communication connection.
[0153] In one embodiment, when the terminal device and the electronic device disconnect the first wireless communication connection, the terminal device sends a notification to the electronic device via the cloud. For example, the terminal device may send a notification to the cloud, causing the cloud to send the notification to the electronic device.
[0154] In one embodiment, the notification includes an application message. In another embodiment, the notification may not include an application message.
[0155] In some embodiments, while the terminal device and the electronic device maintain a first wireless communication connection, the terminal device can receive a message retrieval request sent by a first application through the first wireless communication connection, and the terminal device can send application messages to the electronic device through the first wireless communication connection.
[0156] The embodiments of this application take into account that in related technologies, if it is necessary to ensure that the first application can receive real-time messages, it is necessary to keep the connection between the first application and the application server alive. After keeping alive, the first application will wake up the first system periodically through a heartbeat mechanism in order to maintain a long connection, which leads to the rapid power consumption of electronic devices.
[0157] The technical solution in this application embodiment ensures the real-time acquisition of application messages by the first application, while not keeping the connection between the first application and the application server alive, thereby avoiding power consumption caused by the first system being woken up periodically.
[0158] The following example uses the first system as the large core and the second system as the small core to illustrate the implementation methods in scenarios where the terminal device is connected to the electronic device and in scenarios where the terminal device is disconnected from the electronic device.
[0159] In scenarios where terminal devices and electronic devices are connected, perform the following steps:
[0160] When the terminal device receives an application message, it transmits the notification to the small core via Bluetooth. The communication protocol between the small and big cores uses the Protobuf protocol. Notifications are identified by their class ID and message ID. The small core wakes up the big core via dual-core communication messages. Upon receiving the notification from the small core, the big core starts the first application service. The client of the first application retrieves application messages from the application server and sends a notification message to the big core. The big core synchronizes the notification message to the small core, which then displays it. The big core then goes to sleep.
[0161] For example, the category identifier may include the application identifier corresponding to the application message. For example, the message identifier may include the type of the application message.
[0162] In the event of an electronic device disconnection, perform the following steps:
[0163] The terminal device receives an application message and sends a notification to the cloud on the electronic device. The cloud on the electronic device sends the notification to the electronic device and wakes up the high-performance core. After receiving the notification, the high-performance core starts the first application service. The client of the first application retrieves the application message from the application server and sends a notification message to the high-performance core. The high-performance core synchronizes the notification message to the low-performance core, which then displays the notification message. The high-performance core then goes to sleep.
[0164] Figure 6 provides a schematic diagram of the interaction framework for an application message processing method. To facilitate understanding by those skilled in the art, the implementation process of the application message processing method in a scenario where a terminal device and an electronic device are connected is described:
[0165] A Bluetooth communication connection exists between the terminal device and the electronic device. When the terminal device receives an application message, it sends a notification to the small core of the electronic device. The real-time operating system (RTOS) running on the small core receives the notification and uses a Board Support Package (BSP) to send a notification / wake-up command to the kernel layer of the large core of the electronic device via the SPI port. The kernel layer of the large core responds to the notification / wake-up command, waking up the large core. The first application in the application layer calls the service of the framework layer to establish a connection with the application server or the cloud to obtain application messages. The kernel layer can send application messages or prompt messages to the small core via the SPI port so that the small core can control the display of the prompt message.
[0166] Figure 7 provides a flowchart of an application message processing method, which includes the following steps:
[0167] S701, The terminal device receives the application message.
[0168] S702. Is the terminal device connected to an electronic device?
[0169] If the terminal device is connected to an electronic device, S703 is executed; if the terminal device is not connected to an electronic device, S708 is executed.
[0170] S703, The terminal device sends a notification to the small core.
[0171] S704, the smaller core sends a notification to the larger core.
[0172] S708, the terminal device sends a notification to the cloud.
[0173] S706 sends notifications to the big core via the cloud.
[0174] S707, the large core, launches the first application service.
[0175] S708, the large core sends application messages or prompt messages to the small core.
[0176] S709, large core hibernation.
[0177] It should be noted that the above description can be found in the relevant descriptions in the above embodiments, and the effects are similar, so this embodiment will not repeat them here.
[0178] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0179] Based on the same inventive concept, this application also provides a wireless communication device for implementing the application message processing method described above. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations in one or more wireless communication device embodiments provided below can be found in the limitations of the application message processing method described above, and will not be repeated here.
[0180] In one embodiment, as shown in FIG8, a wireless communication device is provided for use in an electronic device, the electronic device including a first processor and a second processor connected to each other, the first processor being used to run a first system and the second processor being used to run a second system; the device includes: a control module and an acquisition module;
[0181] A control module is configured to control a first application on an electronic device to disconnect from an application server; wherein, a first system is configured to run the first application;
[0182] The acquisition module is configured to acquire application messages when a notification is received from a terminal device. The notification is triggered when a second application on the terminal device receives the application messages.
[0183] Based on the above embodiments, the device may optionally include a communication module configured to establish a wireless communication connection between the electronic device and the terminal device; and an acquisition module configured to, upon receiving a notification from the terminal device, allow the first application to acquire application messages via a wireless network or wireless communication connection.
[0184] Based on the above embodiments, optionally, the control module is further configured to allow the first system to enter a sleep state when sleep conditions are met; the acquisition module is configured to:
[0185] When the electronic device and the terminal device maintain a wireless communication connection, if the second system receives a notification through the wireless communication connection, it wakes up the first system, the first system runs the first application, and the first application obtains application messages from the application server through the wireless network; and / or,
[0186] When the electronic device and the terminal device maintain a wireless communication connection, if the second system receives a notification through the wireless communication connection, it wakes up the first system. The first system runs the first application, which retrieves application messages from the cloud via the wireless network. The application messages are then sent to the cloud by the terminal device; and / or,
[0187] When the wireless communication connection between the electronic device and the terminal device is disconnected, if the electronic device receives a notification sent from the cloud, it wakes up the first system, the first system runs the first application, and the first application retrieves application messages from the application server via the wireless network; the notification is sent to the cloud by the terminal device upon receiving the application messages; and / or,
[0188] When the wireless communication connection between the electronic device and the terminal device is disconnected, if the electronic device receives a notification sent by the cloud, it will wake up the first system, the first system will run the first application, and the first application will obtain application messages from the cloud through the wireless network; the notification is sent to the cloud by the terminal device after receiving the application message; the application message is sent to the cloud by the terminal device.
[0189] Based on the above embodiments, optionally, the control module is further configured to output a prompt message when the second system receives an application message or prompt message sent by the first system; the first system enters a sleep state when the sleep conditions are met; the control module is further configured to wake up the first system in response to a trigger operation for the prompt message, and the first system runs a first application to process the application message.
[0190] Based on the above embodiments, optionally, the control module is further configured to allow the first system to enter a sleep state when sleep conditions are met; the acquisition module is configured to:
[0191] When the electronic device and the terminal device maintain a wireless communication connection, the second system receives a notification via the wireless communication connection. The notification includes application messages. The second system stores the application messages and issues a prompt message. In response to triggering the prompt message, the first system is woken up. The first system runs a first application. The first application retrieves and processes the application messages stored in the second system; and / or...
[0192] When the electronic device and the terminal device maintain a wireless communication connection, the second system receives a notification through the wireless communication connection, issues a prompt message based on the notification, and in response to the trigger prompt message, wakes up the first system. The first system runs a first application, which obtains and processes application messages from the second application through the wireless communication connection. The notification is sent by the terminal device upon receiving the application messages; and / or,
[0193] When the electronic device and the terminal device maintain a wireless communication connection, the second system receives a notification through the wireless communication connection. The second system wakes up the first system according to the notification. The first system runs the first application. The first application obtains and processes application messages from the second application through the wireless communication connection. The notification is sent by the terminal device when it receives the application message.
[0194] Based on the above embodiments, optionally, the control module is configured to shut down the first application and disconnect it from the application server when the first application does not need to process business; or, the first application does not send heartbeat packets and disconnects it from the application server when it does not need to process business.
[0195] Based on the above embodiments, optionally, the wireless communication connection includes a short-range wireless connection; and / or, the first application and the second application are the same application running on different devices; and / or, the power consumption of the first processor is higher than that of the second processor.
[0196] Based on the above embodiments, optionally, the wireless communication connection is a Bluetooth connection. Based on the above embodiments, optionally, the first application and the second application are instant messaging applications. Based on the above embodiments, optionally, the wireless network includes one or more of Wi-Fi networks, cellular networks, and Bluetooth networks.
[0197] Based on the above embodiments, optionally, the control module is further configured to allow the first system to enter a sleep state when sleep conditions are met; the acquisition module is configured to:
[0198] When the electronic device and the terminal device maintain a wireless communication connection, if the second system receives a notification through the wireless communication connection, the second system sends a prompt message based on the notification. In response to the prompt message, the first system is woken up, and the first system runs a first application. The first application obtains application messages from the application server through the wireless network for processing; and / or,
[0199] When the electronic device and the terminal device maintain a wireless communication connection, if the second system receives a notification through the wireless communication connection, the second system sends a prompt message based on the notification. In response to the prompt message, the first system is woken up. The first system runs a first application, which retrieves application messages from the cloud via the wireless network for processing. The application messages are sent to the cloud by the terminal device; and / or,
[0200] When the wireless communication connection between the electronic device and the terminal device is disconnected, if the electronic device receives a notification sent from the cloud, the second system sends a prompt message based on the notification. In response to the prompt message, the first system is awakened. The first system runs a first application, which retrieves application messages from the application server via the wireless network for processing. The notification is sent to the cloud by the terminal device upon receiving the application message; and / or,
[0201] When the wireless communication connection between the electronic device and the terminal device is disconnected, if the electronic device receives a notification sent by the cloud, the second system sends a prompt message based on the notification. In response to the prompt message, the first system is woken up. The first system runs the first application, which obtains application messages from the cloud via the wireless network for processing. The notification is sent to the cloud by the terminal device upon receiving the application message. The application message is sent to the cloud by the terminal device.
[0202] The wireless communication device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.
[0203] In one embodiment, as shown in FIG9, a wireless communication device is provided for use in a terminal device, the device including a receiving module and a transmitting module;
[0204] The receiving module is configured to receive application messages for a second application on the terminal device.
[0205] The sending module is configured to send a notification from the terminal device to the electronic device when the first application on the electronic device is configured to disconnect from the application server.
[0206] Based on the above embodiments, optionally, the sending module is configured to send a notification from the terminal device to the electronic device through the first wireless communication connection while the terminal device and the electronic device maintain a first wireless communication connection.
[0207] Based on the above embodiments, optionally, the sending module is configured to send a notification from the terminal device to the electronic device via the cloud when the terminal device and the electronic device disconnect the first wireless communication connection.
[0208] Based on the above embodiments, optionally, the receiving module is further configured to allow the terminal device to receive a message acquisition request sent by a first application through the first wireless communication connection when the terminal device and the electronic device maintain a first wireless communication connection; the sending module is further configured to allow the terminal device to send application messages to the electronic device through the first wireless communication connection.
[0209] The wireless communication device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.
[0210] In one embodiment, a communication device is provided, which is an electronic device, and the electronic device includes a first processor and a second processor connected to each other, wherein the first processor is used to run a first system and the second processor is used to run a second system.
[0211] The first system is configured to run the first application;
[0212] The first application is configured not to send heartbeats to the application server.
[0213] In some embodiments, the first application is also configured not to send heartbeat packets when no business processing is required. Understandably, this would involve disconnecting from the application server.
[0214] The first system is configured to enter a hibernation state when the hibernation conditions are met.
[0215] This is understandable, because not needing to send heartbeat packets periodically saves power and avoids waking up the primary system, further saving power.
[0216] The features in this embodiment can be combined or replaced with features in other embodiments, and the descriptions of the relevant features can be referred to the descriptions in other embodiments, without limitation.
[0217] Each module in the aforementioned wireless communication device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.
[0218] In one embodiment, a communication device is provided. This device can be an electronic device or a terminal device, and its internal structure is shown in Figure 10. The communication device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor of this control device provides computing and control capabilities. The memory of the communication device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The communication interface of the communication device is used for wired or wireless communication with external terminals. Wireless communication can be achieved through Wi-Fi, carrier networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements an application message processing method. The display screen of the communication device can be an LCD screen or an e-ink screen. The input device of the communication device can be a touch layer covering the display screen, or buttons, trackballs or touchpads set on the casing of the communication device, or external keyboards, touchpads or mice, etc.
[0219] Those skilled in the art will understand that the structure shown in FIG10 is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. A specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements. For example, a communication device includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of the application message processing method of any of the above embodiments.
[0220] This application also provides a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, which, when executed by one or more processors, cause the processors to perform the steps of an application message processing method.
[0221] This application also provides a computer program product containing instructions that, when run on a computer, cause the computer to execute an application message processing method.
[0222] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0223] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0224] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
[0225] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0226] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. An application message processing method, characterized in that, Applied to an electronic device, the electronic device including a first processor and a second processor connected to each other, the first processor being used to run a first system and the second processor being used to run a second system, the method includes: The system controls a first application on the electronic device to disconnect from the application server; wherein the first system is configured to run the first application. Upon receiving a notification from a terminal device, the first application obtains an application message, which is triggered by the second application on the terminal device receiving the application message.
2. The method according to claim 1, characterized in that, The method further includes: the electronic device establishing a wireless communication connection with the terminal device; The step of the first application obtaining application messages upon receiving a notification from the terminal device includes: upon receiving a notification from the terminal device, the first application obtaining the application messages through a wireless network or the wireless communication connection.
3. The method according to claim 2, characterized in that, The method further includes: the first system entering a hibernation state when the hibernation conditions are met; Upon receiving a notification from the terminal device, the first application obtains the application message via the wireless network, including: While the electronic device and the terminal device maintain the wireless communication connection, if the second system receives the notification through the wireless communication connection, it wakes up the first system, the first system runs the first application, and the first application obtains the application message from the application server through the wireless network; and / or, While the electronic device and the terminal device maintain the wireless communication connection, if the second system receives the notification through the wireless communication connection, it wakes up the first system, the first system runs the first application, the first application retrieves the application message from the cloud through the wireless network, and the application message is sent to the cloud by the terminal device; and / or, When the wireless communication connection between the electronic device and the terminal device is disconnected, if the electronic device receives the notification sent by the cloud, it wakes up the first system, the first system runs the first application, and the first application obtains the application message from the application server through the wireless network; the notification is sent by the terminal device to the cloud upon receiving the application message; and / or, When the wireless communication connection between the electronic device and the terminal device is disconnected, if the electronic device receives the notification sent by the cloud, it wakes up the first system, the first system runs the first application, and the first application obtains the application message from the cloud through the wireless network; the notification is sent to the cloud by the terminal device upon receiving the application message; the application message is sent to the cloud by the terminal device.
4. The method according to claim 2 or 3, characterized in that, After the first application obtains the application message via a wireless network, the method further includes: When the second system receives the application message or prompt message sent by the first system, it outputs a prompt message; when the first system meets the sleep conditions, it enters a sleep state. In response to a triggering operation on the notification message, the first system is awakened, and the first system runs the first application to process the application message.
5. The method according to claim 2, characterized in that, The method further includes: the first system entering a hibernation state when the hibernation conditions are met; Upon receiving a notification from the terminal device, the first application obtains the application message via the wireless communication connection, including: When the electronic device and the terminal device maintain the wireless communication connection, the second system receives the notification through the wireless communication connection. The notification includes the application message. The second system stores the application message and issues a prompt message. In response to triggering the prompt message, the first system is woken up. The first system runs the first application. The first application obtains the application message stored in the second system and processes the application message; and / or, When the electronic device and the terminal device maintain the wireless communication connection, the second system receives the notification through the wireless communication connection, issues a prompt message based on the notification, and in response to triggering the prompt message, wakes up the first system. The first system runs the first application, which obtains and processes the application message from the second application through the wireless communication connection. The notification is sent by the terminal device upon receiving the application message; and / or, When the electronic device and the terminal device maintain the wireless communication connection, the second system receives the notification through the wireless communication connection, the second system wakes up the first system according to the notification, the first system runs the first application, the first application obtains the application message from the second application through the wireless communication connection and processes the application message; the notification is sent by the terminal device when it receives the application message.
6. The method according to any one of claims 1 to 3, characterized in that, The step of controlling the first application on the electronic device to disconnect from the application server includes: The first application is shut down and disconnected from the application server when it does not need to process business; or, the first application does not send a heartbeat packet and disconnects from the application server when it does not need to process business; or, the first application is not periodically triggered to send a heartbeat packet when it is shut down; or, the first system is not periodically woken up in a hibernation state to run the first application to send a heartbeat packet.
7. The method according to claim 2 or 3, characterized in that, The wireless communication connection includes a short-range wireless connection; and / or, the power consumption of the first processor is higher than that of the second processor.
8. The method according to claim 2 or 3, characterized in that, The first application and the second application are the same application running on different devices.
9. The method according to claim 2 or 3, characterized in that, The wireless communication connection is a Bluetooth connection; and / or, the first application and the second application are instant messaging applications.
10. The method according to claim 2 or 3, characterized in that, The wireless network includes one or more of Wi-Fi networks, cellular networks, and Bluetooth networks.
11. The method according to claim 2, characterized in that, The method further includes: the first system entering a hibernation state when the hibernation conditions are met; Upon receiving a notification from the terminal device, the first application obtains the application message via the wireless network, including: When the electronic device and the terminal device maintain the wireless communication connection, if the second system receives the notification through the wireless communication connection, the second system sends a prompt message based on the notification. In response to the prompt message, the first system is woken up, the first system runs the first application, and the first application obtains the application message from the application server through the wireless network for processing; and / or, When the electronic device and the terminal device maintain the wireless communication connection, if the second system receives the notification through the wireless communication connection, the second system sends a prompt message based on the notification. In response to the prompt message, the first system is woken up. The first system runs the first application, which retrieves application messages from the cloud via the wireless network for processing. The application messages are sent to the cloud by the terminal device; and / or, When the wireless communication connection between the electronic device and the terminal device is disconnected, if the electronic device receives the notification sent by the cloud, the second system sends a prompt message based on the notification. In response to the prompt message, the first system is woken up, and the first system runs the first application. The first application obtains application messages from the application server via the wireless network for processing; the notification is sent by the terminal device to the cloud upon receiving the application messages; and / or, When the wireless communication connection between the electronic device and the terminal device is disconnected, if the electronic device receives the notification sent by the cloud, the second system sends a prompt message based on the notification, and the first system is woken up in response to the prompt message. The first system runs the first application, and the first application obtains the application message from the cloud through the wireless network for processing. The notification is sent to the cloud by the terminal device when it receives the application message. The application message is sent to the cloud by the terminal device.
12. The method according to claim 1, characterized in that, The first system and the second system communicate with each other via at least one of a data bus, a control bus, or other types of buses.
13. The method according to claim 1, characterized in that, The first application is an instant messaging application or any other application that can be used to receive application messages.
14. An application message processing method, characterized in that, Applied to a terminal device, the method includes: The second application of the terminal device receives application messages; The terminal device sends a notification to the electronic device in response to the application message; the first application on the electronic device is configured to disconnect from the application server; the notification is used by the first application on the electronic device to obtain the application message.
15. An application processing method, applied to electronic devices, characterized in that, The electronic device includes a first processor and a second processor connected to each other, the first processor being used to run a first system, and the second processor being used to run a second system; the method includes: The first application runs on the first system; Control the first application to prevent it from sending heartbeat packets to the application server.
16. A wireless communication device, applied to an electronic device, characterized in that, The electronic device includes a first processor and a second processor connected to each other, the first processor being used to run a first system and the second processor being used to run a second system; the device includes: A control module is configured to control a first application on the electronic device to disconnect from the application server; wherein the first system is configured to run the first application; The acquisition module is configured to acquire application messages when a notification is received from a terminal device, wherein the notification is triggered by a second application of the terminal device receiving the application messages.
17. A wireless communication device, applied to a terminal equipment, characterized in that, The device includes: The receiving module is configured to receive application messages for the second application of the terminal device; A sending module is configured for the terminal device to send a notification to an electronic device in response to the application message; a first application on the electronic device is configured to disconnect from the application server; the notification is used by the first application in the electronic device to obtain the application message.
18. A communication device, characterized in that, The communication device is the electronic device or the terminal device. The communication device includes a memory and at least one processor. The memory stores a computer program. When the at least one processor executes the computer program, it implements the steps of the method described in any one of claims 1 to 13 or claim 14 or 15.
19. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 13 or claim 14 or 15.
20. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program performs the steps of the method described in any one of claims 1 to 13 or claim 14 or 15.