Display method and electronic device
By using a low-power second processor in electronic devices to process and display push messages in the screen-off state, the high power consumption problem caused by frequent wake-up of the operating system of the electronic device is solved, and a more efficient push message display is achieved.
Patent Information
- Application Number
- PCT/CN2024/134680
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-11-30
- Filing Date
- 2024-11-26
- Publication Date
- 2025-06-05
AI Technical Summary
When electronic devices frequently receive push messages in the off-screen state, frequent wake-up of the operating system leads to excessive power consumption.
The second processor with low power consumption receives and parses push messages in the on-screen state, and displays on-screen through the AOD module, or caches messages until the device switches to the on-screen state before processing and displaying.
It effectively reduces the power consumption of electronic devices to display push messages, avoids power consumption losses caused by frequent wake-up of the operating system, and improves processing efficiency.
Smart Images

Figure CN2024134680_05062025_PF_FP_ABST
Abstract
Description
Display method and electronic device
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of the People's Republic of China on November 30, 2023, with application number 202311630745.1 and application name "A Display Method and Electronic Device", the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The present application relates to the technical field of electronic devices, and in particular to a display method and electronic device. Background Art
[0004] A push message (or push notification) is a message notification displayed by an electronic device to the user. The user can wake up the corresponding application and enter the corresponding application interface by clicking on the push message. When the current electronic device receives a push message while the screen is off, it can wake up the operating system of the electronic device. The operating system can control the electronic device to switch to the bright screen state and display the push message, or it can control the electronic device to display the push message with the screen off, thereby achieving the effect of displaying the push message.
[0005] In the above method, if the electronic device frequently receives push messages in the screen-off state, the operating system will be frequently woken up for corresponding processing, resulting in very high power consumption. Summary of the Invention
[0006] The present application provides a display method and an electronic device for reducing the power consumption of an electronic device when displaying push messages, thereby solving the problem of large power consumption loss caused by frequently waking up the operating system when the electronic device frequently receives push messages in the screen-off state.
[0007] In the first aspect, an embodiment of the present application provides a display method, which is applied to an electronic device, wherein the electronic device includes a first processor, a second processor, an always-on screen AOD module and a display screen; wherein the first processor is a main processor, and the first processor is used to run an operating system, and the operating system includes a push client and a user interface UI display module; the second processor is used to act as a coprocessor or a microprocessor; the method includes: the second processor obtains a first push message from a server received by the electronic device in a screen-off state; the second processor parses and processes the first push message, and sends the processed first push message to the AOD module; the AOD module controls the display screen to display the processed first push message in the screen-off state; or, the second processor caches the first push message, and when it determines that the electronic device switches from a screen-off state to a screen-on state, sends the first push message to the push client; the push client parses and processes the received first push message, and sends the processed first push message to the UI display module; the UI display module controls the display screen to display the processed first push message.
[0008] In this method, the second processor is used as a coprocessor or microprocessor and is a low-power processor. In the first method, the push message received by the electronic device in the screen-off state is parsed and processed by the low-power second processor, and the processed push message is sent to the AOD module for display by the AOD module, which can achieve the effect of displaying the received push message on the screen-off state. On the one hand, it can ensure that the push message is pushed to the user. On the other hand, the above process does not require the operating system running on the first processor to participate in the processing, so there is no need to wake up the operating system, which can reduce power consumption. In the second method, the push message received by the electronic device in the screen-off state is cached by the low-power second processor. After the electronic device switches from the screen-off state to the screen-on state, that is, the operating system in the electronic device switches from the sleep state to the working state, the push message cached by the second processor is processed and displayed by the push client in the operating system, which can reduce power consumption. In the scenario where the electronic device frequently receives push messages in the screen-off state, processing based on any of the above methods can ultimately achieve the display of push messages while avoiding the large power consumption loss caused by frequently waking up the operating system to participate in processing, thereby reducing overall power consumption loss and improving processing efficiency.
[0009] In one possible design, before the second processor obtains the first push message from the server received by the electronic device in the screen-off state, the method also includes: sending a connection request to the server through the push client, the connection request being used to request to establish a connection with the server; receiving a connection response from the server through the push client, the connection response being used to confirm the establishment of the connection; establishing a connection with the server through the modem of the electronic device; sending a heartbeat packet to the server according to a heartbeat cycle through the modem of the electronic device, and receiving a heartbeat response packet corresponding to the heartbeat packet sent by the server; or, establishing a connection with the server through the second processor; sending a heartbeat packet to the server according to the heartbeat cycle through the second processor, and receiving a heartbeat response packet corresponding to the heartbeat packet sent by the server.
[0010] In this method, a push client in an electronic device can be used to trigger a connection with a server. The specific process of establishing the connection and maintaining the connection by periodically sending and receiving heartbeat packets after the connection is established can be completed by a low-power modem or a second processor. Compared with traditional methods of establishing and maintaining a connection between a push client and a server, this method can significantly reduce the number of times the operating system to which the push client belongs is awakened, thereby solving the problem of high power consumption caused by frequent operating system awakenings and reducing the overall power consumption of the electronic device.
[0011] In one possible design, sending the heartbeat packet to the server through the second processor according to the heartbeat cycle includes: sending the heartbeat packet to the communication module of the electronic device through the second processor according to the heartbeat cycle; and forwarding the heartbeat packet to the server through the communication module of the electronic device.
[0012] In this method, the second processor of the electronic device can forward the heartbeat packet to the server through the communication module of the electronic device, thereby ensuring smooth transmission of the heartbeat packet.
[0013] In one possible design, after receiving a connection response from the server through the push client and before establishing a connection with the server through the modem of the electronic device, the method further includes: determining to establish a connection with the server through the modem of the electronic device.
[0014] In one possible design, after receiving a connection response from the server through the push client and before establishing a connection with the server through the second processor, the method further includes: determining to establish a connection with the server through the second processor.
[0015] In one possible design, before the second processor parses and processes the first push message, or before the second processor caches the first push message, the method also includes: the second processor determines that the electronic device is in a notification non-screen light mode; wherein, the notification non-screen light mode is a mode in which the screen is not allowed to be lit to display the push message after receiving the push message in the screen-off state.
[0016] In this method, when the electronic device is in notification non-screen mode, the first method described above is used to process and display push messages, which can ensure timely display of push messages while reducing power consumption when displaying push messages. The second method described above is used to process and display push messages, which can ensure timely display of push messages while reducing power consumption when displaying push messages.
[0017] In one possible design, after the AOD module controls the display screen to display the processed first push message when the screen is off, or after the UI display module controls the display screen to display the processed first push message, the method also includes: the second processor obtains the second push message received by the electronic device from the server when the screen is off; the second processor determines that the current scene meets the set conditions; the second processor sends the second push message to the push client, the push client parses and processes the second push message, and sends the processed second push message to the UI display module; or, the second processor parses and processes the second push message, and sends the processed second push message to the push client, the push client sends the processed second push message to the UI display module; the UI display module controls the display screen to display the processed second push message.
[0018] In this method, when an electronic device receives a push message while in the screen-off state, it can wake up the push client in the operating system to display the push message if it determines that the current scenario meets the set conditions. This can enable the push message to be displayed on the screen in the set scenario, making it easier for users to view push messages in a timely manner, thereby improving the user experience. The second processor can directly send the push message to the push client for processing and display, or it can process the push message before sending it to the push client for display, thus providing high flexibility and practicality.
[0019] In one possible design, the electronic device further includes a communication module; before the second processor obtains a first push message from a server received by the electronic device in a screen-off state, the method further includes: the communication module receiving the first push message from the server, and determining that the electronic device is in a screen-off state; the second processor obtaining the first push message from the server received by the electronic device in a screen-off state includes: the second processor receiving the first push message sent by the communication module. Optionally, the communication module is a modem or a wireless fidelity WiFi communication device of the electronic device.
[0020] In this method, the electronic device can determine that the electronic device is in the screen-off state through the communication module, and send the push message received in the screen-off state to the second processor, so that the second processor can subsequently process the push message received by the electronic device in the screen-off state.
[0021] In one possible design, before the second processor obtains the first push message from the server received by the electronic device in the screen-off state, the method also includes: the second processor determines that the electronic device is in the screen-off state, and the communication module receives the first push message from the server; the second processor obtains the first push message from the server received by the electronic device in the screen-off state, including: the second processor receives the first push message sent by the communication module.
[0022] In this method, the electronic device can determine that the electronic device is in the screen-off state through the second processor, and subsequently process the push messages received by the electronic device in the screen-off state, so there is no need to wake up the operating system when a push message is received in the screen-off state.
[0023] In the above method, the electronic device can determine whether the electronic device is in the screen-off state in different ways, which is highly flexible and practical.
[0024] In one possible design, the first push message includes multiple push messages, and the priority of each push message in the multiple push messages is lower than or equal to the set priority.
[0025] In one possible design, the number of the multiple push messages is a set value.
[0026] Based on the above method, the electronic device can receive multiple push messages with lower priorities at one time and process them centrally, which can further reduce power consumption and improve efficiency.
[0027] In one possible design, the first processor is a large-core processor, and the second processor is a small-core processor.
[0028] In one possible design, the second processor is an intelligent sensor hub or a micro control unit.
[0029] In a second aspect, the present application provides an electronic device, comprising a display screen, a memory, and one or more processors; wherein the memory is used to store computer program code, and the computer program code comprises computer instructions; when the computer instructions are executed by the one or more processors, the electronic device executes the method described in the above-mentioned first aspect or any possible design of the first aspect.
[0030] In a third aspect, the present application provides a computer-readable storage medium storing a computer program. When the computer program runs on an electronic device, the electronic device executes the method described in the first aspect or any possible design of the first aspect.
[0031] In a fourth aspect, the present application provides a computer program product, which includes a computer program or instructions. When the computer program or instructions are run on an electronic device, the electronic device executes the method described in the first aspect or any possible design of the first aspect.
[0032] In a fifth aspect, the present application provides a chip system comprising one or more processors and a memory storing instructions; when the instructions are executed by the one or more processors, the method described in the first aspect or any possible design of the first aspect is implemented. The chip system may be composed of a chip alone or may include a chip and other discrete components.
[0033] The beneficial effects of the second to fifth aspects mentioned above can be referred to the beneficial effects of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] FIG1 is a schematic diagram of the architecture of a push message display system;
[0035] FIG2 is a schematic diagram of the hardware architecture of an electronic device provided in an embodiment of the present application;
[0036] FIG3 is a schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application;
[0037] FIG4 is a schematic diagram of the architecture of a possible push system provided in an embodiment of the present application;
[0038] FIG5 is a schematic diagram of the architecture of a possible push system provided in an embodiment of the present application;
[0039] FIG6 is a schematic diagram of the architecture of a possible push system provided in an embodiment of the present application;
[0040] FIG7 is a schematic diagram of a flow chart of a connection method provided in an embodiment of the present application;
[0041] FIG8 is a flow chart of a possible display method provided in an embodiment of the present application;
[0042] FIG9a is a schematic diagram of a display interface related to push messages provided in an embodiment of the present application;
[0043] FIG9 b is a schematic diagram of an interface for displaying push messages on an off-screen display according to an embodiment of the present application;
[0044] FIG9c is a schematic diagram of an interface for displaying push messages on an off-screen display according to an embodiment of the present application;
[0045] FIG10 is a schematic diagram of a flow chart of a possible display method provided in an embodiment of the present application;
[0046] FIG11 is a schematic diagram of a display interface related to push messages provided in an embodiment of the present application;
[0047] FIG12 is a schematic diagram of a display method provided in an embodiment of the present application;
[0048] FIG13 is a schematic diagram of a display method provided in an embodiment of the present application;
[0049] FIG14 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
[0051] In the description of the embodiments of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of technical features indicated. Therefore, features specified as "first" or "second" may explicitly or implicitly include one or more of the features.
[0052] To facilitate understanding, exemplary descriptions of concepts related to this application are provided for reference.
[0053] 1) Electronic devices may be devices with a display function, wherein the display function may include an off-screen display function, a bright-screen display function, etc.
[0054] In some embodiments of the present application, the electronic device may be a portable device, such as a mobile phone, a tablet computer, a wearable device with wireless communication function (such as a watch, a bracelet, etc.), a vehicle-mounted terminal device, augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), smart home devices (such as smart TVs, smart speakers, etc.), smart robots, workshop equipment, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, or wireless terminals in smart homes, flying equipment (such as smart robots, drones, airplanes), etc.
[0055] Among them, a wearable device is a portable device that a user can wear directly on the body or integrate into the user's clothes or accessories.
[0056] In some embodiments of the present application, the electronic device may also be a portable terminal device that includes other functions. Or a portable terminal device with other operating systems. The portable terminal device may also be other portable terminal devices, such as a laptop computer with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of the present application, the electronic device may not be a portable terminal device, but a desktop computer with a touch-sensitive surface (e.g., a touch panel).
[0057] 2) Always on display (AOD) is a display technology that allows electronic devices to display useful information in the screen-off state (or screen-off state). This technology allows the electronic device's display screen to be partially lit and display content without lighting up the entire display screen of the electronic device. Compared with the entire display screen being lit (i.e., in the screen-on state or screen-on mode) to display content, power consumption can be saved. Based on AOD technology, even when the electronic device is in the screen-off state (or called entering the screen-off mode), some information (such as clock, calendar, notification, etc.) can be displayed in a minimized manner, so that users can view this information anytime, anywhere in the most convenient way under low power consumption. That is to say, in the screen-off state, the display screen of the electronic device can display specific information such as time and notifications in a limited manner. Since AOD technology allows electronic devices to display a certain amount of information when they are in the screen-off state, AOD is also called screen-off display (or screen-off display).
[0058] It should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "more" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple.
[0059] Figure 1 is a schematic diagram of the architecture of a push message display system. As shown in Figure 1, the system may include an application server, a push server, and an electronic device. The application server is a server corresponding to an application installed on an electronic device. The application server can send push messages corresponding to the application to the electronic device via the push server. The push server can be used to distribute push messages from the application server to the electronic device.
[0060] As shown in Figure 1, the electronic device may include a modem (or modem chip), an operating system, and an always on display (AOD) module. The modem may be used to receive push messages from a push server and wake up the operating system to process the push messages. The operating system may run on the main processor of the electronic device. The operating system may include a push client and a UI display module. The push client may be used to receive push messages from the modem, decrypt the push messages, perform content analysis, and other processing on the push messages, and send the processed push messages to the UI display module. The push client may be a system service in the electronic device (corresponding to the above-mentioned push server), or a push service in a third-party application (corresponding to the above-mentioned application server) installed in the electronic device. When the electronic device is in the screen-on state, the UI display module may be used to display the received push messages on the display screen of the electronic device. When the electronic device is in the screen-off state, as an optional embodiment, the UI display module may be used to send the push messages to the AOD module, and the AOD module may be used to display the received push messages on the screen-off state. As another optional embodiment, the UI display module may be used to control the electronic device to switch to the screen-on state before displaying the received push messages.
[0061] In the aforementioned methods, each time an electronic device receives a push message while the screen is off, it must wake up the operating system to process it before it can display the push message. This consumes significant power, reducing the efficiency of displaying push messages. This is especially true when the electronic device frequently receives push messages, as frequent operating system wakeups can lead to significant power consumption losses.
[0062] Based on the above problems, in order to reduce the power consumption loss when displaying push messages on electronic devices, an embodiment of the present application provides a display method and an electronic device. This solution can display push messages simply and efficiently, and reduce the power consumption loss when displaying push messages, thereby improving the display efficiency of push messages.
[0063] In addition, in the above method, the electronic device establishes and maintains (or keeps alive) a connection with the push server through the push client. Among them, the push client and the push server need to conduct an interactive process such as negotiation based on a connection mechanism to establish a connection. In the process of maintaining the connection, the push client and the push server need to send heartbeat packets to the other end based on the heartbeat mechanism at regular intervals, so that the push client and the push server can determine whether the connection is maintained or disconnected based on the heartbeat packet, and re-establish the connection when it is determined that the connection is disconnected. In the above process, the interactive information between the push client and the push server is forwarded through a modem. For example, the heartbeat packet sent by the push client can be forwarded to the push server through a modem, and the push client can receive the heartbeat packet from the push server forwarded by the modem.
[0064] In the above method, for electronic devices, the processing of interactive information during the connection establishment process requires the push client in the operating system to complete, the processing of heartbeat packets during the connection maintenance process requires the push client in the operating system to complete, and the sending and receiving of interactive information during the connection establishment and maintenance process also requires the participation of the push client in the operating system. Therefore, each time a connection is made and each time a heartbeat packet is sent, received, and processed, the operating system needs to be woken up, resulting in a large power consumption loss. In summary, current electronic devices also need to frequently wake up the operating system during the process of establishing and maintaining a connection with a push server, which also results in a huge power consumption loss.
[0065] Based on the above problems, in order to reduce the power consumption loss during the process of establishing and maintaining a connection between an electronic device and a push server, an embodiment of the present application also provides a connection method and an electronic device. This solution can reduce the power consumption loss during the process of establishing and maintaining a connection between an electronic device and a push server, thereby improving the connection efficiency.
[0066] Optionally, the display method and connection method provided in the embodiments of the present application can be combined into a single solution and applied in an electronic device, or can be applied separately as independent solutions in the electronic device. For example, the electronic device can continue to execute the display method after executing the connection method, thereby reducing the power consumption of the electronic device during the entire process of connecting to the connection server and interacting with the push message, thereby minimizing the power consumption loss on the electronic device side.
[0067] 2 , the structure of an electronic device to which the method provided in an embodiment of the present application is applicable is introduced.
[0068] As shown in Figure 2, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a USB interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a SIM card interface 195, etc.
[0069] The sensor module 180 may include a gyroscope sensor, an acceleration sensor, a proximity light sensor, a fingerprint sensor, a touch sensor, a temperature sensor, a pressure sensor, a distance sensor, a magnetic sensor, an ambient light sensor, an air pressure sensor, a bone conduction sensor, and the like.
[0070] It is understood that the electronic device 100 shown in FIG2 is merely an example and does not limit the electronic device, and the electronic device may have more or fewer components than shown in the figure, may combine two or more components, or may have a different component configuration. The various components shown in FIG2 may be implemented in hardware, including one or more signal processing and / or application-specific integrated circuits, software, or a combination of hardware and software.
[0071] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices or integrated into one or more processors. Among them, the controller can be the nerve center and command center of the electronic device 100. The controller can generate an operation control signal based on the instruction opcode and the timing signal to complete the control of instruction fetching and execution.
[0072] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0073] The execution of the display method provided in the embodiment of the present application can be controlled by the processor 110 or completed by calling other components, such as calling the processing program of the embodiment of the present application stored in the internal memory 121, or calling the processing program of the embodiment of the present application stored in a third-party device through the external memory interface 120, to control the wireless communication module 160 to communicate data with other devices, thereby improving the intelligence and convenience of the electronic device 100 and enhancing the user experience. The processor 110 can include different devices. For example, when a CPU and a GPU are integrated, the CPU and the GPU can cooperate to execute the display method provided in the embodiment of the present application. For example, part of the algorithm in the display method is executed by the CPU, and another part of the algorithm is executed by the GPU to obtain faster processing efficiency.
[0074] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1. The display screen 194 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces (GUIs). For example, the display screen 194 can display push messages, etc.
[0075] In the embodiment of the present application, the display screen 194 can be an integrated flexible display screen, or a spliced display screen consisting of two rigid screens and a flexible screen located between the two rigid screens.
[0076] Camera 193 (either a front-facing camera or a rear-facing camera, or one camera serving as both) is used to capture still images or videos. Typically, camera 193 includes a photosensitive element, such as a lens assembly and an image sensor. The lens assembly includes multiple lenses (convex or concave) that capture light signals reflected from the object to be photographed and transmit the captured light signals to the image sensor. The image sensor generates an original image of the object to be photographed based on the light signals.
[0077] The internal memory 121 can be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store the code of the operating system, application program (such as the function corresponding to the solution of the present application, etc.). The data storage area can store data created during the use of the electronic device 100, etc.
[0078] The internal memory 121 may also store one or more computer programs corresponding to the algorithms of the present application. The one or more computer programs are stored in the internal memory 121 and configured to be executed by the one or more processors 110. The one or more computer programs include instructions that can be used to perform the various steps in the following embodiments.
[0079] In addition, the internal memory 121 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0080] Of course, the code of the algorithm of the embodiment of the present application can also be stored in an external memory. In this case, the processor 110 can run the code of the algorithm of the embodiment of the present application stored in the external memory through the external memory interface 120.
[0081] A touch sensor, also known as a "touch panel," can be provided on the display screen 194. The touch sensor and the display screen 194 form a touch display screen, also known as a "touch screen." The touch sensor is used to detect touch operations applied to or near the touch sensor. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor can also be provided on the surface of the electronic device 100, at a location different from that of the display screen 194.
[0082] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0083] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0084] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110. In an embodiment of the present application, the mobile communication module 150 can also be used to exchange information with other devices.
[0085] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays content through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0086] The wireless communication module 160 can provide wireless communication solutions applied to the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (WiFi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2. In the embodiment of the present application, the wireless communication module 160 can be used to establish a connection with other electronic devices and exchange data. Or the wireless communication module 160 can be used to access an access point device, send control instructions to other electronic devices, or receive data sent from other electronic devices.
[0087] In addition, the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor. For example, music playback, recording, etc. The electronic device 100 can receive input from the key 190 and generate key signal input related to the user settings and function control of the electronic device 100. The electronic device 100 can use the motor 191 to generate a vibration prompt (such as an incoming call vibration prompt). The indicator 192 in the electronic device 100 can be an indicator light, which can be used to indicate the charging status, power changes, and can also be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 in the electronic device 100 is used to connect the SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
[0088] It should be understood that in actual applications, the electronic device 100 may include more or fewer components than those shown in FIG2 , and the embodiments of the present application are not limited thereto. The illustrated electronic device 100 is merely an example, and the electronic device 100 may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.
[0089] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. For example, as shown in Figure 3, the software architecture can be divided into four layers, from top to bottom: the application layer, the application framework layer (framework, FWK), the runtime and system library, and the (Linux) kernel layer.
[0090] The application layer is the top layer of the operating system, including native applications of the operating system, such as camera, gallery, calendar, Bluetooth, music, video, information, etc., and may also include third-party applications. The application involved in the embodiment of the present application is referred to as application (APP), which is a software program that can realize one or more specific functions. Typically, multiple applications can be installed in an electronic device, such as a camera application, a mailbox application, etc. The applications mentioned below can be system applications that are installed on the electronic device when it leaves the factory, or they can be third-party applications that the user downloads from the Internet or obtains from other electronic devices while using the electronic device.
[0091] Of course, developers can write applications and install them into this layer. In one possible implementation, applications can be developed using the Java language by calling the application programming interface (API) provided by the application framework layer. Developers can use the application framework to interact with the underlying layer of the operating system (such as the kernel layer) and develop their own applications.
[0092] The application framework layer provides the application API and programming framework. It includes predefined functions and can include a window manager, content provider, view system, telephony manager, resource manager, and notification manager.
[0093] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the display (or screen), capture the display, etc.
[0094] Content providers are used to store and retrieve data and make it accessible to applications. The data may include files (such as documents, videos, images, audio), text, and other information.
[0095] The view system includes visual controls, such as those that display text, images, and documents. The view system is used to build applications. The interface within a display window can be composed of one or more views. For example, the interface for a text notification icon might include a view that displays text and a view that displays an image.
[0096] The phone manager provides communication functionality for electronic devices. The notification manager enables applications to display notifications in the status bar, which can be used to convey informational messages and automatically disappear after a short period of time without user interaction.
[0097] The runtime includes the core library and the virtual machine. The runtime is responsible for the scheduling and management of the system.
[0098] The system's core library consists of two parts: one containing the Java language's callable functions and the other the system's core library. The application layer and application framework layer run within a virtual machine. For example, in Java, the virtual machine executes Java files from the application and framework layers as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0099] The system library can include multiple functional modules. For example: surface manager, media library, 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), image processing library, etc. The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.564, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing, etc. The 2D graphics engine is a drawing engine for 2D drawing.
[0100] The kernel layer provides the operating system's core system services, such as security, memory management, process management, the network protocol stack, and the driver model. These services are all implemented at the kernel layer. The kernel layer also serves as an abstraction layer between the hardware and software stacks. This layer contains many drivers related to electronic devices, including the display driver, the keyboard driver for input devices, the Flash driver for memory-based devices, the camera driver, the audio driver, the Bluetooth driver, and the Wi-Fi driver.
[0101] It should be understood that the functional services described above are only examples. In actual applications, electronic devices can also be divided into more or fewer functional services according to other factors, or the functions of each service can be divided in other ways, or the functional services can be not divided but work as a whole.
[0102] Optionally, the solution provided in the embodiment of the present application can be applied to a scenario in which an electronic device receives, processes, and displays a push message. The electronic device can display the push message in a screen-off state or a screen-on state.
[0103] The solution provided in the embodiment of the present application can be applied to a push system, which includes at least an electronic device (such as the electronic device shown in Figure 4). Optionally, the push system may also include at least one server (such as the application server and push server shown in Figure 4), and at least one server can be used to send push messages to the electronic device. The electronic device can process the received push messages (such as decryption, content parsing, display, etc.).
[0104] Figure 4 is a schematic diagram of the architecture of a possible push system provided by an embodiment of the present application. Exemplarily, as shown in Figure 4, the push system may include an electronic device, an application server, and a push server.
[0105] In some embodiments of the present application, the application server may be a server corresponding to an application installed in the electronic device. The application server may send a push message corresponding to the application to the electronic device via a push server. The push server may distribute the push message from the application server to the electronic device.
[0106] Optionally, the push server may be a server corresponding to the electronic device, for example, a server of a manufacturer of the electronic device.
[0107] Optionally, the application server may be a cloud server. Optionally, the push server may be a cloud server.
[0108] In some embodiments of the present application, as shown in Figure 4, the electronic device may include a communication module, a first processor, a second processor, an AOD module and a display screen. Among them, the communication module can be used to receive push messages from a server (such as the above-mentioned push server) and send the push messages to the first processor or the second processor for subsequent processing. The first processor or the second processor can be used to process push messages and control the display screen to display push messages. The AOD module can be used to control the display screen to display push messages. The display screen can be used to display push messages.
[0109] In one possible solution, the communication module may be a mobile communication module, for example, a modem, etc. In another possible solution, the communication module may be a wireless communication module, for example, a WiFi communication module, etc.
[0110] In some embodiments of the present application, the first processor may be a main processor, and the second processor may be a coprocessor or auxiliary processor. Compared with the first processor, the second processor has lower power consumption.
[0111] Optionally, the first processor is a large-core processor, and the second processor is a small-core processor.
[0112] Optionally, the first processor may be an application processor or a CPU, etc. Optionally, the second processor may be an intelligent sensor hub (sensor hub) or a micro controller unit (MCU), etc.
[0113] In some embodiments of the present application, as shown in FIG4 , an operating system may be run on the first processor, and the operating system may include a push client and a UI display module.
[0114] Optionally, the software architecture of the operating system may be implemented using the software architecture shown in FIG. 3 .
[0115] In a first possible solution, the communication module may be configured to, upon receiving a push message from the server and determining that the electronic device is in the screen-off state, send the push message to the second processor for processing. Alternatively, the communication module may be configured to, upon receiving a push message from the server and determining that the electronic device is in the screen-on state, send the push message to the push client in the operating system for processing.
[0116] Based on the first possible solution, the push client can be used to receive push messages from the communication module, decrypt and analyze the received push messages, and then send the processed push messages to the UI display module. The UI display module can be used to control the display screen to display push messages in the bright screen state.
[0117] In one possible implementation, the second processor may be configured to receive push messages from the communication module, decrypt and perform content analysis on the received push messages, and send the processed push messages to the AOD module. The AOD module may be configured to control the display screen to display push messages on an off-screen basis.
[0118] In another possible implementation, the second processor can be specifically used to receive push messages from the communication module when the electronic device is in the screen-off state, and cache the received push messages. The second processor can also be used to send the cached push messages to the push client when the electronic device switches from the screen-off state to the screen-on state. The push client can be used to receive push messages from the second processor, perform decryption, content analysis, and other processing on the received push messages, and send the processed push messages to the UI display module. The UI display module can be used to control the display screen to display push messages in the screen-on state.
[0119] In another possible implementation, the second processor can be specifically used to receive push messages from the modem when the electronic device is in the screen-off state, perform decryption, content analysis, and other processing on the received push messages, and cache the processed push messages. The second processor can also be used to send the cached push messages to the UI display module when the electronic device switches from the screen-off state to the screen-on state. The UI display module can control the display screen to display push messages in the screen-on state. Among them, the second processor can send the cached push messages directly to the UI display module, or can send the cached push messages to the UI display module through the push client.
[0120] In the second possible solution, the communication module can be used to send the push message to the second processor for corresponding processing after receiving the push message from the server. The second processor can be used to send the push message to the push client in the operating system when it receives the push message from the communication module and determines that the electronic device is in the screen-on state. The push client can be used to decrypt, analyze the content, and other processes the received push message, and send the processed push message to the UI display module for subsequent display. The second processor can be used to process the received push message according to the method described in the first possible solution when it receives the push message from the communication module and determines that the electronic device is in the screen-off state.
[0121] In a third possible solution, the electronic device or other modules in the electronic device for monitoring the status of the electronic device can monitor the status of the electronic device and, when a change in the status of the electronic device is detected, notify the communication module or the second processor so that the communication module or the second processor determines the status of the electronic device and processes the push message (for example, distributes it) according to the status of the electronic device.
[0122] The second processor described in the embodiment of the present application may be located on a chip in the electronic device, or the second processor described in the embodiment of the present application may be replaced by a chip.
[0123] It should be understood that the push system architecture described above is only an example. In an actual push system, the electronic device can also be divided into more or fewer functional modules according to other factors, or the functions of each module can be divided in other ways, or the functional modules can be not divided but work as a whole.
[0124] In some embodiments of the present application, in the push system shown in Figure 4, when the communication module in the electronic device is a modem, the electronic device can establish and maintain (or keep alive) a connection with the push server through the modem (wherein the connection may also be referred to as a communication connection, a push connection, or a network connection, etc.). When the communication module in the electronic device is a wireless communication module such as a WiFi communication module, the electronic device can establish and maintain a connection with the push server through the second processor. The information exchanged between the second processor and the push server (such as data packets, heartbeat packets, etc.) can be forwarded through the wireless communication module.
[0125] In the above method, the electronic device can trigger the establishment of the above connection through the push client and configure the connection method for establishing the above connection and the configuration information corresponding to the connection method. The push client can send the configuration information corresponding to the configured connection method to the device corresponding to the connection method (e.g., the above modem or the second processor), so that the device refers to the configuration information and implements the above connection according to the connection method.
[0126] In some embodiments of the present application, the electronic device and the push server can be connected based on an existing connection mechanism. The connection between the electronic device and the push server can be maintained (or kept alive) based on a heartbeat mechanism. Specifically, the heartbeat mechanism is a method for detecting the connection status of both ends. Based on the heartbeat mechanism, the client (i.e., the communication module or the second processor) can periodically send a heartbeat packet (or heartbeat data packet) to the server (i.e., the push server), and the server will feedback the heartbeat packet to the client each time it receives the heartbeat packet. When the client is able to receive the heartbeat packet (i.e., the heartbeat response packet) fed back by the server, it can be determined that the connection between the client and the server is maintained; when the client cannot receive the heartbeat packet fed back by the server, it can be determined that the connection between the client and the server is disconnected, and the client can actively reconnect to the server.
[0127] It should be noted that the timed sending described in the embodiment of the present application can be understood as periodic sending, and the timed sending of heartbeat packets described in the embodiment of the present application can be understood as periodic sending of heartbeat packets. The period of periodic sending can be a set heartbeat period.
[0128] Based on the above method, another possible push system architecture provided by an embodiment of the present application can be referred to in FIG5 . As shown in FIG5 , the push system includes at least an electronic device and a push server. The electronic device includes at least a first communication module, a second communication module, a first processor, and a second processor.
[0129] Optionally, as shown in FIG5 , the first communication module may be a modem. Optionally, the second communication module may be a wireless communication module. Exemplarily, as shown in FIG5 , the second communication module may be a WiFi communication module, etc. It should be noted that, in some embodiments, the communication module shown in FIG4 may be the first communication module or the second communication module shown in FIG5 .
[0130] As one possible approach, the electronic device may establish and maintain a connection with the push server via the first communication module. As another possible approach, the electronic device may establish and maintain a connection with the push server via the second processor. The interaction information during the process of establishing and maintaining the connection between the second processor and the push server may be forwarded via the second communication module.
[0131] As shown in Figure 5, an operating system can be run on the first processor, and the operating system includes at least a push client. In some embodiments of the present application, the push client can be used to trigger the electronic device to establish a connection with the push server, and can configure the manner in which the electronic device establishes a connection with the push server and the configuration information corresponding to the manner. For example, the push client can determine one manner from the two possible manners mentioned above as the manner in which the electronic device establishes a connection with the push server and determine the configuration information corresponding to the manner. After triggering the electronic device to establish a connection with the push server, and configuring the manner in which the electronic device establishes a connection with the push server and the configuration information corresponding to the manner, the push client can send the configuration information corresponding to the manner to the device corresponding to the manner (e.g., the first communication module or the second processor), so that the device refers to the configuration information corresponding to the manner, adopts the manner to establish a connection with the push server, and maintains the connection with the push server based on the manner.
[0132] In some embodiments of the present application, as shown in Figure 6, the electronic device shown in Figure 5 may further include a first control module and a second control module in addition to the first communication module, the second communication module, the first processor and the second processor shown in Figure 5. The push client in the operating system running on the first processor shown in Figure 5 may specifically include a connection management module and a connection adaptation module. The first communication module shown in Figure 5 may specifically include a first connection agent module, a protocol stack, a distribution module, etc. The second processor shown in Figure 5 may specifically include a second connection agent module, a protocol stack, a sensor manager, a driver, etc.
[0133] Among them, the connection management module in the push client can be used to manage the connection according to the network status and capabilities of the electronic device, and specifically can be used to determine the way to connect to the push server according to the network status and capabilities of the electronic device. For example, when the connection management module determines that the mobile communication quality of the electronic device is better than the wireless communication quality based on the network status and capabilities, it can be determined to connect to the push server through the mobile communication method, that is, to establish a connection with the push server through the modem. For another example, when the connection management module determines that the wireless communication quality of the electronic device is better than the mobile communication quality based on the network status and capabilities, it can be determined to connect to the push server through the wireless communication method, that is, to establish a connection with the push server through the second processor. The connection adapter module in the push client can configure the configuration information corresponding to the connection method determined by the connection management module, and send the configuration information to the control module corresponding to the device corresponding to the method.
[0134] The first control module corresponds to the first communication module and can be used to connect the first processor (or the operating system running on the first processor) to the first communication module. The second control module corresponds to the second processor and the second communication module and can be used to connect the first processor (or the operating system running on the first processor) to the second processor. Optionally, the first control module and the second control module can be deployed on the same chip or different chips in the electronic device. Optionally, the first control module and the first communication module can be deployed on different chips in the electronic device, and the second control module and the second processor can be deployed on different chips in the electronic device. Specifically, the first control module can be used to provide a connection proxy service interface under a mobile network, which is used to connect the push client (or the connection adapter module in the push client) to the first communication module. The first control module can also be used to control the start and stop of establishing and maintaining a connection with the push server through the first communication module. Optionally, the first control module can be a modem engine deployed in a telephony service. The second control module can be used to provide a connection proxy service interface under a wireless network, which is used to connect the push client (or the connection adapter module in the push client) to the second processor, which is connected to the second communication module. The second control module can also be used to control starting and stopping establishing and maintaining a connection with the push server through the second processor (and the second communication module).
[0135] The first connection proxy module in the first communication module can be used to create / end / reestablish a connection with the push server based on the connection protocol, maintain a connection with the push server based on the heartbeat mechanism, perform mobile network status detection and report the detection results to the push client, cache push messages, and transmit push messages, etc. Optionally, as shown in Figure 6, the first connection proxy module can be a CPU core (C-Core). The protocol stack in the first communication module can be used to provide protocol-related content required by other modules. Exemplarily, the protocol stack can include a transport layer security (TLS) protocol stack, a packet data convergence protocol (PDCP) stack, etc. The distribution module can be used to distribute push messages. Exemplarily, the distribution module can be a content distribution service (CDS).
[0136] The first connection proxy module in the second processor can be used to create / end / reestablish a connection with the push server based on the connection protocol, maintain the connection with the push server based on the heartbeat mechanism, perform wireless network status detection and report the detection results to the push client, cache push messages, and transmit push messages. The protocol stack in the second processor can be used to provide protocol-related content required by other modules. Exemplarily, the protocol stack can include a TLS protocol stack, etc. The sensor management module can be used to create the first connection proxy module. The driver can be used to drive the second communication module.
[0137] In some embodiments of the present application, as shown in FIG5 , the push system may further include an application server; the electronic device may further include an AOD module and a display screen; and the operating system may further include a UI display module. Regarding the functions of the various systems, devices, modules, services, or components shown in FIG5 , in addition to the description corresponding to FIG5 , reference may also be made to the description corresponding to FIG4 in the aforementioned embodiment, and will not be repeated here.
[0138] Based on the description related to Figures 5 and 6 above, taking the first communication module as a modem and the second communication module as a WiFi communication module as an example, a connection method provided in an embodiment of the present application can be referred to Figure 7. As shown in Figure 7, the method may include:
[0139] S701: A push client in an electronic device sends a connection request to a push server, where the connection request is used to request to establish a connection with the push server.
[0140] The push client may forward the connection request to the push server via a modem or a WiFi communication module.
[0141] Optionally, after receiving a connection response from the push server for confirming the establishment of the connection, the push client may continue to perform the following step S702 .
[0142] S702: The push client determines to establish a connection with the push server via a modem, or determines to establish a connection with the push server via a second processor.
[0143] When the push client determines to establish a connection with the push server via the modem, the following steps S703 to S712 are continued to be executed; when the push client determines to establish a connection with the push server via the second processor, the following steps S713 to S722 are continued to be executed.
[0144] The modem corresponds to the mobile connection mode, and the second processor corresponds to the WiFi connection mode.
[0145] Optionally, step S702 may be performed by a connection management module in the push client.
[0146] S703: When the push client determines to establish a connection with the push server through the modem, the configuration information is sent to the first control module.
[0147] The configuration information is used to control the modem to establish a connection with the push server. The configuration information can be determined by a connection agent adapter module in the push client.
[0148] S704: The first control module sends the configuration information to the modem.
[0149] Optionally, the first control module may send the configuration information to the first connection agent module in the modem.
[0150] S705: The modem saves the configuration information.
[0151] Optionally, step S705 may be performed by a first connection agent module in the modem.
[0152] S706: The push client notifies the first control module to start the connection.
[0153] S707: The first control module notifies the modem to start the connection.
[0154] Optionally, the first control module may notify the first connection agent module in the modem to start the connection.
[0155] S708: The modem establishes a connection with the push server according to the saved configuration information.
[0156] Optionally, the modem can establish a connection with the push server based on the saved configuration information by executing a three-way handshake based on the Transmission Control Protocol (TCP), TLS negotiation, device registration, and other processes. This process can be implemented in accordance with the processes specified in the relevant standards and will not be detailed here.
[0157] Optionally, step S708 may be completed by collaboration of multiple modules in the modem, such as the first connection agent module, the protocol stack, and the distribution module.
[0158] S709: After establishing a connection with the push server, the modem notifies the first control module that the connection is successful.
[0159] S710: The first control module notifies the push client that the connection is successful.
[0160] S711: After establishing a connection with the push server, the modem periodically sends a heartbeat request to the push server.
[0161] S712: The modem receives a heartbeat response from the push server.
[0162] When the modem receives a heartbeat response from the push server, it can be determined that the connection status with the push server is normal.
[0163] In some embodiments of the present application, when the modem does not receive a heartbeat response from the push server, it may send a disconnection notification to the push client. After receiving the disconnection notification, the push client executes step S701 and subsequent steps to reestablish a connection with the push server. The disconnection notification is used to notify the push server that the connection has been disconnected. The modem may send the disconnection notification to the push client via the first control module.
[0164] Optionally, steps S711 to S712 may be completed collaboratively by multiple modules in the modem, such as the first connection agent module, the protocol stack, and the distribution module.
[0165] S713: When the push client determines to establish a connection with the push server through the second processor, the configuration information is sent to the second control module.
[0166] The configuration information is used to control the second processor to establish a connection with the push server. The configuration information can be determined by a connection agent adapter module in the push client.
[0167] S714: The second control module sends the configuration information to the second processor.
[0168] Optionally, the second control module may send the configuration information to the second connection agent module in the second processor.
[0169] S715: The second processor saves the configuration information.
[0170] Optionally, step S715 may be performed by a second connection proxy module in the second processor.
[0171] S716: The push client notifies the second control module to start the connection.
[0172] S717: The second control module notifies the second processor to start the connection.
[0173] Optionally, the second control module may notify the second connection agent module in the second processor to start the connection.
[0174] S718: The second processor establishes a connection with the push server according to the saved configuration information.
[0175] Optionally, the second processor can establish a connection with the push server based on the saved configuration information by executing a three-way handshake based on the Transmission Control Protocol (TCP), TLS negotiation, device registration, and other processes. These processes can be implemented with reference to the processes specified in the relevant standards and will not be described in detail here.
[0176] Optionally, step S718 may be completed by collaboration of multiple modules such as the second connection proxy module, the protocol stack, and the distribution module in the second processor.
[0177] S719: After establishing a connection with the push server, the second processor notifies the second control module that the connection is successful.
[0178] S720: The second control module notifies the push client that the connection is successful.
[0179] S721: After establishing a connection with the push server, the second processor periodically sends a heartbeat request to the push server.
[0180] S722: The second processor receives a heartbeat response from the push server.
[0181] When the second processor receives the heartbeat response from the push server, it can determine that the connection status with the push server is normal.
[0182] In some embodiments of the present application, when the second processor does not receive a heartbeat response from the push server, it may send a disconnection notification to the push client. After receiving the disconnection notification, the push client executes step S701 and subsequent steps to reestablish a connection with the push server. The disconnection notification is used to notify the push server that the connection has been disconnected. The second processor may send the disconnection notification to the push client via the second control module.
[0183] In the above method, the information exchanged between the second processor and the push server can be forwarded through the WiFi communication module.
[0184] Optionally, steps S721 to S722 may be completed collaboratively by multiple modules in the second processor, such as the second connection proxy module, the protocol stack, and the distribution module.
[0185] In the above method, the push client can be used to trigger the establishment of a connection with the push server and confirm that the connection is successfully established. The specific process of establishing the connection and the process of maintaining the connection by regularly sending and receiving heartbeat packets after the connection is established can be completed by a modem or a second processor with less power consumption loss. Therefore, it can greatly reduce the number of times the operating system to which the push client belongs is awakened, thereby solving the problem of large power consumption loss caused by frequent awakening of the operating system and reducing the overall power consumption loss of the electronic device.
[0186] Based on the above description, taking the communication module (or communication device) of the electronic device as a modem as an example, a display method provided in an embodiment of the present application can be referred to in FIG8 , and this display method can be applied to the electronic device shown in FIG4 or FIG5 . When the communication module is another device or module, the display method can be implemented with reference to the method shown in FIG8 , and will not be described in detail here.
[0187] In some embodiments of the present application, the display method can be executed after the connection method provided in the above embodiment.
[0188] As shown in FIG8 , the display method may include:
[0189] S801: The application server sends a push message to the push server.
[0190] S802: The push server sends a push message to the modem in the electronic device.
[0191] In some embodiments of the present application, push messages may have priorities, and the priorities of different push messages may be different or the same. Exemplarily, the priority of a push message may be determined based on information such as the importance of the push message and the application type corresponding to the push message, and no specific limitation is made in the embodiments of the present application. The push server may determine the manner in which the push message is sent to the electronic device based on the priority of the push message. As an optional implementation, after the push server receives a push message, it may directly send the push message to the electronic device when it determines that the priority of the push message is higher than the set priority. After the push server receives a push message, it may cache the push message when it determines that the priority of the push message is lower than or equal to the set priority. When the number of multiple push messages to be sent to the electronic device cached in the push server reaches a set value, the push server may send multiple push messages to the electronic device at the same time.
[0192] In a first possible solution, the following steps S803a to S804a may be performed after step S802:
[0193] S803a: The modem determines that the electronic device is currently in the screen-off state.
[0194] Among them, as an optional implementation, the modem itself can monitor the status of the electronic device to determine whether the electronic device is in the screen-off state. As another optional implementation, the modem can determine that the electronic device is in the screen-off state based on the notification of the electronic device or other modules in the electronic device for detecting the status of the electronic device. For example, the electronic device or other modules in the electronic device for detecting the status of the electronic device can monitor the status of the electronic device and notify the modem when it detects that the electronic device enters the screen-off state, so that the modem determines that the electronic device is in the screen-off state. The electronic device or other modules in the electronic device for detecting the status of the electronic device can also notify the modem when it detects that the electronic device switches from the screen-off state to the screen-on state, so that the modem determines that the electronic device is not in the screen-off state.
[0195] S804a: The modem sends a push message to the second processor in the electronic device.
[0196] After step S804a, steps S805 to S807 described below may be executed.
[0197] In a second possible solution, the following steps S803b to S804b may be performed after step S802:
[0198] S803b: The modem sends a push message to the second processor in the electronic device.
[0199] S804b: The second processor determines that the electronic device is currently in the screen-off state.
[0200] The second processor may determine the state of the electronic device by referring to the method of determining the state of the electronic device by the modem described in step S803a, and further determine whether the electronic device is in the screen-off state. Detailed description is omitted here.
[0201] After step S804b, steps S805 to S807 described below may be executed.
[0202] S805: The second processor parses and processes the received push message.
[0203] S806: The second processor sends the processed push message to the AOD module in the electronic device.
[0204] S807: The AOD module controls the display screen to display the received push message on the off screen.
[0205] Example 1. For example, taking the electronic device as a mobile phone and the application installed in the electronic device as a takeaway application A as an example, the push message can be an order progress push message in the takeaway application A. When the order progress corresponding to the takeaway application A is updated, the application server can send the order progress push message corresponding to the latest order progress to the electronic device through the push server. The modem in the electronic device can receive the order progress push message. As shown in the schematic diagram (a) in Figure 9a, when the electronic device is in the screen-off state, the display screen of the electronic device can display the lock screen interface. When the modem in the electronic device receives the order progress push message corresponding to the takeaway application A (for example, "the rider is picking up the goods") in the screen-off state, the order progress push message can be sent to the second processor in the electronic device. The second processor can parse and process the order progress push message, and send the processed order progress push message to the AOD module in the electronic device. The AOD module can control the display screen of the electronic device to display the order progress push message on the screen-off. The display screen of the electronic device can switch from displaying the lock screen interface shown in the schematic diagram (a) in Figure 9a to displaying the screen-off push interface shown in the schematic diagram (b) in Figure 9a, which includes the order progress push message displayed in the screen-off display mode, namely the message "Rider is picking up the goods".
[0206] Example 2. Based on the above example 1, after the electronic device displays the interface shown in the schematic diagram (b) in Figure 9a, the electronic device is still in the screen-off state. When the order progress corresponding to the food delivery application A is updated from "rider picking up the goods" to "rider delivering the goods", the application server can send the order progress push message (for example, "rider delivering the goods") corresponding to the latest order progress of the food delivery application A (i.e., "rider delivering the goods") to the electronic device through the push server. The modem in the electronic device can receive the order progress push message and send the order progress push message to the second processor in the electronic device. The second processor can parse and process the order progress push message and send the processed order progress push message to the AOD module in the electronic device. The AOD module can control the display screen of the electronic device to display the order progress push message in the screen-off state. The screen-off push interface shown in the schematic diagram (b) in Figure 9a displayed on the display screen of the electronic device can be updated to the screen-off push interface shown in Figure 9b, which includes the latest order progress push message displayed in the screen-off display mode, i.e., the message "rider delivering the goods".
[0207] Example 3. Based on the above example 1, after the electronic device displays the interface shown in the schematic diagram (b) in Figure 9a, the electronic device is still in the screen-off state. When the modem in the electronic device receives an order push message corresponding to another food delivery application B installed in the electronic device (for example, "the merchant is in production"), the push message can be sent to the second processor in the electronic device. The second processor can parse and process the order progress push message, and send the processed order progress push message to the AOD module in the electronic device. The AOD module can control the display screen of the electronic device to display the order progress push message on the screen off. The display screen of the electronic device can then switch from displaying the interface shown in the schematic diagram (b) in Figure 9a to displaying the screen-off push interface shown in Figure 9c, which includes the order progress push message corresponding to the food delivery application A (i.e., the message "the rider is picking up the goods") and the order progress push message corresponding to the food delivery application B (i.e., the message "the merchant is in production") displayed simultaneously in the screen-off display mode.
[0208] Based on the above method, when an electronic device receives a push message in the screen-off state, the push message can be parsed and processed by the low-power second processor, and then displayed by the AOD module, achieving the effect of displaying the received push message on the screen-off state. On the one hand, it can ensure that the push message is pushed to the user. On the other hand, the above process does not require the operating system (or the first processor) to participate in the processing, which can avoid the large power consumption loss caused by waking up the operating system (or the first processor) to participate in the processing, thereby reducing overall power consumption loss and improving processing efficiency.
[0209] Based on the above description, taking the communication module (or communication device) of the electronic device as a modem as an example, another display method provided in an embodiment of the present application can be referred to Figure 10, and this display method can be applied to the electronic device shown in Figures 4 or 5 above. When the communication module is other devices or modules, the display method can be implemented by the method shown in Figure 10, and will not be described in detail here.
[0210] In some embodiments of the present application, the display method can be executed after the connection method provided in the above embodiment.
[0211] As shown in FIG10 , the display method may include:
[0212] S1001: The application server sends a push message to the push server.
[0213] S1002: The push server sends a push message to the second processor in the electronic device.
[0214] The specific implementation process of step S1002 may refer to the method described in step S802 and steps S803a to S804a in the aforementioned embodiment, or refer to the method described in step S802 and steps S803b to S804b in the aforementioned embodiment, and will not be described in detail here.
[0215] In a first possible solution, after step S1002, the following steps S1003a to S1005a may be performed:
[0216] S1003a: The second processor caches the received push message.
[0217] When the electronic device is in the screen-off state, the operating system is in the sleep state.
[0218] S1004a: When the second processor determines that the electronic device switches from the screen-off state to the screen-on state, the second processor sends the cached push message to the push client in the electronic device.
[0219] The second processor may determine the state of the electronic device by referring to the method of determining the state of the electronic device by the modem described in step S803a, and further determine whether the electronic device switches from the off-screen state to the on-screen state.
[0220] S1005a: The push client parses and processes the received push message.
[0221] After step S1005a, step S1006 described below may be executed.
[0222] Exemplarily, the parsing process may include decryption, content analysis, and other processes, and may also include other processes required to convert the received push message into a format that can be displayed on a display screen. No specific limitations are made in the embodiments of the present application.
[0223] In a second possible solution, the following steps S1003b to S1004b may be performed after step S1002:
[0224] S1003b: The second processor parses and processes the received push message.
[0225] S1004b: When the second processor determines that the electronic device switches from the screen-off state to the screen-on state, the second processor sends the parsed push message to the push client in the electronic device.
[0226] After step S1004b, step S1006 described below may be executed.
[0227] S1006: The push client sends the parsed push message to the UI display module.
[0228] S1007: The UI display module controls the display screen to display the received push message.
[0229] Example 4. In one example, taking the electronic device as a mobile phone and the application installed in the electronic device as food delivery application A, the push message can be an order progress push message in food delivery application A. When the order progress corresponding to food delivery application A is updated, the application server can send the order progress push message corresponding to the latest order progress to the electronic device through the push server. The modem in the electronic device can receive the order progress push message. As shown in the schematic diagram (a) in Figure 11, when the electronic device is in the screen-off state, the display screen of the electronic device can display the lock screen interface. When the modem in the electronic device receives the order progress push message corresponding to food delivery application A (for example, "Rider is picking up the order") in the screen-off state, the order progress push message can be sent to the second processor in the electronic device. The second processor can cache the order progress push message. When the electronic device receives an operation that triggers the electronic device to light up the screen, such as receiving an operation by the user unlocking the phone, the electronic device can switch from the screen-off state to the screen-on state, and the operating system (or the first processor) of the electronic device switches from the sleep state to the working state. The second processor in the electronic device can send the cached order progress push message to the push client in the operating system. Exemplarily, the push client can be a system service of the electronic device or food delivery application A or a push service in food delivery application A. The push client can parse and process the order progress push message, and send the processed order progress push message to the UI display module in the electronic device. The UI display module can control the display screen of the electronic device to display the order progress push message. Based on the above method, the electronic device can respond to the user's operation of unlocking the mobile phone, and switch from displaying the lock screen interface shown in the schematic diagram (a) in Figure 11 to displaying the desktop interface shown in the schematic diagram (b) in Figure 11, which includes the order progress push message, namely the message "The rider is picking up the goods".
[0230] Based on the above method, when an electronic device receives a push message while in the screen-off state, it can first cache the push message using a low-power second processor. After the electronic device switches from the screen-off state to the screen-on state, that is, after the operating system in the electronic device switches from the sleep state to the working state, the cached push message will be processed and displayed by the operating system. This method can avoid the significant power consumption loss caused by waking up the operating system (or the first processor) in the screen-off state to participate in push message processing and display, thereby reducing overall power consumption.
[0231] In another display method provided in an embodiment of the present application, the electronic device, with reference to the display method described in FIG. 8 or FIG. 10 , receives a push message through the second processor, and subsequent processing after the electronic device determines that the screen is in the off state may include the following steps A1 to A5:
[0232] A1: The second processor determines whether the current scene meets the set conditions; if so, execute step A2; otherwise, execute the above step S805 or step S1003a or step S1003b.
[0233] In some embodiments of the present application, the set condition may be a condition pre-configured by the electronic device or pre-set by the user that is satisfied by a scenario requiring the screen to illuminate and display a push message, and is not specifically limited in the embodiments of the present application. For example, the set condition may include at least one of the following: the push message type is a set type, the push message is a set important message, the push client corresponding to the push message is a set push client, the push client type of the push client corresponding to the push message is a set push client type, and the push message is currently within a set time period.
[0234] Optionally, when the electronic device determines that the current scene does not meet the set conditions, it can choose to execute the above step S805 or step S1003a or step S1003b according to whether the electronic device supports the screen-off display push message or whether it supports the screen-off display push message of the push client.
[0235] A2: The second processor sends the push message to the push client.
[0236] A3: The push client parses and processes the received push message.
[0237] A4: The push client sends the processed push message to the UI display module.
[0238] Optionally, the above steps A2 to A4 may be replaced by the following steps: the second processor parses and processes the received push message; the second processor sends the processed push message to the push client; the push client sends the processed push message to the UI display module.
[0239] A5: The UI display module controls the display screen to display the received push messages.
[0240] Among them, the UI display module can control the electronic device to switch from the screen-off state to the screen-on state, and then display the push message on the display screen.
[0241] Based on the above method, the electronic device can wake up the operating system in specific scenarios to process and display push messages, and can achieve the effect of displaying push messages on the screen on demand, with high flexibility.
[0242] In some embodiments of the present application, the electronic device receives a push message through a modem with reference to the display method described in FIG. 8 or FIG. 10 , and subsequent processing after the electronic device determines that the screen is in the bright screen state may include the following steps B1 to B4:
[0243] B1: The modem sends the push message to the push client.
[0244] When the electronic device is in the screen-on state, the operating system is in the working state.
[0245] B2: The push client parses and processes the received push message.
[0246] B3: The push client sends the processed push message to the UI display module.
[0247] B4: The UI display module controls the display screen to display the received push messages.
[0248] Based on the above method, the electronic device can process and display push messages through the control of the operating system in a working state when the screen is on.
[0249] It should be understood that the implementation process provided in the above embodiment is only an example of the method process applicable to the embodiment of the present application. The execution order of each step can be adjusted accordingly according to actual needs, and other steps can be added or some steps can be reduced.
[0250] In some embodiments of the present application, the user can control whether the electronic device is allowed to display push messages on the screen. The electronic device can determine whether it supports the display of push messages on the screen based on the user operation. After the user switches the electronic device to a mode that allows the display of push messages on the screen by performing a corresponding operation (such as adjusting the electronic device to a notification screen-on mode), the electronic device determines that it supports the display of push messages on the screen, and the electronic device can process and display push messages according to the methods corresponding to steps B1 to B4 above. After the user switches the electronic device to a mode that does not allow the display of push messages on the screen by performing a corresponding operation (such as adjusting the electronic device to a notification non-screen-on mode), the electronic device determines that it does not support the display of push messages on the screen, and the electronic device can process and display push messages according to the methods described in Figures 8 or 10 above.
[0251] In other embodiments of the present application, for different applications, the user can control separately whether the electronic device is allowed to light up the screen to display the push messages of each application. The electronic device can determine whether it supports the light-up screen display of the push messages of the application based on the user operation. For example, for a certain application, when the user switches the electronic device to a mode that allows the light-up screen to display the push messages of the application by performing corresponding operations, the electronic device determines that it supports the light-up screen display of the push messages of the application. The electronic device can then process and display the push messages of the application according to the methods corresponding to steps B1 to B4 above. When the user switches the electronic device to a mode that does not allow the light-up screen to display the push messages of the application by performing corresponding operations, the electronic device determines that it does not support the light-up screen display of the push messages of the application. The electronic device can then process and display the push messages of the application according to the methods described in Figures 8 or 10 above.
[0252] In some embodiments of the present application, the user can control whether the electronic device is allowed to display push messages on the screen off. The electronic device can determine whether it supports the display of push messages on the screen off based on the user operation. After the user switches the electronic device to a mode that allows the display of push messages on the screen off by performing corresponding operations, the electronic device determines that it supports the display of push messages on the screen off. The electronic device can then process and display push messages according to the method described in Figure 8 above. When the user switches the electronic device to a mode that does not allow the display of push messages on the screen off by performing corresponding operations, the electronic device determines that it does not support the display of push messages on the screen off. The electronic device can then process and display push messages according to the method described in Figure 10 above or the methods corresponding to steps B1 to B4 above.
[0253] In other embodiments of the present application, for different applications, the user can control separately whether the electronic device is allowed to display the push messages of each application on the screen off. The electronic device can determine whether to support the display of push messages of the application on the screen off based on the user operation. For example, for a certain application, when the user switches the electronic device to a mode that allows the display of push messages of the application on the screen off by performing corresponding operations, the electronic device determines that it supports the display of push messages of the application on the screen off. The electronic device can then process and display the push messages of the application in accordance with the method described in FIG5 above. When the user switches the electronic device to a mode that does not allow the display of push messages of the application on the screen off by performing corresponding operations, the electronic device determines that it does not support the display of push messages of the application on the screen off. The electronic device can then process and display the push messages of the application in accordance with the method described in FIG7 above or the method corresponding to steps B1 to B4 above.
[0254] Based on the above embodiments and the same technical concept, the embodiments of the present application also provide a display method, which can be applied to an electronic device, which may include a first processor, a second processor, an always-on display (AOD) module, and a display screen; wherein the first processor is a main processor, and the first processor is used to run an operating system, and the operating system includes a push client and a user interface (UI) display module; the second processor is used as a coprocessor or microprocessor. For the devices, systems, modules, etc. included in the electronic device, please refer to the introduction in the above embodiments, and will not be repeated below.
[0255] As shown in FIG12 , the display method may include:
[0256] S1201: The second processor obtains a first push message received by the electronic device from the server when the electronic device is in the screen-off state.
[0257] S1202: The second processor parses and processes the first push message.
[0258] S1203: The second processor sends the processed first push message to the AOD module.
[0259] S1204: The AOD module controls the display screen to display the processed first push message on off-screen.
[0260] Based on the above embodiments and the same technical concept, the embodiments of the present application also provide a display method, which can be applied to an electronic device. The electronic device may include a first processor, a second processor, an always-on screen AOD module and a display screen; wherein the first processor is a main processor, and the first processor is used to run an operating system, and the operating system includes a push client and a user interface UI display module; the second processor is used as a coprocessor or a microprocessor; wherein, the devices, systems, modules, etc. included in the electronic device can refer to the introduction in the above embodiments, and will not be repeated below.
[0261] As shown in FIG13 , the display method may include:
[0262] S1301: The second processor obtains a first push message received by the electronic device from the server in the screen-off state.
[0263] S1302: The second processor caches the first push message.
[0264] S1303: When the second processor determines that the electronic device switches from the screen-off state to the screen-on state, the second processor sends the first push message to the push client.
[0265] S1304: The push client parses and processes the received first push message.
[0266] S1305: The push client sends the processed first push message to the UI display module.
[0267] S1306: The UI display module controls the display screen to display the processed first push message.
[0268] In some embodiments of the present application, the electronic device described in the method of Figure 12 or Figure 13 may be the electronic device provided in the aforementioned embodiment, and the server described in the method of Figure 12 or Figure 13 may be the push server provided in the aforementioned embodiment.
[0269] In some embodiments of the present application, in the method of FIG. 12 or FIG. 13 , before the second processor obtains a first push message from a server received by the electronic device in the screen-off state, the electronic device may send a connection request to the server via a push client and receive a connection response from the server via the push client. The connection request is used to request establishment of a connection with the server, and the connection response is used to confirm the establishment of the connection. In this manner, the electronic device can determine that a connection with the server can be established by interacting with the server. After receiving the connection response from the server via the push client, the electronic device may establish a connection with the server via the electronic device's modem, or may establish a connection with the server via the second processor. Specifically, after receiving the connection response from the server, the push client in the electronic device may determine the method for establishing a connection with the server based on the methods provided in the aforementioned embodiments. If the push client determines to establish a connection with the server via the electronic device's modem, the push client may instruct the electronic device's modem to establish a connection with the server. For example, the electronic device may include the first control module described in the aforementioned embodiments, and the push client may instruct the modem to establish a connection with the server via the first control module in the electronic device. If the push client determines to establish a connection with the server via the second processor, the push client may instruct the second processor to establish a connection with the server. For example, the electronic device may include the second control module described in the aforementioned embodiment, and the push client may instruct the second processor to establish a connection with the server through the second control module in the electronic device.
[0270] After the electronic device establishes a connection with the server through the electronic device's modem, it can send a heartbeat packet to the server through the electronic device's modem according to the heartbeat cycle, and receive a heartbeat response packet corresponding to the heartbeat packet sent by the server, thereby maintaining the connection with the server. After the electronic device establishes a connection with the server through the second processor, it can establish a connection with the server through the second processor; send a heartbeat packet to the server through the second processor according to the heartbeat cycle, and receive a heartbeat response packet corresponding to the heartbeat packet sent by the server, thereby maintaining the connection with the server. Among them, when the electronic device sends a heartbeat packet to the server through the second processor according to the heartbeat cycle, it can specifically send the heartbeat packet to the communication module of the electronic device through the second processor according to the heartbeat cycle, and forward the heartbeat packet to the server through the communication module of the electronic device.
[0271] In some embodiments of the present application, the electronic device may further include a communication module. For details about the communication module, refer to the description in the preceding embodiments and will not be described in detail here. For example, the communication module may be a modem or a wireless fidelity WiFi communication device of the electronic device (the WiFi communication device may serve as the WiFi communication module described in the preceding embodiments). Based on the method of FIG. 12 or FIG. 13 , as an optional embodiment, before the second processor obtains the first push message received from the server by the electronic device in the screen-off state, the electronic device may receive the first push message from the server via the communication module, and may also determine that the electronic device is in the screen-off state via the communication module. Based on this approach, the second processor may obtain the first push message received from the server by the electronic device in the screen-off state by receiving the first push message sent by the communication module. As another optional embodiment, before the second processor obtains the first push message received from the server by the electronic device in the screen-off state, the electronic device may receive the first push message from the server via the communication module. In this approach, the electronic device may determine that the electronic device is in the screen-off state via the second processor. The second processor may obtain the first push message received from the server by the electronic device in the screen-off state by receiving the first push message sent by the communication module.
[0272] In some embodiments of the present application, the first push message described in the method of Figure 12 or Figure 13 may include multiple push messages, and the priority of each push message in the multiple push messages is lower than or equal to the set priority. Optionally, the number of the multiple push messages is a set value.
[0273] In some embodiments of the present application, the first push message described in the method of FIG. 12 or FIG. 13 may be a push message having a priority higher than a set priority.
[0274] In some embodiments of the present application, in the method described in Figures 12 or 13 above, before the second processor parses and processes the first push message, or before the second processor caches the first push message, the second processor may also determine that the electronic device is in a notification non-screen light mode, so that the electronic device uses the method of Figures 12 or 13 above to process the push message in the notification non-screen light mode; wherein, the notification non-screen light mode is a mode in which the screen is not allowed to be lit to display the push message after receiving the push message in the screen-off state.
[0275] Based on the above embodiments and the same technical concept, the embodiments of the present application also provide a display method, which can be applied to the electronic devices described in the aforementioned embodiments, for example, it can be applied to the electronic devices described in the methods of Figure 12 or Figure 13. The display method may include: the second processor in the electronic device obtains the second push message received by the electronic device from the server in the screen-off state, and determines that the current scene meets the set conditions. When the second processor determines that the current scene meets the set conditions, as an optional implementation, the second processor can send the second push message to the push client. The push client can parse and process the second push message, and send the processed second push message to the UI display module, and the UI display module can control the display screen to display the processed second push message. As another optional implementation, the second processor can parse and process the second push message, and send the processed second push message to the push client. The push client sends the processed second push message to the UI display module. The UI display module controls the display screen to display the processed second push message.
[0276] Optionally, when the display method is applied to the electronic device described in the method of Figure 12 or Figure 13, the display method can be executed after the AOD module controls the display screen to display the first push message after the screen is off, or it can be executed after the UI display module controls the display screen to display the first push message after the screen is off.
[0277] In the above method, the specific steps executed by the device, system or module in the electronic device can also refer to the relevant introduction in the above embodiments, and will not be repeated here.
[0278] Based on the above embodiments and the same technical concept, an embodiment of the present application further provides an electronic device for implementing the method provided in the embodiment of the present application. As shown in Figure 14, the electronic device 1400 may include: a memory 1401, one or more processors 1402, and one or more computer programs (not shown in the figure). The above-mentioned components may be coupled via one or more communication buses 1403. The electronic device 1400 may also include a display screen 1404.
[0279] Among them, one or more computer programs (codes) are stored in the memory 1401, and one or more computer programs include computer instructions; one or more processors 1402 call the computer instructions stored in the memory 1401, so that the electronic device 1400 executes the method provided by the above-mentioned embodiment of the present application.
[0280] In a specific implementation, the memory 1401 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices. The memory 1401 can store an operating system (hereinafter referred to as system), such as an embedded operating system such as ANDROID, IOS, WINDOWS, or LINUX. The memory 1401 can be used to store the implementation program of the embodiment of the present application. The memory 1401 can also store a network communication program, which can be used to communicate with one or more additional devices, one or more user devices, and one or more network devices.
[0281] The one or more processors 1402 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.
[0282] The display screen 1404 is used to display application interfaces and other related user interfaces.
[0283] It should be noted that Figure 14 is only one implementation of the electronic device 1400 provided in an embodiment of the present application. In actual applications, the electronic device 1400 may also include more or fewer components. For details, please refer to the specific structure and description shown in Figure 2, which is not limited here.
[0284] Based on the above embodiments and the same technical concept, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer, the computer executes the method provided in the above embodiments.
[0285] Based on the above embodiments and the same technical concept, an embodiment of the present application further provides a computer program product, which includes a computer program or instructions. When the computer program or instructions are run on a computer, the computer executes the method provided in the above embodiments.
[0286] The methods provided in the embodiments of the present application may be implemented in whole or in part through software, hardware, firmware, or any combination thereof. When implemented using software, they may be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present invention are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, or other programmable device. Computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. A computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media. Available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., digital video discs (DVDs), or semiconductor media (e.g., SSDs), etc.
[0287] Obviously, those skilled in the art may make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include these modifications and variations.
Claims
1. A display method, applied to an electronic device, characterized in that: The electronic device comprises a first processor, a second processor, an AOD module and a display screen; wherein the first processor is a main processor, the first processor is used to run an operating system, the operating system comprises a push client and a user interface UI display module; the second processor is used as a coprocessor or a microprocessor; the method comprises: The second processor obtains a first push message received by the electronic device from the server in the screen-off state; The second processor parses and processes the first push message, and sends the processed first push message to the AOD module; the AOD module controls the display screen to display the processed first push message on an off-screen basis; or The second processor caches the first push message, and when determining that the electronic device switches from the screen-off state to the screen-on state, sends the first push message to the push client; the push client parses and processes the received first push message, and sends the processed first push message to the UI display module; the UI display module controls the display screen to display the processed first push message.
2. The method according to claim 1, characterized in that Before the second processor acquires the first push message received by the electronic device from the server in the screen-off state, the method further includes: Sending a connection request to the server through the push client, wherein the connection request is used to request to establish a connection with the server; Receiving, by the push client, a connection response from the server, the connection response being used to confirm establishment of a connection; Establishing a connection with the server through the modem of the electronic device; sending a heartbeat packet to the server according to a heartbeat cycle through the modem of the electronic device, and receiving a heartbeat response packet corresponding to the heartbeat packet sent by the server; or Establishing a connection with the server through the second processor; sending a heartbeat packet to the server according to the heartbeat cycle through the second processor, and receiving a heartbeat response packet corresponding to the heartbeat packet sent by the server.
3. The method according to claim 2, characterized in that The sending of the heartbeat packet to the server according to the heartbeat cycle by the second processor includes: Sending a heartbeat packet to a communication module of the electronic device according to a heartbeat cycle by the second processor; The heartbeat packet is forwarded to the server through the communication module of the electronic device.
4. The method according to claim 2 or 3, characterized in that After receiving a connection response from the server through the push client and before establishing a connection with the server through the modem of the electronic device, the method further includes: A determination is made to establish a connection with the server through a modem of the electronic device.
5. The method according to any one of claims 2 to 4, characterized in that: After receiving a connection response from the server through the push client and before establishing a connection with the server through the second processor, the method further includes: Determine to establish a connection with the server through the second processor.
6. The method according to any one of claims 1 to 5, characterized in that: Before the second processor parses and processes the first push message, or before the second processor caches the first push message, the method further includes: The second processor determines that the electronic device is in a notification non-screen lighting mode; wherein the notification non-screen lighting mode is a mode in which the screen is not allowed to light up to display a push message after receiving the push message in the screen-off state.
7. The method according to any one of claims 1 to 6, characterized in that: After the AOD module controls the display screen to display the processed first push message on the off screen, or after the UI display module controls the display screen to display the processed first push message, the method further includes: The second processor obtains a second push message received by the electronic device from the server in the screen-off state; The second processor determines that the current scene satisfies a set condition; The second processor sends the second push message to the push client, the push client parses and processes the second push message, and sends the processed second push message to the UI display module; or the second processor parses and processes the second push message, and sends the processed second push message to the push client, and the push client sends the processed second push message to the UI display module; The UI display module controls the display screen to display the processed second push message.
8. The method according to claim 1 or 2, characterized in that: The electronic device further includes a communication module; before the second processor acquires the first push message received by the electronic device from the server in the screen-off state, the method further includes: The communication module receives the first push message from the server, and determines that the electronic device is in a screen-off state; The second processor obtains a first push message received by the electronic device from a server in a screen-off state, including: The second processor receives the first push message sent by the communication module.
9. The method according to claim 8, characterized in that The communication module is a modem or a wireless fidelity WiFi communication device of the electronic device.
10. The method according to claim 1 or 2, characterized in that: Before the second processor acquires the first push message received by the electronic device from the server in the screen-off state, the method further includes: The second processor determines that the electronic device is in a screen-off state.
11. The method according to any one of claims 1 to 10, characterized in that: The first push message includes multiple push messages, and the priority of each push message in the multiple push messages is lower than or equal to the set priority.
12. The method according to claim 11, characterized in that The number of the multiple push messages is a set value.
13. The method according to any one of claims 1 to 12, characterized in that: The first processor is a large-core processor, and the second processor is a small-core processor.
14. The method according to any one of claims 1 to 13, characterized in that: The second processor is an intelligent sensor hub or a micro control unit.
15. An electronic device, characterized in that: The electronic device includes a memory and one or more processors; The memory is used to store computer program codes, and the computer program codes include computer instructions; when the computer instructions are executed by the one or more processors, the electronic device executes the method according to any one of claims 1 to 14.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 14.
17. A computer program product, characterized in that The computer program product comprises a computer program or instructions, and when the computer program or instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Information output method, storage medium and terminal equipment
CN107682543A
Terminal extinguished screen display control method and terminal
CN108337363A
Screen-off display method, device and equipment
CN115543465A
Event processing method and device, electronic equipment and computer readable storage medium
CN116932057A
Electronic device, and operation method of electronic device
EP4283409A1