An Android-based USB multi-screen display method, device and medium
By developing USB-DRM display driver modules and management service modules at the kernel layer and overlay layer of the Android system, display devices are dynamically created and destroyed, cache space is pre-allocated, and local layer updates are supported. This solves the shortcomings of existing USB multi-screen display methods and achieves efficient multi-screen display and low CPU usage.
Patent Information
- Application Number
- CN202411084738.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2044-08-08
AI Technical Summary
Existing USB multi-screen display methods under Android systems have problems such as not supporting the dynamic creation of display layers, high CPU usage, slow image transmission speed, low display frame rate, and the need for pre-installed applications.
A USB-DRM display driver module is developed at the kernel layer of the Android system, and a USB display device management service module is developed on the Android overlay layer. By dynamically creating DRM display devices and USB display devices, USB display cache space is pre-allocated, and partial layer updates are supported, reducing the number of data copying operations and CPU load.
It enables plug-and-play multi-screen display, reduces CPU usage, improves image transmission speed and display frame rate, supports dynamic creation and destruction of display devices, and reduces user costs.
Smart Images

Figure CN118939218B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a USB multi-screen display method, device and medium based on Android. Background Technology
[0002] The Android system typically includes the Android user space layer, Android framework layer, Android overlay layer, kernel layer, and physical layer. Current methods for displaying images on USB display devices under the Android system usually involve screen recording and overlaying of upper-layer images, as detailed below:
[0003] Option 1: As Figure 1 As shown, the Android user space layer stores application screens, the Android framework layer implements screen management services, the Android overlay layer implements main screen overlay management services, the kernel layer implements regular display drivers, and the physical layer implements main screen display. The data interaction process for main screen display is as follows: the application screen undergoes screen management, main screen overlay management, and display driver processing before being displayed on the main screen. Based on this, a virtual screen is developed on the Android framework layer. After screen management, the application screen can be recorded via the virtual screen and then displayed via a physical extended screen through a USB middleware.
[0004] Option 2: Figure 2 As shown, the Android user space layer stores application screens, the Android framework layer implements display management services, the Android overlay layer implements main screen management services, the kernel layer implements regular display drivers, and the physical layer implements main screen display. The data interaction process for main screen display is as follows: the application screen undergoes display management, main screen management, and display driver processing sequentially before being displayed on the main screen. Based on this, a virtual screen is developed on the Android overlay layer. After the application screen is managed by the display layer, it can be recorded via the virtual screen and then displayed via a physical extended screen through a USB middleware.
[0005] Both of the above solutions use screen recording to achieve multi-screen display, but they have the following problems: they do not support the dynamic creation of display layers, have high CPU usage, slow image transmission speed, low display frame rate, and most solutions require pre-installed or installed applications for image data transmission. Summary of the Invention
[0006] In view of this, the purpose of this invention is to propose a USB multi-screen display method based on Android, which adopts a newly added USB-DRM display driver module and USB display device management service module, which does not require the installation of additional applications, and can solve multi-screen display, improve display frame rate, reduce CPU usage, and is plug-and-play for users.
[0007] To achieve the above-mentioned technical objectives, the technical solution adopted by this invention is as follows:
[0008] This invention provides a USB multi-screen display method based on Android, comprising the following steps:
[0009] Step 1: When the terminal detects that at least one external USB device with a physical display screen is connected, it obtains the device information corresponding to the external USB device and creates the corresponding DRM display device based on the device information.
[0010] Step 2: The DRM display device establishes a connection with the physical display screen and creates a corresponding USB display device based on the device information;
[0011] Step 3: The USB display device pre-requests USB display cache space and sends the storage space address where the layer data is stored in the USB display cache space to the DRM display device;
[0012] Step 4: When the application screen changes, the terminal writes the updated partial layer data or complete layer data into the USB display cache space of the USB display device.
[0013] Step 5: The DRM display device obtains the updated partial or complete layer data through the storage space address of the layer data and sends it to the physical display screen for display.
[0014] Furthermore, the procedure before step 1 includes:
[0015] Step 01: Develop a USB-DRM display driver module in the kernel layer of the Android system, and develop a USB display device management service module on the Android overlay layer of the Android system.
[0016] Step 02: The USB-DRM display driver module is provided with multiple USB interfaces, which are used to connect multiple external USB devices with physical displays respectively;
[0017] Step 03: The Android system terminal detects multiple USB ports of the USB-DRM display driver module to determine whether an external USB device with a physical display screen is connected; if yes, proceed to step 1; if no, continue the detection.
[0018] Furthermore, step 1 specifically includes:
[0019] Step 11: When the terminal detects that an external USB device is connected through the USB-DRM display driver module, the USB-DRM display driver module obtains the device information corresponding to the external USB device.
[0020] Step 12: The USB-DRM display driver module creates a unique corresponding DRM display device based on the device information;
[0021] Step 13: Load multiple device protocols that are compatible with the DRM display device.
[0022] Furthermore, step 2 specifically includes:
[0023] Step 21: The DRM display device attempts to establish a connection with the physical display screen through a certain device protocol and determines whether the connection is successful. If successful, proceed to step 22; otherwise, use the next device protocol to connect until all device protocols have been executed.
[0024] Step 22: Report the device information to the USB display device management service module;
[0025] Step 23: The USB display device management service module creates a unique corresponding USB display device based on the device information.
[0026] Furthermore, step 3 specifically includes:
[0027] Step 31: The USB display device obtains the corresponding resolution list according to the resolutions supported by the DRM display device;
[0028] Step 32: Select a resolution from the resolution list as the resolution mode for the USB display device;
[0029] Step 33: The USB display device pre-allocates a USB display cache space for storing complete USB communication protocol data packets;
[0030] Step 34: Set the layer position for storing layer data within the USB display cache space;
[0031] Step 35: Determine the storage address of the layer data based on the layer location where the layer data is stored, send it to the DRM display device, and map it to the corresponding DRM display cache space.
[0032] Furthermore, step 4 specifically includes:
[0033] Step 41: When the application screen changes, the terminal writes the updated partial layer data or complete layer data to the USB display device management service module.
[0034] Step 42: The USB display device management service module determines whether the updated partial layer data or complete layer data needs encoding conversion; if yes, proceed to step 43; if no, proceed to step 44.
[0035] Step 43: After encoding the updated local layer data or complete layer data through the encoding conversion module, write it into the corresponding layer position of the USB display device, and proceed to step 5;
[0036] Step 44: Directly write the updated local layer data or complete layer data into the corresponding layer position of the USB display device, and proceed to step 5.
[0037] Furthermore, step 5 is followed by:
[0038] Step 61: The terminal detects the removal status of external USB devices through multiple USB interfaces of the USB-DRM display driver module. If the external USB device is detected to be removed, the USB-DRM display driver module obtains the device information corresponding to the removed external USB device.
[0039] Step 62: The USB-DRM display driver module destroys the corresponding DRM display device and layer data according to the device information;
[0040] Step 63: The USB-DRM display driver module sends the device information and removal status of the removed external USB device to the USB display device management service module;
[0041] Step 64: The USB display device management service module destroys the corresponding USB display device and layer data according to the device information and removal status.
[0042] Furthermore, the device information includes the USB port number, serial number, and unique physical display identification number.
[0043] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the above-described Android-based USB multi-screen display method.
[0044] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described method for USB multi-screen display based on Android.
[0045] By adopting the above technical solution, the present invention has the following beneficial effects compared with the prior art:
[0046] 1. Dynamically Create DRM and USB Display Devices: A USB-DRM display driver module is developed at the Android kernel layer, and a USB display device management service module is developed on the Android overlay layer. The USB-DRM display driver module monitors external USB device connections via multiple USB ports and obtains device information for each external USB device. Based on the USB-DRM display driver module, a corresponding DRM display device is dynamically created at the kernel layer for each connected external USB device. Similarly, based on the USB display device management service module, a corresponding USB display device is dynamically created on the Android overlay layer for each connected external USB device. The Android overlay layer directly displays images, eliminating the need for screen recording or overlaying upper-layer images, thus reducing the CPU load.
[0047] 2. Pre-allocate and map USB display cache space: When an external USB device is connected, the USB display device pre-allocates a USB display cache space and directly maps the storage address of its image data to the DRM display cache space of the DRM display device. This way, when the external USB device is removed, the corresponding Android overlay's USB display device, the kernel layer's DRM display device, and the cached image data can be simultaneously destroyed, further reducing resource consumption.
[0048] 3. Reduce data copying frequency: By synchronously mapping the USB display cache space to the corresponding DRM display cache space, the number of times data is copied in memory is reduced, thereby improving image transmission speed.
[0049] 4. Supports Local Layer Updates: This invention supports updating independent layer blocks in Android overlays, allowing updates to only a local area in the cache, rather than the entire layer. This significantly reduces the time required to write layer data to the cache, further improving frame rate.
[0050] In summary, the overall system solution of this invention achieves the goals of multi-screen recognition hot-swapping, reduced data transmission, reduced CPU usage, and increased display frame rate through dynamic processing, pre-allocation of cache, cache mapping of video memory and transmission protocols, and support for independent layer updates. This solution only involves modifications to the Android overlay layer and kernel layer, does not require any pre-installed applications, reduces user costs, and is plug-and-play. Attached Figure Description
[0051] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0052] Figure 1 This is a structural block diagram of Scheme 1 in the prior art.
[0053] Figure 2 This is a structural block diagram of Scheme 2 in the prior art.
[0054] Figure 3 This is an execution flowchart of an Android-based USB multi-screen display method provided in an embodiment of the present invention.
[0055] Figure 4 This is a structural block diagram of the Android system of the present invention.
[0056] Figure 5 This is a schematic diagram of an electronic device provided in an embodiment of the present invention.
[0057] Figure 6 This is a schematic diagram of a computer-readable storage medium provided in an embodiment of the present invention. Detailed Implementation
[0058] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be particularly noted that the following embodiments are for illustrative purposes only and do not limit the scope of the invention. Similarly, the following embodiments are only some, not all, embodiments of the present invention, and all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0059] Please see Figure 3 The present invention provides a USB multi-screen display method based on Android, comprising the following steps:
[0060] Step 1: When the terminal detects at least one external USB device with a physical display screen connected, it obtains the device information corresponding to that external USB device and creates a corresponding DRM display device based on the device information. The device information is the interface descriptor ID, including the USB port number, serial number, and unique physical display screen identifier. Each external USB device uniquely corresponds to one interface descriptor ID. A unique DRM display device and USB display device can be created based on the interface descriptor ID. This unique DRM display device and USB display device allow for better management of the connection and removal of the corresponding external USB devices. When multiple external USB devices are connected simultaneously, the management of these devices is ensured to be independent and without interference.
[0061] In this embodiment, the method further includes the following step before step 1:
[0062] like Figure 4As shown, step 01 involves developing a USB-DRM display driver module at the kernel layer of the Android system and a USB display device management service module at the Android overlay layer. The USB-DRM display driver module has multiple USB interfaces, enabling the detection of external USB devices, loading of device protocols, and creation of DRM display devices. It actively reports the access and removal of external USB devices, with subsequent processes being called by the USB display device management service. The USB display device management service module functions as a management module / middleware module, implementing data interaction management, layer data management, and device management; and calling the USB-DRM display driver module and the application layer display screen. Using the newly added USB-DRM display driver module and USB display device management service module eliminates the need for additional applications for screen mirroring. It utilizes a secure standard interface to achieve cross-screen display, resolving multi-screen display issues, improving display frame rate, reducing CPU usage, and providing plug-and-play functionality for users.
[0063] Step 02: The USB-DRM display driver module is equipped with multiple USB interfaces, which are used to connect multiple external USB devices with physical displays respectively; multiple USB interfaces can connect multiple external USB devices at the same time to realize the display of multiple physical displays.
[0064] Step 03: The Android system terminal detects multiple USB ports on the USB-DRM display driver module to determine if an external USB device with a physical display screen is connected. If yes, proceed to Step 1; otherwise, continue detection. By dynamically detecting the ID of the external USB device and pre-creating and destroying corresponding ID image data blocks to the USB display device in the Android overlay layer, dynamic plugging and unplugging across multiple screens and dynamic identification can be achieved. Pre-detecting and determining whether an external USB device is connected provides a foundation for subsequent steps.
[0065] In this embodiment, step 1 specifically includes:
[0066] Step 11: When the terminal detects that an external USB device is connected through the USB-DRM display driver module, the USB-DRM display driver module obtains the device information corresponding to the external USB device.
[0067] Step 12: The USB-DRM display driver module creates a unique corresponding DRM display device based on the device information;
[0068] Step 13: Load multiple device protocols that are compatible with the DRM display device. These device protocols are used to establish a connection between the DRM display device and the physical display screen.
[0069] Step 2: The DRM display device establishes a connection with the physical display screen and creates a corresponding USB display device based on the device information;
[0070] In this embodiment, step 2 specifically includes:
[0071] Step 21: The DRM display device attempts to establish a connection with the physical display screen through a certain device protocol and determines whether the connection is successful. If successful, proceed to step 22; otherwise, use the next device protocol to connect until all device protocols have been executed. This ensures that the DRM display device and the physical display screen can be successfully connected to achieve data transmission and display.
[0072] Step 22: Report the device information to the USB display device management service module; specifically, the USB-DRM display driver module transmits the connection status of the DRM display device and the physical display screen, as well as the device information, to the USB display device management service module.
[0073] Step 23: The USB display device management service module first determines that the DRM display device and the physical display screen have been successfully connected based on the connection status, which can ensure normal data transmission and display in the future; then, the USB display device management service module creates a unique corresponding USB display device based on the device information.
[0074] A USB-DRM display driver module is developed at the Android kernel layer, and a USB display device management service module is developed on the Android overlay layer. The USB-DRM display driver module monitors the connection of external USB devices through multiple USB interfaces and obtains their device information. Based on the USB-DRM display driver module, a corresponding DRM display device is dynamically created at the kernel layer for each connected external USB device. Similarly, based on the USB display device management service module, a corresponding USB display device is dynamically created on the Android overlay layer for each connected external USB device. The Android overlay layer is used to directly display images, eliminating the need for screen recording or overlaying upper-layer images, thus reducing the CPU load.
[0075] Step 3: The USB display device pre-requests USB display cache space and sends the storage space address where the layer data is stored in the USB display cache space to the DRM display device;
[0076] In this embodiment, step 3 specifically includes:
[0077] Step 31: The USB display device obtains the corresponding resolution list according to the resolutions supported by the DRM display device;
[0078] Step 32: Select a resolution from the resolution list as the resolution mode for the USB display device; Steps 31 and 32 are to ensure that the selected resolution meets both the requirements of the DRM display device and the requirements of the USB display device, thereby ensuring smooth data transmission.
[0079] Step 33: The USB display device pre-allocates a USB display cache space for storing complete USB communication protocol data packets; the complete USB communication protocol data packets include layer data and non-layer data, both of which are stored in the USB display cache space, but the storage location is pre-defined; the image data blocks of the pre-allocated complete USB communication protocol data packets are mapped into the DRM display device of the USB-DRM display driver module; reducing the number of memory copy operations, compared with the data copying of solutions on the market, at least one copy is reduced, and the overall performance is improved by 50%;
[0080] Step 34: Set the layer location for storing layer data within the USB display cache space to facilitate the retrieval of layer data;
[0081] Step 35: Determine the storage address of the layer data based on the layer location where the layer data is stored, send it to the DRM display device, and map it to the corresponding DRM display cache space. The storage address of the layer data can be mapped to a layer in one DRM display cache space, or the storage address can be divided and mapped to layers in multiple DRM display cache spaces. This supports writing single or multiple layer data to complete partial image updates. Under normal circumstances, this greatly reduces CPU usage, ensuring the smooth operation of other applications and improving image transmission speed. By synchronously mapping the USB display cache space to the corresponding DRM display cache space, the number of data copies in memory is reduced, thereby improving image transmission speed.
[0082] When an external USB device is connected, the USB display device pre-allocates a USB display cache space and directly maps the storage address of its image data to the DRM display cache space of the DRM display device. This way, when the external USB device is removed, the corresponding Android overlay's USB display device, the kernel layer's DRM display device, and the cached image data can be simultaneously destroyed, further reducing resource consumption.
[0083] Step 4: When the application screen changes, the terminal writes the updated local or complete layer data to the USB display cache space of the USB display device. This invention supports updating independent layer blocks of Android overlays, allowing only a local area in the cache to be updated, rather than the entire layer. This can significantly reduce the time required to write layer data to the cache, further improving the frame rate.
[0084] In this embodiment, step 4 specifically includes:
[0085] Step 41: When the application screen changes, the terminal writes the updated partial or complete layer data to the USB display device management service module; specifically including:
[0086] The entire application screen includes multiple layers of data;
[0087] The layer data includes coordinates, level, or layer ID;
[0088] Update local layer data, and only write the updated local layer data to the USB display device management service module to achieve changes in the application screen;
[0089] Update the complete layer data and write the updated complete layer data to the USB display device management service module to achieve changes in the application screen.
[0090] Step 42: The USB display device management service module determines whether the updated partial layer data or complete layer data needs encoding conversion, including layer data compression and layer data transcoding; if yes, proceed to step 43; if no, proceed to step 44.
[0091] Step 43: After encoding the updated local layer data or complete layer data through the encoding conversion module, write it into the corresponding layer position of the USB display device, and proceed to step 5;
[0092] Step 44: Directly write the updated local layer data or complete layer data into the corresponding layer position of the USB display device, and proceed to step 5.
[0093] Step 5: The DRM display device obtains updated partial or complete layer data through the storage space address of the layer data and sends it to the physical display screen for display. Specifically, when updated layer data is written to the layer of the USB display device, a DRM display device update event is triggered; when the USB-DRM display driver module is triggered by the DRM display device update event, it directly sends data to the physical display screen through the data transmission module, realizing USB multi-screen display of the Android system.
[0094] In this embodiment, step 5 is followed by:
[0095] Step 61: The terminal detects the removal status of external USB devices through multiple USB interfaces of the USB-DRM display driver module. If the external USB device is detected to be removed, the USB-DRM display driver module obtains the device information corresponding to the removed external USB device.
[0096] Step 62: The USB-DRM display driver module destroys the corresponding DRM display device and layer data according to the device information;
[0097] Step 63: The USB-DRM display driver module sends the device information and removal status of the removed external USB device to the USB display device management service module;
[0098] Step 64: The USB display device management service module destroys the corresponding USB display device and layer data according to the device information and removal status.
[0099] The terminal of this invention includes dynamically detecting the access and removal of external USB devices; if an external USB device is accessed, a corresponding DRM display device is created, and a corresponding USB display device is created in the Android overlay layer. A corresponding USB display cache space is pre-allocated and mapped to the DRM display cache space. When the application screen changes, the updated partial layer data or complete layer data is directly written into the USB display cache space of the USB display device, and then the layer data is written into the DRM display cache space. Finally, it is submitted to the external USB device, and the USB-to-HDMI conversion is directly displayed and output on the physical display screen; if an external USB device is removed, the corresponding Android overlay layer's USB display device is destroyed, and the kernel layer's DRM display device is removed. The method in this invention can achieve the following: A USB-DRM display driver module is developed at the kernel layer of the Android system, and a USB display device management service module is developed on the Android overlay layer of the Android system. The Android system dynamically creates or destroys USB display devices in the Android overlay layer and DRM display devices in the kernel layer. The USB-DRM display driver module has multiple USB interfaces, supporting multiple external USB devices, and each physical display screen supports hot-swapping. This method directly uses the layer data of the Android overlay layer and pre-allocates a USB display cache space for storing complete USB communication protocol data packets, thereby reducing data transmission time, reducing CPU usage, and increasing the display frame rate. This invention only modifies the Android overlay layer and kernel layer, and does not require the installation of any applications.
[0100] like Figure 5 As shown, this embodiment of the invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the above-described Android-based USB multi-screen display method.
[0101] like Figure 6As shown, this embodiment of the invention also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the above-described method for USB multi-screen display based on Android.
[0102] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0103] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0104] The above description is only a part of the embodiments of the present invention and does not limit the scope of protection of the present invention. Any equivalent device or equivalent process transformation made based on the content of the present invention specification and drawings, or direct or indirect application in other related technical fields, are similarly included within the patent protection scope of the present invention.
Claims
1. A USB multi-screen display method based on Android, characterized in that, Includes the following steps: Step 1: When the terminal detects that at least one external USB device with a physical display screen is connected, it obtains the device information corresponding to the external USB device and creates the corresponding DRM display device based on the device information. Step 2: The DRM display device establishes a connection with the physical display screen and creates a corresponding USB display device based on the device information; Step 3: The USB display device pre-requests USB display cache space and sends the storage space address where the layer data is stored in the USB display cache space to the DRM display device; Step 4: When the application screen changes, the terminal writes the updated partial or complete layer data to the USB display cache space of the USB display device; specifically including: Step 41: When the application screen changes, the terminal writes the updated partial layer data or complete layer data to the USB display device management service module. Step 42: The USB display device management service module determines whether the updated partial layer data or complete layer data needs encoding conversion; if yes, proceed to step 43; if no, proceed to step 44. Step 43: After encoding the updated local layer data or complete layer data through the encoding conversion module, write it into the corresponding layer position of the USB display device, and proceed to step 5; Step 44: Directly write the updated local layer data or complete layer data into the corresponding layer position of the USB display device, and proceed to step 5; Step 5: The DRM display device obtains the updated partial or complete layer data through the storage space address of the layer data and sends it to the physical display screen for display.
2. The Android-based USB multi-screen display method as described in claim 1, characterized in that, Before step 1, the following also applies: Step 01: Develop a USB-DRM display driver module in the kernel layer of the Android system, and develop a USB display device management service module on the Android overlay layer of the Android system. Step 02: The USB-DRM display driver module is provided with multiple USB interfaces, which are used to connect multiple external USB devices with physical displays respectively; Step 03: The Android system terminal detects multiple USB ports of the USB-DRM display driver module to determine whether an external USB device with a physical display screen is connected; if yes, proceed to step 1; if no, continue the detection.
3. The Android-based USB multi-screen display method as described in claim 2, characterized in that, Step 1 specifically includes: Step 11: When the terminal detects that an external USB device is connected through the USB-DRM display driver module, the USB-DRM display driver module obtains the device information corresponding to the external USB device. Step 12: The USB-DRM display driver module creates a unique corresponding DRM display device based on the device information; Step 13: Load multiple device protocols that are compatible with the DRM display device.
4. The Android-based USB multi-screen display method as described in claim 3, characterized in that, Step 2 specifically includes: Step 21: The DRM display device attempts to establish a connection with the physical display screen through a certain device protocol and determines whether the connection is successful. If successful, proceed to step 22; otherwise, use the next device protocol to connect until all device protocols have been executed. Step 22: Report the device information to the USB display device management service module; Step 23: The USB display device management service module creates a unique corresponding USB display device based on the device information.
5. The Android-based USB multi-screen display method as described in claim 4, characterized in that, Step 3 specifically includes: Step 31: The USB display device obtains the corresponding resolution list according to the resolutions supported by the DRM display device; Step 32: Select a resolution from the resolution list as the resolution mode for the USB display device; Step 33: The USB display device pre-allocates a USB display cache space for storing complete USB communication protocol data packets; Step 34: Set the layer position for storing layer data within the USB display cache space; Step 35: Determine the storage address of the layer data based on the layer location where the layer data is stored, send it to the DRM display device, and map it to the corresponding DRM display cache space.
6. The Android-based USB multi-screen display method as described in claim 1, characterized in that, Step 5 is followed by: Step 61: The terminal detects the removal status of external USB devices through multiple USB interfaces of the USB-DRM display driver module. If the external USB device is detected to be removed, the USB-DRM display driver module obtains the device information corresponding to the removed external USB device. Step 62: The USB-DRM display driver module destroys the corresponding DRM display device and layer data according to the device information; Step 63: The USB-DRM display driver module sends the device information and removal status of the removed external USB device to the USB display device management service module; Step 64: The USB display device management service module destroys the corresponding USB display device and layer data according to the device information and removal status.
7. The Android-based USB multi-screen display method as described in claim 1, characterized in that, The device information includes the USB port number, serial number, and unique identifier of the physical display screen.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements an Android-based USB multi-screen display method as described in any one of claims 1 to 7.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements an Android-based USB multi-screen display method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Method for updating program list of DRM (Digital Rights Management) receiver
CN102820939A
Panoramic image display method, computer storage medium and electronic equipment
CN112988357A