Display method and electronic equipment
By using a low-power second processor in electronic devices to process push messages in the screen-off state, the high power consumption problem caused by frequent wake-up of the operating system is solved, and efficient display of push messages and low-power operation are achieved.
Patent Information
- Application Number
- CN202311630745.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2025-05-30
AI Technical Summary
When an electronic device frequently receives push messages in the off-screen state, frequent wake-up of the operating system leads to very high power consumption.
After receiving the push message in the screen-off state, the second processor adopting low power consumption receives the push message in the screen-off state, it passes the parsing process and sends the processed message to the AOD module for screen-off display, or caches the message until the device switches to the screen-off state before processing and displaying.
It effectively reduces the power consumption loss caused by frequent wake-up of the operating system, improves processing efficiency, and realizes timely display of push messages.
Smart Images

Figure CN120066435A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of electronic devices, and in particular, to a display method and an electronic device. Background Art
[0002] A push message (or push notification) is a message notification presented by an electronic device to a user. The user can wake up the corresponding application and enter the corresponding application interface by clicking on the push message. When the electronic device receives a push message in the screen-off state currently, the operating system of the electronic device can be woken up. The operating system can control the electronic device to switch to the screen-on state and display the push message, or can control the electronic device to display the push message in the screen-off state, thereby achieving the effect of displaying the push message.
[0003] 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
[0004] This application provides a display method and an electronic device, which are used to reduce the power consumption of the electronic device for displaying push messages and solve 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.
[0005] In a first aspect, an embodiment of this application provides a display method applied to an electronic device. The electronic device includes a first processor, a second processor, a screen always-on display (AOD) module, and a display screen. Among them, the first processor is the main processor, and the first processor is used to run the 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. The method includes: the second processor obtains a first push message received from a server when the electronic device is 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 in the screen-off state; or, the second processor caches the first push message, and when it is determined 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.
[0006] In this method, the second processor is used as a coprocessor or a microprocessor, which is a low-power processor. Among them, in the first method, the low-power second processor parses and processes the push messages received by the electronic device in the screen-off state, and sends the processed push messages to the AOD module for display by the AOD module, so that the effect of displaying the received push messages in the screen-off state can be achieved. On the one hand, it can ensure that the push messages are 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 low-power second processor caches the push messages received by the electronic device in the screen-off state. 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 client in the operating system processes and displays the push messages cached by the second processor, which can reduce power consumption. In the scenario where the electronic device frequently receives push messages in the screen-off state, based on any of the above methods, the display of the push messages can be finally realized while avoiding the large power consumption loss caused by frequently waking up the operating system to participate in the processing, thereby reducing the overall power consumption loss and improving the processing efficiency.
[0007] In a possible design, before the second processor obtains 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, where the connection request is used to request to establish a connection with the server; receiving a connection response from the server through the push client, where the connection response is 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 period 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 a heartbeat period through the second processor, and receiving a heartbeat response packet corresponding to the heartbeat packet sent by the server.
[0008] In this method, the push client in the electronic device can be used to trigger the establishment of a connection with the server. Specifically, the process of establishing the connection and the process of maintaining the connection by periodically sending and receiving heartbeat packets after the connection is established can be completed by a low-power modem or the second processor. Compared with the traditional method of establishing and maintaining a connection between the push client and the server, the above method can greatly reduce the number of times the operating system to which the push client belongs is woken up, thereby solving the problem of large power consumption loss caused by the operating system being frequently woken up and reducing the overall power consumption loss of the electronic device.
[0009] In a possible design, the process of the second processor sending a heartbeat packet to the server according to a heartbeat period includes: the second processor sending a heartbeat packet to the communication module of the electronic device according to the heartbeat period; and the communication module of the electronic device forwarding the heartbeat packet to the server.
[0010] 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, which can ensure the smooth sending of the heartbeat packet.
[0011] In a 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.
[0012] In a 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.
[0013] In a 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 further includes: the second processor determining that the electronic device is in a notification non-screen-lighting mode; where the notification non-screen-lighting mode is a mode in which the push message is not allowed to be displayed with the screen lighting up after receiving the push message in the screen-off state.
[0014] In this method, when the electronic device is in the notification non-screen-lighting mode and uses the above first method to process and display the push message, it can ensure the timely display of the push message and at the same time reduce the power consumption of displaying the push message. When using the above second method to process and display the push message, it can ensure the display of the push message and at the same time reduce the power consumption of displaying the push message.
[0015] In a possible design, after the AOD module controls the display screen to display the processed first push message in the screen-off state, 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 from the server by the electronic device in the screen-off state; the second processor determines that the current scenario meets the set conditions; the second processor sends the second push message to the push client, and 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.
[0016] In this method, when the electronic device receives a push message in the screen-off state, it can wake up the push client in the operating system to send and display the push message when it determines that the current scenario meets the set conditions, and can realize the screen-on display of the push message in the set scenario, which is convenient for the user to view the push message in time, thereby improving the user experience. Among them, the second processor can directly send the push message to the push client for processing and sending and displaying, or can also process the push message and then send it to the push client and let the push client perform sending and displaying, so the flexibility and practicability are relatively high.
[0017] In a possible design, the electronic device further includes a communication module; before the second processor obtains the first push message received from the server by the electronic device 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 the screen-off state; the second processor obtains the first push message received from the server by the electronic device in the screen-off state, including: the second processor receives 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.
[0018] 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 perform subsequent processing on the push message received by the electronic device in the screen-off state.
[0019] In a 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 further 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 obtaining the first push message from the server received by the electronic device in the screen-off state includes: the second processor receives the first push message sent by the communication module.
[0020] In this method, the electronic device can determine that the electronic device is in the screen-off state through the second processor, and perform subsequent processing on the push message received by the electronic device in the screen-off state. Therefore, it is not necessary to wake up the operating system when receiving a push message in the screen-off state.
[0021] In the above method, the electronic device can determine that the electronic device is in the screen-off state in different ways, with high flexibility and practicability.
[0022] In a 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.
[0023] In a possible design, the number of the multiple push messages is a set value.
[0024] 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.
[0025] In a possible design, the first processor belongs to a big core processor, and the second processor belongs to a small core processor.
[0026] In a possible design, the second processor is an intelligent sensing hub or a micro control unit.
[0027] In a second aspect, the present application provides an electronic device, which includes 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 includes computer instructions; when the computer instructions are executed by the one or more processors, the electronic device is enabled to execute the method described in the first aspect or any possible design of the first aspect.
[0028] In a third aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on an electronic device, the electronic device is enabled to execute the method described in the first aspect or any possible design of the first aspect.
[0029] 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 run on an electronic device, the electronic device is caused to execute the method described in the first aspect or any possible design of the first aspect.
[0030] In a fifth aspect, the present application provides a chip system, which includes one or more processors and a memory. Instructions are stored in the memory; 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 chips, or may include chips and other discrete devices.
[0031] For the beneficial effects of the second aspect to the fifth aspect above, reference may be made to the beneficial effects of the first aspect above, and details will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a schematic diagram of the architecture of a push message display system;
[0033] Figure 2 It is a schematic diagram of the hardware architecture of an electronic device provided by an embodiment of the present application;
[0034] Figure 3 It is a schematic diagram of the software architecture of an electronic device provided by an embodiment of the present application;
[0035] Figure 4 It is a schematic diagram of the architecture of a possible push system provided by an embodiment of the present application;
[0036] Figure 5 It is a schematic diagram of the architecture of a possible push system provided by an embodiment of the present application;
[0037] Figure 6 It is a schematic diagram of the architecture of a possible push system provided by an embodiment of the present application;
[0038] Figure 7 It is a schematic diagram of the flowchart of a connection method provided by an embodiment of the present application;
[0039] Figure 8 It is a schematic diagram of the flowchart of a possible display method provided by an embodiment of the present application;
[0040] Figure 9a It is a schematic diagram of a display interface related to push messages provided by an embodiment of the present application;
[0041] Figure 9b It is a schematic diagram of an interface for displaying push messages on the screen when the screen is off provided by an embodiment of the present application;
[0042] Figure 9c A schematic diagram of an interface for pushing messages in the screen-off display provided by an embodiment of the present application;
[0043] Figure 10 A schematic flowchart of a possible display method provided by an embodiment of the present application;
[0044] Figure 11 A schematic diagram of a display interface related to pushing messages provided by an embodiment of the present application;
[0045] Figure 12 A schematic diagram of a display method provided by an embodiment of the present application;
[0046] Figure 13 A schematic diagram of a display method provided by an embodiment of the present application;
[0047] Figure 14 A schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Detailed implementation manners
[0048] In order to make the objectives, 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.
[0049] Among them, in the description of the embodiments of the present application, hereinafter, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features.
[0050] For ease of understanding, illustrative descriptions of concepts related to the present application are given for reference.
[0051] 1) An electronic device, which may be a device with a display function. Among them, the display function may include a screen-off display function, a screen-on display function, etc.
[0052] 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, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a smart home device (such as a smart TV, a smart speaker, etc.), a smart robot, a workshop device, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, or a wireless terminal in smart home, a flying device (such as a smart robot, a drone, an aircraft), etc.
[0053] Among them, the wearable device is a portable device that the user can directly wear on the body or integrate into the user's clothes or accessories.
[0054] In some embodiments of the present application, the electronic device may also be a portable terminal device with other functions. Exemplary embodiments of the portable terminal device include, but are not limited to, those equipped with or other operating systems. The above portable terminal device may also be other portable terminal devices, such as a laptop with a touch-sensitive surface (such as a touch panel), etc. It should also be understood that in some other embodiments of the present application, the above electronic device may not be a portable terminal device, but a desktop computer with a touch-sensitive surface (such as a touch panel).
[0055] 2) Always-on display (AOD) is a display technology that allows an electronic device to display useful information in the screen-off state (or the screen-sleep state). This technology enables the control of partial illumination and content display on the electronic device's display screen without fully lighting up the entire display screen, thereby saving power compared to the case where the entire display screen is lit up (i.e., the screen-on state or the screen-on mode) for content display. Based on the AOD technology, even when the electronic device is in the screen-off state (or enters the screen-off mode), some information (such as the clock, calendar, notifications, etc.) can be displayed in a minimized manner, allowing users to view this information in the most convenient way at any time with low power consumption. That is to say, in the screen-off state, the display screen of the electronic device can limitedly display specific information such as time and notifications. Since the AOD technology allows the electronic device to display a certain amount of information in the screen-off state, AOD is also known as the screen-off display (or the screen-sleep display).
[0056] It should be understood that in the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, or B exists alone, where A and B may be singular or plural. The character " / " generally represents an "or" relationship between the front and rear associated objects. "At least one (item) of the following" or its similar expressions refer to any combination of these items, including any combination of single item (s) or plural item (s). For example, at least one (item) of a, b, or c may represent: a, b, c, a and b, a and c, b and c, or a, b, and c, where a, b, and c may be single or multiple.
[0057] Figure 1 is a schematic architecture diagram of a push message display system. As Figure 1 shown in the figure, the system may include an application server, a push server, and an electronic device. Among them, the application server is the server corresponding to the application installed in the electronic device, and the application server can send the push message corresponding to the application to the electronic device through the push server. The push server can be used to distribute the push message from the application server to the electronic device.
[0058] As Figure 1As shown in the figure, an electronic device may include a modem (or a modem chip), an operating system, and an always on display (AOD) module. Among them, the modem can be used to receive push messages from a push server and wake up the operating system to process the push messages. The operating system can 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 can be used to receive push messages from the modem, decrypt and parse the content of the push messages, and send the processed push messages to the UI display module. Among them, the push client can be a system service in the electronic device (corresponding to the above push server), or can be a push service in a third-party application installed in the electronic device (corresponding to the above application server). When the electronic device is in the screen-on state, the UI display module can 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 alternative implementation, the UI display module can be used to send the push messages to the AOD module, and the AOD module can be used to perform screen-off display on the received push messages. As another alternative implementation, the UI display module can be used to control the electronic device to switch to the screen-on state and then display the received push messages.
[0059] In the above several methods, every time the electronic device receives a push message in the screen-off state, it needs to wake up the operating system for processing to achieve the display of the push message. However, the power consumption caused by waking up the operating system is relatively large, which will reduce the display efficiency of the push message. Especially when the electronic device frequently receives push messages, frequently waking up the operating system will cause great power consumption loss.
[0060] Based on the above problems, in order to reduce the power consumption loss of the electronic device in displaying push messages, the embodiments of the present application provide a display method and an electronic device. This solution can simply and efficiently display push messages, reduce the power consumption loss of displaying push messages, and thus improve the display efficiency of push messages.
[0061] 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 perform interaction processes such as negotiation based on the connection mechanism to establish a connection. During the process of maintaining the connection, the push client and the push server need to send heartbeat packets to the peer regularly based on the heartbeat mechanism, so that the push client and the push server can determine whether the connection is maintained or disconnected based on the heartbeat packets, and re - establish the connection when it is determined that the connection is disconnected. In the above process, the interaction information between the push client and the push server is forwarded by the modem. For example, the heartbeat packet sent by the push client can be forwarded to the push server by the modem, and the push client can receive the heartbeat packet from the push server forwarded by the modem.
[0062] In the above method, for the electronic device, the processing of the interaction information during the connection establishment process needs to be completed by the push client in the operating system, the processing of the heartbeat packet during the connection maintenance process needs to be completed by the push client in the operating system, and the sending and receiving of the interaction information during the connection establishment and maintenance processes also require the participation of the push client in the operating system. Therefore, the operating system needs to be awakened every time a connection is made and every time the heartbeat packet is sent, received, and processed, resulting in a relatively large power consumption loss. In summary, during the process of the current electronic device establishing and maintaining a connection with the push server, the operating system also needs to be frequently awakened, so it will also cause a great power consumption loss.
[0063] Based on the above problems, in order to reduce the power consumption loss during the process of the electronic device establishing and maintaining a connection with the push server, the embodiments of the present application further provide a connection method and an electronic device. This solution can reduce the power consumption loss during the process of the electronic device establishing and maintaining a connection with the push server, and thus improve the connection efficiency.
[0064] Optionally, the display method and the connection method provided by the embodiments of the present application can be combined into one solution and applied to the electronic device, or can be applied to the electronic device as independent solutions respectively. For example, the electronic device can continue to execute the display method after executing the connection method, so as to reduce the power consumption in the entire process of the electronic device connecting to the connection server and performing push message interaction, and thus minimize the power consumption loss on the electronic device side.
[0065] Next, refer to Figure 2 , and introduce the structure of the electronic device to which the method provided by the embodiments of the present application is applicable.
[0066] As Figure 2As shown in the figure, 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, a headphone jack 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.
[0067] Among them, 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, a barometric pressure sensor, a bone conduction sensor, etc.
[0068] It can be understood that Figure 2 the electronic device 100 shown in the figure is only an example, which does not constitute a limitation on the electronic device, and the electronic device may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. Figure 2 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.
[0069] 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 may be independent devices or may be integrated in one or more processors. Among them, the controller may be the nerve center and command center of the electronic device 100. The controller may generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching instructions and executing instructions.
[0070] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be directly called from the said memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0071] The execution of the display method provided by the embodiments of the present application can be controlled by the processor 110 or other components can be called to complete it. For example, the processing program of the embodiments of the present application stored in the internal memory 121 is called, or the processing program of the embodiments of the present application stored in a third-party device is called through the external memory interface 120 to control the wireless communication module 160 to perform data communication with other devices, improving the intelligence and convenience of the electronic device 100 and enhancing the user experience. The processor 110 may include different devices. For example, when the CPU and GPU are integrated, the CPU and GPU can cooperate to execute the display method provided by the embodiments of the present application. For example, some algorithms in the display method are executed by the CPU and another part of the algorithms are executed by the GPU to obtain a faster processing efficiency.
[0072] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), 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 the information input by the user or the information provided to the user as well as various graphical user interfaces (GUIs). For example, the display screen 194 can display push messages, etc.
[0073] In the embodiments of the present application, the display screen 194 can be an integrated flexible display screen, or a spliced display screen composed of two rigid screens and a flexible screen located between the two rigid screens.
[0074] The camera 193 (front camera or rear camera, or a single camera that can function as both a front camera and a rear camera) is used to capture still images or videos. Generally, the camera 193 may include a photosensitive element such as a lens group and an image sensor. Among them, the lens group includes multiple lenses (convex lenses or concave lenses) for collecting the optical signals reflected by the object to be photographed and transmitting the collected optical signals to the image sensor. The image sensor generates the original image of the object to be photographed based on the optical signals.
[0075] The internal memory 121 can be used to store computer-executable program codes, and the executable program codes include 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 operating system, codes of application programs (such as the functions corresponding to the solution of the present application, etc.). The data storage area can store the data created during the use of the electronic device 100.
[0076] The internal memory 121 can also store one or more computer programs corresponding to the algorithms of the solution of the present application. The one or more computer programs are stored in the above internal memory 121 and are configured to be executed by one or more processors 110. The one or more computer programs include instructions, and the above instructions can be used to execute the respective steps in the following embodiments.
[0077] In addition, the internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0078] Of course, the code of the algorithm of the solution 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 solution of the present application stored in the external memory through the external memory interface 120.
[0079] The touch sensor, also known as the "touch panel". The touch sensor can be disposed on the display screen 194, and the touch sensor and the display screen 194 form a touch display screen, also known as the "touch screen". The touch sensor is used to detect touch operations acting on or near it. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual outputs related to the touch operations can be provided through the display screen 194. In some other embodiments, the touch sensor can also be disposed on the surface of the electronic device 100, at a different position from that of the display screen 194.
[0080] The wireless communication function of the electronic device 100 can be implemented by antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modulation and demodulation processor, baseband processor, etc.
[0081] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0082] The mobile communication module 150 can provide solutions for wireless communications such as 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 can include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves by antenna 1, filter, amplify, etc. 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 through antenna 1 for radiation. In some embodiments, at least some functional modules of the mobile communication module 150 can be disposed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 can be disposed in the same device. In the embodiments of the present application, the mobile communication module 150 can also be used for information interaction with other devices.
[0083] The modulation and demodulation processor can include a modulator and a demodulator. Among them, 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. Subsequently, the demodulator 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 transmitted to the application processor. The application processor outputs a sound signal through an audio device (not limited to speaker 170A, receiver 170B, etc.), or displays content through the display screen 194. In some embodiments, the modulation and demodulation processor can be an independent device. In some other embodiments, the modulation and demodulation processor can be independent of the processor 110 and disposed in the same device as the mobile communication module 150 or other functional modules.
[0084] The wireless communication module 160 may provide solutions for wireless communications applied to the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (WiFi) networks), Bluetooth (BT), global navigation satellite systems (GNSSs), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive signals to be sent from the processor 110, perform frequency modulation and amplification on them, and convert them into electromagnetic waves through the antenna 2 for radiation. In the embodiments of the present application, the wireless communication module 160 may be used to establish a connection with other electronic devices for data interaction. Or the wireless communication module 160 may be used to access an access point device, send control instructions to other electronic devices, or receive data sent from other electronic devices.
[0085] In addition, the electronic device 100 may 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, etc. For example, music playback, recording, etc. The electronic device 100 may receive inputs from the keys 190 and generate key signal inputs related to the user settings and function controls of the electronic device 100. The electronic device 100 may use the motor 191 to generate vibration prompts (such as incoming call vibration prompts). The indicator 192 in the electronic device 100 may be an indicator light, which may be used to indicate the charging state, the change in battery level, and may 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 in contact with and separated from the electronic device 100 by being inserted into or removed from the SIM card interface 195.
[0086] It should be understood that in practical applications, the electronic device 100 may include more than Figure 2More or fewer components shown are not limited in the embodiments of the present application. 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.
[0087] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture. The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers is through software interfaces. Exemplarily, as Figure 3 shown, the software architecture may be divided into four layers, from top to bottom are the application layer, the application framework layer (framework, FWK), the runtime and system libraries, and the (Linux) kernel layer.
[0088] The application layer is the top layer of the operating system, including the native applications of the operating system, such as the camera, gallery, calendar, Bluetooth, music, video, information, etc., and may also include third-party applications. The application involved in the embodiments of the present application is abbreviated as application (APP), which is a software program capable of implementing one or more specific functions. Generally, multiple applications may be installed in the electronic device, such as a camera application, an email application, etc. The application mentioned below may be a system application pre-installed when the electronic device leaves the factory, or a third-party application downloaded from the network or obtained from other electronic devices by the user during the use of the electronic device.
[0089] Of course, for developers, developers can write application programs and install them in this layer. In a possible implementation, the application program may be developed using the Java language and completed by calling the application programming interface (API) provided by the application framework layer. Developers can interact with the underlying layer of the operating system (such as the kernel layer, etc.) through the application framework to develop their own application programs.
[0090] The application framework layer is the API and programming framework for the application layer. The application framework layer may include some predefined functions. The application framework layer may include a window manager, a content provider, a view system, a telephone manager, a resource manager, a notification manager, etc.
[0091] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the display screen (or screen), capture the display screen, etc.
[0092] The content provider is used to store and retrieve data and make this data accessible to applications. The data may include information such as files (e.g., documents, videos, images, audio), text, etc.
[0093] The view system includes visual controls, such as controls for displaying content like text, pictures, documents, etc. The view system can be used to build applications. The interface in the display window can be composed of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
[0094] The telephony manager is used to provide the communication functions of the electronic device. The notification manager enables applications to display notification information in the status bar. It can be used to convey messages of an informative type and will automatically disappear after a short stay without user interaction.
[0095] The runtime includes a core library and a virtual machine. The runtime is responsible for the scheduling and management of the system.
[0096] The core library of the system consists of two parts: one part is the functional functions that need to be called by the Java language, and the other part is the core library of the system. The application layer and the application framework layer run in the virtual machine. Taking Java as an example, the virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as the management of object life cycles, stack management, thread management, security and exception management, and garbage collection.
[0097] The system library can include multiple functional modules. For example: the surface manager, the media library, the 3D graphics processing library (e.g., OpenGL ES), the 2D graphics engine (e.g., SGL), the 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 the playback and recording of multiple common audio and video formats, as well as static image files, etc. The media library can support multiple audio and video coding 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 the drawing engine for 2D drawing.
[0098] The kernel layer provides the core system services of the operating system. Services such as security, memory management, process management, network protocol stack, and driver model are all implemented based on the kernel layer. The kernel layer also serves as an abstraction layer between the hardware and the software stack. There are many driver programs related to electronic devices in this layer, and the main drivers include: display driver; keyboard driver as an input device; Flash driver based on memory technology devices; camera driver; audio driver; Bluetooth driver; WiFi driver, etc.
[0099] 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.
[0100] Optionally, the solution provided in the embodiments of the present application can be applied to the scenario where an electronic device receives, processes, and displays push messages. The electronic device can display push messages in the screen-off state or the screen-on state.
[0101] The solution provided in the embodiments of the present application can be applied to a push system, which at least includes an electronic device (such as Figure 4 the electronic device shown in Figure 4 ). Optionally, the push system can further include at least one server (such as
[0102] Figure 4 the application server and the push server shown in Figure 4 ). 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.).
[0103] In some embodiments of the present application, the application server can be the server corresponding to the application installed in the electronic device. The application server can send the push messages corresponding to the application to the electronic device through the push server. The push server can distribute the push messages from the application server to the electronic device.
[0104] Optionally, the push server can be the server corresponding to the electronic device, for example, the server of the manufacturer of the electronic device.
[0105] Optionally, the application server can be a cloud server. Optionally, the push server can be a cloud server.
[0106] In some embodiments of the present application, as shown in Figure 4As shown in the figure, an 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 may 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 may be used to process the push messages and control the display screen to display the push messages. The AOD module may be used to control the display screen to display the push messages in the off-screen state. The display screen may be used to display the push messages.
[0107] In a possible solution, the communication module may be a mobile communication module. For example, the communication module may be a modem, etc. In another possible solution, the communication module may be a wireless communication module. For example, the communication module may be a WiFi communication module, etc.
[0108] In some embodiments of the present application, the first processor may be the main processor, and the second processor may be a coprocessor or a secondary processor. Compared with the first processor, the second processor has lower power consumption during operation.
[0109] Optionally, the first processor belongs to a large-core processor, and the second processor belongs to a small-core processor.
[0110] Optionally, the first processor may be an application processor or a CPU, etc. Optionally, the second processor may be a smart sensing hub (sensorhub) or a micro control unit (MCU), etc.
[0111] In some embodiments of the present application, as Figure 4 shown in the figure, an operating system may run on the first processor, and the operating system may include a push client and a UI display module.
[0112] Optionally, the software architecture of the operating system may be implemented using the software architecture shown above Figure 3 in the figure.
[0113] In the first possible solution, the communication module may be used to send the push message to the second processor for processing after receiving the push message from the server and determining that the electronic device is in the off-screen state. Or, the communication module may be used to send the push message to the push client in the operating system for processing after receiving the push message from the server and determining that the electronic device is in the on-screen state.
[0114] Based on the above first possible solution, the push client may be used to receive the push message from the communication module, decrypt, analyze the content, etc. of the received push message, and send the processed push message to the UI display module. The UI display module may be used to control the display screen to display the push message in the on-screen state.
[0115] In a possible implementation, the second processor may specifically be configured to receive a push message from the communication module, decrypt and perform content analysis on the received push message, and send the processed push message to the AOD module. The AOD module may be configured to control the display screen to display the push message in the screen-off state.
[0116] In another possible implementation, the second processor may specifically be configured to receive a push message from the communication module and cache the received push message when the electronic device is in the screen-off state. The second processor may also be configured to send the cached push message to the push client when the electronic device switches from the screen-off state to the screen-on state. The push client may be configured to receive the push message from the second processor, decrypt and perform content analysis on the received push message, and send the processed push message to the UI display module. The UI display module may be configured to control the display screen to display the push message in the screen-on state.
[0117] In yet another possible implementation, the second processor may specifically be configured to receive a push message from the modem when the electronic device is in the screen-off state, decrypt and perform content analysis on the received push message, and cache the processed push message. The second processor may also be configured to send the cached push message to the UI display module when the electronic device switches from the screen-off state to the screen-on state. The UI display module may control the display screen to display the push message in the screen-on state. Among them, the second processor may directly send the cached push message to the UI display module, or may send the cached push message to the UI display module through the push client.
[0118] In the second possible solution, the communication module may be configured to send the push message to the second processor for corresponding processing after receiving the push message from the server. The second processor may be configured to send the push message to the push client in the operating system when receiving the push message from the communication module and determining that the electronic device is in the screen-on state. The push client may be configured to decrypt and perform content analysis on the received push message, and send the processed push message to the UI display module for subsequent display. The second processor may be configured to process the received push message according to the method described in the first possible solution above when receiving the push message from the communication module and determining that the electronic device is in the screen-off state.
[0119] 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 it is detected that the status of the electronic device has changed, notify the communication module or the second processor, so that the communication module or the second processor can determine the status of the electronic device and process (such as distribute) the push message according to the status of the electronic device.
[0120] The second processor described in the embodiments of the present application can be located on a chip in the electronic device, or, the second processor described in the embodiments of the present application can be replaced by a chip.
[0121] It should be understood that the above-described push system architecture 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 may not be divided, but work as a whole.
[0122] In some embodiments of the present application, in Figure 4 In the shown push system, 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 can also be referred to as a communication connection or 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. Among them, the information (such as data packets, heartbeat packets, etc.) exchanged between the second processor and the push server can be forwarded through the wireless communication module.
[0123] 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 (such as the above-mentioned modem or the second processor), so that the device can refer to the configuration information and implement the above connection according to the connection method.
[0124] 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 way to detect 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 called a heartbeat data packet) to the server (i.e., the push server), and the server feedbacks the heartbeat packet to the client every time it receives the heartbeat packet. When the client can receive the heartbeat packet feedback (i.e., the heartbeat response packet) from 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 feedback from the server, it can be determined that the connection between the client and the server is disconnected, and then the client can actively reconnect to the server.
[0125] It should be noted that the periodic sending described in the embodiments of the present application can be understood as cyclic sending, and the periodic sending of the heartbeat packet described in the embodiments of the present application can be understood as cyclic sending of the heartbeat packet. Among them, the period of cyclic sending can be a set heartbeat period.
[0126] Based on the above method, another possible architecture of the push system provided by the embodiments of the present application can be referred to Figure 5 . As shown in Figure 5 , at least an electronic device and a push server are included in the push system. Among them, at least a first communication module, a second communication module, a first processor, and a second processor are included in the electronic device.
[0127] Optionally, as shown in Figure 5 , the first communication module can be a modem. Optionally, the second communication module can be a wireless communication module. Exemplarily, as shown in Figure 5 , the second communication module can be a WiFi communication module, etc. It should be noted that in some embodiments, Figure 4 the communication module shown in Figure 5 can be the first communication module or the second communication module shown in
[0128] As a possible way, the electronic device can establish and maintain a connection with the push server through the first communication module; as another possible way, the electronic device can establish and maintain a connection with the push server through the second processor. Among them, the interaction information during the process of the second processor establishing and maintaining a connection with the push server can be forwarded through the second communication module.
[0129] As shown in Figure 5As shown, an operating system can 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 way for the electronic device to establish a connection with the push server and the configuration information corresponding to this way. For example, the push client can determine one way from the above two possible ways as the way for the electronic device to establish a connection with the push server and determine the configuration information corresponding to this way. After triggering the electronic device to establish a connection with the push server and configuring the way for the electronic device to establish a connection with the push server and the configuration information corresponding to this way, the push client can send the configuration information corresponding to this way to the device corresponding to this way (such as the first communication module or the second processor), so that the device can refer to the configuration information corresponding to this way, establish a connection with the push server in this way, and maintain the connection with the push server based on this way.
[0130] In some embodiments of the present application, as Figure 6 shown in Figure 5 In the electronic device shown in Figure 5 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 The first communication module shown in Figure 5 The second processor shown in
[0131] Among them, the connection management module in the push client can be used to perform connection management according to the network state 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 state 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 according to the network state and capabilities, it can determine to connect to the push server through the mobile communication method, that is, 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 according to the network state and capabilities, it can determine to connect to the push server through the wireless communication method, that is, establish a connection with the push server through the second processor. The connection adaptation module in the push client can configure the configuration information corresponding to this way according to the way to establish a connection determined by the connection management module, and send the configuration information to the control module corresponding to the device corresponding to this way.
[0132] The first control module corresponds to the first communication module. The first control module 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. The second control module 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 the mobile network. This interface is used to connect the push client (or the connection adaptation 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 the telephony service. The second control module can be used to provide a connection proxy service interface under the wireless network. This interface is used to connect the push client (or the connection adaptation module in the push client) to the second processor, and the second processor is connected to the second communication module. The second control module can also be used to control the start and stop of establishing and maintaining a connection with the push server through the second processor (and the second communication module).
[0133] The first connection proxy module in the first communication module can be used to create / end / re-establish a connection with the push server based on the connection protocol, maintain the connection with the push server based on the heartbeat mechanism, detect the mobile network status and report the detection result to the push client, cache the push messages, and perform push message transmission, etc. Optionally, as Figure 6 shown, 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 perform the distribution of push messages. Exemplarily, the distribution module can be a content distribution service (CDS).
[0134] The first connection proxy module in the second processor can be used to create / end / re - establish a connection with the push server based on a connection protocol, maintain the connection with the push server based on a heartbeat mechanism, detect the wireless network status and report the detection result to the push client, cache push messages, and perform push message transmission, etc. 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.
[0135] In some embodiments of the present application, as Figure 5 shown, the push system may further include an application server; the electronic device may further include an AOD module and a display screen; the operating system may further include a UI display module. Regarding Figure 5 the functions of each system, device, module, service or device shown, in addition to referring to the above Figure 5 corresponding description, reference may also be made to the corresponding description in the foregoing embodiments Figure 4 herein, which will not be repeated.
[0136] Based on the above Figure 5 、 Figure 6 related descriptions, 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 by an embodiment of the present application can refer to Figure 7 . As Figure 7 shown, the method may include:
[0137] S701: The push client in the electronic device sends a connection request to the push server, and the connection request is used to request to establish a connection with the push server.
[0138] Among them, the push client can forward the connection request to the push server through the modem or the WiFi communication module.
[0139] Optionally, the push client may continue to execute the following step S702 after receiving a connection response from the push server for confirming the establishment of the connection.
[0140] S702: The push client determines to establish a connection with the push server through the modem, or determines to establish a connection with the push server through the second processor.
[0141] Among them, when the push client determines to establish a connection with the push server through the modem, it continues to execute the following steps S703 - 712; when the push client determines to establish a connection with the push server through the second processor, it continues to execute the following steps S713 - S722.
[0142] Among them, the modem corresponds to the mobile connection method, and the second processor corresponds to the WiFi connection method.
[0143] Optionally, step S702 can be executed by the connection management module in the push client.
[0144] S703: When the push client determines to establish a connection with the push server through the modem, send the configuration information to the first control module.
[0145] Among them, the configuration information is used to control the modem to establish a connection with the push server. The determination of the configuration information can be completed by the connection proxy adaptation module in the push client.
[0146] S704: The first control module sends the configuration information to the modem.
[0147] Optionally, the first control module can send the configuration information to the first connection proxy module in the modem.
[0148] S705: The modem saves the configuration information.
[0149] Optionally, step S705 can be executed by the first connection proxy module in the modem.
[0150] S706: The push client notifies the first control module to start the connection.
[0151] S707: The first control module notifies the modem to start the connection.
[0152] Optionally, the first control module can notify the first connection proxy module in the modem to start the connection.
[0153] S708: The modem establishes a connection with the push server according to the saved configuration information.
[0154] Optionally, the modem can establish a connection with the push server by performing processes such as the three-way handshake based on the transmission control protocol (TCP), TLS negotiation, and device registration with the push server according to the saved configuration information. This process can be implemented with reference to the processes specified in relevant standards and will not be elaborated here.
[0155] Optionally, step S708 can be completed through the cooperation of multiple modules such as the first connection proxy module, protocol stack, and distribution module in the modem.
[0156] S709: After the modem establishes a connection with the push server, it notifies the first control module that the connection is successful.
[0157] S710: The first control module notifies the push client that the connection is successful.
[0158] S711: After establishing a connection with the push server, the modem periodically sends a heartbeat request to the push server.
[0159] S712: The modem receives a heartbeat response from the push server.
[0160] Among them, when the modem receives a heartbeat response from the push server, it can determine that the connection status with the push server is normal.
[0161] In some embodiments of the present application, when the modem does not receive a heartbeat response from the push server, it can send a connection disconnection notice to the push client. After receiving the connection disconnection notice, the push client executes step S701 and subsequent steps to re - establish a connection with the push server. Among them, the connection disconnection notice is used to notify that the connection with the push server has been disconnected. The modem can send the connection disconnection notice to the push client through the first control module.
[0162] Optionally, steps S711 - S712 can be completed through the cooperation of multiple modules such as the first connection proxy module, protocol stack, and distribution module in the modem.
[0163] S713: When the push client determines that a connection is established with the push server through the second processor, it sends configuration information to the second control module.
[0164] Among them, the configuration information is used to control the second processor to establish a connection with the push server. The determination of the configuration information can be completed by the connection proxy adaptation module in the push client.
[0165] S714: The second control module sends the configuration information to the second processor.
[0166] Optionally, the second control module can send the configuration information to the second connection proxy module in the second processor.
[0167] S715: The second processor saves the configuration information.
[0168] Optionally, step S715 can be executed by the second connection proxy module in the second processor.
[0169] S716: The push client notifies the second control module to start the connection.
[0170] S717: The second control module notifies the second processor to start the connection.
[0171] Optionally, the second control module can notify the second connection proxy module in the second processor to start the connection.
[0172] S718: The second processor establishes a connection with the push server according to the saved configuration information.
[0173] Optionally, the second processor can establish a connection with the push server by performing processes such as three-way handshake based on the Transmission Control Protocol (TCP), TLS negotiation, and device registration with the push server according to the saved configuration information. These processes can be implemented with reference to the processes specified in relevant standards and will not be elaborated here.
[0174] Optionally, step S718 can be completed through the cooperation of multiple modules such as the second connection proxy module, protocol stack, and distribution module in the second processor.
[0175] S719: After the second processor establishes a connection with the push server, it notifies the second control module that the connection is successful.
[0176] S720: The second control module notifies the push client that the connection is successful.
[0177] S721: After the second processor establishes a connection with the push server, it periodically sends a heartbeat request to the push server.
[0178] S722: The second processor receives a heartbeat response from the push server.
[0179] Among them, when the second processor receives a heartbeat response from the push server, it can determine that the connection status with the push server is normal.
[0180] In some embodiments of the present application, when the second processor does not receive a heartbeat response from the push server, it can send a connection disconnection notice to the push client. After receiving the connection disconnection notice, the push client executes step S701 and subsequent steps to re-establish a connection with the push server. Among them, the connection disconnection notice is used to notify that the connection with the push server has been disconnected. The second processor can send the connection disconnection notice to the push client through the second control module.
[0181] In the above method, the information exchanged between the second processor and the push server can be forwarded through the WiFi communication module.
[0182] Optionally, steps S721 - S722 can be completed through the cooperation of multiple modules such as the second connection proxy module, protocol stack, and distribution module in the second processor.
[0183] In the above method, the push client can be used to trigger the establishment of a connection with the push server and confirm the successful establishment of the connection. Specifically, the process of establishing the connection and the process of maintaining the connection by periodically sending and receiving heartbeat packets after the connection is established can be completed by a modem or a second processor with relatively low power consumption loss. Therefore, the number of times the operating system to which the push client belongs is awakened can be greatly reduced, 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.
[0184] 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 by an embodiment of the present application can refer to Figure 8 This display method can be applied to the above Figure 4 or Figure 5 The electronic device shown. The display method when the communication module is other devices or modules can be implemented by referring to the method shown in Figure 8 which will not be elaborated here one by one.
[0185] In some embodiments of the present application, this display method can be executed after the connection method provided in the above embodiments.
[0186] As Figure 8 shown, this display method may include:
[0187] S801: The application server sends a push message to the push server.
[0188] S802: The push server sends the push message to the modem in the electronic device.
[0189] In some embodiments of the present application, the push message may have a priority, and the priorities of different push messages may be different or the same. Exemplarily, the priority of the push message can be determined according to 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 can determine the manner of sending the push message to the electronic device according to the priority of the push message. As an optional implementation manner, after receiving a push message, the push server can 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 receiving a push message, the push server can 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 push messages to be sent to the electronic device cached in the push server reaches the set value, the push server can send multiple push messages to the electronic device at the same time.
[0190] In the first possible solution, the following steps S803a to S804a can be executed after step S802:
[0191] S803a: The modem determines that the electronic device is currently in the screen-off state.
[0192] Among them, as an alternative implementation, the modem itself can monitor the state of the electronic device to determine whether the electronic device is in the screen-off state. As another alternative implementation, the modem can determine that the electronic device is in the screen-off state according to a notification from the electronic device or other modules in the electronic device for detecting the state of the electronic device. For example, the electronic device or other modules in the electronic device for detecting the state of the electronic device can monitor the state 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 state 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.
[0193] S804a: The modem sends a push message to the second processor in the electronic device.
[0194] After step S804a, the following steps S805 to S807 described below can be executed.
[0195] In the second possible solution, after step S802, the following steps S803b to S804b can be executed:
[0196] S803b: The modem sends a push message to the second processor in the electronic device.
[0197] S804b: The second processor determines that the electronic device is currently in the screen-off state.
[0198] Among them, the second processor can determine the state of the electronic device by referring to the method of the modem determining the state of the electronic device described in the foregoing step S803a, and then determine whether the electronic device is in the screen-off state. Details are not described here again.
[0199] After step S804b, the following steps S805 to S807 described below can be executed.
[0200] S805: The second processor parses and processes the received push message.
[0201] S806: The second processor sends the processed push message to the AOD module in the electronic device.
[0202] S807: The AOD module controls the screen-off display of the received push message on the display screen.
[0203] Example 1. Exemplarily, taking the electronic device as a mobile phone and the application installed in the electronic device as the takeaway application A, the push message can be the 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 (such as "The rider is picking up the goods") in the screen-off state, it can 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. Then, the display screen of the electronic device can change 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 . This interface includes the order progress push message "The rider is picking up the goods" displayed in the screen-off display mode.
[0204] 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 takeaway application A is updated from "The rider is picking up the goods" to "The rider is delivering the goods", the application server can send the order progress push message corresponding to the latest order progress of the takeaway application A (i.e., "The rider is delivering the goods") (such as "The rider is 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. Then, 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 . This interface includes the latest order progress push message "The rider is delivering the goods" displayed in the screen-off display mode.
[0205] Example 3. Based on the above Example 1, after the electronic device displays Figure 9aAfter the interface shown in the schematic diagram (b) in [reference], the electronic device remains in the screen-off state. When the modem in the electronic device receives an order push message (such as "being made by the merchant") corresponding to another food delivery application B installed in the electronic device, it can send the 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. Then, the display screen of the electronic device can switch from displaying the interface shown in the schematic diagram (b) in [reference] to displaying Figure 9a the screen-off push interface shown in [reference], and this interface includes the order progress push message corresponding to food delivery application A (i.e., the message "being picked up by the rider") and the order progress push message corresponding to food delivery application B (i.e., the message "being made by the merchant") displayed simultaneously in the screen-off display mode. Figure 9c
[0206] Based on the above method, when the electronic device receives a push message in the screen-off state, it can parse and process the push message through the low-power second processor, and the AOD module can display it, achieving the effect of displaying the received push message in 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 participation of the operating system (or the first processor) in processing, which can avoid the large power consumption loss caused by waking up the operating system (or the first processor) to participate in processing, thereby reducing the overall power consumption loss and improving the processing efficiency.
[0207] Based on the above description, taking the communication module (or communication device) of the electronic device as the modem as an example, another display method provided by the embodiments of the present application can refer to Figure 10 , and this display method can be applied to the electronic device shown in the above Figure 4 or Figure 5 . When the communication module is other devices or modules, the display method can be implemented by referring to the method shown in Figure 10 , and details are not described herein one by one.
[0208] In some embodiments of the present application, this display method can be executed after the connection method provided in the above embodiments.
[0209] As Figure 10 shown, this display method may include:
[0210] S1001: The application server sends a push message to the push server.
[0211] S1002: The push server sends the push message to the second processor in the electronic device.
[0212] Among them, for the specific implementation process of step S1002, reference can be made to the methods described in step S802 and steps S803a - S804a in the foregoing embodiments, or reference can be made to the methods described in step S802 and steps S803b - S804b in the foregoing embodiments, which will not be elaborated here.
[0213] In the first possible solution, the following steps S1003a - S1005a can be executed after step S1002:
[0214] S1003a: The second processor caches the received push message.
[0215] Among them, when the electronic device is in the screen-off state, the operating system is in the sleep state.
[0216] S1004a: When the second processor determines that the electronic device switches from the screen-off state to the screen-on state, it sends the cached push message to the push client in the electronic device.
[0217] Among them, the second processor can 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 above, and then determine whether the electronic device switches from the screen-off state to the screen-on state. This will not be elaborated here.
[0218] S1005a: The push client parses and processes the received push message.
[0219] After step S1005a, the following step S1006 described below can be executed.
[0220] Exemplarily, the parsing and processing may include processing such as decryption and content analysis, and may also include other processing required for converting the received push message into a format that can be displayed on the display screen. There is no specific limitation in the embodiments of the present application.
[0221] In the second possible solution, the following steps S1003b - S1004b can be executed after step S1002:
[0222] S1003b: The second processor parses and processes the received push message.
[0223] S1004b: When the second processor determines that the electronic device switches from the screen-off state to the screen-on state, it sends the parsed push message to the push client in the electronic device.
[0224] After step S1004b, the following step S1006 described below can be executed.
[0225] S1006: The push client sends the parsed push message to the UI display module.
[0226] S1007: The UI display module controls the display screen to display the received push message.
[0227] Example 4: In an example, taking the electronic device as a mobile phone and the application installed in the electronic device as the takeaway application A, the push message can be the 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 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 the takeaway application A (such as "The rider is picking up the goods") in the screen-off state, it can send the order progress push message 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 turn on the screen, such as receiving an operation from the user to unlock the mobile phone, the electronic device can switch from the screen-off state to the screen-on state, and then 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 the system service of the electronic device or the takeaway application A or the push service in the takeaway 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, in response to the received operation from the user to unlock the mobile phone, switch from displaying Figure 11 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 , and this interface includes the order progress push message, that is, the message "The rider is picking up the goods".
[0228] Based on the above method, when the electronic device receives a push message in the screen-off state, the low-power second processor can first cache the push message, and 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 operating system can then process and display the cached push message. This method can avoid the large power consumption loss caused by waking up the operating system (or the first processor) to participate in the processing and display of the push message in the screen-off state, thereby reducing the overall power consumption loss.
[0229] In another display method provided in the embodiments of the present application, the electronic device refers to the above Figure 8 orFigure 10 The described display method, after the second processor receives a push message and the electronic device determines that it is in the screen-off state, the subsequent processing may include the following steps A1 to A5:
[0230] A1: The second processor determines whether the current scenario meets the set conditions; if so, step A2 is executed, otherwise, step S805 or step S1003a or step S1003b is executed.
[0231] In some embodiments of the present application, the set conditions may be conditions satisfied by scenarios that are pre-configured in the electronic device or pre-set by the user and require the push message to be displayed with the screen on. There is no specific limitation in the embodiments of the present application. For example, the set conditions may include at least one of the following: the type of the push message is a set type, the push message belongs to set important messages, the push client corresponding to the push message belongs to a set push client, the push client type of the push client corresponding to the push message belongs to a set push client type, and the current time is within a set time period.
[0232] Optionally, when the electronic device determines that the current scenario does not meet the set conditions, it may select to execute step S805 or step S1003a or step S1003b according to whether the electronic device supports displaying push messages with the screen off or whether it supports displaying push messages of the push client with the screen off.
[0233] A2: The second processor sends the push message to the push client.
[0234] A3: The push client parses and processes the received push message.
[0235] A4: The push client sends the processed push message to the UI display module.
[0236] Optionally, steps A2 to A4 above may also be replaced with 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.
[0237] A5: The UI display module controls the display screen to display the received push message.
[0238] Among them, the UI display module may 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 with the screen on.
[0239] Based on the above method, the electronic device can wake up the operating system to process and display push messages in a specific scenario, and can achieve the effect of displaying push messages with the screen on as needed, with relatively high flexibility.
[0240] In some embodiments of the present application, the electronic device refers to the above-mentioned Figure 8 or Figure 10 For the display method described above, after receiving a push message through the modem and the electronic device determines that it is in the screen-on state, the subsequent processing may include the following steps B1 to B4:
[0241] B1: The modem sends the push message to the push client.
[0242] Wherein, when the electronic device is in the screen-on state, the operating system is in the working state.
[0243] B2: The push client parses and processes the received push message.
[0244] B3: The push client sends the processed push message to the UI display module.
[0245] B4: The UI display module controls the display screen to display the received push message.
[0246] Based on the above method, the electronic device can control the processing and display of push messages through the operating system in the working state when the screen is on.
[0247] It should be understood that the implementation process provided in the above embodiments is only an example of the applicable method process of the embodiments of the present application. The execution order of each step can be adjusted accordingly according to actual needs, and other steps can also be added or some steps can be reduced.
[0248] In some embodiments of the present application, the user can control whether to allow the electronic device to display push messages when the screen is on. The electronic device can determine whether to support displaying push messages when the screen is on according to the user's operation. After the user switches the electronic device to the mode allowing push messages to be displayed when the screen is on by performing a corresponding operation (such as the operation of adjusting the electronic device to the notification screen-on mode), and the electronic device determines that it supports displaying push messages when the screen is on, the electronic device can process and display push messages according to the method corresponding to the above steps B1 to B4. After the user switches the electronic device to the mode not allowing push messages to be displayed when the screen is on by performing a corresponding operation (such as the operation of adjusting the electronic device to the notification screen-off mode), and the electronic device determines that it does not support displaying push messages when the screen is on, the electronic device can process and display push messages according to the above Figure 8 or Figure 10 described method.
[0249] In some other embodiments of the present application, for different applications, the user can separately control whether to allow the electronic device to turn on the screen to display the push messages of each application. The electronic device can determine whether to support turning on the screen to display the push messages of the application according to the user operation. For example, for a certain application, when the user switches the electronic device to the mode that allows turning on the screen to display the push messages of the application through corresponding operations, the electronic device determines that it supports turning on the screen to display the push messages of the application. Then the electronic device can process and display the push messages of the application according to the method corresponding to steps B1 - B4 above. When the user switches the electronic device to the mode that does not allow turning on the screen to display the push messages of the application through corresponding operations, the electronic device determines that it does not support turning on the screen to display the push messages of the application. Then the electronic device can process and display the push messages of the application according to the Figure 8 or Figure 10 method described above.
[0250] In some embodiments of the present application, the user can control whether to allow the electronic device to display push messages when the screen is off. The electronic device can determine whether to support displaying push messages when the screen is off according to the user operation. When the user switches the electronic device to the mode that allows displaying push messages when the screen is off through corresponding operations, the electronic device determines that it supports displaying push messages when the screen is off. Then the electronic device can process and display the push messages according to the Figure 8 method described above. When the user switches the electronic device to the mode that does not allow displaying push messages when the screen is off through corresponding operations, the electronic device determines that it does not support displaying push messages when the screen is off. Then the electronic device can process and display the push messages according to the Figure 10 method described above or the method corresponding to steps B1 - B4 above.
[0251] In some other embodiments of the present application, for different applications, the user can separately control whether to allow the electronic device to display the push messages of each application when the screen is off. The electronic device can determine whether to support displaying the push messages of the application when the screen is off according to the user operation. For example, for a certain application, when the user switches the electronic device to the mode that allows displaying the push messages of the application when the screen is off through corresponding operations, the electronic device determines that it supports displaying the push messages of the application when the screen is off. Then the electronic device can process and display the push messages of the application according to the Figure 5 method described above. When the user switches the electronic device to the mode that does not allow displaying the push messages of the application when the screen is off through corresponding operations, the electronic device determines that it does not support displaying the push messages of the application when the screen is off. Then the electronic device can process and display the push messages of the application according to the Figure 7 method described above or the method corresponding to steps B1 - B4 above.
[0252] Based on the above embodiments and the same inventive concept, an embodiment of the present application further provides a display method, which can be applied to an electronic device. The electronic device may include a first processor, a second processor, a screen always-on AOD module, and a display screen. Among them, the first processor is the 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. Among them, for the devices, systems, modules, etc. included in the electronic device, reference can be made to the descriptions in the foregoing embodiments, and will not be repeated hereinafter.
[0253] As Figure 12 shown in
[0254] S1201: The second processor obtains a first push message received from the server when the electronic device is in the screen-off state.
[0255] S1202: The second processor parses and processes the first push message.
[0256] S1203: The second processor sends the processed first push message to the AOD module.
[0257] S1204: The AOD module controls the display screen to display the processed first push message in the screen-off state.
[0258] Based on the above embodiments and the same inventive concept, an embodiment of the present application further provides a display method, which can be applied to an electronic device. The electronic device may include a first processor, a second processor, a screen always-on AOD module, and a display screen. Among them, the first processor is the 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; among them, for the devices, systems, modules, etc. included in the electronic device, reference can be made to the descriptions in the foregoing embodiments, and will not be repeated hereinafter.
[0259] As Figure 13 shown in
[0260] S1301: The second processor obtains a first push message received from the server when the electronic device is in the screen-off state.
[0261] S1302: The second processor caches the first push message.
[0262] 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.
[0263] S1304: The push client parses and processes the received first push message.
[0264] S1305: The push client sends the processed first push message to the UI display module.
[0265] S1306: The UI display module controls the display screen to display the processed first push message.
[0266] In some embodiments of the present application, the above Figure 12 or Figure 13 the electronic device described in the method of may be the electronic device provided in the foregoing embodiments, and the above Figure 12 or Figure 13 the server described in the method of may be the push server provided in the foregoing embodiments.
[0267] In some embodiments of the present application, in the above Figure 12 or Figure 13 method, before the second processor obtains the first push message received from the server when the electronic device is in the screen-off state, the electronic device may send a connection request to the server through the push client and receive a connection response from the server through the push client. Among them, the connection request is used to request to establish a connection with the server, and the connection response is used to confirm the establishment of the connection. In this way, the electronic device can determine that it can establish a connection with the server by interacting with the server. After receiving the connection response from the server through the push client, the electronic device may establish a connection with the server through the modem of the electronic device, or may establish a connection with the server through the second processor. Specifically, after the push client in the electronic device receives the connection response from the server, it may decide the method used to establish a connection with the server based on the method provided in the foregoing embodiments. If the push client determines to establish a connection with the server through the modem of the electronic device, it may instruct the modem of the electronic device to establish a connection with the server. For example, the electronic device may include the first control module described in the foregoing embodiments, and the push client may instruct the modem to establish a connection with the server through the first control module in the electronic device. If the push client determines to establish a connection with the server through the second processor, it 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 foregoing embodiments, 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.
[0268] After an electronic device establishes a connection with a server through the modem of the electronic device, it can send a heartbeat packet to the server according to a heartbeat cycle through the modem of the electronic device, and receive a heartbeat response packet corresponding to the heartbeat packet sent by the server, so as to maintain 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 according to a heartbeat cycle through the second processor, and receive a heartbeat response packet corresponding to the heartbeat packet sent by the server, so as to maintain the connection with the server. Among them, when the electronic device sends a heartbeat packet to the server according to a heartbeat cycle through the second processor, specifically, it can send a heartbeat packet to the communication module of the electronic device according to a heartbeat cycle through the second processor, and forward the heartbeat packet to the server through the communication module of the electronic device.
[0269] In some embodiments of the present application, the electronic device may further include a communication module. The description of the communication module may refer to the description in the foregoing embodiments, and will not be elaborated here. For example, the communication module may be a modem of the electronic device or a wireless fidelity (WiFi) communication device (the WiFi communication device may be used as the WiFi communication module described in the foregoing embodiments). Based on the above Figure 12 or Figure 13 method, as an alternative implementation, before the second processor obtains the first push message from the server received by the electronic device in the screen-off state, the electronic device may receive the first push message from the server through the communication module, and may also determine that the electronic device is in the screen-off state through the communication module. Based on this method, the way for the second processor to obtain the first push message from the server received by the electronic device in the screen-off state may be to receive the first push message sent by the communication module. As another alternative implementation, before the second processor obtains the first push message from the server received by the electronic device in the screen-off state, the electronic device may receive the first push message from the server through the communication module. In this method, the electronic device may determine that the electronic device is in the screen-off state through the second processor. The way for the second processor to obtain the first push message from the server received by the electronic device in the screen-off state may be to receive the first push message sent by the communication module.
[0270] In some embodiments of the present application, the above Figure 12 or Figure 13 first push message described in the method may include multiple push messages, and the priority of each push message among the multiple push messages is lower than or equal to a set priority. Optionally, the number of multiple push messages is a set value.
[0271] In some embodiments of the present application, the above Figure 12 or Figure 13The first push message described in the method may be a push message with a priority higher than the set priority.
[0272] In some embodiments of the present application, in the above Figure 12 or Figure 13 In the method described, 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 further determine that the electronic device is in the notification non-screen-on mode, so that the electronic device uses the above Figure 12 or Figure 13 method to process the push message; wherein, the notification non-screen-on mode is a mode in which the screen is not allowed to turn on to display the push message after receiving the push message in the screen-off state.
[0273] Based on the above embodiments and the same technical concept, the embodiments of the present application further provide a display method, which can be applied to the electronic device described in the foregoing embodiments, for example, it can be applied to Figure 12 or Figure 13 the electronic device described in the method. The display method may include: the second processor in the electronic device obtains the second push message received from the server when the electronic device is in the screen-off state, and determines that the current scenario meets the set conditions. When the second processor determines that the current scenario meets the set conditions, as an optional implementation manner, the second processor may send the second push message to the push client. The push client may parse and process the second push message, and send the processed second push message to the UI display module, and the UI display module may control the display screen to display the processed second push message. As another optional implementation manner, the second processor may 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.
[0274] Optionally, when the display method is applied to Figure 12 or Figure 13 the electronic device described in the method, the display method may be executed after the AOD module controls the display screen to display the processed first push message in the screen-off state, or may be executed after the UI display module controls the display screen to display the processed first push message.
[0275] In the above method, the specific steps executed by the devices, systems or modules in the electronic device may also refer to the relevant introductions in the foregoing embodiments, and will not be elaborated here.
[0276] Based on the above embodiments and the same technical concept, the embodiments of the present application further provide an electronic device, which is used to implement the method provided by the embodiments of the present application. AsFigure 14 As shown, 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 devices may be coupled through one or more communication buses 1403. The electronic device 1400 may also include a display screen 1404.
[0277] Among them, one or more computer programs (codes) are stored in the memory 1401, and the one or more computer programs include computer instructions; the one or more processors 1402 call the computer instructions stored in the memory 1401, so that the electronic device 1400 executes the method provided in the above-mentioned embodiments of the present application.
[0278] 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 may store an operating system (hereinafter referred to as the system), such as an embedded operating system like ANDROID, IOS, WINDOWS, or LINUX. The memory 1401 may be used to store the implementation program of the embodiments of the present application. The memory 1401 may also store a network communication program, which may be used to communicate with one or more additional devices, one or more user devices, and one or more network devices.
[0279] 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 solution of the present application.
[0280] The display screen 1404 is used to display relevant user interfaces such as application interfaces.
[0281] It should be noted that Figure 14 is merely one implementation manner of the electronic device 1400 provided by the embodiments of the present application. In practical applications, the electronic device 1400 may also include more or fewer components. Specifically, reference may be made to Figure 2 the specific structure and description shown, which are not limited here.
[0282] Based on the above embodiments and the same technical concept, the embodiments of the present application also provide 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.
[0283] Based on the above embodiments and the same inventive 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 run on a computer, the computer is caused to execute the method provided in the above embodiments.
[0284] In the method provided by the embodiment of the present application, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The 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 can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from a website, a computer, a server, or a data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by the computer or a data storage device such as a server or a data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a digital video disc (DVD)), or a semiconductor medium (such as an SSD), etc.
[0285] Obviously, those skilled in the art can make various modifications and variations 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 equivalent technologies, the present application is also intended to include these modifications and variations.
Claims
1. A display method, applied to an electronic device, characterized in that, the electronic device includes a first processor, a second processor, a screen always-on AOD module, and a display screen; wherein, the first processor is the 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; the method includes: The second processor obtains a first push message from the server received by the electronic device 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 in the screen-off state; or The second processor caches the first push message, and when it is determined 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 obtains the first push message from the server received by the electronic device in the screen-off state, the method further includes: sending a connection request to the server through the push client, and the connection request is used to request to establish a connection with the server; receiving a connection response from the server through the push client, and the connection response is 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 through the modem of the electronic device according to a heartbeat period, 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 through the second processor according to a heartbeat period, 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 step of sending a heartbeat packet to the server through the second processor according to a heartbeat period includes: sending a heartbeat packet to the communication module of the electronic device through the second processor according to a heartbeat period; forwarding the heartbeat packet 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 the 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.
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: Determining 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-on mode; wherein, the notification non-screen-on mode is a mode in which the push message is not allowed to be displayed on the screen 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 in the screen-off state, 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 from the server by the electronic device in the screen-off state; The second processor determines that the current scenario 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, 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 obtains a first push message received from the server by the electronic device 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 the screen-off state; The second processor obtaining the first push message received from the server by the electronic device in the screen-off state includes: 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 obtains a first push message received from the server by the electronic device in the screen-off state, the method further includes: The second processor determines that the electronic device is in the screen-off state.
11. The method according to any one of claims 1 to 10, characterized in that, The first push message includes a plurality of push messages, and the priority of each push message in the plurality of push messages is lower than or equal to the set priority.
12. The method according to claim 11, wherein, the number of the multiple push messages is a set value.
13. The method according to any one of claims 1 to 12, wherein, the first processor belongs to a big core processor, and the second processor belongs to a small core processor.
14. The method according to any one of claims 1 to 13, wherein, the second processor is an intelligent sensing hub or a micro control unit.
15. An electronic device, wherein, the electronic device includes a memory and one or more processors; wherein, the memory is used for storing computer program code, and the computer program code includes computer instructions; when the computer instructions are executed by the one or more processors, the electronic device is caused to execute the method according to any one of claims 1 to 14.
16. A computer-readable storage medium, wherein, the computer-readable storage medium stores a computer program, and when the computer program runs on an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 14.
Citation Information
Cited By
Display method and electronic device
EP4730100A1