CN113312016A - Method for double-screen different display in vehicle-mounted entertainment system - Google Patents

Method for double-screen different display in vehicle-mounted entertainment system Download PDF

Info

Publication number
CN113312016A
CN113312016A CN202110506362.8A CN202110506362A CN113312016A CN 113312016 A CN113312016 A CN 113312016A CN 202110506362 A CN202110506362 A CN 202110506362A CN 113312016 A CN113312016 A CN 113312016A
Authority
CN
China
Prior art keywords
screen
display
window
vehicle
entertainment system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110506362.8A
Other languages
Chinese (zh)
Inventor
岳飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Desai Xiwei Automobile Electronics Co ltd
Original Assignee
Nanjing Desai Xiwei Automobile Electronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Desai Xiwei Automobile Electronics Co ltd filed Critical Nanjing Desai Xiwei Automobile Electronics Co ltd
Priority to CN202110506362.8A priority Critical patent/CN113312016A/en
Publication of CN113312016A publication Critical patent/CN113312016A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display

Abstract

The invention relates to a method for double-screen different display in a vehicle-mounted entertainment system, wherein the vehicle-mounted entertainment system is based on an Android system, the vehicle-mounted entertainment system comprises vehicle-mounted host hardware, a main screen and an auxiliary screen, the main screen and the auxiliary screen are connected with the vehicle-mounted host hardware, and the method comprises the following steps: customizing a display manager and a surfaceflag of the vehicle-mounted entertainment system to expand the docking drive into a physical channel with double display screens, so that the information of the display equipment of the auxiliary screen is consistent with that of the main screen; performing double-display screen expansion on the window state of the window management layer so as to respectively display the window states of two different applications on the main screen and the auxiliary screen; and carrying out extension support on the dual-display-screen application stack on the application management layer so as to place the application to be placed on the secondary screen. The invention realizes a host system, supports the display of multiple screens, can flexibly configure or customize the application to be displayed on different display screens, reduces the hardware cost of the cockpit system, has no difference between the non-auxiliary screen display and the main screen display, and provides excellent experience for users.

Description

Method for double-screen different display in vehicle-mounted entertainment system
Technical Field
The invention relates to the technical field of terminal application, in particular to a method for double-screen different display in a vehicle-mounted entertainment system.
Background
At present, a vehicle-mounted cabin system has a multi-screen function and mainly has the following implementation modes: the method is realized by more hosts, and the cost is multiplied because the method is realized by multiple hardware hosts; and secondly, one host is connected with a plurality of screens, only one system main screen is provided, other screen display is realized by mainly adopting the output of video streams, the display content of the scheme has limitation, or the current main screen information is synchronously displayed, or partial application is deeply customized, and the information required to be displayed by the application is independently transmitted to other screens.
Therefore, the non-home screen user has limited choices and is difficult to expand, such as supporting user-independent control operations, which results in poor user experience.
Disclosure of Invention
The invention provides a method for double-screen different display in a vehicle-mounted entertainment system, aiming at overcoming the problem that the vehicle-mounted entertainment system only supports a single-screen display framework in the prior art.
In order to solve the technical problems, the technical scheme of the invention is as follows:
a method for double-screen different display in a vehicle-mounted entertainment system is disclosed, the vehicle-mounted entertainment system is based on an Android system, the vehicle-mounted entertainment system comprises vehicle-mounted host hardware, and a main screen and an auxiliary screen which are connected with the vehicle-mounted host hardware, and the method comprises the following steps:
customizing a display manager and a surfaceflag of the vehicle-mounted entertainment system to expand the docking drive into a physical channel with double display screens, so that the information of the display equipment of the auxiliary screen is consistent with that of the main screen;
performing double-display screen expansion on the window state of the window management layer so as to respectively display the window states of two different applications on the main screen and the auxiliary screen;
and carrying out extension support on the dual-display-screen application stack on the application management layer so as to place the application to be placed on the secondary screen.
Further, as a preferred technical solution, expanding the docking driving to a physical path of the dual display screen specifically includes:
identifying the auxiliary screen as an HDMI device and reporting the HDMI device to a SurfaceFlinger service;
and reporting a hot plug message of the auxiliary screen of the display manager by the SurfaceFlinger, and informing the display manager to connect the auxiliary screen.
Further, as a preferred technical solution, before reporting to the surface flicker service, it is necessary to create the sub-screen, and perform operations of powering on the sub-screen and initializing related screen information.
Further, as a preferred technical solution, identifying the sub-screen as the HDMI device specifically includes: the secondary screen is defined as an HDMI device.
Further, as a preferred technical solution, performing dual-display expansion on the window state of the window management layer specifically includes:
when the application component is started, acquiring an agent of a window session interface realized by a window manager service;
setting an ID of a screen to be displayed through a customized interface, and transmitting the ID to a window manager server;
and calling a SurfaceFlinger interface through the window state to create an application Surface corresponding to the display screen, and finishing the binding of the auxiliary screen application and the auxiliary screen display.
Further, as a preferred technical solution, the proxy for obtaining the window session interface implemented by the window manager service specifically includes:
each application component is associated with a window object that implements a window interface;
after the view object of the application component is established, the window object is transmitted to the window manager service through the window manager service session agent;
the window manager service internally creates a window state to associate the window state of the application component.
Further, as a preferred technical solution, the method further comprises: the multi-display window manager service needs to provide the window status of the current Focus for each display.
Further, as a preferred technical solution, the support of the extension of the dual-display application stack to the application management layer specifically includes:
and adding an activityStack for the auxiliary screen under the condition of not influencing the stacking process of the main screen.
Further, as a preferred technical solution, the display manager manages the display device, and the surfefinger is a real control service for Android system display.
Further, as a preferred technical scheme, the Android version is less than or equal to 9.0.
Compared with the prior art, the technical scheme of the invention has the beneficial effects that:
the invention realizes a host system, supports the display of multiple screens, can flexibly configure or customize the application to be displayed on different display screens, reduces the hardware cost of the cockpit system, has no difference between the non-auxiliary screen display and the main screen display, and provides excellent experience for users.
Drawings
FIG. 1 is a block diagram of the present invention.
FIG. 2 is a schematic view of a display screen loading process according to the present invention.
FIG. 3 is a flow chart illustrating an application screen display process according to the present invention.
FIG. 4 is a diagram illustrating an application management layer according to the present invention.
The drawings are for illustrative purposes only and are not to be construed as limiting the patent; for the purpose of better illustrating the embodiments, certain features of the drawings may be omitted, enlarged or reduced, and do not represent the size of an actual product; it will be understood by those skilled in the art that certain well-known structures in the drawings and descriptions thereof may be omitted; the same or similar reference numerals correspond to the same or similar parts; the terms describing positional relationships in the drawings are for illustrative purposes only and are not to be construed as limiting the patent.
Detailed Description
The following detailed description of the preferred embodiments of the present invention, taken in conjunction with the accompanying drawings, will make the advantages and features of the invention easier to understand for those skilled in the art and will therefore make the scope of the invention more clearly defined. .
The same or similar reference numerals in the drawings of the embodiments of the present invention correspond to the same or similar components; in the description of the present invention, it is to be understood that the terms "upper", "lower", "left", "right", "top", "bottom", "inner", "outer", and the like, if any, are used in the orientations and positional relationships indicated in the drawings only for the convenience of describing the present invention and simplifying the description, but not for indicating or implying that the referred device or element must have a specific orientation, be constructed in a specific orientation, and be operated, and therefore the terms describing the positional relationships in the drawings are used for illustrative purposes only and are not to be construed as limiting the present patent.
Furthermore, if the terms "first," "second," and the like are used for descriptive purposes only, they are used for mainly distinguishing different devices, elements or components (the specific types and configurations may be the same or different), and they are not used for indicating or implying relative importance or quantity among the devices, elements or components, but are not to be construed as indicating or implying relative importance.
Example 1
The embodiment discloses a method for double-screen different display in a vehicle-mounted entertainment system, wherein the vehicle-mounted entertainment system is based on an Android system, and the Android version is less than or equal to 9.0.
In this embodiment, the in-vehicle entertainment system includes in-vehicle host hardware, and a primary screen (first DisplayDevice) and a secondary screen (second DisplayDevice) connected to the in-vehicle host hardware.
As shown in fig. 1, the method includes:
s10, customizing a display manager (DisplayManager) and a surfaceflag of the vehicle-mounted entertainment system to expand the docking drive into a double-display-screen physical channel, so that the display equipment information of the auxiliary screen is consistent with the main screen.
In this step, the display manager (DisplayManager) manages the display device, i.e. manages the display screen (the main screen and the auxiliary screen), and the surfaflinger is the real control service for the Android system display.
This step is a Display screen (Display) loading process shown in fig. 2, and specifically includes:
firstly, creating a secondary screen (second DisplayDevice), and executing operations of power-on (setpowermodelnternal) of the secondary screen and initialization of related screen information;
identifying the auxiliary screen as an HDMI (Dw-Hdm-Detect-Phy) device and reporting the device to a SurfaceFlinger service;
and reporting a hot plug message of the auxiliary screen of a display manager (DisplayManager) by the SurfaceFlinger, and informing the display manager (DisplayManager) to connect the auxiliary screen, so that the display equipment information of the auxiliary screen is consistent with the main screen, thereby completing a physical path of the double display screens, namely the physical path of the main screen and the auxiliary screen.
In the present embodiment, in order to minimize the custom system, the sub-screen is directly defined as an HDMI device.
And S20, carrying out double-display screen expansion on the window state of the window management layer so as to respectively display the window states of two different applications on the main screen and the auxiliary screen.
In this embodiment, since the application is to be displayed on the screen finally, the representation form of the application in the system is a window, and the dual-screen display is different, that is, the windows of two different applications are displayed on different screens, that is, the main screen and the auxiliary screen in this embodiment, the service for managing the windows in the system is windows manager service (windows manager service), and currently, only single-display-screen window display is supported, so that dual-display expansion is required.
As shown in fig. 3, the present step specifically includes:
when the application component is started, the proxy of the window session (IWindowSession) interface realized by the window manager service (wms) is obtained.
For example: on the application (Activity) side, each application (Activity) component is associated with a window (W) object implementing a window (IWindow) interface;
the window (W) object is transferred to a Window Manager Service (WMS) through a window manager service Session ((WMS) Session) agent obtained previously after the creation of the view object of the application (Activity) component is completed;
a Window Manager Service (WMS) internally creates a window state (WindowState) to associate a window state (WindowState) of an application (Activity) component.
The application (Activity) side sets an ID (setdisplayid) of a screen to be displayed through a customized interface and transmits the ID to a Window Manager Service (WMS) end;
and calling a SurfaceFlinger interface through a window state (WindowState) to create an application Surface corresponding to the Display screen, and finishing the binding of the secondary screen application and the secondary screen Display (Display), thereby realizing the purpose of respectively displaying the window states of two different applications on the primary screen and the secondary screen.
In this step, the method further includes: when the Display screens (displays) are multiple, the Window Manager Service (WMS) of the multiple Display screens (displays) needs to provide the window status (WindowState) of the current Focus for each Display screen (Display) to ensure that the focuses of the multiple Display screens are not affected by each other.
In the present embodiment, a focus window (mcurrent focussexternal) of an extended Window Manager Service (WMS) is bound to an application window of a corresponding display screen, i.e., a sub-screen.
And S30, carrying out extension support on the double-display-screen application stack on the application management layer so as to place the application to be placed on the auxiliary screen.
As shown in fig. 4, in this step, the application management layer service (Activity manager service) is the management of the application (Activity), wherein there is an App Stack (App Stack) in which all the applications running the application (Activity) are stored.
In the embodiment, in order to enable the secondary screen application (Activity) to be displayed normally without affecting the stacking process of the primary screen, an application stack (Activity stack) is added to the secondary screen, and the application stack (Activity stack) is specially used for placing the application (Activity) to be placed on the secondary screen.
According to the method, the host system is digitally displayed, the application can be appointed to be displayed on different display screens, for example, the left screen displays the content of the application A, the right screen displays the content of the application B, namely, the main screen displays the content of the application A, and the auxiliary screen displays the content of the application B, so that the effect of double-screen different display is achieved, the application is flexibly configured or customized to be displayed on which display screen according to the requirements of customers, the hardware cost of the cabin system is reduced, meanwhile, the auxiliary screen display is basically not different from the main screen display, and very good experience is provided for users.
It should be understood that the above-described embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the claims of the present invention.

Claims (10)

1. A method for double-screen different display in a vehicle-mounted entertainment system is characterized in that the vehicle-mounted entertainment system is based on an Android system, the vehicle-mounted entertainment system comprises vehicle-mounted host computer hardware, a main screen and an auxiliary screen, the main screen and the auxiliary screen are connected with the vehicle-mounted host computer hardware, and the method comprises the following steps:
customizing a display manager and a surfaceflag of the vehicle-mounted entertainment system to expand the docking drive into a physical channel with double display screens, so that the information of the display equipment of the auxiliary screen is consistent with that of the main screen;
performing double-display screen expansion on the window state of the window management layer so as to respectively display the window states of two different applications on the main screen and the auxiliary screen;
and carrying out extension support on the dual-display-screen application stack on the application management layer so as to place the application to be placed on the secondary screen.
2. The method for dual screen separate display in a vehicle entertainment system according to claim 1, wherein expanding docking drive to dual screen physical path specifically comprises:
identifying the auxiliary screen as an HDMI device and reporting the HDMI device to a SurfaceFlinger service;
and reporting a hot plug message of the auxiliary screen of the display manager by the SurfaceFlinger, and informing the display manager to connect the auxiliary screen.
3. The method as claimed in claim 2, wherein the sub-screen is created and powered up and related screen information is initialized before the faceflunger service is reported.
4. The method for dual-screen different display in the vehicle-mounted entertainment system according to claim 2, wherein the identifying the secondary screen as the HDMI device specifically comprises: the secondary screen is defined as an HDMI device.
5. The method for dual-screen different display in the vehicle-mounted entertainment system according to claim 1, wherein the dual-screen expansion of the window state of the window management layer specifically comprises:
when the application component is started, acquiring an agent of a window session interface realized by a window manager service;
setting an ID of a screen to be displayed through a customized interface, and transmitting the ID to a window manager server;
and calling a SurfaceFlinger interface through the window state to create an application Surface corresponding to the display screen, and finishing the binding of the auxiliary screen application and the auxiliary screen display.
6. The method of claim 5, wherein the agent for obtaining the window session interface implemented by the window manager service comprises:
each application component is associated with a window object that implements a window interface;
after the view object of the application component is established, the window object is transmitted to the window manager service through the window manager service session agent;
the window manager service internally creates a window state to associate the window state of the application component.
7. The method for dual screen dispaly in an in-vehicle entertainment system of claim 1, further comprising: the multi-display window manager service needs to provide the window status of the current Focus for each display.
8. The method for dual-screen different display in the vehicle-mounted entertainment system according to claim 1, wherein the supporting of the extension of the dual-screen application stack to the application management layer specifically comprises:
and adding an activityStack for the auxiliary screen under the condition of not influencing the stacking process of the main screen.
9. The method for dual screen difference display in the in-vehicle entertainment system according to claim 1, wherein the display manager is a management of display devices, and the surfefinger is a real control service of Android system display.
10. The method for dual screen different display in an in-vehicle entertainment system according to claim 1, wherein the Android version is less than or equal to 9.0.
CN202110506362.8A 2021-05-10 2021-05-10 Method for double-screen different display in vehicle-mounted entertainment system Pending CN113312016A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110506362.8A CN113312016A (en) 2021-05-10 2021-05-10 Method for double-screen different display in vehicle-mounted entertainment system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110506362.8A CN113312016A (en) 2021-05-10 2021-05-10 Method for double-screen different display in vehicle-mounted entertainment system

Publications (1)

Publication Number Publication Date
CN113312016A true CN113312016A (en) 2021-08-27

Family

ID=77372783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110506362.8A Pending CN113312016A (en) 2021-05-10 2021-05-10 Method for double-screen different display in vehicle-mounted entertainment system

Country Status (1)

Country Link
CN (1) CN113312016A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114217763A (en) * 2022-02-22 2022-03-22 麒麟软件有限公司 Window double-screen cooperative display method compatible with Android application on Linux
CN114416231A (en) * 2021-12-21 2022-04-29 南京市德赛西威汽车电子有限公司 Virtual split screen display method and virtual split screen and screen combination switching method for vehicle-mounted entertainment system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104123110A (en) * 2013-04-26 2014-10-29 上海赤炫信息科技有限公司 Android double-screen extraordinary image display method
CN106354458A (en) * 2016-08-26 2017-01-25 青岛海信移动通信技术股份有限公司 Double-screen display method and device
CN106557295A (en) * 2016-11-26 2017-04-05 宇龙计算机通信科技(深圳)有限公司 A kind of data processing method and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104123110A (en) * 2013-04-26 2014-10-29 上海赤炫信息科技有限公司 Android double-screen extraordinary image display method
CN106354458A (en) * 2016-08-26 2017-01-25 青岛海信移动通信技术股份有限公司 Double-screen display method and device
CN106557295A (en) * 2016-11-26 2017-04-05 宇龙计算机通信科技(深圳)有限公司 A kind of data processing method and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
康金荣 等: "双屏异显在Android系统上的实现" *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114416231A (en) * 2021-12-21 2022-04-29 南京市德赛西威汽车电子有限公司 Virtual split screen display method and virtual split screen and screen combination switching method for vehicle-mounted entertainment system
CN114217763A (en) * 2022-02-22 2022-03-22 麒麟软件有限公司 Window double-screen cooperative display method compatible with Android application on Linux

Similar Documents

Publication Publication Date Title
CN113312016A (en) Method for double-screen different display in vehicle-mounted entertainment system
US7911408B2 (en) Management system of monitor
US20070255814A1 (en) System for server consolidation and mobilization
US7685336B2 (en) Keyboard-mouse-video switch with a digital visual interface
US20060230156A1 (en) Seamless windows functionality to remote desktop sessions regarding z-order
US20150205565A1 (en) Multi-screen display system and display method
EP1922606A2 (en) Display system, module and method
US20070002347A1 (en) System and method for upgrading firmware in a display
JP2006155327A (en) Remote operation system for computer
EP1692603A1 (en) A display apparatus management system and method thereof
CN104915144A (en) Method for projecting double-screen interactive user interface
CN106444040A (en) Head up display device and display method thereof
CN101211553B (en) Display apparatus and driving method of display apparatus
CN112346804A (en) Status bar display system and method for linux-android dual-system terminal
CN115857698A (en) Mixed reality interactive display device and method
JP2001337663A (en) Method, terminal unit and system for screen display
CN117435153A (en) Screen display system, display control method and electronic equipment of vehicle-mounted terminal
CN112328197B (en) Multi-screen display method, device and storage medium
CN113504870A (en) Hypervisor intelligent cockpit input method sharing system and method
JP2017016299A (en) Console system
CN100384235C (en) Computer system storing display environment
CN113873310B (en) Control method and device based on interconnected television and ETFLIX playing platform
CN113535104B (en) Multi-screen display switching method and device based on virtual machine
CN116112735A (en) Split television, display method, display system and readable storage medium
WO2023071506A1 (en) Screen display method and apparatus, and storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210827