Message display method and electronic equipment
By using the second processor to display external and local messages during the screen projection process, the problem of notification and reminder blocking during the screen projection process is solved, real-time information acquisition and screen projection coherence are achieved.
Patent Information
- Application Number
- CN202510397904.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-31
- Publication Date
- 2025-07-18
AI Technical Summary
During the screen projection process, notifications and reminders from tablets or other electronic devices are blocked, and users cannot obtain the information of the machine in real time, resulting in the screen projection task being forced to be suspended, affecting coherence.
When the electronic device is in the display mode as an external device, the second processor processes the external display content and displays the message to be displayed, and switches the displayed content in different modes through a multiplexer to ensure that the notification reminder is visible during the screen projection process.
It realizes real-time display of notifications and reminders during the screen projection process, reduces the interruption of frequent screen switching, and ensures the consistency of screen projection and the user's real-time information acquisition.
Smart Images

Figure CN120335747A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of electronic devices, including but not limited to a message display method and an electronic device. Background Art
[0002] Currently, when a tablet or other electronic device is used as a screen extension device through an input interface (DP-in, DisplayPort-In), the display processing controller processes external input signals to the display screen for screen mirroring display, resulting in the shielding of the tablet's own notification reminders (such as messages, incoming calls, etc.), and they will not be displayed on the current screen mirroring display interface of the tablet.
[0003] In the solutions of the related art, when a user uses a tablet as a screen mirroring extension device, they cannot obtain real-time information updates of the tablet. If they need to view the tablet's own notification reminders, they must interrupt the current screen mirroring state, resulting in the forced suspension of the current screen mirroring task, disrupting the continuity of meeting presentations, online courses, or video viewing, causing a waste of time and energy, and also unable to obtain real-time information of the local device. Summary of the Invention
[0004] To solve the problems existing in the related art, the embodiments of the present application provide a message display method and an electronic device.
[0005] In a first aspect, the present application provides a message display method, and the message display method includes:
[0006] Determine that the electronic device is in a first mode as a display screen of an external device, control the first processor of the electronic device to be in a first state, and the second processor of the electronic device to be in a second state. The second processor processes external display content obtained from the external device to be displayed on the display screen of the electronic device;
[0007] In response to the electronic device obtaining a message to be displayed, the second processor processes the message to be displayed and displays it on the display screen;
[0008] Wherein, when the electronic device is in a second mode of displaying the display content of the electronic device itself, the first processor is in a third state. The first processor in the third state can process the self-display content and the message to be displayed and display them on the display screen, and the first processor in the first state closes the ability to process the self-display content and the message to be displayed.
[0009] In some embodiments, the message display method further includes:
[0010] In response to the electronic device being in the first mode, a multiplexer of the electronic device transmits external display content processed by the second processor and the message to be displayed to the display screen;
[0011] In response to the electronic device being in the second mode, the multiplexer transmits self-display content processed by the first processor and the message to be displayed to the display screen.
[0012] In some embodiments, the message display method further includes:
[0013] In the first state, the first processor has a first power consumption, and in the third state, the first processor has a second power consumption. The first power consumption is lower than the second power consumption. The first state at least represents that the message notification module of the first processor is in a non-operating state, and / or the channel between the first processor and the multiplexer is in an inactive state. In some embodiments, the message display method further includes:
[0014] In response to the electronic device being in the second mode, the second processor is in a fourth state; the power consumption of the second processor in the fourth state is less than the power consumption in the second state. The fourth state at least represents that the channel between the second processor and the multiplexer is in an inactive state;
[0015] In response to the second processor establishing a connection with an external device, the electronic device is in the first mode, and the second processor is converted from the fourth state to the second state.
[0016] In some embodiments, the electronic device further includes a display synthesis module, which is located on the display path between the first processor and the display screen. The display synthesis module is used to synthesize the self-display content and the message to be displayed; the message display method further includes:
[0017] In response to the first processor being in the first state, the display synthesis module turns off the ability to synthesize the self-display content and the message to be displayed.
[0018] In some embodiments, the message display method further includes:
[0019] The second processor sends a screen mirroring start signal to the first processor, and the screen mirroring start signal at least includes an application trust list;
[0020] The first processor creates a message receiving service in response to the screen mirroring start signal;
[0021] The message receiving service determines the message to be displayed in the notification information of the electronic device based on the application trust list.
[0022] In some embodiments, the message receiving service determines the message to be displayed in the notification information of the electronic device based on the application trust list, including:
[0023] The message receiving service receives a push message of the electronic device based on a communication interface;
[0024] The message receiving service performs data screening on the push message based on the application trust list to obtain the message to be displayed.
[0025] In some embodiments, the message receiving service performs data screening on the push message based on the application trust list to obtain the message to be displayed, including:
[0026] Classify the push message based on the application trust list to obtain a target message corresponding to the application trust list;
[0027] Package the target message to obtain a target data packet;
[0028] Perform protocol conversion on the target data packet based on the transmission protocol of the second processor to obtain the message to be displayed.
[0029] In a second aspect, an embodiment of the present application provides an electronic device, where the electronic device includes:
[0030] A display screen;
[0031] A first processor, configured to determine that the electronic device is in a first mode of a display screen as an external device, and control the first processor of the electronic device to be in a first state;
[0032] A second processor, configured to determine that the electronic device is in a first mode of a display screen as an external device, control the second processor of the electronic device to be in a second state, and process external display content obtained from an external device to be displayed on the display screen of the electronic device;
[0033] The second processor is further configured to, in response to the electronic device obtaining a message to be displayed, process the message to be displayed to be displayed on the display screen;
[0034] Wherein, when the electronic device is in the second mode of displaying the display content of the electronic device itself, the first processor is in the third state, and the first processor in the third state is capable of processing the display of the self-display content and the message to be displayed on the display screen, and the first processor in the first state closes the ability to process the self-display content and the message to be displayed.
[0035] In some embodiments, the electronic device further includes:
[0036] A multiplexer configured to transmit the external display content processed by the second processor and the message to be displayed to the display screen in response to the electronic device being in the first mode;
[0037] The multiplexer is further configured to transmit the self-display content processed by the first processor and the message to be displayed to the display screen in response to the electronic device being in the second mode.
[0038] The above description is only an overview of the technical solution of the present application. In order to be able to understand the technical means of the present application more clearly, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features and advantages of the present application more obvious and understandable, the following specifically illustrates the specific embodiments of the present application. Description of the Drawings
[0039] Figure 1 is an optional flowchart of the message display method provided by the embodiment of the present application Figure 1 ;
[0040] Figure 2 is an optional structural schematic diagram of the electronic device provided by the embodiment of the present application;
[0041] Figure 3 is an optional flowchart of the message display method provided by the embodiment of the present application Figure 2 ;
[0042] Figure 4 is a flowchart of the method for real-time displaying message notifications under screen mirroring provided by the embodiment of the present application. Detailed Embodiments
[0043] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations of the present application. All other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present application.
[0044] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments. However, it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict. Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meaning as commonly understood by those skilled in the technical field to which the embodiments of the present application belong. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0045] In some embodiments, the DP-in mode of an electronic device may refer to a function that supports video input, which is usually used to use the electronic device as a display for screen expansion, connect other devices (such as laptops, game consoles, or mobile phones) to expand the display content, and achieve a multi-screen collaboration experience across devices. An electronic device equipped with the DP-in function can receive the video signal of an external device through its Type-C interface (or other input interfaces) and expand its own screen into a second display screen of the external device.
[0046] In the related art, when a tablet or other electronic device is used as a DP-in device (i.e., a display), the physical display channel of the screen will be completely occupied by the external input signal. The display processing controller processes the external input signal and projects it onto the display screen. The graphics processing unit (GPU) of the electronic device stops outputting signals to the local screen, resulting in the notification alerts (such as messages, incoming calls, etc.) of the tablet itself being blocked and not being displayed on the current projection display interface of the tablet. Users cannot obtain the local information in real time and may miss important notifications such as instant messaging messages, system warnings, or low battery level prompts, causing the electronic device to malfunction and affecting the projection.
[0047] Based on the problems existing in the related art, the embodiments of the present application can provide a message display method. When it is determined that the electronic device is in the first mode of being a display screen of an external device, the first processor of the electronic device is controlled to be in the first state, and the second processor of the electronic device is in the second state. The second processor processes the external display content obtained from the external device and displays it on the display screen of the electronic device. In response to the electronic device obtaining a message to be displayed, the second processor processes the message to be displayed and displays it on the display screen.
[0048] In this way, when the electronic device in the embodiment of the present application serves as the display screen of an external device, the second processor can display the external display content obtained from the external device on the display screen of the electronic device, and the message to be displayed on the electronic device can also be displayed on the display screen of the electronic device through the second processor, so that the electronic device can also display some notification reminder messages of the electronic device itself when only serving as a display, not only without missing real-time messages, but also reducing the problem of frequently switching screens to view messages and interrupting the screen mirroring process, ensuring the coherence of the screen mirroring demonstration.
[0049] In the embodiment of the present application, the first processor may be a central processing unit (CPU) of the electronic device, a graphics processing unit, a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., which can be used to provide display information and display it through the display interface of the electronic device when the electronic device is not in the first mode (i.e., the screen mirroring mode). The second processor may be an internal processing chip of the input interface of the electronic device, such as a display control chip, which may be disposed in the DP-in module of the electronic device, process the video signal received from an external device (such as a discrete graphics card, a game console, etc.) through the Display Port interface, and display it on the display interface of the electronic device.
[0050] The electronic device may be any device with a first processor, a second processor, and a display interface, such as a vehicle center console, a tablet, an industrial device, etc.
[0051] Next, the technical solution of the present application will be elaborated in detail with reference to the accompanying drawings.
[0052] Figure 1 It is an optional process schematic diagram of the message display method provided by the embodiment of the present application Figure 1 The execution subject of the message display method provided by the embodiment of the present application is an electronic device, such as Figure 1 As shown, the message display method provided by the embodiment of the present application can be implemented through step S101 and step S102:
[0053] Step S101: Determine that the electronic device is in the first mode of serving as the display screen of an external device, control the first processor of the electronic device to be in the first state, the second processor of the electronic device to be in the second state, and the second processor processes the external display content obtained from the external device to be displayed on the display screen of the electronic device.
[0054] In an embodiment of the present application, the first mode in which the electronic device functions as a display screen of an external device means that at this time, the electronic device is only used as a display for screen expansion of an external device and is not used as an electronic device that independently displays its own output content. At this time, the electronic device can control the first processor of the electronic device to be in a first state and the second processor to be in a second state.
[0055] Here, when the electronic device is only used as a display, it can be connected to an external device through a connection line, and the connection line is connected to an input interface of the electronic device, and this input interface is connected to the second processor.
[0056] Here, when the electronic device functions as a display screen of an external device, the physical display channel of the display screen of the electronic device is completely occupied by an external input signal (i.e., external display content) of the external device, and the display content of the first processor cannot be displayed on the display interface. At this time, the first processor is in the first state, and the first processor in the first state closes the ability to process its own display content and the message to be displayed, and does not output display content to the display screen.
[0057] When the electronic device functions as an extended display screen of an external device, the second processor is in the second state, and the second processor processes the external display content obtained from the external device to be displayed on the display screen of the electronic device. Here, the second processor can receive external display content from an independent graphics card, a laptop computer, or other video sources through a Display Port physical interface, and then perform processing such as mixing, scaling, and color adjustment on the external display content, and then display the external display content on the display screen of the electronic device.
[0058] Step S102, in response to the electronic device obtaining a message to be displayed, the second processor processes the message to be displayed to be displayed on the display screen; wherein, when the electronic device is in the second mode of displaying its own display content, the first processor is in the third state, and the first processor in the third state can process the own display content and the message to be displayed to be displayed on the display screen, and the first processor in the first state closes the ability to process the own display content and the message to be displayed.
[0059] In an embodiment of the present application, when the electronic device is in the first mode, if the electronic device has a message to be displayed that needs to be displayed, at this time, since the physical display channel of the screen is occupied by the external display content of the external device, therefore, the first processor cannot display the content to be displayed on the display interface. And at this time, the physical display channel of the screen is connected to the second processor, so the first processor can send the message to be displayed to the second processor, and the second processor renders and processes the message to be displayed and displays it on the display screen.
[0060] Here, the message to be displayed can be a real-time communication message on the first device or a system message of the electronic device. The message to be displayed can also be an important message that needs to be displayed after being filtered, such as a meeting reminder message.
[0061] In an embodiment of the present application, the electronic device can also have a second mode. In the second mode, the electronic device displays its own display content, that is, the electronic device is not connected to an external device, and the physical display channel of the display screen of the electronic device is occupied by its own display content, and the displayed content is the content output by the first processor. At this time, the first processor is in a third state, and the first processor can process the display of its own display content and the message to be displayed on the display screen, that is, the message to be displayed output by the first processor does not need to pass through the second processor and can be directly displayed on the display screen.
[0062] The message display method provided in the embodiment of the present application can be applied to a home scenario. When casting a screen to watch a video, the device can still display an incoming call or a message notification based on the second processor, and the user can quickly view it without pausing the content, taking into account both entertainment and communication; in an educational scenario, when a teacher casts a screen to give a lesson, the teacher can view the lesson preparation notes or student questions synchronously, maintaining the smoothness of teaching.
[0063] In an embodiment of the present application, the message to be displayed can be superimposed and displayed in a preset area of the display screen (such as the top status bar or the side floating window). This hierarchical display not only ensures the integrity of the content cast by the external device but also ensures the real-time visibility of local messages.
[0064] When the electronic device is used as the display screen of an external device in the embodiment of the present application, the second processor can display the external display content obtained from the external device on the display screen of the electronic device, and the message to be displayed of the electronic device can also be displayed on the display screen of the electronic device through the second processor, so that the electronic device can also display some notification reminder messages of the electronic device itself when only used as a display. This not only does not miss real-time messages but also reduces the problem of frequently switching screens to view messages and interrupting the screen mirroring process, ensuring the coherence of the screen mirroring demonstration.
[0065] In some embodiments, there is a multiplexer between the first processor and the second processor and the display screen, which is used to transmit the content sent by the first processor or the second processor to the display screen for display. Figure 2 is an optional structural schematic diagram of the electronic device provided in the embodiment of the present application. As Figure 2 shown, the electronic device 20 includes a first processor 201, a second processor 202, a multiplexer 203, and a display screen 204. The electronic device 20 is connected to the external device 10 through an input module to obtain the external display content of the external device 10.
[0066] The message display method provided by the embodiments of the present application may further include steps S1 to S2:
[0067] Step S1, in response to the electronic device being in the first mode, a multiplexer of the electronic device transmits the external display content processed by the second processor and the message to be displayed to the display screen.
[0068] In the embodiments of the present application, based on Figure 2 , when the electronic device is in the first mode, the electronic device 20 only serves as a display. The second processor 202 obtains external display content from an external device and transmits it to the multiplexer 203 through a Mobile Industry Processor Interface (MIPI). The multiplexer 203 displays the external display content on the display screen 204 based on MIPI.
[0069] Here, if the electronic device has a message to be displayed, the first processor 201 can send the message to be displayed to the second processor 202 through an Inter-Integrated Circuit (I2C) bus or a Serial Peripheral Interface (SPI). The second processor 202 transmits it to the multiplexer 203 through MIPI, and the multiplexer 203 displays the external display content on the display screen 204 based on MIPI.
[0070] In some embodiments, after receiving the external display content and the message to be displayed, the second processor may render the external display content and the message to be displayed and then display them on the display screen.
[0071] Here, when the electronic device is in the first mode, the flow direction of the display data is as Figure 2 shown by the dashed arrow in
[0072] Step S2, in response to the electronic device being in the second mode, the multiplexer transmits the self-display content processed by the first processor and the message to be displayed to the display screen.
[0073] In the embodiments of the present application, if the electronic device is in the second mode, the first processor 201 transmits the self-display content processed by the first processor and the message to be displayed to the multiplexer 203 through MIPI. The multiplexer 203 displays the self-display content and the message to be displayed on the display screen 204 based on MIPI.
[0074] At this time, the flow direction of the display data is as Figure 2 shown by the solid arrow in
[0075] In the embodiments of the present application, a multiplexer is used to select different display contents to be displayed on the display screen in different modes of the electronic device, which can realize the multiplexing of display resources, without the need to separately configure physical channels for each mode, optimize the wiring space in the electronic device, reduce the number of components, and lower the hardware cost of the electronic device.
[0076] In some embodiments, the electronic device further includes a message notification module for receiving, processing, and distributing various messages or notifications. The message processing module can call an interface to receive messages from the applications or systems of the electronic device in real time and can screen the messages to obtain messages to be displayed. The message display method provided by the embodiments of the present application may further include step S3:
[0077] Step S3: In the first state, the first processor has a first power consumption, and in the third state, the first processor has a second power consumption, and the first power consumption is lower than the second power consumption. The first state at least indicates that the message notification module of the first processor is in a non-operating state, and / or the channel between the first processor and the multiplexer is in an inactive state.
[0078] In the embodiments of the present application, the first processor closes its ability to process its own display content and messages to be displayed in the first state. At this time, the message notification module of the first processor is in a non-operating state, that is, the message notification module no longer receives messages from applications and systems in real time, or the channel between the first processor and the multiplexer is in an inactive state, that is, the message notification module receives messages from applications and systems in real time but no longer sends them to the multiplexer. At this time, the first processor has a first power consumption.
[0079] The first processor can process its own display content and messages to be displayed in the third state, that is, it can receive messages in real time and transmit them to the multiplexer. At this time, the first processor has a third power consumption, and the first power consumption is lower than the second power consumption, that is, the power consumption of the first processor in the first state is lower than the power consumption of the first processor in the third state.
[0080] In the embodiments of the present application, the power consumption of the first processor in the first state is lower than that in the third state, so that when the electronic device is used as a display, it saves electric energy, can extend the battery life, reduces the heat generation of the first processor, and reduces the heat dissipation requirement of the electronic device.
[0081] In some embodiments, the message display method provided by the embodiments of the present application may further include step S21 and step S22:
[0082] Step S21: In response to the electronic device being in the second mode, the second processor is in the fourth state; the power consumption of the second processor in the fourth state is less than that in the second state, and the fourth state at least indicates that the channel between the second processor and the multiplexer is in an inactive state.
[0083] In an embodiment of the present application, when the electronic device is in the second mode, that is, when the electronic device is not used as a display, the second processor is in the fourth state, that is, the channel between the second processor and the multiplexer is in an inactive state, that is, the second processor is in a low-power state at this time.
[0084] When the second processor is in the second state, the channel between the second processor and the multiplexer is in an active state, and the power consumption of the second processor in the fourth state is less than that in the second state.
[0085] Step S22: In response to the second processor establishing a connection with the external device, the electronic device is in the first mode, and the second processor is converted from the fourth state to the second state.
[0086] In an embodiment of the present application, after the electronic device establishes a connection with the external device based on the second processor, the second processor may send information indicating that the external device has been connected to the first processor to instruct the first processor to be converted from the third state to the first state, and control the electronic device to be in the first mode. At this time, the fourth state of the second processor is converted to the second state.
[0087] In an embodiment of the present application, when the electronic device is in the normal use mode, the second processor for screen mirroring management is in a low-power state, which can achieve energy consumption control of the electronic device and reduce the heat generation of the second processor.
[0088] In some embodiments, the electronic device further includes a display synthesis module. The display synthesis module may be located on the display path between the first processor and the display screen. The display synthesis module is used to synthesize its own display content and the message to be displayed, that is, to perform synthesis processing on its own display content and the message to be displayed from different or the same processing paths, and generate a complete frame image finally output to the display screen.
[0089] Here, the display synthesis module can directly perform real-time synthesis and display on its own display content and the message to be displayed output by the multiple processing channels; it can also splice or perform other processing on its own display content and the message to be displayed to achieve synthesis display.
[0090] Therefore, the message display method provided by the embodiment of the present application may further include step S31:
[0091] Step S31. In response to the first processor being in the first state, the display composition module turns off its ability to compose its own display content and the message to be displayed.
[0092] In an embodiment of the present application, when the first processor is in the first state, that is, when the electronic device serves as the display screen of an external device, the display composition module can turn off its ability to compose its own display content and the message to be displayed, that is, the display composition module cannot compose and display its own display content and the message to be displayed. At this time, the electronic device can only send the message to be displayed to the second processor, and the second processor processes the message to be displayed and displays it on the display screen.
[0093] In some embodiments, the display processing module can be a hardware composer (HWC, Hardware Composer) in the HAL layer to perform the composition operation.
[0094] Figure 3 It is an optional process schematic diagram of the message display method provided by the embodiment of the present application Figure 2 , such as Figure 3 As shown, the message display method provided by the embodiment of the present application can be implemented through step S301 and step S303:
[0095] Step S301. The second processor sends a screen mirroring start signal to the first processor, and the screen mirroring start signal includes at least an application trust list.
[0096] In some embodiments, when the electronic device is connected to an external device through the second processor, the second processor can send a screen mirroring start signal to the first processor to inform the first processor that the electronic device starts screen mirroring, so that the first processor enters the first state.
[0097] In some embodiments, the screen mirroring start signal can include an application trust list, that is, an application on the electronic device set by the user that can display messages in the screen mirroring mode (i.e., the first mode), that is, the white list of the screen mirroring mode. After the second processor is connected to the external device, it can send the screen mirroring start signal including the application trust list to the first processor, and the first processor can send the messages of the applications in the application trust list to the second processor so that the second processor can display the messages.
[0098] In some embodiments, the application trust list can be set by the user, so that when the electronic device is in the screen mirroring state, it can also receive the messages required by the user to avoid message omission.
[0099] Step S302. The first processor creates a message receiving service in response to the screen mirroring start signal.
[0100] In some embodiments, after receiving the screen mirroring start signal, the first processor may create a message receiving service (i.e., services) at the application framework layer (i.e., the Framework layer) to listen for messages and notifications of applications and the system in the electronic device.
[0101] Step S303: Based on the application trust list, the message receiving service determines the message to be displayed from the notification information of the electronic device.
[0102] In the embodiments of the present application, the message receiving service can receive all messages and notifications of the electronic device, classify the received messages and notifications based on the application trust list, and may determine the messages of the applications in the application trust list in the notification information as the messages to be displayed.
[0103] In some embodiments, step S303 can be implemented through step S3031 and step S3032:
[0104] Step S3031: The message receiving service receives the push messages of the electronic device based on the communication interface.
[0105] In some embodiments, the message receiving service can obtain the messages and notifications of the electronic device through the Android standard interface. For example, it can receive notifications such as text messages, application installations, and battery status changes through system broadcasts.
[0106] Step S3032: The message receiving service performs data screening on the push messages based on the application trust list to obtain the message to be displayed.
[0107] In the embodiments of the present application, it may be based on the application trust list to determine the trusted applications, and determine the messages corresponding to the trusted applications in the push messages as the messages to be displayed.
[0108] In the embodiments of the present application, by setting the application trust list, the messages in the electronic device are screened, so that the electronic device can display the notification information required by the user in the screen mirroring state without displaying all the notification information, realizing privacy protection; at the same time, necessary information (such as work email reminders) is retained, and irrelevant or sensitive content (such as shopping advertisements) is filtered, realizing personalized information management of the electronic device during screen mirroring.
[0109] In some embodiments, step S3032 can be implemented through steps S41 to S43:
[0110] Step S41: Classify the push messages based on the application trust list to obtain the target messages corresponding to the application trust list.
[0111] In an embodiment of the present application, the message receiving service may classify push messages of an electronic device based on an application trust list to obtain target messages corresponding to applications in the application trust list.
[0112] Step S42: Package the target message to obtain a target data packet.
[0113] Step S43: Based on the transmission protocol of the second processor, perform protocol conversion on the target data packet to obtain the message to be displayed.
[0114] In an embodiment of the present application, the transmission protocol of the second processor may be a synchronous communication bus protocol. Based on this transmission protocol, protocol conversion is performed on the target data packet. For example, the protocol conversion may be to perform data format conversion into a data format that can be transmitted through the transmission protocol and then sent to the display screen for display.
[0115] Based on the transmission protocol of the second processor, the embodiment of the present application performs protocol conversion on the target data packet, which can ensure the compatibility of message transmission and use between different processors in the electronic device to achieve efficient display.
[0116] In some embodiments, before sending the message to be displayed to the display screen, the second processor may parse the message to be displayed to obtain the content to be displayed and the type of the content to be displayed. The type includes at least a format type and a timeliness type. Among them, the format type includes whether the message is of text, picture, or voice type, and different format types correspond to different styles of pop-up windows; the timeliness type includes real-time messages and non-real-time messages.
[0117] The second processor may create a pop-up window to be displayed based on the content to be displayed and the type of the content to be displayed. For example, for a text message, a pop-up window corresponding to the text message may be created, and then it is determined whether the text message is a real-time message. If it is a real-time message, it may be immediately displayed on the display screen after the pop-up window is created. If it is not a real-time message, the message may be accumulated and the folded non-real-time message may be displayed every five minutes.
[0118] Next, an application of a message display method in an actual scenario is provided.
[0119] In the related art, in the screen mirroring mode, the electronic device has an on-screen display (OSD) pop-up window, which only supports the user to trigger the adjustment of volume and brightness by pressing a button, and the messages of the electronic device are blocked and cannot be displayed on the screen mirroring interface.
[0120] To solve the problems existing in the related art, an embodiment of the present application provides a method for real-time displaying message notifications under tablet screen mirroring. A services is established in the electronic device to listen for application and system messages and notifications, and after receiving them, send them to the driver, and the driver sends them to the screen mirroring module (i.e., the second processor) for pop-up display.
[0121] In the embodiment of the present application, Figure 4 is a schematic flowchart of the method for real-time displaying message notifications under screen mirroring provided by the embodiment of the present application. As Figure 4 shown, the method for real-time displaying message notifications under screen mirroring can be implemented through steps S401 to S407:
[0122] Step S401, create a message listening system service.
[0123] In the embodiment of the present application, the Framework layer can create a message listening system service (Service) to listen for application and system messages and notifications. Here, the Framework layer can obtain messages and notifications through the Android standard interface.
[0124] Step S402, screen the received messages to obtain screened messages.
[0125] Here, the received messages, etc. can be identified and classified to obtain screened messages that can be displayed in the screen mirroring mode. The screened messages can be packaged into small cells and sent to the packet converter.
[0126] Here, steps S401 and S402 can be implemented by the message dispatcher.
[0127] Step S403, process and convert the screened messages to obtain messages to be displayed.
[0128] In some embodiments, step S404 can be implemented by the packet converter of the electronic device. The packet converter can process and convert the received message packet and send it to the screen mirroring module. For example, the process and conversion can be to convert the message packet into a format for data transmission with the screen mirroring module, such as SPI.
[0129] Step S404, send the message to be displayed to the screen mirroring module driver through the screen mirroring module HAL interface.
[0130] The Hardware Abstraction Layer (HAL) is used to provide a unified interface. Through the screen mirroring module HAL interface of the HAL layer, the message to be displayed can be sent to the screen mirroring module driver.
[0131] Step S405, the screen mirroring module driver sends the message to be displayed to the screen mirroring module chip.
[0132] Step S406: The screen projection module chip sends the message to be displayed to the display screen.
[0133] In some embodiments, steps S404 to S406 are implemented by the screen projection module (i.e., the second processor) of the electronic device.
[0134] The screen projection module chip can parse and process the received message packet and send it to the display screen for pop-up display.
[0135] Step S407: The display screen displays the message to be displayed.
[0136] In some embodiments, step S407 is implemented by the display screen of the electronic device.
[0137] This application provides an electronic device. Please continue to refer to Figure 2 , the electronic device includes a display screen, a first processor, and a second processor. The first processor is configured to determine that the electronic device is in a first mode of the display screen as an external device, and control the first processor of the electronic device to be in a first state; the second processor is configured to determine that the electronic device is in a first mode of the display screen as an external device, control the second processor of the electronic device to be in a second state, and process the external display content obtained from an external device to be displayed on the display screen of the electronic device; the second processor is further configured to, in response to the electronic device obtaining a message to be displayed, process the message to be displayed for display on the display screen; wherein, when the electronic device is in a second mode of displaying its own display content, the first processor is in a third state, and the first processor in the third state can process the own display content and the message to be displayed for display on the display screen, and the first processor in the first state turns off the ability to process the own display content and the message to be displayed.
[0138] Please continue to refer to Figure 2 , the electronic device further includes a multiplexer, and the multiplexer is configured to, in response to the electronic device being in the first mode, transmit the display content processed by the second processor and the message to be displayed to the display screen; in response to the electronic device being in the second mode, transmit the display content processed by the first processor and the message to be displayed to the display screen.
[0139] In some embodiments, the first processor has a first power consumption in the first state, the first processor has a second power consumption in the third state, the first power consumption is lower than the second power consumption, and the first state at least characterizes that the message notification module of the first processor is in a non-operating state, and / or the channel between the first processor and the multiplexer is in an inactive state.
[0140] In some embodiments, in response to the electronic device being in the second mode, the second processor is in the fourth state; the power consumption of the second processor in the fourth state is less than that in the second state, and the fourth state at least characterizes that the channel between the second processor and the multiplexer is in an inactive state; in response to the second processor establishing a connection with the external device, the electronic device is in the first mode, and the second processor is converted from the fourth state to the second state.
[0141] In some embodiments, the electronic device further includes a display synthesis module, which is located on the display path between the first processor and the display screen, and the display synthesis module is used to synthesize its own display content and the message to be displayed; the display synthesis module is configured to turn off the ability to synthesize its own display content and the message to be displayed in response to the first processor being in the first state.
[0142] In some embodiments, the second processor is further configured to send a screen mirroring start signal to the first processor, and the screen mirroring start signal at least includes an application trust list; the first processor is further configured to create a message receiving service in response to the screen mirroring start signal; the message receiving service is configured to determine the message to be displayed in the notification information of the electronic device based on the application trust list.
[0143] In some embodiments, the message receiving service is further configured to receive the push message of the electronic device based on the communication interface; the message receiving service filters the data of the push message based on the application trust list to obtain the message to be displayed.
[0144] In some embodiments, the message receiving service is further configured to classify the push message based on the application trust list to obtain the target message corresponding to the application trust list; pack the target message to obtain a target data packet; perform protocol conversion on the target data packet based on the transmission protocol of the second processor to obtain the message to be displayed.
[0145] The description of the electronic device in the embodiments of the present application is similar to the description of the foregoing message display method, and has similar beneficial effects to the message display method, so it will not be repeated here. For the technical details not disclosed in the embodiments, please refer to the description of the message display method of the present application for understanding.
[0146] The above are only the embodiments of the present application, and are not intended to limit the protection scope of the present application. Any modifications, equivalent replacements, and improvements made within the spirit and scope of the present application are all included in the protection scope of the present application.
[0147] It should be understood that the "one embodiment" or "an embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, the "in one embodiment" or "in an embodiment" that appears throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics may be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the magnitudes of the sequence numbers of the above processes do not mean the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The sequence numbers of the embodiments of the present application are only for description and do not represent the superiority or inferiority of the embodiments.
[0148] It should be noted that in this text, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such a process, method or device. Without more limitations, an element defined by the statement "including a..." does not exclude the existence of another identical element in the process, method, article or device including the element. In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed.
[0149] As mentioned above, it is only the implementation mode of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of changes or substitutions, which should all be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A message display method, the message display method comprising: Determine that the electronic device is in a first mode of a display screen as an external device, control a first processor of the electronic device to be in a first state, and a second processor of the electronic device to be in a second state, where the second processor processes external display content obtained from an external device for display on the display screen of the electronic device; In response to the electronic device obtaining a message to be displayed, the second processor processes the message to be displayed for display on the display screen; Wherein, when the electronic device is in a second mode of displaying its own display content, the first processor is in a third state, and the first processor in the third state can process the own display content and the message to be displayed for display on the display screen, and the first processor in the first state turns off the ability to process the own display content and the message to be displayed.
2. The message display method according to claim 1, the message display method further comprising: In response to the electronic device being in the first mode, a multiplexer of the electronic device transmits the external display content processed by the second processor and the message to be displayed to the display screen; In response to the electronic device being in the second mode, the multiplexer transmits the own display content processed by the first processor and the message to be displayed to the display screen.
3. The message display method according to claim 2, the message display method further comprising: The first processor has a first power consumption in the first state, and the first processor has a second power consumption in the third state, and the first power consumption is lower than the second power consumption. The first state at least represents that a message notification module of the first processor is in a non-operating state, and / or a channel between the first processor and the multiplexer is in an inactive state.
4. The message display method according to claim 2, the message display method further comprising: In response to the electronic device being in the second mode, the second processor is in a fourth state; The power consumption of the second processor in the fourth state is less than the power consumption in the second state, and the fourth state at least represents that a channel between the second processor and the multiplexer is in an inactive state; In response to the second processor establishing a connection with the external device, the electronic device is in the first mode, and the second processor is converted from the fourth state to the second state.
5. The message display method according to any one of claims 1 to 4, the electronic device further comprising a display synthesis module, the display synthesis module being located on a display path between the first processor and the display screen, and the display synthesis module being configured to synthesize the own display content and the message to be displayed; the message display method further comprising: In response to the first processor being in the first state, the display synthesis module turns off the ability to synthesize the own display content and the message to be displayed.
6. The message display method according to any one of claims 1 to 4, the message display method further comprising: The second processor sends a screen mirroring start signal to the first processor, and the screen mirroring start signal includes at least an application trust list; The first processor creates a message receiving service in response to the screen mirroring start signal; Based on the application trust list, the message receiving service determines the message to be displayed from the notification information of the electronic device.
7. The message display method according to claim 6, wherein the message receiving service determines the message to be displayed from the notification information of the electronic device based on the application trust list, including: The message receiving service receives the push message of the electronic device based on the communication interface; Based on the application trust list, the message receiving service performs data screening on the push message to obtain the message to be displayed.
8. The message display method according to claim 7, wherein the message receiving service performs data screening on the push message based on the application trust list to obtain the message to be displayed, including: Classify the push message based on the application trust list to obtain a target message corresponding to the application trust list; Package the target message to obtain a target data packet; Based on the transmission protocol of the second processor, perform protocol conversion on the target data packet to obtain the message to be displayed.
9. An electronic device, the electronic device includes: A display screen; A first processor configured to determine that the electronic device is in a first mode of a display screen as an external device, and control the first processor of the electronic device to be in a first state; A second processor configured to determine that the electronic device is in a first mode of a display screen as an external device, control the second processor of the electronic device to be in a second state, and process external display content obtained from an external device to be displayed on the display screen of the electronic device; The second processor is further configured to process the message to be displayed to be displayed on the display screen in response to the electronic device obtaining the message to be displayed; Wherein, when the electronic device is in a second mode of displaying its own display content, the first processor is in a third state, and the first processor in the third state can process the own display content and the message to be displayed to be displayed on the display screen, and the first processor in the first state closes the ability to process the own display content and the message to be displayed.
10. The electronic device according to claim 9, the electronic device further includes: A multiplexer configured to transmit the external display content processed by the second processor and the message to be displayed to the display screen in response to the electronic device being in the first mode; The multiplexer is further configured to transmit the own display content processed by the first processor and the message to be displayed to the display screen in response to the electronic device being in the second mode.