A method and storage device for modifying display parameters to be compatible with multiple display screens
By reading and storing display parameters, the problem of changing the software firmware in the existing technology is solved, and the compatibility of display interfaces of MIPI-DSI, LVDS, RGB and other protocols with different resolution screens is achieved, improving the compatibility of display interfaces with different resolution screens, The convenience and flexibility of the equipment.
Patent Information
- Application Number
- CN202111249146.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-26
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2041-10-26
AI Technical Summary
Existing display interface protocols such as MIPI-DSI, LVDS, RGB, etc. lack AUX channel interaction, which leads to changing the software firmware that requires changing the display screens of different resolutions, which is very inconvenient.
By judging the access of external storage devices, reading and storing target format data, obtaining display parameters from the target partition when the system restarts, parsing and updating parameters in the device tree, and outputting video signals of corresponding specifications to realize display screens of different resolutions compatible.
It is compatible with displays of different resolutions without changing the software firmware, improving device flexibility and convenience.
Smart Images

Figure CN114020227B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of display screens, and in particular to a method and a storage device for modifying display parameters to be compatible with multiple display screens. Background Art
[0002] Currently in the display field, there are many display interface protocols, including DP / eDP and HDMI interfaces. As long as the cable is connected to the monitor, the EDID is obtained through the AUX channel and the monitor end. After parsing the EDID, the screen parameters related to the monitor can be obtained, and the processor outputs the signal display of the corresponding specification. It is plug-and-play and very convenient. However, for display interfaces of MIPI-DSI, LVDS, RGB and other protocols, there is no similar AUX channel to interact with the screen end, and the display screens of such protocols do not have EDID. Therefore, devices with such display interfaces cannot achieve plug-and-play display screens. Once a display screen with a different resolution is changed, the software and firmware need to be changed, which is very inconvenient. Summary of the invention
[0003] Therefore, it is necessary to provide a method for modifying display parameters to be compatible with multiple display screens, so as to solve the technical problem that once the existing display interface device changes to a display screen with a different resolution, the software firmware needs to be changed, which is very inconvenient. The specific technical solution is as follows:
[0004] A method for modifying display parameters to be compatible with multiple display screens comprises the steps of:
[0005] Determine whether an external storage device is connected. If an external storage device is connected, start a self-built preset thread service to read the content of the external storage device, determine whether target format data is retrieved, and if target format data is retrieved, store the target format data to the target partition, and restart the system;
[0006] During the system restart process, corresponding display parameters are obtained from the target partition, and signal output is displayed according to the display parameters.
[0007] Furthermore, the “during the system restart process, obtaining corresponding display parameters from the target partition, and outputting and displaying signals according to the display parameters” specifically includes the following steps:
[0008] During the uboot phase of system restart, it is determined whether predefined data is stored in the target partition. If predefined data is stored, the display parameters are parsed and the parameters defined in the device tree are changed, and a video signal of corresponding specifications is output according to the parsed display parameters.
[0009] Furthermore, the target partition is a baseparameter partition.
[0010] Furthermore, the content of the target format data includes but is not limited to: display interface type, screen timing delay, pixel clock, horizontal valid pixel points, horizontal front shoulder, horizontal synchronization width, horizontal back shoulder, vertical valid line, vertical front shoulder, vertical synchronization width, vertical back shoulder, horizontal synchronization polarity, vertical synchronization polarity, DE clock polarity, pixel clock polarity, data format for configuring MIPI-DSI display interface, data channel, and screen initialization sequence.
[0011] Furthermore, the external storage device includes but is not limited to: a USB flash drive, an SD card, and a mobile hard disk.
[0012] In order to solve the above technical problems, a storage device is also provided, and the specific technical solution is as follows:
[0013] A storage device stores an instruction set, wherein the instruction set is used to execute: any step of the above-mentioned method for modifying display parameters to be compatible with multiple display screens.
[0014] The beneficial effect of the present invention is: a method for modifying display parameters to be compatible with multiple display screens, including the steps of: determining whether an external storage device is connected, if an external storage device is connected, starting a self-built preset thread service to read the content of the external storage device, determining whether target format data is retrieved, if target format data is retrieved, storing the target format data to the target partition, and restarting the system; during the system restart process, obtaining the corresponding display parameters from the target partition, and outputting signals for display according to the display parameters. Through this method, the display interface of the device's MIPI-DSI, LVDS, RGB and other protocols can be compatible with display screens of different resolutions, and can be compatible with display screens of different resolutions without changing the software firmware upgrade. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A flowchart of a method for modifying display parameters to be compatible with multiple display screens according to a specific implementation method;
[0016] Figure 2 This is a schematic diagram of the content of the target format data described in the specific implementation method;
[0017] Figure 3 A schematic diagram showing parameter transfer during the device restart and boot process described in the specific implementation method;
[0018] Figure 4 A schematic diagram of a software flow of a device driving a new display screen according to a specific implementation method;
[0019] Figure 5 A module schematic diagram of a storage device described in a specific implementation manner.
[0020] Description of reference numerals:
[0021] 500. Storage device. DETAILED DESCRIPTION
[0022] In order to explain the technical content, structural features, achieved objectives and effects of the technical solution in detail, the following is a detailed description in conjunction with specific embodiments and accompanying drawings.
[0023] See also Figures 1 to 4 In this embodiment, a method for modifying display parameters to be compatible with multiple display screens can be applied to a storage device. The method supports all types of screens that do not have built-in EDID containing display information: LVDS, DSI, GVI, RGB, etc. The following is a detailed description:
[0024] Step S101: Is there any external storage device connected?
[0025] Step S102: Start the self-built preset thread service to read the content of the external storage device.
[0026] Step S103: Is the target format data retrieved?
[0027] Step S104: storing the target format data to the target partition and restarting the system.
[0028] Step S105: During the system restart process, corresponding display parameters are obtained from the target partition, and signal output is displayed according to the display parameters.
[0029] It should be noted that, before step S101, it is necessary to fill in the display parameter file according to a predefined data format and store it in an external storage device, and then insert the external storage device into the screen-changing device.
[0030] In step S101, when the screen-changing device recognizes that an external storage device is connected, step S102 is executed, wherein the self-built preset thread service in step S102 is a self-created thread service: lcd_parameter_service. After the external storage device is connected, the thread service will access the file in the external storage device, wherein the format content of the file is as follows: Figure 2 As shown (the attached information will be filled according to the timing of the new screen replaced by the device Figure 2 and copies the contents in the image to an external storage device), retrieves the corresponding fields to obtain the corresponding configuration information, such as parsing to hactive=1920, vactive=1080.
[0031] In step S103, it is determined whether the target format data is retrieved. If the target format data is retrieved, the target format data will be moved to the baseparameter partition stored in the system in step S104. Because the baseparameter partition is one of the partitions divided by the Android system, some important device parameters are generally stored in it. The system has collected the read and write permissions of the partition, which means that when the device is restored to factory settings, the content of the partition will not be erased. After all the above operations are successful, the lcd_parameter_service service thread sends a restart request to the system, and the device restarts.
[0032] like Figure 3 As shown, in step S105, during the uboot stage of system restart, it is determined whether predefined data is stored in the target partition. If predefined data is stored, the display parameters of the stored new display screen are extracted to overwrite the display parameters extracted from the device tree, and the new display parameters are passed to the kernel, so that the LCD driver in the uboot and kernel stages can accurately drive the display screen at the hardware layer.
[0033] like Figure 4 As shown, this is the software flow chart of the device driving the new display screen after lcd_parameter_service successfully extracts the display parameters from the USB flash drive and moves them to the baseparameter partition and restarts.
[0034] The external storage device includes but is not limited to: a USB flash drive and a mobile hard disk.
[0035] The content of the target format data includes but is not limited to: display interface type, screen timing delay, pixel clock, horizontal valid pixel points, horizontal front shoulder, horizontal synchronization width, horizontal back shoulder, vertical valid line, vertical front shoulder, vertical synchronization width, vertical back shoulder, horizontal synchronization polarity, vertical synchronization polarity, DE clock polarity, pixel clock polarity, data format for configuring MIPI-DSI display interface, data channel, and screen initialization sequence.
[0036] A method for modifying display parameters to be compatible with multiple display screens, including the steps of: determining whether an external USB flash drive is connected, if an external USB flash drive is connected, starting a self-built preset thread service to read the USB flash drive content, determining whether target format data is retrieved, if target format data is retrieved, storing the target format data to a target partition, and restarting the system; during the system restart process, obtaining corresponding display parameters from the target partition, and outputting signals for display according to the display parameters. Through this method, the display interface of the device's MIPI-DSI, LVDS, RGB and other protocols can be compatible with display screens of different resolutions, and can be compatible with display screens of different resolutions without changing the software and firmware upgrade.
[0037] See also Figure 5 In this embodiment, a specific implementation of a storage device 500 is as follows:
[0038] A storage device 500 stores an instruction set, wherein the instruction set is used to execute any step of the above-mentioned method for modifying display parameters to be compatible with multiple display screens.
[0039] It should be noted that, although the above embodiments have been described in this article, the patent protection scope of the present invention is not limited thereby. Therefore, based on the innovative concept of the present invention, changes and modifications made to the embodiments described herein, or equivalent structures or equivalent process changes made using the contents of the present invention specification and drawings, directly or indirectly applying the above technical solutions to other related technical fields, are all included in the patent protection scope of the present invention.
Claims
1. A method for modifying display parameters to be compatible with multiple display screens. It is characterized in that Includes steps: Determine whether there is an external storage device connected. If there is an external storage device connected, start the self-built preset thread service to read the content of the external storage device and retrieve the target format data; If the target format data is retrieved, the target format data is stored in the target partition, and the system is restarted; During the system restart process, the corresponding display parameters are obtained from the target partition, and the signal output is displayed according to the display parameters. The self-built preset thread service is started to read the content of the external storage device, and the target format data is retrieved, including: obtaining a file configuration table containing a preset format, copying the configuration information of the preset format to the external storage device, retrieving the corresponding field in the external storage device according to the preset format and replacing it, and obtaining the configuration information containing the content of the external storage device, which is recorded as the target format data, The corresponding display parameters are obtained from the target partition, and the signal output is displayed according to the display parameters, including: during the system restart uboot stage, determining whether predefined data is stored in the target partition, if the predefined data is stored, parsing the display parameters and changing the parameters defined in the device tree, and outputting a video signal of corresponding specifications according to the parsed display parameters, Outputting a video signal of a corresponding specification according to the parsed display parameters includes: passing the parsed display parameters to the kernel, so that the drivers in the uboot and kernel stages can accurately drive the display screen at the hardware layer.
2. The method for modifying display parameters to be compatible with multiple display screens according to claim 1, It is characterized in that The target partition is the baseparameter partition.
3. The method for modifying display parameters to be compatible with multiple display screens according to claim 1 or 2, It is characterized in that The content of the target format data includes but is not limited to: display interface type, screen timing delay, pixel clock, horizontal valid pixel points, horizontal front shoulder, horizontal synchronization width, horizontal back shoulder, vertical valid line, vertical front shoulder, vertical synchronization width, vertical back shoulder, horizontal synchronization polarity, vertical synchronization polarity, DE clock polarity, pixel clock polarity, data format for configuring MIPI-DSI display interface, data channel, and screen initialization sequence.
4. The method for modifying display parameters to be compatible with multiple display screens according to claim 3, It is characterized in that The external storage device includes but is not limited to: a USB flash drive, an SD card, and a mobile hard disk.
5. A storage device having an instruction set stored therein, It is characterized in that The instruction set is used to execute: the method for modifying display parameters to be compatible with multiple display screens as described in any one of claims 1 to 4.
