Parameter configuration method and apparatus for display device

CN122903055APending Publication Date: 2026-10-13GUANGXI LIUGONG METATHINGS TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610895510.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-22
Publication Date
2026-10-13

AI Technical Summary

Technical Problem

然而,这种方式需要为每种显示设备组合维护独立的固件分支,且固件在烧录之后无法灵活更改,导致开发和维护的成本高;此外,配置参数通常由用户在应用层设置,而屏幕初始化发生在系统启动最早期的引导加载程序阶段,产生“先调用、后配置”的时序矛盾,导致引导程序需要屏幕参数时用户尚未完成配置,而用户完成配置后屏幕初始化已结束

Benefits of technology

实施本发明能够根据接收到的显示配置指令,基于预设数据结构,将显示设备对应的设备参数集合写入预设物理地址对应的第一存储区域,并在进入初始化阶段时,从该第一存储区域中读取设备参数集合,以根据设备参数集合确定相应的显示配置参数集合,然后根据显示配置参数集合,修改设备树文件,再加载修改后的目标设备树文件,以驱动显示设备执行初始化操作,得到与显示配置参数集合相对应的显示界面,这样能够实现在对显示设备进行配置后才完成显示设备初始化,以及能够实现了固件与屏幕硬件的解耦,以减少因显示设备差异导致的固件版本数量,且通过显示配置指令触发指令参数解析及动态配置的流程,能够在显示设备显示错误或无法显示的情况下仍然能够完成对显示设备进行配置,提高显示设备的参数配置便捷性及灵活性,这样能够有利于降低显示设备的开发及维护成本;以及,通过非易失性存储介质的特定存储区域存储设备配置参数,能够提高参数存储的可靠性,从而有利于显示配置参数的确定准确性,以有利于提高显示设备的参数配置可靠性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122903055A_ABST
    Figure CN122903055A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of engineering machinery, and discloses a parameter configuration method and device of a display device, which comprises the following steps: according to a received display configuration instruction, based on a preset data structure, a device parameter set corresponding to the display device is written into a first storage area corresponding to a preset physical address; when entering an initialization stage, the device parameter set is read from the first storage area corresponding to the preset physical address; according to the device parameter set, a display configuration parameter set matched with the device parameter is determined; according to the display configuration parameter set, a device tree file is modified to obtain a target device tree file; the target device tree file is loaded to drive the display device to perform an initialization operation, and a display interface corresponding to the display configuration parameter set is obtained. It can be seen that the application can complete the initialization of the display device after the display device is configured, and the parameter configuration convenience and flexibility of the display device are improved, so that the development and maintenance cost of the display device is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of engineering machinery technology, and in particular to a parameter configuration method and apparatus for a display device. Background Technology

[0002] With the rapid development of global construction machinery towards intelligence and green technology, the market demand for construction machinery displays, as an important component of intelligent construction machinery, is constantly increasing. However, construction machinery is diverse, covering product types such as loaders, excavators, forklifts, drilling rigs, and sugarcane harvesters. Different construction machinery products, and even different batches of the same product, may use liquid crystal displays (LCDs) and touch panels (TPs) from different suppliers. Therefore, in practical applications, there are significant differences in the hardware parameters of display devices for construction machinery.

[0003] In existing technologies, firmware hard-coding is typically used to adapt engineering machinery products to different display devices. This means that during the software development phase, a separate firmware version is compiled for each display device. However, this approach requires maintaining independent firmware branches for each display device, and the firmware cannot be flexibly modified after being burned, resulting in high development and maintenance costs. Furthermore, configuration parameters are usually set by the user at the application layer, while screen initialization occurs in the earliest bootloader stage of the system startup, creating a "call first, configure later" timing contradiction. This means that when the bootloader needs screen parameters, the user has not yet completed the configuration, and when the user completes the configuration, screen initialization has already ended.

[0004] Therefore, it is particularly important to propose a technical solution that enables the display device to be initialized only after it has been configured, while improving the convenience and flexibility of parameter configuration, thereby helping to reduce the development and maintenance costs of the display device. Summary of the Invention

[0005] This invention provides a parameter configuration method and apparatus for a display device, which enables the display device to be initialized only after it has been configured. This improves the convenience and flexibility of parameter configuration, thereby helping to reduce the development and maintenance costs of the display device.

[0006] To address the aforementioned technical problems, the first aspect of this invention discloses a parameter configuration method for a display device, the method being applied to engineering machinery equipped with a display device, the display device including a display screen and / or a touch screen; wherein, the method includes: According to the received display configuration instruction, based on a preset data structure, the set of device parameters corresponding to the display device is written into the first storage area corresponding to the preset physical address; wherein, the set of device parameters includes multiple device parameters, and all the device parameters include one or more of device identification parameters, display orientation parameters, and backlight parameters; the first storage area corresponding to the preset physical address is a storage area in a non-volatile storage medium that matches the display device; When entering the initialization phase corresponding to the display device, the device parameter set is read from the first storage area corresponding to the preset physical address; Based on the set of device parameters, determine a set of display configuration parameters that match the device parameters; Based on the set of display configuration parameters, modify the device tree file to obtain the target device tree file; The target device tree file is loaded to drive the display device to perform initialization operations and obtain a display interface corresponding to the set of display configuration parameters.

[0007] As an optional implementation, in the first aspect of the present invention, before writing the set of device parameters corresponding to the display device into the first storage area corresponding to the preset physical address based on the received display configuration instruction and a preset data structure, the method further includes: Based on the determined command receiving method, the display configuration command for the display device input by the user is received; The command receiving method includes one or more of the following: serial port debugging method, network transmission method, and local command line configuration method.

[0008] As an optional implementation, in the first aspect of the present invention, the step of writing the set of device parameters corresponding to the display device into a first storage area corresponding to a preset physical address based on a preset data structure according to the received display configuration instruction includes: The display configuration instructions are parsed to obtain the device parameter set of the display device; Based on a preset data structure, a parameter packaging operation is performed on the device parameter set to obtain a device parameter data package; The device parameter data packet is written to the first storage area corresponding to the preset physical address.

[0009] As an optional implementation, in the first aspect of the present invention, the step of performing a parameter packaging operation on the device parameter set based on a preset data structure to obtain a device parameter data package includes: For each device parameter, the parameter identifier, preset assignment symbol, parameter value, and preset end symbol of the device parameter are combined to obtain the parameter field corresponding to the device parameter; Based on a pre-defined parameter arrangement order, the parameter fields corresponding to all the device parameters and the preset data packet end identifier are combined to obtain a device parameter data packet.

[0010] As an optional implementation, in the first aspect of the present invention, determining a set of display configuration parameters matching the device parameters based on the device parameter set includes: Based on the device identifier parameter in the device parameter set, a screen parameter set corresponding to the device identifier parameter is retrieved from the second storage area; wherein, the screen parameter set includes one or more combinations of resolution parameters, timing parameters, and interface parameters; and / or, Based on the display orientation parameters in the device parameter set, determine the orientation adjustment parameters and / or touch driving parameters corresponding to the display device; wherein, the orientation adjustment parameters include rotation angle parameters, and the touch driving parameters include touch size parameters and / or coordinate mapping parameters; and / or, Based on the backlight parameters in the device parameter set, the backlight control parameters corresponding to the display device are determined; wherein, the backlight control parameters include backlight brightness control parameters; The display configuration parameter set includes one or more of the screen parameter set, the orientation adjustment parameters, and the backlight control parameters.

[0011] As an optional implementation, in the first aspect of the present invention, the step of modifying the device tree file according to the display configuration parameter set to obtain the target device tree file includes: Locate the display controller node in the device tree file and write the screen parameter set into the display controller node; and / or, Locate the display attribute node in the device tree file and write the rotation angle parameter to the display controller node; and / or, Locate the backlight control node in the device tree file and write the backlight control parameters into the backlight control node; and / or, Locate the touch controller node in the device tree file and write the touch driver parameters into the touch controller node; The target device tree file includes at least one node written to the display configuration parameter set, and all the nodes include at least one of the display controller node, the backlight control node, and the touch controller node.

[0012] As an optional implementation, in the first aspect of the present invention, before loading the target device tree file to drive the display device to perform initialization operations and obtain a display interface corresponding to the display configuration parameter set, the method further includes: Transfer the target device tree file to the kernel; The step of loading the target device tree file to drive the display device to perform initialization operations and obtain a display interface corresponding to the display configuration parameter set includes: Load the target device tree file to start the kernel; After the kernel starts, the device driver corresponding to the display device is loaded according to the target device tree file; wherein, the device driver includes a display driver and / or a touch driver; Based on the device driver, the display device is driven to perform initialization operations to obtain a display interface corresponding to the set of display configuration parameters.

[0013] A second aspect of the present invention discloses a parameter configuration device for a display device, the device being applied in engineering machinery, the engineering machinery being equipped with a display device, the display device including a display screen and / or a touch screen; wherein, the device includes: The data writing module is used to write the set of device parameters corresponding to the display device into a first storage area corresponding to a preset physical address based on a preset data structure, according to the received display configuration instruction; wherein, the set of device parameters includes multiple device parameters, and all the device parameters include one or more of device identification parameters, display orientation parameters, and backlight parameters; the first storage area corresponding to the preset physical address is a storage area in a non-volatile storage medium that matches the display device; The data reading module is used to read the device parameter set from the first storage area corresponding to the preset physical address when entering the initialization phase corresponding to the display device; The determining module is used to determine a set of display configuration parameters that match the device parameters based on the set of device parameters; The modification module is used to modify the device tree file according to the set of display configuration parameters to obtain the target device tree file; The loading module is used to load the target device tree file to drive the display device to perform initialization operations and obtain a display interface corresponding to the display configuration parameter set.

[0014] As an optional implementation, in a second aspect of the invention, the apparatus further includes: The receiving module is used to receive the display configuration command for the display device input by the user based on a determined command receiving method before the data writing module writes the set of device parameters corresponding to the display device into the first storage area corresponding to the preset physical address according to the received display configuration command and based on the preset data structure. The command receiving method includes one or more of the following: serial port debugging method, network transmission method, and local command line configuration method.

[0015] As an optional implementation, in the second aspect of the present invention, the specific method by which the data writing module writes the set of device parameters corresponding to the display device into the first storage area corresponding to the preset physical address based on the received display configuration instruction and a preset data structure includes: The display configuration instructions are parsed to obtain the device parameter set of the display device; Based on a preset data structure, a parameter packaging operation is performed on the device parameter set to obtain a device parameter data package; The device parameter data packet is written to the first storage area corresponding to the preset physical address.

[0016] As an optional implementation, in a second aspect of the present invention, the specific method by which the data writing module performs a parameter packaging operation on the device parameter set based on a preset data structure to obtain a device parameter data packet includes: For each device parameter, the parameter identifier, preset assignment symbol, parameter value, and preset end symbol of the device parameter are combined to obtain the parameter field corresponding to the device parameter; Based on a pre-defined parameter arrangement order, the parameter fields corresponding to all the device parameters and the preset data packet end identifier are combined to obtain a device parameter data packet.

[0017] As an optional implementation, in a second aspect of the invention, the specific method by which the determining module determines the set of display configuration parameters matching the device parameters based on the device parameter set includes: Based on the device identifier parameter in the device parameter set, a screen parameter set corresponding to the device identifier parameter is retrieved from the second storage area; wherein, the screen parameter set includes one or more combinations of resolution parameters, timing parameters, and interface parameters; and / or, Based on the display orientation parameters in the device parameter set, determine the orientation adjustment parameters and / or touch driving parameters corresponding to the display device; wherein, the orientation adjustment parameters include rotation angle parameters, and the touch driving parameters include touch size parameters and / or coordinate mapping parameters; and / or, Based on the backlight parameters in the device parameter set, the backlight control parameters corresponding to the display device are determined; wherein, the backlight control parameters include backlight brightness control parameters; The display configuration parameter set includes one or more of the screen parameter set, the orientation adjustment parameters, and the backlight control parameters.

[0018] As an optional implementation, in a second aspect of the present invention, the specific method by which the modification module modifies the device tree file according to the display configuration parameter set to obtain the target device tree file includes: Locate the display controller node in the device tree file and write the screen parameter set into the display controller node; and / or, Locate the display attribute node in the device tree file and write the rotation angle parameter to the display controller node; and / or, Locate the backlight control node in the device tree file and write the backlight control parameters into the backlight control node; and / or, Locate the touch controller node in the device tree file and write the touch driver parameters into the touch controller node; The target device tree file includes at least one node written to the display configuration parameter set, and all the nodes include at least one of the display controller node, the backlight control node, and the touch controller node.

[0019] As an optional implementation, in a second aspect of the invention, the apparatus further includes: The data transmission module is used to transmit the target device tree file to the kernel before the loading module loads the target device tree file to drive the display device to perform initialization operations and obtain the display interface corresponding to the display configuration parameter set; The loading module loads the target device tree file to drive the display device to perform initialization operations and obtain a display interface corresponding to the display configuration parameter set, including the following specific methods: Load the target device tree file to start the kernel; After the kernel starts, the device driver corresponding to the display device is loaded according to the target device tree file; wherein, the device driver includes a display driver and / or a touch driver; Based on the device driver, the display device is driven to perform initialization operations to obtain a display interface corresponding to the set of display configuration parameters.

[0020] A third aspect of the present invention discloses another parameter configuration apparatus for a display device, the apparatus comprising: Memory containing executable program code; A processor coupled to the memory; The processor calls the executable program code stored in the memory to execute some or all of the steps of the parameter configuration method for the display device disclosed in the first aspect of the present invention.

[0021] The fourth aspect of the present invention discloses a computer storage medium storing computer instructions, which, when invoked, are used to execute some or all of the steps of the parameter configuration method for the display device disclosed in the first aspect of the present invention.

[0022] Compared with the prior art, the present invention has the following beneficial effects: Implementing this invention enables the following: based on the received display configuration command and a preset data structure, the device parameter set corresponding to the display device is written into a first storage area corresponding to a preset physical address. During the initialization phase, the device parameter set is read from this first storage area to determine the corresponding display configuration parameter set. Then, based on the display configuration parameter set, the device tree file is modified, and the modified target device tree file is loaded to drive the display device to perform initialization operations, resulting in a display interface corresponding to the display configuration parameter set. This allows the display device initialization to be completed only after configuration, and it decouples the firmware from the screen hardware, reducing the number of firmware versions due to differences in display devices. Furthermore, by triggering the command parameter parsing and dynamic configuration process through the display configuration command, the display device can still be configured even if there are display errors or it fails to display, improving the convenience and flexibility of display device parameter configuration. This helps reduce the development and maintenance costs of the display device. Finally, storing device configuration parameters in a specific storage area of ​​a non-volatile storage medium improves the reliability of parameter storage, thereby improving the accuracy of display configuration parameter determination and enhancing the reliability of display device parameter configuration. Attached Figure Description

[0023] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying 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.

[0024] Figure 1 This is a flowchart illustrating a parameter configuration method for a display device disclosed in an embodiment of the present invention; Figure 2This is a flowchart illustrating another parameter configuration method for a display device disclosed in an embodiment of the present invention; Figure 3 This is a schematic diagram of the data structure of a device parameter data packet disclosed in an embodiment of the present invention; Figure 4 This is a flowchart illustrating another parameter configuration method for a display device disclosed in an embodiment of the present invention; Figure 5 This is a flowchart illustrating another parameter configuration method for a display device disclosed in an embodiment of the present invention; Figure 6 This is a flowchart illustrating another parameter configuration method for a display device disclosed in an embodiment of the present invention; Figure 7 This is a flowchart illustrating another parameter configuration method for a display device disclosed in an embodiment of the present invention; Figure 8 This is a flowchart illustrating another parameter configuration method for a display device disclosed in an embodiment of the present invention; Figure 9 This is a schematic diagram of the structure of a parameter configuration device for a display device disclosed in an embodiment of the present invention; Figure 10 This is a schematic diagram of the structure of another parameter configuration device for a display device disclosed in an embodiment of the present invention; Figure 11 This is a schematic diagram of the structure of another parameter configuration device for a display device disclosed in an embodiment of the present invention. Detailed Implementation

[0025] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0026] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or end that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or ends.

[0027] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0028] This invention discloses a parameter configuration method and apparatus for a display device. Based on a preset data structure, the method writes a set of device parameters corresponding to the display device into a first storage area corresponding to a preset physical address according to a received display configuration instruction. During the initialization phase, the method reads the device parameter set from the first storage area to determine the corresponding display configuration parameter set. Then, based on the display configuration parameter set, the method modifies the device tree file and loads the modified target device tree file to drive the display device to perform initialization operations, resulting in a display interface corresponding to the display configuration parameter set. This allows the display device to be configured before initialization, and decouples the firmware from the screen hardware, reducing the number of firmware versions due to differences in display devices. Furthermore, by triggering the instruction parameter parsing and dynamic configuration process through the display configuration instruction, the method can still complete the display device configuration even if the display device displays errors or fails to display, improving the convenience and flexibility of parameter configuration and thus reducing the development and maintenance costs of the display device. Finally, storing the device configuration parameters in a specific storage area of ​​a non-volatile storage medium improves the reliability of parameter storage, thereby improving the accuracy of display configuration parameter determination and enhancing the reliability of display device parameter configuration. The following sections will provide detailed explanations.

[0029] Example 1 Please see Figure 1 , Figure 1 This is a flowchart illustrating a parameter configuration method for a display device disclosed in an embodiment of the present invention. Figure 1 The described parameter configuration method for a display device can be applied to a parameter configuration apparatus for a display device. This apparatus may include one of a smart device, a smart terminal, a smart system, and a server. The server may be a local server or a cloud server; this embodiment of the invention does not limit its application. The method can also be applied to construction machinery equipped with a display device, which may include a display screen and / or a touchscreen; this embodiment of the invention does not limit its application either. Figure 1 As shown, the parameter configuration method for this display device may include the following operations: 101. Based on the received display configuration instructions and a preset data structure, write the set of device parameters corresponding to the display device into the first storage area corresponding to the preset physical address.

[0030] In this embodiment of the invention, the display configuration instruction is an instruction used to indicate that the display device needs to be configured.

[0031] In this embodiment of the invention, the set of device parameters corresponding to the display device may include multiple device parameters; wherein, all device parameters may include one or more of device identification parameters, display orientation parameters, and backlight parameters; optionally, the device identification parameter may include a device model, and further, the device identification parameter may also include a device name and / or a device ID. For example, the device identification parameter may specifically include a first screen model corresponding to the display screen and / or a first screen model corresponding to the touch screen, which is not limited in this embodiment of the invention; optionally, the display orientation parameter is used to indicate the display orientation mode that the display device needs to be configured, wherein the display orientation mode includes a landscape mode and / or a portrait mode. For example, the display orientation parameter may include a first display orientation parameter corresponding to the display screen and / or a second display orientation parameter corresponding to the touch screen, which is not limited in this embodiment of the invention; optionally, the backlight parameter may include a backlight brightness parameter, wherein the backlight brightness parameter is used to specify the backlight brightness value of the display device. For example, the backlight brightness parameter may specifically include a first backlight brightness parameter corresponding to the display screen and / or a second backlight brightness parameter corresponding to the touch screen, which is not limited in this embodiment of the invention.

[0032] In this embodiment of the invention, the first storage area corresponding to the preset physical address can be a storage area in a non-volatile storage medium that matches the display device; wherein, optionally, the non-volatile storage medium may include, but is not limited to, eMMC (Embedded MultiMediaCard) and / or NAND Flash (Not AND Flash Memory), and this embodiment of the invention does not limit it; wherein, the first storage area corresponding to the preset physical address may specifically be a dedicated partition or a specific sector defined in the non-volatile storage medium, which can be used to independently store configuration parameters to ensure that the parameters are not lost in the event of system power failure, firmware upgrade, etc.

[0033] In this embodiment of the invention, optionally, the operation of step 101 can be performed before the display device is used for the first time, or when the configuration parameters of the display device need to be modified (e.g., the original factory preset parameters are incorrectly configured). This embodiment of the invention does not limit the scope of the operation. For example, the firmware pre-installed at the factory of the device is adapted to the first screen model by default, but the actual installed device is the second screen model, which causes the screen display to be abnormal after powering on and cannot be configured through the screen interface. In this case, it is necessary to reconfigure the configuration parameters of the display device. This embodiment of the invention does not limit the scope of the operation.

[0034] 102. When entering the initialization phase corresponding to the display device, read the device parameter set from the first storage area corresponding to the preset physical address.

[0035] In this embodiment of the invention, step 102 reads the device parameter set by directly accessing the physical address, which eliminates the need to mount a file system or start the kernel.

[0036] 103. Based on the set of device parameters, determine the set of display configuration parameters that match the device parameters.

[0037] 104. Based on the set of display configuration parameters, modify the device tree file to obtain the target device tree file.

[0038] In this embodiment of the invention, optionally, the device tree file may include multiple nodes, wherein the nodes may include at least one of the display controller node, the backlight control node, and the touch controller node, and this embodiment of the invention does not limit the scope of the nodes.

[0039] 105. Load the target device tree file to drive the display device to perform initialization operations and obtain the display interface corresponding to the set of display configuration parameters.

[0040] As can be seen, the method described in the embodiments of the present invention can, based on the received display configuration instruction and a preset data structure, write the set of device parameters corresponding to the display device into the first storage area corresponding to the preset physical address. Upon entering the initialization phase, the device parameter set is read from the first storage area to determine the corresponding display configuration parameter set. Then, based on the display configuration parameter set, the device tree file is modified, and the modified target device tree file is loaded to drive the display device to perform initialization operations, obtaining a display interface corresponding to the display configuration parameter set. This enables display device initialization to be completed only after the display device has been configured, and decouples the firmware from the screen hardware, reducing the number of firmware versions due to differences in display devices. Furthermore, by triggering the instruction parameter parsing and dynamic configuration process through the display configuration instruction, the display device can still be configured even if there are display errors or the device cannot display, improving the convenience and flexibility of display device parameter configuration. This helps reduce the development and maintenance costs of the display device. Moreover, storing device configuration parameters in a specific storage area of ​​a non-volatile storage medium improves the reliability of parameter storage, thereby improving the accuracy of display configuration parameter determination and ultimately enhancing the reliability of display device parameter configuration.

[0041] In an optional embodiment, determining a set of display configuration parameters that match the device parameters based on the device parameter set may include the following operations: Based on the device identifier parameter in the device parameter set, search for the screen parameter set corresponding to the device identifier parameter in the second storage area; wherein, the screen parameter set includes one or more combinations of resolution parameters, timing parameters, and interface parameters; and / or, Based on the display orientation parameters in the device parameter set, determine the orientation adjustment parameters and / or touch drive parameters corresponding to the display device; wherein, the orientation adjustment parameters include rotation angle parameters, and the touch drive parameters include touch size parameters and / or coordinate mapping parameters; and / or, Based on the backlight parameters in the device parameter set, determine the backlight control parameters corresponding to the display device; among which, the backlight control parameters include backlight brightness control parameters.

[0042] The display configuration parameter set may include one or more of the above-mentioned screen parameter set, orientation adjustment parameters, and backlight control parameters.

[0043] Optionally, the second storage area is a storage area accessible to the bootloader during the initialization phase.

[0044] Optionally, the set of screen parameters corresponding to the device identification parameters can be the set of screen parameters corresponding to the device model, which is not limited in this embodiment of the invention; for example, assuming that the display screen included in the display device is an LVDS (Low-Voltage Differential Signaling) interface screen, the resolution parameters may include the number of horizontal pixels and / or the number of vertical pixels, the timing parameters may include one or more of the following: horizontal leading edge, horizontal trailing edge, vertical leading edge, vertical trailing edge, and pixel clock frequency, and the interface parameters may include the LVDS mapping mode, which is not limited in this embodiment of the invention.

[0045] Optionally, when the display direction parameter is a first direction (e.g., landscape), the rotation angle parameter is a first angle, and the coordinate mapping parameter is used to indicate that the coordinate axes do not need to be adjusted; when the display direction parameter is a second direction (e.g., portrait), the rotation angle parameter is a second angle, and the coordinate mapping parameter is used to indicate that the coordinate axes (e.g., horizontal and vertical coordinate axes) are swapped. This embodiment of the invention does not impose any limitations.

[0046] Optionally, the backlight brightness control parameters can be used to set the duty cycle of the PWM (Pulse Width Modulation) signal, thereby controlling the backlight brightness.

[0047] As can be seen, this optional embodiment can determine the screen parameter set, orientation adjustment parameter, and backlight control parameter in the display configuration parameter set according to the device identification parameter, display orientation parameter, and backlight parameter included in the device parameter set corresponding to the display device. This can improve the flexibility and accuracy of determining the display configuration parameters, thereby helping to further improve the parameter configuration efficiency and reliability of the display device.

[0048] In this optional embodiment, optionally, modifying the device tree file according to the display configuration parameter set to obtain the target device tree file may include the following operations: Locate the display controller node in the device tree file and write the screen parameter set to the display controller node; and / or, Locate the display attributes node in the device tree file and write the rotation angle parameter to the display controller node; and / or, Locate the backlight control node in the device tree file and write the backlight control parameters to the backlight control node; and / or, Locate the touch controller node in the device tree file and write the touch driver parameters to the touch controller node.

[0049] The target device tree file includes at least one node after the display configuration parameter set is written, and all nodes include at least one of the display controller node, display controller node, backlight control node, and touch controller node.

[0050] Optionally, locating the touch controller node in the device tree file and writing the touch driver parameters to the touch controller node may include the following operations: Locate the touch controller node in the device tree file, enable the touch driver node corresponding to the device identifier parameter according to the device identifier parameter, disable the touch driver node that does not correspond to the device identifier parameter, and write the touch driver parameter to the touch driver node corresponding to the touch controller node.

[0051] It is understood that the touch driver node can be one of the nodes in the touch driver.

[0052] As can be seen, this optional embodiment can also write different parameters in the display configuration parameter set to the corresponding nodes of the device tree file, which can improve the accuracy and efficiency of modifying the device tree file. This is beneficial for dynamically adapting the device tree file to the display configuration parameter set before the kernel starts, and can further improve the parameter configuration efficiency and reliability of the display device.

[0053] In an optional embodiment, before loading the target device tree file to drive the display device to perform initialization operations and obtain a display interface corresponding to the set of display configuration parameters, the method may further include the following operations: Transfer the target device tree file to the kernel.

[0054] Optionally, the target device tree file is loaded to drive the display device to perform initialization operations and obtain a display interface corresponding to the set of display configuration parameters. This may include the following operations: Load the target device tree file to start the kernel; After the kernel starts, the device driver corresponding to the display device is loaded according to the target device tree file; the device driver includes the display driver and / or the touch driver. Based on the device driver, the driver performs initialization operations on the display device to obtain a display interface corresponding to the set of display configuration parameters.

[0055] As can be seen, this optional embodiment can transfer the target device tree file to the kernel, load the target device tree file to start the kernel, and after the kernel starts, load the device driver corresponding to the display device according to the target device tree file, and then drive the display device to perform initialization operations based on the device driver to obtain the display interface corresponding to the display configuration parameter set. This can improve the initialization reliability of the display device while improving the reliability of kernel startup.

[0056] Example 2 Please see Figure 2 , Figure 2This is a flowchart illustrating a parameter configuration method for a display device disclosed in an embodiment of the present invention. Figure 2 The described parameter configuration method for a display device can be applied to a parameter configuration apparatus for a display device. This apparatus may include one of a smart device, a smart terminal, a smart system, and a server. The server may be a local server or a cloud server; this embodiment of the invention does not limit its application. The method can also be applied to construction machinery equipped with a display device, which may include a display screen and / or a touchscreen; this embodiment of the invention does not limit its application either. Figure 2 As shown, the parameter configuration method for this display device may include the following operations: 201. Based on the determined command receiving method, receive the display configuration instructions for the display device input by the user.

[0057] In this embodiment of the invention, the command receiving method may include one or more of the following: serial port debugging method, network transmission method, and local command line configuration method; wherein, the serial port debugging method specifically refers to receiving the display configuration command input by the user through a serial port debugging tool; the network transmission method specifically refers to receiving the display configuration command sent by the user through the network; and the local command line configuration method specifically refers to receiving the display configuration command input by the user through a local command line interface / local command line terminal.

[0058] 202. Based on the received display configuration instructions and a preset data structure, write the set of device parameters corresponding to the display device into the first storage area corresponding to the preset physical address.

[0059] In this embodiment of the invention, the device parameter set includes multiple device parameters, all of which include one or more of the following: device identification parameters, display orientation parameters, and backlight parameters; the first storage area corresponding to the preset physical address is a storage area in a non-volatile storage medium that matches the display device.

[0060] 203. When entering the initialization phase corresponding to the display device, read the device parameter set from the first storage area corresponding to the preset physical address.

[0061] 204. Based on the set of device parameters, determine the set of display configuration parameters that match the device parameters.

[0062] 205. Based on the set of display configuration parameters, modify the device tree file to obtain the target device tree file.

[0063] 206. Load the target device tree file to drive the display device to perform initialization operations and obtain the display interface corresponding to the set of display configuration parameters.

[0064] For further detailed descriptions of steps 202-206 in this embodiment of the invention, please refer to the detailed descriptions of steps 101-105 in Embodiment 1. These descriptions will not be repeated in this embodiment of the invention.

[0065] As can be seen, the method described in the embodiments of the present invention can, based on the received display configuration instruction and a preset data structure, write the set of device parameters corresponding to the display device into the first storage area corresponding to the preset physical address. Upon entering the initialization phase, the device parameter set is read from the first storage area to determine the corresponding display configuration parameter set. Then, based on the display configuration parameter set, the device tree file is modified, and the modified target device tree file is loaded to drive the display device to perform initialization operations, obtaining a display interface corresponding to the display configuration parameter set. This enables display device initialization to be completed only after the display device has been configured, and decouples the firmware from the screen hardware, reducing the number of firmware versions due to differences in display devices. Furthermore, by triggering the instruction parameter parsing and dynamic configuration process through the display configuration instruction, the display device can still be configured even if there are display errors or the device cannot display, improving the convenience and flexibility of display device parameter configuration. This helps reduce the development and maintenance costs of the display device. Moreover, storing device configuration parameters in a specific storage area of ​​a non-volatile storage medium improves the reliability of parameter storage, thereby improving the accuracy of display configuration parameter determination and ultimately enhancing the reliability of display device parameter configuration. In addition, it can receive display configuration commands for the display device input by the user based on the command receiving method, which can improve the flexibility and accuracy of receiving display configuration commands and facilitate more flexible triggering of the parameter configuration process of the display device, thereby further improving the convenience and flexibility of parameter configuration of the display device.

[0066] In an optional embodiment, based on the received display configuration instructions and a preset data structure, the set of device parameters corresponding to the display device is written into the first storage area corresponding to the preset physical address. This may include the following operations: Parse the display configuration instructions to obtain the set of device parameters for the display device; Based on a preset data structure, a parameter packaging operation is performed on the device parameter set to obtain a device parameter data package. Write the device parameter data packet to the first storage area corresponding to the preset physical address.

[0067] As can be seen, this optional embodiment can parse the display configuration instructions to obtain the device parameter set of the display device, and then perform a parameter packaging operation on the device parameter set based on a preset data structure to obtain a device parameter data packet. Then, the device parameter data packet is written to the first storage area corresponding to the preset physical address. This can improve the parsing efficiency and accuracy of the display configuration instructions, and improve the organization efficiency and standardization of the device parameters based on the packaging operation, thereby improving the reliability of the device parameters stored in the first storage area.

[0068] In this optional embodiment, optionally, based on a preset data structure, performing a parameter packaging operation on the device parameter set to obtain a device parameter data package may include the following operations: For each device parameter, the parameter identifier, preset assignment symbol, parameter value, and preset end symbol of the device parameter are combined to obtain the parameter field corresponding to the device parameter; Based on the pre-set parameter arrangement order, the parameter fields corresponding to all device parameters and the preset data packet end identifier are combined to obtain the device parameter data packet.

[0069] Optionally, the preset data packet end identifier may include a preset field end identifier and a preset data packet tail identifier; for example, the parameter identifier may be a parameter name, the preset assignment symbol may be "=", the preset end character may be "\0", the preset field end identifier may be a double-space identifier "\0\0", and the preset data packet end identifier may be a preset magic number, such as "OKOK". This embodiment of the invention does not impose limitations. Correspondingly, the data structure of the device parameter packet can be found in [reference needed]. Figure 3 , Figure 3 This is a schematic diagram of the data structure of a device parameter data packet disclosed in an embodiment of the present invention; as shown below. Figure 3 As shown, the parameter data packet may include multiple parameter fields, and each parameter field is arranged continuously in the format of "parameter name=parameter value\0", and ends with a double empty character "\0\0" and ends with "OKOK". This embodiment of the invention does not limit the scope of the parameter data packet.

[0070] As can be seen, this optional embodiment can also combine the parameter identifier, preset assignment symbol, parameter value, and preset end symbol of each device parameter to obtain the parameter field corresponding to the device parameter. Then, based on the preset parameter arrangement order, the parameter fields corresponding to all device parameters and the preset data packet end symbol are combined to obtain the device parameter data packet. This can improve the packaging efficiency and accuracy of device parameters, thereby improving the reliability of device parameters stored in the first storage area and facilitating more efficient reading and parsing of the parameter values ​​of each parameter in the data packet when configuring the display device.

[0071] In an optional embodiment, reading a set of device parameters from a first storage area corresponding to a preset physical address may include the following operations: Read the device parameter data packet from the first storage area corresponding to the preset physical address, and load the device parameter data packet into memory; Each parameter field is located by traversing the device parameter data packet to find the end marker of the parameter field; For each parameter field, extract the parameter value corresponding to that parameter field based on the parameter identifier of that parameter field; The verification result is obtained by checking whether a preset data packet tail identifier exists in the device parameter data packet; When the verification result indicates the presence of a preset data packet tail identifier, the device parameter data packet is determined to be complete, and the parameter identifiers and corresponding parameter values ​​of all parameter fields are determined as the device parameter set.

[0072] As can be seen, this optional embodiment can load the device parameter data packet into memory after reading it from the first storage area, and locate each parameter field by traversing and searching for the end identifier of the parameter field in the device parameter data packet. Then, based on the parameter identifier of each parameter field, the parameter value corresponding to that parameter field is extracted. Then, the integrity of the data packet is verified by searching for the existence of a preset data packet tail identifier in the device parameter data packet. When the data packet is verified to be complete, the parameter identifiers corresponding to all parameter fields and the corresponding parameter values ​​are determined as the device parameter set. This can improve the reading efficiency of the device parameter data packet, while also improving the parsing efficiency and verification reliability of the device parameter data packet, thereby improving the efficiency and reliability of determining the device parameter set from the device parameter data packet.

[0073] In this embodiment of the invention, an exemplary flowchart of the parameter configuration method for the display device can be found here. Figure 4 , Figure 4 This is a flowchart illustrating another parameter configuration method for a display device disclosed in an embodiment of the present invention; as follows: Figure 4 As shown, the method may include the following main steps: The device receives configuration commands input by the user or host computer. After receiving the command, the device parses the command and packages it into a data packet, then writes the data packet to the storage medium. After restarting the device, it reads and parses the configuration, then dynamically modifies the device to start the internal adaptation of the display device. More specifically, this method can be applied to a parameter configuration system for display devices, which can be used in engineering machinery. This system can include a command-line configuration module, a storage module, a parsing module, and an adaptation module. The command-line configuration module runs at the application layer or bootstrap layer and receives user configuration commands via serial port, network, or local command-line interface to generate a structured configuration parameter package. The storage module is a predetermined storage area in a non-volatile storage medium used to persistently store the configuration parameter package. The parsing module runs at the bootstrap layer and reads and parses the configuration parameter package during system startup. The adaptation module runs at the bootstrap layer and dynamically modifies the kernel device tree based on the parsing results to complete hardware adaptation.

[0074] This method can be specifically divided into parameter configuration and storage process, bootloader startup and parameter parsing process, and dynamic adaptation process.

[0075] Furthermore, the flowchart for the above parameter configuration and storage process can be found in [reference needed]. Figure 5 as well as Figure 6 , Figure 5 as well as Figure 6 These are schematic flowcharts illustrating another parameter configuration method for a display device disclosed in an embodiment of the present invention; as follows: Figure 5 As shown, the process may include the following operations: After the user connects to the device, the configuration command is input into the serial terminal, and then the configuration command is forwarded to the configuration module, which parses the parameters and packages the data packet to send the data packet to the storage module for writing. After successful writing, the configuration is displayed as successful and the settings are restarted. This process can also be like... Figure 6 As shown, the process may include the following operations: S110, Receive configuration commands via serial port / command line interface; S120, Parse commands to extract parameters (screen model, display orientation, backlight brightness); S130, Pack into a predefined data packet; S140, Write to temporary storage area; S150, Add touch configuration file; S160, Add tail identifier (magic number); S170, Write to a predefined physical address on non-volatile storage medium.

[0076] Furthermore, the above bootloader startup and parameter parsing process can be found in [reference needed]. Figure 7 , Figure 7 This is a flowchart illustrating another parameter configuration method for a display device disclosed in an embodiment of the present invention; as follows: Figure 7 As shown, the process may include the following operations: S210, Start the bootloader; S220, Read the data packet from the predetermined physical address; S230, Verify the integrity of the data packet (check the tail identifier); S240, Traverse the parameter fields to extract parameter values; S250, Output the configuration parameters (screen model, display orientation, backlight brightness).

[0077] Furthermore, the above dynamic adaptation process can be found in [reference needed]. Figure 8 , Figure 8 This is a flowchart illustrating another parameter configuration method for a display device disclosed in an embodiment of the present invention; as follows: Figure 8 As shown, the process may include the following operations: S310. Obtain the parsed configuration parameters; S320. Select the target parameter set according to the screen model; S330. Locate the display controller node and write the timing parameters; S34. Locate the display attribute node according to the display orientation and write the rotation parameters; S35. Locate the backlight control node according to the backlight brightness and write the brightness parameters; S36. Enable the corresponding touch driver according to the screen model and write the touch configuration parameters; S37. Save the modified device tree.

[0078] In this embodiment of the invention, for example, it is assumed that the firmware pre-installed on the display device at the factory is adapted to the first screen model by default, but the actual installed firmware is for the second screen model, resulting in abnormal screen display after power-on and inability to configure via the screen interface. In this case, the display device's parameter configuration method can be used to configure the display device's parameters: The user connects to the device's debugging interface via a serial cable and opens the serial terminal software. Upon powering on the device, the serial terminal displays the bootloader startup information. The user enters configuration commands in the bootloader command line, including the screen model parameter "Second Screen Model," the display orientation parameter "Portrait," and the backlight brightness parameter "Preset Value." The system receives the commands, parses them, and generates a data packet containing screen identification information, display orientation information, and backlight brightness values. It then loads the corresponding touch configuration data based on the screen identification information. The system writes the data packet to a predetermined sector of a non-volatile storage medium. The user inputs a restart command, and the device restarts; the bootloader reads data packets from a predetermined sector; it parses the screen identification information to determine the second screen model; it looks up the corresponding screen parameter set based on the second screen model; it writes the timing parameters of the second screen model into the device tree display node; it writes the touch configuration parameters into the device tree touch node; it loads the modified device tree and starts the kernel; After the kernel starts, the display driver initializes the screen according to the timing parameters of the second screen model, and the touch driver initializes the touch screen according to the written configuration parameters. The screen displays normally, the touch function works normally, and the adaptation is complete.

[0079] Through the above technical means, this embodiment realizes cross-stage data transfer by setting parameters at the application layer and using parameters at the bootstrap stage.

[0080] Example 3 Please see Figure 9 , Figure 9 This is a schematic diagram of the structure of a parameter configuration device for a display device disclosed in an embodiment of the present invention. Figure 9 The described parameter configuration device for the display device can be applied to construction machinery, which is equipped with a display device, including a screen and / or a touch screen. This device can include one of a smart device, a smart terminal, a smart system, and a server, wherein the server can be a local server or a cloud server; this embodiment of the invention does not limit the specific type of server. Figure 9 As shown, the parameter configuration device of the display device may include: The data writing module 301 is used to write the set of device parameters corresponding to the display device to the first storage area corresponding to the preset physical address based on the received display configuration instruction and a preset data structure; wherein, the set of device parameters includes multiple device parameters, and all device parameters include one or more of the following: device identification parameters, display orientation parameters, and backlight parameters; the first storage area corresponding to the preset physical address is a storage area in a non-volatile storage medium that matches the display device; The data reading module 302 is used to read the device parameter set from the first storage area corresponding to the preset physical address when entering the initialization stage corresponding to the display device; The determination module 303 is used to determine the set of display configuration parameters that match the device parameters based on the set of device parameters; Modify module 304 to modify the device tree file based on the set of display configuration parameters to obtain the target device tree file; Loading module 305 is used to load the target device tree file to drive the display device to perform initialization operations and obtain a display interface corresponding to the set of display configuration parameters.

[0081] As can be seen, the apparatus described in the embodiments of the present invention can, according to the received display configuration instruction, write the set of device parameters corresponding to the display device into the first storage area corresponding to the preset physical address based on the preset data structure. Upon entering the initialization phase, it reads the set of device parameters from the first storage area to determine the corresponding set of display configuration parameters. Then, based on the set of display configuration parameters, it modifies the device tree file and loads the modified target device tree file to drive the display device to perform initialization operations, thereby obtaining a display interface corresponding to the set of display configuration parameters. This enables the display device to be initialized only after configuration, and decouples the firmware from the screen hardware, reducing the number of firmware versions due to differences in display devices. Furthermore, by triggering the instruction parameter parsing and dynamic configuration process through the display configuration instruction, the display device can still be configured even if there are display errors or it cannot display, improving the convenience and flexibility of display device parameter configuration. This helps reduce the development and maintenance costs of the display device. Moreover, storing device configuration parameters in a specific storage area of ​​a non-volatile storage medium improves the reliability of parameter storage, thereby improving the accuracy of display configuration parameter determination and ultimately enhancing the reliability of display device parameter configuration.

[0082] In an optional embodiment, such as Figure 10 As shown, the device may further include: The receiving module 306 is used to receive the display configuration command input by the user for the display device based on the determined command receiving method before the data writing module 301 writes the set of device parameters corresponding to the display device to the first storage area corresponding to the preset physical address according to the received display configuration command and based on the preset data structure. The command receiving methods include one or more of the following: serial port debugging, network transmission, and local command line configuration.

[0083] As can be seen, the apparatus described in this optional embodiment can receive display configuration instructions for the display device input by the user based on the command receiving method, which can improve the flexibility and accuracy of receiving display configuration commands, and facilitate more flexible triggering of the parameter configuration process of the display device, thereby further improving the convenience and flexibility of parameter configuration of the display device.

[0084] In this optional embodiment, the specific method by which the data writing module 301 writes the set of device parameters corresponding to the display device to the first storage area corresponding to the preset physical address based on the received display configuration instruction and a preset data structure may include: Parse the display configuration instructions to obtain the set of device parameters for the display device; Based on a preset data structure, a parameter packaging operation is performed on the device parameter set to obtain a device parameter data package. Write the device parameter data packet to the first storage area corresponding to the preset physical address.

[0085] As can be seen, the apparatus described in this optional embodiment can also parse the display configuration instruction to obtain the device parameter set of the display device, and then perform a parameter packaging operation on the device parameter set based on a preset data structure to obtain a device parameter data packet. Then, the device parameter data packet is written into the first storage area corresponding to the preset physical address. This can improve the parsing efficiency and accuracy of the display configuration instruction, and improve the organization efficiency and standardization of the device parameters based on the packaging operation, thereby improving the reliability of the device parameters stored in the first storage area.

[0086] In this optional embodiment, the specific method by which the data writing module 301 performs a parameter packaging operation on the device parameter set based on a preset data structure to obtain a device parameter data packet may include: For each device parameter, the parameter identifier, preset assignment symbol, parameter value, and preset end symbol of the device parameter are combined to obtain the parameter field corresponding to the device parameter; Based on the pre-set parameter arrangement order, the parameter fields corresponding to all device parameters and the preset data packet end identifier are combined to obtain the device parameter data packet.

[0087] As can be seen, the apparatus described in this optional embodiment can also combine the parameter identifier, preset assignment symbol, parameter value, and preset end symbol of each device parameter to obtain the parameter field corresponding to the device parameter. Then, based on a preset parameter arrangement order, it combines the parameter fields corresponding to all device parameters with the preset data packet end symbol to obtain a device parameter data packet. This can improve the packaging efficiency and accuracy of device parameters, thereby improving the reliability of device parameters stored in the first storage area and facilitating more efficient reading and parsing of the parameter values ​​of each parameter in the data packet when configuring the display device.

[0088] In an optional embodiment, the specific method by which the determining module 303 determines the set of display configuration parameters that match the device parameters based on the device parameter set may include: Based on the device identifier parameter in the device parameter set, search for the screen parameter set corresponding to the device identifier parameter in the second storage area; wherein, the screen parameter set includes one or more combinations of resolution parameters, timing parameters, and interface parameters; and / or, Based on the display orientation parameters in the device parameter set, determine the orientation adjustment parameters and / or touch drive parameters corresponding to the display device; wherein, the orientation adjustment parameters include rotation angle parameters, and the touch drive parameters include touch size parameters and / or coordinate mapping parameters; and / or, Based on the backlight parameters in the device parameter set, determine the backlight control parameters corresponding to the display device; among which, the backlight control parameters include backlight brightness control parameters; The display configuration parameter set includes one or more of the following: screen parameter set, orientation adjustment parameters, and backlight control parameters.

[0089] As can be seen, the apparatus described in this optional embodiment can determine the screen parameter set, orientation adjustment parameter, and backlight control parameter in the display configuration parameter set according to the device identification parameter, display orientation parameter, and backlight parameter included in the device parameter set corresponding to the display device. This can improve the flexibility and accuracy of determining the display configuration parameters, thereby further improving the parameter configuration efficiency and reliability of the display device.

[0090] In this optional embodiment, the modification module 304 may modify the device tree file according to the display configuration parameter set to obtain the target device tree file in the following ways: Locate the display controller node in the device tree file and write the screen parameter set to the display controller node; and / or, Locate the display attributes node in the device tree file and write the rotation angle parameter to the display controller node; and / or, Locate the backlight control node in the device tree file and write the backlight control parameters to the backlight control node; and / or, Locate the touch controller node in the device tree file and write the touch driver parameters to the touch controller node; The target device tree file includes at least one node after the display configuration parameter set is written, and all nodes include at least one of the display controller node, display controller node, backlight control node, and touch controller node.

[0091] As can be seen, the apparatus described in this optional embodiment can also write different parameters in the display configuration parameter set to the corresponding nodes of the device tree file, which can improve the accuracy and efficiency of modifying the device tree file. This is beneficial for dynamically adapting the device tree file to the display configuration parameter set before the kernel starts, and can further improve the parameter configuration efficiency and reliability of the display device.

[0092] In an optional embodiment, such as Figure 10 As shown, the device may further include: The data transmission module 307 is used to transmit the target device tree file to the kernel before the loading module 305 loads the target device tree file to drive the display device to perform initialization operations and obtain the display interface corresponding to the display configuration parameter set. The loading module 305 loads the target device tree file to drive the display device to perform initialization operations and obtain the specific method of the display interface corresponding to the display configuration parameter set, which may include: Load the target device tree file to start the kernel; After the kernel starts, the device driver corresponding to the display device is loaded according to the target device tree file; the device driver includes the display driver and / or the touch driver. Based on the device driver, the driver performs initialization operations on the display device to obtain a display interface corresponding to the set of display configuration parameters.

[0093] As can be seen, the apparatus described in this optional embodiment can transfer the target device tree file to the kernel, load the target device tree file to start the kernel, and after the kernel starts, load the device driver corresponding to the display device according to the target device tree file, and then drive the display device to perform initialization operations based on the device driver to obtain a display interface corresponding to the display configuration parameter set. This can improve the initialization reliability of the display device while improving the reliability of kernel startup.

[0094] Example 4 Please see Figure 11 , Figure 11 This is a schematic diagram of the structure of a parameter configuration device for a display device disclosed in another embodiment of the present invention. For example... Figure 11 As shown, the parameter configuration device of the display device may include: Memory 401 storing executable program code; Processor 402 coupled to memory 401; The processor 402 calls the executable program code stored in the memory 401 to execute some or all of the steps in the parameter configuration method of the display device described in Embodiment 1 or Embodiment 2 of the present invention.

[0095] Example 5 This invention discloses a computer storage medium storing computer instructions. When these computer instructions are invoked, they are used to execute some or all of the steps in the parameter configuration method for a display device described in Embodiment 1 or Embodiment 2 of this invention.

[0096] Example 6 This invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps in the parameter configuration method for a display device described in Embodiment 1 or Embodiment 2.

[0097] The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0098] Through the detailed description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0099] Finally, it should be noted that the parameter configuration method and apparatus for a display device disclosed in the embodiments of the present invention are merely preferred embodiments of the present invention and are only used to illustrate the technical solutions of the present invention, not to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for configuring parameters of a display device, characterized in that, The method is applied to construction machinery, which is equipped with a display device, including a display screen and / or a touch screen; wherein, the method includes: According to the received display configuration instruction, based on a preset data structure, the set of device parameters corresponding to the display device is written into the first storage area corresponding to the preset physical address; wherein, the set of device parameters includes multiple device parameters, and all the device parameters include one or more of device identification parameters, display orientation parameters, and backlight parameters; the first storage area corresponding to the preset physical address is a storage area in a non-volatile storage medium that matches the display device; When entering the initialization phase corresponding to the display device, the device parameter set is read from the first storage area corresponding to the preset physical address; Based on the set of device parameters, determine a set of display configuration parameters that match the device parameters; Based on the set of display configuration parameters, modify the device tree file to obtain the target device tree file; The target device tree file is loaded to drive the display device to perform initialization operations and obtain a display interface corresponding to the set of display configuration parameters.

2. The parameter configuration method for a display device according to claim 1, characterized in that, Before writing the set of device parameters corresponding to the display device into the first storage area corresponding to the preset physical address based on the received display configuration instruction and a preset data structure, the method further includes: Based on the determined command receiving method, the display configuration command for the display device input by the user is received; The command receiving method includes one or more of the following: serial port debugging method, network transmission method, and local command line configuration method.

3. The parameter configuration method for a display device according to claim 2, characterized in that, The step of writing the set of device parameters corresponding to the display device into the first storage area corresponding to the preset physical address according to the received display configuration instruction and based on the preset data structure includes: The display configuration instructions are parsed to obtain the device parameter set of the display device; Based on a preset data structure, a parameter packaging operation is performed on the device parameter set to obtain a device parameter data package; The device parameter data packet is written to the first storage area corresponding to the preset physical address.

4. The parameter configuration method for a display device according to claim 3, characterized in that, The step of performing a parameter packaging operation on the device parameter set based on a preset data structure to obtain a device parameter data package includes: For each device parameter, the parameter identifier, preset assignment symbol, parameter value, and preset end symbol of the device parameter are combined to obtain the parameter field corresponding to the device parameter; Based on a pre-defined parameter arrangement order, the parameter fields corresponding to all the device parameters and the preset data packet end identifier are combined to obtain a device parameter data packet.

5. The parameter configuration method for a display device according to any one of claims 1-4, characterized in that, The step of determining a set of display configuration parameters that match the device parameters based on the device parameter set includes: Based on the device identifier parameter in the device parameter set, a screen parameter set corresponding to the device identifier parameter is retrieved from the second storage area; wherein, the screen parameter set includes one or more combinations of resolution parameters, timing parameters, and interface parameters; and / or, Based on the display orientation parameters in the device parameter set, determine the orientation adjustment parameters and / or touch driving parameters corresponding to the display device; wherein, the orientation adjustment parameters include rotation angle parameters, and the touch driving parameters include touch size parameters and / or coordinate mapping parameters; and / or, Based on the backlight parameters in the device parameter set, the backlight control parameters corresponding to the display device are determined; wherein, the backlight control parameters include backlight brightness control parameters; The display configuration parameter set includes one or more of the screen parameter set, the orientation adjustment parameters, and the backlight control parameters.

6. The parameter configuration method for a display device according to claim 5, characterized in that, The step of modifying the device tree file according to the set of display configuration parameters to obtain the target device tree file includes: Locate the display controller node in the device tree file and write the screen parameter set into the display controller node; and / or, Locate the display attribute node in the device tree file and write the rotation angle parameter to the display controller node; and / or, Locate the backlight control node in the device tree file and write the backlight control parameters into the backlight control node; and / or, Locate the touch controller node in the device tree file and write the touch driver parameters into the touch controller node; The target device tree file includes at least one node written to the display configuration parameter set, and all the nodes include at least one of the display controller node, the backlight control node, and the touch controller node.

7. The parameter configuration method for the display device according to any one of claims 1, 2, 3, 4, and 6, characterized in that, Before loading the target device tree file to drive the display device to perform initialization operations and obtain a display interface corresponding to the display configuration parameter set, the method further includes: Transfer the target device tree file to the kernel; The step of loading the target device tree file to drive the display device to perform initialization operations and obtain a display interface corresponding to the display configuration parameter set includes: Load the target device tree file to start the kernel; After the kernel starts, the device driver corresponding to the display device is loaded according to the target device tree file; wherein, the device driver includes a display driver and / or a touch driver; Based on the device driver, the display device is driven to perform initialization operations to obtain a display interface corresponding to the set of display configuration parameters.

8. A parameter configuration device for a display device, characterized in that, The device is used in construction machinery, which is equipped with a display device, including a display screen and / or a touch screen; wherein, the device includes: The data writing module is used to write the set of device parameters corresponding to the display device into a first storage area corresponding to a preset physical address based on a preset data structure, according to the received display configuration instruction; wherein, the set of device parameters includes multiple device parameters, and all the device parameters include one or more of device identification parameters, display orientation parameters, and backlight parameters; the first storage area corresponding to the preset physical address is a storage area in a non-volatile storage medium that matches the display device; The data reading module is used to read the device parameter set from the first storage area corresponding to the preset physical address when entering the initialization phase corresponding to the display device; The determining module is used to determine a set of display configuration parameters that match the device parameters based on the set of device parameters; The modification module is used to modify the device tree file according to the set of display configuration parameters to obtain the target device tree file; The loading module is used to load the target device tree file to drive the display device to perform initialization operations and obtain a display interface corresponding to the display configuration parameter set.

9. A parameter configuration device for a display device, characterized in that, The device includes: Memory containing executable program code; A processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the parameter configuration method of the display device as described in any one of claims 1-7.

10. A computer storage medium, characterized in that, The computer storage medium stores computer instructions, which, when invoked, are used to execute the parameter configuration method of the display device as described in any one of claims 1-7.