Display interface configuration method, device and system
By parsing the parameter structure frame of the main control board, establishing a parameter index table, and generating UI controls, a universal configuration of the human-computer interaction screen across different models was achieved, solving the problem of hardware and software coupling, reducing development costs, and improving scalability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-01
- Publication Date
- 2026-04-10
AI Technical Summary
In the existing technology, human-computer interaction screens (HMI screens) are difficult to reuse across different models, resulting in a high degree of coupling between screen hardware and software, making it impossible to achieve "plug and play", with high development costs and insufficient scalability, and unable to adapt to product iteration or new function requirements.
By acquiring the parameter structure frame sent by the main control board, parsing the target parameter ID, establishing a parameter index table, generating UI controls corresponding to different interface categories, and loading UI controls and updating parameter values according to the interface category, the main control board and the display board dynamically interact based on the parameter configuration table to achieve a universal display interface configuration.
It achieves a universal configuration of the display interface across different models, reduces development costs, improves screen reusability and scalability, and adapts to product iteration and new feature requirements.
Smart Images

Figure CN121832932A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of intelligent display technology, and in particular to a display interface configuration method, apparatus, system, computer equipment, storage medium, and computer program product. Background Technology
[0002] In products such as air conditioning units, home appliances, and industrial control equipment, human-machine interface (HMI) screens are key interfaces for user operation and equipment status feedback. Their functions and displayed content are closely dependent on the equipment control parameters. Currently, mainstream products generally adopt a customized design model of "one machine, one screen," with each model equipped with independent screen display programs, UI layouts, and communication protocols. This results in a high degree of coupling between screen hardware and software, making it difficult to reuse screens across different models.
[0003] Although different products within the same product category (such as inverter air conditioners) may have highly consistent control parameters in terms of quantity and attributes. For example, in a certain brand's air conditioner series, multiple models share a large number of core control parameters, and most parameters have the same or highly similar characteristics in terms of naming and value range.
[0004] However, existing technologies lack a systematic solution for screen universality. Some solutions that rely on communication protocols to exchange data between the screen and the main control board are mostly statically configured with fixed parameter structures, making them unable to adapt to product iterations or new functionalities. Once the main control board's parameter structure changes, existing solutions require redeveloping the screen program, failing to achieve a "plug-and-play" universal effect. This results in poor screen reusability, high development costs, and severely insufficient scalability, making it difficult to meet the needs of continuous product development. Summary of the Invention
[0005] Therefore, it is necessary to provide a universal and effective display interface configuration method, apparatus, system, computer equipment, computer-readable storage medium, and computer program product to address the aforementioned technical problems.
[0006] Firstly, this application provides a display interface configuration method. Applied to a display panel, the method includes:
[0007] Obtain the parameter structure frame sent by the main control board; the parameter structure frame is generated by the main control board based on the parameter metadata structure and the parameter configuration table of the current device; the parameter metadata structure is constructed based on a unified set of parameter attribute fields;
[0008] The parameter structure frame is parsed to identify the target parameter IDs supported by the current device, and a parameter index table is built according to the order of the target parameter IDs;
[0009] Request target attribute information corresponding to target parameter ID from the main control board, group the target parameter IDs according to their respective interface categories, and generate UI controls corresponding to different interface categories based on the parameter index table and target attribute information;
[0010] Identify the current interface category, load the corresponding UI controls according to the current interface category, and send the parameter value update request corresponding to the current interface category to the main control board;
[0011] Update the loaded UI controls based on the parameter values returned by the main control board.
[0012] In one embodiment, identifying the current interface category, loading the corresponding UI control according to the current interface category, and sending a parameter value update request corresponding to the current interface category to the main control board includes:
[0013] If the current interface category is the main interface, then load the UI controls corresponding to the main interface.
[0014] Send the key parameter frame corresponding to the main interface to the main control board to request the main control board to return the parameter value corresponding to the key parameter.
[0015] In one embodiment, identifying the current interface category, loading the corresponding UI control according to the current interface category, and sending a parameter value update request corresponding to the current interface category to the main control board includes:
[0016] If the current interface category is settings / debugging interface, then load the UI controls corresponding to the settings / debugging interface;
[0017] Send a full parameter request frame corresponding to the settings / debugging interface to the main control board to request the main control board to return the parameter values corresponding to all target parameters.
[0018] In one embodiment, after identifying the current interface category, loading the corresponding UI control according to the current interface category, and sending a parameter value update request corresponding to the current interface category to the main control board, the method further includes:
[0019] In response to parameter modification operations, a parameter modification frame is generated and sent to the main control board;
[0020] If no confirmation frame is received from the main control board after the preset time, the parameter modification frame will be automatically resent.
[0021] In one embodiment, parsing the parameter structure frame to identify the target parameter IDs supported by the current device, and establishing a parameter index table according to the order of the target parameter IDs, includes:
[0022] Parse the parameter structure frame and extract the bitmap carried in the parameter structure frame. Each bit in the bitmap corresponds to a different parameter ID.
[0023] Identify the target parameter IDs supported by the current device based on the bitmap, and obtain the parameter ID set;
[0024] Establish a parameter index table based on the order of the target parameter IDs in the parameter ID set.
[0025] Secondly, this application also provides a display interface configuration method. Applied to a main control board, the method includes:
[0026] Obtain a unified set of parameter attribute fields, and construct an extensible parameter metadata structure based on the set of parameter attribute fields;
[0027] Based on the parameter metadata structure and the parameter configuration table of the current device, a parameter structure frame is generated and sent to the display panel;
[0028] The system receives the target parameter ID sent by the display panel in the parameter structure frame parsing process, queries the target attribute information corresponding to the target parameter ID, and sends the target attribute information to the display panel. The display panel then groups the target parameter IDs according to their respective interface categories and generates UI controls corresponding to different interface categories based on the parameter index table and the target attribute information. The parameter index table is constructed according to the order of the target parameter IDs.
[0029] Receive parameter value update requests from the display panel for different interface categories, and return the corresponding parameter values to the display panel; the display panel then updates the loaded UI controls based on the parameter values returned by the main control board.
[0030] In one embodiment, after receiving parameter value update requests corresponding to different interface categories of the display panel and returning the parameter values corresponding to the parameter value update requests to the display panel, the method further includes:
[0031] In response to the addition of a parameter operation, identify the parameter ID range corresponding to the added parameter;
[0032] If the parameter ID range is within the reserved range of the bitmap in the parameter structure frame, the new parameter will be filled into the bitmap in the parameter structure frame to generate a new parameter structure frame.
[0033] When the power-on status of the display board is detected, a new parameter structure frame is sent to the display board, and the step of receiving the target parameter ID sent by the display board after parsing the parameter structure frame is returned.
[0034] Thirdly, this application also provides a display interface configuration device. Applied to a display panel, the device includes:
[0035] The parameter structure frame acquisition module is used to acquire the parameter structure frame sent by the main control board. The parameter structure frame is generated by the main control board based on the parameter metadata structure and the parameter configuration table of the current device. The parameter metadata structure is constructed based on a unified set of parameter attribute fields.
[0036] The parsing module is used to parse the parameter structure frame to identify the target parameter IDs supported by the current device, and to build a parameter index table according to the order of the target parameter IDs;
[0037] The UI control generation module is used to request target attribute information corresponding to target parameter ID from the main control board, group the target parameter ID according to the interface category, and generate UI controls corresponding to different interface categories based on the parameter index table and target attribute information.
[0038] The update request module is used to identify the current interface category, load the corresponding UI controls according to the current interface category, and send the parameter value update request corresponding to the current interface category to the main control board.
[0039] The control update module is used to update the loaded UI controls based on the parameter values returned by the main control board.
[0040] Fourthly, this application also provides a display interface configuration device. Applied to a main control board, the device includes:
[0041] The data acquisition module is used to acquire a unified set of parameter attribute fields and construct an extensible parameter metadata structure based on the set of parameter attribute fields.
[0042] The first sending module is used to generate a parameter structure frame based on the parameter metadata structure and the parameter configuration table of the current device, and send the parameter structure frame to the display panel.
[0043] The query module receives the target parameter ID sent by the display panel in the parameter structure frame parsing, queries the target attribute information corresponding to the target parameter ID, and sends the target attribute information to the display panel. The display panel groups the target parameter IDs according to their respective interface categories and generates UI controls corresponding to different interface categories based on the parameter index table and the target attribute information. The parameter index table is constructed according to the order of the target parameter IDs.
[0044] The second sending module is used to receive parameter value update requests corresponding to different interface categories of the display panel, return the parameter value corresponding to the parameter value update request to the display panel, and update the UI controls that have been loaded according to the current interface category of the display panel.
[0045] Sixthly, this application also provides a display interface configuration system, the system including a main control board and a display board;
[0046] The main control board acquires a unified set of parameter attribute fields and constructs an extensible parameter metadata structure based on this set. It then generates a parameter structure frame based on the parameter metadata structure and the current device's parameter configuration table, and sends the frame to the display board. The display board parses the parameter structure frame to identify the target parameter IDs supported by the current device, establishes a parameter index table based on the order of the target parameter IDs, and sends the target parameter IDs to the main control board. The main control board queries the target attribute information corresponding to the target parameter ID and sends this information to the display board. The display board groups the target parameter IDs according to their respective interface categories and generates UI controls corresponding to different interface categories based on the parameter index table and target attribute information. It identifies the current interface category, loads the corresponding UI controls, and sends a parameter value update request for the current interface category to the main control board. The main control board receives parameter value update requests from the display board for different interface categories and returns the corresponding parameter values to the display board. The display board updates the loaded UI controls based on the returned parameter values.
[0047] Seventhly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:
[0048] Obtain the parameter structure frame sent by the main control board; the parameter structure frame is generated by the main control board based on the parameter metadata structure and the parameter configuration table of the current device; the parameter metadata structure is constructed based on a unified set of parameter attribute fields;
[0049] The parameter structure frame is parsed to identify the target parameter IDs supported by the current device, and a parameter index table is built according to the order of the target parameter IDs;
[0050] Request target attribute information corresponding to target parameter ID from the main control board, group the target parameter IDs according to their respective interface categories, and generate UI controls corresponding to different interface categories based on the parameter index table and target attribute information;
[0051] Identify the current interface category, load the corresponding UI controls according to the current interface category, and send the parameter value update request corresponding to the current interface category to the main control board;
[0052] Update the loaded UI controls based on the parameter values returned by the main control board.
[0053] In one embodiment, identifying the current interface category, loading the corresponding UI control according to the current interface category, and sending a parameter value update request corresponding to the current interface category to the main control board includes:
[0054] If the current interface category is the main interface, then load the UI controls corresponding to the main interface.
[0055] Send the key parameter frame corresponding to the main interface to the main control board to request the main control board to return the parameter value corresponding to the key parameter.
[0056] Eighthly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:
[0057] Obtain a unified set of parameter attribute fields, and construct an extensible parameter metadata structure based on the set of parameter attribute fields;
[0058] Based on the parameter metadata structure and the parameter configuration table of the current device, a parameter structure frame is generated and sent to the display panel;
[0059] The system receives the target parameter ID sent by the display panel in the parameter structure frame parsing process, queries the target attribute information corresponding to the target parameter ID, and sends the target attribute information to the display panel. The display panel then groups the target parameter IDs according to their respective interface categories and generates UI controls corresponding to different interface categories based on the parameter index table and the target attribute information. The parameter index table is constructed according to the order of the target parameter IDs.
[0060] Receive parameter value update requests from the display panel for different interface categories, and return the corresponding parameter values to the display panel; the display panel then updates the loaded UI controls based on the parameter values returned by the main control board.
[0061] Ninthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:
[0062] Obtain the parameter structure frame sent by the main control board; the parameter structure frame is generated by the main control board based on the parameter metadata structure and the parameter configuration table of the current device; the parameter metadata structure is constructed based on a unified set of parameter attribute fields;
[0063] The parameter structure frame is parsed to identify the target parameter IDs supported by the current device, and a parameter index table is built according to the order of the target parameter IDs;
[0064] Request target attribute information corresponding to target parameter ID from the main control board, group the target parameter IDs according to their respective interface categories, and generate UI controls corresponding to different interface categories based on the parameter index table and target attribute information;
[0065] Identify the current interface category, load the corresponding UI controls according to the current interface category, and send the parameter value update request corresponding to the current interface category to the main control board;
[0066] Update the loaded UI controls based on the parameter values returned by the main control board.
[0067] In one embodiment, identifying the current interface category, loading the corresponding UI control according to the current interface category, and sending a parameter value update request corresponding to the current interface category to the main control board includes:
[0068] If the current interface category is the main interface, then load the UI controls corresponding to the main interface.
[0069] Send the key parameter frame corresponding to the main interface to the main control board to request the main control board to return the parameter value corresponding to the key parameter.
[0070] Tenthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:
[0071] Obtain a unified set of parameter attribute fields, and construct an extensible parameter metadata structure based on the set of parameter attribute fields;
[0072] Based on the parameter metadata structure and the parameter configuration table of the current device, a parameter structure frame is generated and sent to the display panel;
[0073] The system receives the target parameter ID sent by the display panel in the parameter structure frame parsing process, queries the target attribute information corresponding to the target parameter ID, and sends the target attribute information to the display panel. The display panel then groups the target parameter IDs according to their respective interface categories and generates UI controls corresponding to different interface categories based on the parameter index table and the target attribute information. The parameter index table is constructed according to the order of the target parameter IDs.
[0074] Receive parameter value update requests from the display panel for different interface categories, and return the corresponding parameter values to the display panel; the display panel then updates the loaded UI controls based on the parameter values returned by the main control board.
[0075] Eleventhly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:
[0076] Obtain the parameter structure frame sent by the main control board; the parameter structure frame is generated by the main control board based on the parameter metadata structure and the parameter configuration table of the current device; the parameter metadata structure is constructed based on a unified set of parameter attribute fields;
[0077] The parameter structure frame is parsed to identify the target parameter IDs supported by the current device, and a parameter index table is built according to the order of the target parameter IDs;
[0078] Request target attribute information corresponding to target parameter ID from the main control board, group the target parameter IDs according to their respective interface categories, and generate UI controls corresponding to different interface categories based on the parameter index table and target attribute information;
[0079] Identify the current interface category, load the corresponding UI controls according to the current interface category, and send the parameter value update request corresponding to the current interface category to the main control board;
[0080] Update the loaded UI controls based on the parameter values returned by the main control board.
[0081] In one embodiment, identifying the current interface category, loading the corresponding UI control according to the current interface category, and sending a parameter value update request corresponding to the current interface category to the main control board includes:
[0082] If the current interface category is the main interface, then load the UI controls corresponding to the main interface.
[0083] Send the key parameter frame corresponding to the main interface to the main control board to request the main control board to return the parameter value corresponding to the key parameter.
[0084] In a twelfth aspect, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:
[0085] Obtain a unified set of parameter attribute fields, and construct an extensible parameter metadata structure based on the set of parameter attribute fields;
[0086] Based on the parameter metadata structure and the parameter configuration table of the current device, a parameter structure frame is generated and sent to the display panel;
[0087] The system receives the target parameter ID sent by the display panel in the parameter structure frame parsing process, queries the target attribute information corresponding to the target parameter ID, and sends the target attribute information to the display panel. The display panel then groups the target parameter IDs according to their respective interface categories and generates UI controls corresponding to different interface categories based on the parameter index table and the target attribute information. The parameter index table is constructed according to the order of the target parameter IDs.
[0088] Receive parameter value update requests from the display panel for different interface categories, and return the corresponding parameter values to the display panel; the display panel then updates the loaded UI controls based on the parameter values returned by the main control board.
[0089] The aforementioned display interface configuration method, device, system, computer equipment, storage medium, and computer program product involve the main control board acquiring a unified set of parameter attribute fields and constructing an extensible parameter metadata structure based on this set. Based on the parameter metadata structure and the current device's parameter configuration table, a parameter structure frame is generated and sent to the display board. The display board parses the parameter structure frame to identify the target parameter IDs supported by the current device and establishes a parameter index table according to the order of the target parameter IDs, sending the target parameter IDs to the main control board. The main control board queries the target attribute information corresponding to the target parameter ID and sends this target attribute information to the display board. The display board groups the target parameter IDs according to their respective interface categories and generates UI controls corresponding to different interface categories based on the parameter index table and target attribute information. It identifies the current interface category, loads the corresponding UI controls based on the current interface category, and sends a parameter value update request corresponding to the current interface category to the main control board. The main control board receives the parameter value update requests from the display board for different interface categories and returns the parameter values corresponding to the update requests to the display board. The display board updates the loaded UI controls based on the returned parameter values. Throughout the process, the parameters interacting between the main control board and the display board are dynamically adjusted based on the current device's parameter configuration table. Furthermore, UI controls can be loaded and parameter values updated based on the current interface category of the display board, enabling a universal display interface configuration. Attached Figure Description
[0090] Figure 1 This is an application environment diagram of a display interface configuration method in one embodiment;
[0091] Figure 2 This is a flowchart illustrating a display interface configuration method in one embodiment;
[0092] Figure 3 This is a flowchart illustrating the display interface configuration method in another embodiment;
[0093] Figure 4 A schematic diagram of the main interface, settings interface, and status query interface;
[0094] Figure 5 This is a flowchart illustrating the display interface configuration method in yet another embodiment;
[0095] Figure 6 This is a structural block diagram of a display interface configuration device in one embodiment;
[0096] Figure 7 This is a structural block diagram of the display interface configuration device in another embodiment;
[0097] Figure 8 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0098] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0099] The display interface configuration method provided in this application embodiment can be applied to, for example, Figure 1 In the application environment shown, the main control board 102 communicates with the display board 104. The main control board 102 and the display board 104 are connected via a serial communication interface (such as UART, I2C, CAN, or RS485), using a frame structure design and supporting master-slave mode. During display interface configuration, the main control board 102 obtains a unified set of parameter attribute fields, constructs an extensible parameter metadata structure based on this set, generates a parameter structure frame based on the parameter metadata structure and the current device's parameter configuration table, and sends the parameter structure frame to the display board 104. The display board 104 parses the parameter structure frame to identify the target parameter IDs supported by the current device, establishes a parameter index table according to the order of the target parameter IDs, and sends the target parameter IDs to the main control board 102. The main control board 102 queries the target attribute information corresponding to the target parameter ID and sends the target attribute information to the display board 104. Display board 104 groups the target parameter IDs according to their respective interface categories and generates UI controls corresponding to different interface categories based on the parameter index table and target attribute information; it identifies the current interface category, loads the corresponding UI controls according to the current interface category, and sends a parameter value update request corresponding to the current interface category to the main control board 102; the main control board 102 receives the parameter value update requests corresponding to different interface categories from the display board 104 and returns the parameter values corresponding to the parameter value update requests to the display board 104; the display board 104 updates the loaded UI controls according to the returned parameter values.
[0100] In one embodiment, such as Figure 2 As shown, a display interface configuration method is provided, which can be applied to... Figure 1 Taking display panel 104 as an example, the explanation includes the following steps:
[0101] S210: Obtain the parameter structure frame sent by the main control board; the parameter structure frame is generated by the main control board based on the parameter metadata structure and the parameter configuration table of the current device; the parameter metadata structure is constructed based on a unified set of parameter attribute fields.
[0102] The main control board first acquires a unified set of parameter attribute fields. These predefined fields cover common attributes shared by various device parameters, such as parameter name, parameter type, and parameter value range. Based on this unified set, the main control board constructs an extensible parameter metadata structure. This extensibility means the structure can easily adapt to changes in parameters, such as additions, modifications, or deletions, across different devices and application scenarios. Next, the main control board generates a parameter structure frame based on the constructed parameter metadata structure and the current device's parameter configuration table. The parameter configuration table records the actual parameter information configured on the current device. By combining this table with the parameter metadata structure, the parameters currently supported by the device can be accurately encapsulated in a specific format within the parameter structure frame. Finally, the main control board sends the generated parameter structure frame to the display board.
[0103] S220: Parse the parameter structure frame to identify the target parameter IDs supported by the current device, and establish a parameter index table according to the order of the target parameter IDs.
[0104] After receiving the parameter structure frame from the main control board, the display board parses it. During parsing, the display board extracts the target parameter IDs supported by the current device from the parameter structure frame. Each target parameter ID is a unique identifier; by recognizing these IDs, the display board can determine which parameters the device specifically supports. Subsequently, the display board builds a parameter index table based on the order of the target parameter IDs. The parameter index table is a data structure that arranges and records the target parameter IDs in a specific order, facilitating quick parameter lookup and location later.
[0105] S230: Request the target attribute information corresponding to the target parameter ID from the main control board, group the target parameter IDs according to their respective interface categories, and generate UI controls corresponding to different interface categories based on the parameter index table and the target attribute information.
[0106] After establishing the parameter index table, the display board sends a request to the main control board to retrieve the target attribute information corresponding to the target parameter ID. Upon receiving this request, the main control board queries the database or other storage medium for the target attribute information corresponding to the target parameter ID and sends this information back to the display board. The target attribute information contains detailed characteristics of the parameter, such as its display format, value range, and unit; this information is crucial for correctly generating UI controls. More specifically, the display board requests the corresponding parameter's attribute information from the main control board based on the target parameter ID and through a parameter query frame; the main control board returns an attribute package containing fields such as parameter name, data type, unit, range, precision, display format, and whether it is adjustable.
[0107] After obtaining the target attribute information, the display panel groups the target parameter IDs according to their respective interface categories. Different parameters may belong to different interface categories, which can specifically include the main interface, settings interface, debug interface, etc. Finally, the display panel generates UI controls corresponding to different interface categories based on the parameter index table and the target attribute information. The parameter index table provides the order and location information of the parameters, while the target attribute information determines the specific style and function of the UI controls.
[0108] S240: Identify the current interface category, load the corresponding UI controls according to the current interface category, and send the parameter value update request corresponding to the current interface category to the main control board.
[0109] The display panel needs to identify the current interface category. This can be achieved through user interaction triggering interface switching or by automatically determining the category based on pre-defined system logic. For example, if a user clicks the main interface button, the display panel will identify that it is currently in the main interface category. After identifying the current interface category, the display panel loads the corresponding UI controls based on that category. These UI controls are generated in step S230. Through the loading operation, the corresponding UI controls are displayed on the interface, providing the user with a visual operating interface. Simultaneously, the display panel sends a parameter value update request corresponding to the current interface category to the main control board. The parameter value update request is used to inform the main control board of the parameter information that needs to be updated or retrieved on the current interface, so that the main control board can promptly return the latest parameter values.
[0110] S250: Update the loaded UI controls based on the parameter values returned by the main control board.
[0111] After receiving a parameter value update request from the display board, the main control board queries the actual value of the corresponding parameter for the current device based on the request and returns these values to the display board. Upon receiving the parameter values returned by the main control board, the display board updates the loaded UI controls accordingly. For example, if a parameter value changes, the display board will update the content displayed on the corresponding UI control to match the actual parameter value.
[0112] Correspondingly, in one embodiment, such as Figure 3 As shown, this application also provides a display interface configuration method. Applied to the main control board 102, the method includes:
[0113] S310: Obtain a unified set of parameter attribute fields and construct an extensible parameter metadata structure based on the set of parameter attribute fields.
[0114] The main control board first obtains a unified set of parameter attribute fields based on the parameter attribute standardization protocol. This field set covers rich and comprehensive parameter attribute information, specifically including parameter coordinates (i.e., parameter ID, used to uniquely identify each parameter), parameter name, data type (such as integer, floating-point, string, etc., specifying the data storage format of the parameter), display format (such as temperature, wind speed, mode, etc., determining the display format of the parameter on the interface), unit (such as degrees Celsius, meters per second, etc., providing a dimensional description of the parameter value), value range (limiting the reasonable value range of the parameter), precision (specifying the accuracy of the parameter value), step size (the minimum change in parameter value adjustment), adjustability (indicating whether the parameter allows user modification), display priority (determining the priority order of parameter display on the interface), and the interface category (such as main interface, settings interface, debugging interface, etc., used to reasonably classify parameters into different interfaces). Here, based on these unified parameter attribute field sets, the main control board constructs an extensible parameter metadata structure. This extensibility allows the parameter metadata structure to flexibly adapt to the dynamic changes of parameters under different devices and application scenarios.
[0115] S320: Generates a parameter structure frame based on the parameter metadata structure and the parameter configuration table of the current device, and sends the parameter structure frame to the display panel.
[0116] During the device power-on initialization phase, the main control board generates a parameter structure frame based on the constructed parameter metadata structure and the current device's parameter configuration table. The parameter configuration table records the actual parameter information configured in the current device. By combining this with the parameter metadata structure, the main control board can accurately encapsulate the parameter information currently supported by the device into the parameter structure frame according to the format specified in the parameter attribute standardization protocol. To enable automatic recognition of the parameter structure by the screen, the main control board employs a dynamic parameter structure negotiation mechanism. Specifically, it can use a "bitmap" format to indicate the existence of parameters in the parameter structure frame; a value of 1 indicates the parameter exists, and a value of 0 indicates the parameter is missing. After generating the parameter structure frame, the main control board sends it to the display board via a communication link. This step conveys complete parameter information supported by the current device to the display board, enabling the display board to perform subsequent parameter recognition and interface configuration operations.
[0117] S330: Receives the target parameter ID sent by the display panel in the parameter structure frame parsing, queries the target attribute information corresponding to the target parameter ID, and sends the target attribute information to the display panel; the display panel groups the target parameter IDs according to their respective interface categories, and generates UI controls corresponding to different interface categories based on the parameter index table and the target attribute information.
[0118] After receiving the parameter structure frame from the main control board, the display board parses it to identify the target parameter IDs supported by the current device and sends these target parameter IDs back to the main control board. Upon receiving the target parameter IDs, the main control board queries the corresponding target attribute information based on pre-stored parameter information, including detailed parameter attributes such as display format, unit, and value range. Subsequently, the main control board sends this target attribute information back to the display board. After obtaining the target attribute information, the display board groups the target parameter IDs according to the parameter's coordinate order in the protocol and its corresponding interface category (e.g., main interface, settings interface, debug interface). This grouping method, based on the inherent attributes of the parameters and the interface display requirements, allows parameters to be appropriately assigned to different interface categories. Simultaneously, the display board generates UI controls corresponding to different interface categories based on a pre-established parameter index table (built by the display board after parsing the parameter structure frame according to the order of the target parameter IDs, used for quick parameter lookup and location) and the target attribute information. For example, for a temperature parameter belonging to the "main interface," a UI control with prompts for the temperature display format, unit, and appropriate value range is generated based on its target attribute information. The purpose of this step is to generate appropriate interface elements for different interface categories, providing users with an intuitive and easy-to-use interactive interface.
[0119] S340: Receives parameter value update requests from the display panel for different interface categories, and returns the parameter values corresponding to the parameter value update requests to the display panel; the display panel updates the loaded UI controls based on the parameter values returned by the main control board.
[0120] Upon user interaction or system logic triggering, the display panel identifies the current interface category and loads the corresponding UI controls accordingly. Simultaneously, to ensure consistency between the displayed parameter values and the actual device parameters, the display panel sends parameter value update requests corresponding to the current interface category to the main control board. The main control board employs a layered data communication strategy to handle these update requests. For the main interface, only critical parameters (such as power on / off and temperature settings) are transmitted to reduce communication volume and improve efficiency. When entering advanced interfaces (such as settings or debugging interfaces), the main control board proactively uploads all parameters to ensure display consistency. Upon receiving the parameter update request from the display panel, the main control board queries the actual values of the corresponding parameters based on the request and returns these values to the display panel. After receiving the returned parameter values from the main control board, the display panel updates the loaded UI controls accordingly. For example, if a parameter value changes, the display panel updates the content displayed on the corresponding UI controls to match the actual parameter value.
[0121] The above-described display interface configuration method involves the main control board acquiring a unified set of parameter attribute fields and constructing an extensible parameter metadata structure based on this set. Based on the parameter metadata structure and the current device's parameter configuration table, a parameter structure frame is generated and sent to the display board. The display board parses the parameter structure frame to identify the target parameter IDs supported by the current device and establishes a parameter index table according to the order of the target parameter IDs, sending the target parameter IDs to the main control board. The main control board queries the target attribute information corresponding to the target parameter ID and sends this target attribute information to the display board. The display board groups the target parameter IDs according to their respective interface categories and generates UI controls corresponding to different interface categories based on the parameter index table and target attribute information. It identifies the current interface category, loads the corresponding UI controls based on the current interface category, and sends a parameter value update request corresponding to the current interface category to the main control board. The main control board receives the parameter value update requests from the display board for different interface categories and returns the parameter values corresponding to the update requests to the display board. The display board updates the loaded UI controls based on the returned parameter values. Throughout the process, the parameters interacting between the main control board and the display board are dynamically adjusted based on the current device's parameter configuration table. Furthermore, UI controls can be loaded and parameter values updated based on the current interface category of the display board, enabling a universal display interface configuration.
[0122] In one embodiment, identifying the current interface category, loading the corresponding UI control according to the current interface category, and sending a parameter value update request corresponding to the current interface category to the main control board includes:
[0123] Step 1: If the current interface category is the main interface, then load the UI controls corresponding to the main interface.
[0124] During operation, the display panel continuously monitors the current interface category. When it determines that the current interface category is the main interface, the display panel loads the corresponding UI controls from the locally stored UI resource library based on the pre-set main interface UI configuration information. These UI controls are specifically designed for the main interface, and their layout, style, and the types of parameters they display are all matched to the main interface's functionality and display requirements. For example, the main interface's UI controls may include a power button, a temperature display box, and a fan speed indicator.
[0125] Step 2: Send the key parameter frame corresponding to the main interface to the main control board to request the main control board to return the parameter value corresponding to the key parameter.
[0126] After successfully loading the UI controls corresponding to the main interface, the display board determines the key parameters that need to be acquired based on the display and interaction requirements of the main interface. These key parameters are important parameters that need to be displayed on the main interface and may be operated by the user, such as power on / off status, set temperature, and fan speed. The display board encapsulates these key parameters into key parameter frames according to a pre-agreed communication protocol and frame format. The key parameter frames clearly identify the identification information of each key parameter (such as parameter ID) so that the main control board can accurately identify it. Subsequently, the display board sends the encapsulated key parameter frames to the main control board through the established communication link. After receiving the key parameter frames, the main control board queries its own parameter storage area for the current actual value of the corresponding key parameter based on the key parameter identification information in the frame. After the query is completed, the main control board organizes the parameter values of these key parameters in a certain format and returns them to the display board.
[0127] Specifically, after receiving the key parameter values returned by the main control board, the display board caches these values locally and updates the display content of the loaded UI controls accordingly. For example, it updates the temperature display box with the obtained current temperature setting value and updates the fan speed indicator bar with the fan speed parameter value. In this way, the display board only receives key parameter frame information sent by the main control board on the main interface, without frequently communicating with the main control board for all parameters. This effectively reduces communication volume, improves system operating efficiency and response speed, and ensures that the key parameter information displayed on the main interface is consistent with the actual status of the device, providing users with an accurate and reliable operation and display interface.
[0128] In one embodiment, identifying the current interface category, loading the corresponding UI control according to the current interface category, and sending a parameter value update request corresponding to the current interface category to the main control board includes:
[0129] Step 1: If the current interface category is settings / debugging interface, then load the UI controls corresponding to the settings / debugging interface.
[0130] During operation, the display panel has the ability to monitor the current interface category in real time. When a user operation is detected that switches the current interface to the settings or debugging interface, the display panel will search for and load the UI controls that match the settings / debugging interface from the locally stored UI resource library according to pre-set rules and configuration information. The UI controls of the settings / debugging interface differ from those of the main interface and other interfaces; it typically contains more elements for parameter settings and device debugging. For example, the settings interface may have various parameter input boxes, drop-down menus, sliders, etc., for users to set various parameters of the device in detail; the debugging interface may have text boxes for displaying internal device status information, buttons for triggering debugging functions, etc. The layout and design of these UI controls are all designed to meet the specific functional requirements of the settings and debugging interfaces, providing users with an intuitive and convenient operating environment.
[0131] Step 2: Send a full parameter request frame corresponding to the settings / debugging interface to the main control board to request the main control board to return the parameter values corresponding to all target parameters.
[0132] After successfully loading the UI controls corresponding to the settings / debugging interface, the display board, in order to accurately display the current values of various device parameters on the interface so that users can perform settings or debugging operations based on these actual values, determines all target parameters that need to be obtained according to the requirements of the settings / debugging interface. These target parameters cover parameter information for all aspects of the device that can be set or debugged under this interface. The display board encapsulates the request information of all these target parameters into a full parameter request frame according to a pre-agreed communication protocol and frame format. The full parameter request frame clearly identifies the identification information of each target parameter (such as parameter ID) so that the main control board can accurately identify it. Subsequently, the display board sends the encapsulated full parameter request frame to the main control board through the communication link established with the main control board. After receiving the full parameter request frame, the main control board responds to the request, queries the current actual values of all target parameters from its own parameter storage area, organizes these parameter values in a certain format, and sends them back to the display board. After receiving all the target parameter values returned by the main control board, the display board synchronously updates the display content of the loaded UI controls on the settings / debugging interface according to these parameter values. For example, the actual value of a parameter is obtained and updated in the corresponding input or display box. In this way, when the user switches to the settings or debugging interface, the display panel can proactively obtain all relevant parameter values of the device and update the interface display in a timely manner, allowing the user to see the latest status of the device and thus perform accurate settings and debugging operations. In practical applications, the main interface, settings interface, and status query interface are as follows: Figure 4 As shown.
[0133] In one embodiment, after identifying the current interface category, loading the corresponding UI control according to the current interface category, and sending a parameter value update request corresponding to the current interface category to the main control board, the method further includes:
[0134] Step 1: Respond to parameter modification operations, generate a parameter modification frame, and send it to the main control board.
[0135] When the display panel is in a settings / debugging interface or other interface where parameters can be modified, the user can modify a parameter on the interface, such as by entering a new parameter value through an input box, selecting a new parameter option through a drop-down menu, or adjusting the parameter size through a slider. The display panel monitors these user operations in real time. Once a parameter modification operation is detected, the display panel will encapsulate the modified parameter information, the parameter identifier (used to uniquely identify the parameter, such as a parameter ID), and other relevant information (such as a modification timestamp) into a parameter modification frame according to pre-set rules and communication protocols.
[0136] Parameter modification frames are organized according to a specific frame format, pre-agreed upon between the display board and the main control board, to ensure the main control board can correctly parse and process the information. After encapsulation, the display board sends the parameter modification frame to the main control board through the established communication link. Upon receiving the parameter modification frame, the main control board can locate the corresponding parameter storage location based on the parameter identifier in the frame and perform a write operation, updating the user-modified parameter values to the corresponding storage area.
[0137] Step 2: If no confirmation frame is received from the main control board after the preset time, the parameter modification frame will be automatically resent.
[0138] After sending a parameter modification frame, the display board starts a timer for a preset period, waiting for an acknowledgment frame from the main control board. The acknowledgment frame is a feedback message sent by the main control board to the display board according to the communication protocol after successfully performing the parameter write operation, informing the display board that the parameter modification operation has been successfully completed. If the display board does not receive an acknowledgment frame from the main control board within the preset time, it may mean that the parameter modification frame was lost, erroneous, or that an anomaly occurred in the main control board's processing of the frame. To ensure that the parameters are reliably written to the main control board, the display board automatically retransmits the previously sent parameter modification frame. The automatic retransmission is set to twice (adjustable according to actual needs); that is, the display board will retransmit the parameter modification frame once after failing to receive an acknowledgment frame the first time, and if it still does not receive an acknowledgment frame after waiting for the preset time again, it will retransmit it once more. This automatic retransmission mechanism effectively improves the reliability of parameter modification, avoiding parameter modification failures due to communication failures or main control board processing anomalies, ensuring that user modifications to device parameters take effect accurately.
[0139] In one embodiment, such as Figure 5 As shown, parsing the parameter structure frame identifies the target parameter IDs supported by the current device, and establishes a parameter index table based on the order of the target parameter IDs, including:
[0140] S222: Parse the parameter structure frame and extract the bitmap carried in the parameter structure frame. Each bit in the bitmap corresponds to a different parameter ID.
[0141] During the device power-on initialization phase, the main control board encapsulates the parameter list information supported by the current device into a parameter structure frame according to a pre-set communication protocol and broadcasts it to the display board via the communication link. Upon receiving the parameter structure frame, the display board initiates a parsing process. During parsing, the display board extracts bitmap information from specific field positions in the parameter structure frame according to the frame format specifications defined in the communication protocol. This bitmap is a data structure used by the main control board to efficiently identify the existence of parameters. Each bit corresponds to a specific parameter ID, and this correspondence is pre-agreed upon by the main control board and the display board during the design and development phase. For example, bit 0 corresponds to parameter ID 001, bit 1 corresponds to parameter ID 002, and so on. In this way, the bitmap can carry a large amount of parameter existence information in a concise form.
[0142] S224: Identify the target parameter IDs supported by the current device based on the bitmap, and obtain the parameter ID set.
[0143] After successfully extracting the bitmap, the display panel checks each bit in the bitmap according to the correspondence between the bitmap and parameter IDs. For bits with a value of 1, the display panel identifies the corresponding parameter ID as a target parameter ID supported by the current device; for bits with a value of 0, it indicates that the corresponding parameter does not exist in the current device and is not included in the scope of target parameter ID identification. Through this bit-by-bit checking and judgment method, the display panel can accurately filter out all target parameter IDs actually supported by the current device and summarize these target parameter IDs into a parameter ID set. This parameter ID set fully reflects the parameter support capabilities of the current device, providing a clear scope for subsequent parameter management and operation.
[0144] S226: Establish a parameter index table based on the order of the target parameter IDs in the parameter ID set.
[0145] After obtaining the parameter ID set, the display panel, to facilitate quick searching, access, and management of each parameter, establishes a parameter index table based on the order of the target parameter IDs in the set. The parameter index table is a data structure that associates each target parameter ID with a unique index value. It can also record other relevant parameter information, such as the parameter name, data type, and value range (the specific information recorded can be determined according to actual needs). For example, following the order of the parameter IDs in the set, each parameter ID is assigned an index value starting from 0 and incrementing, forming a one-to-one correspondence between index values and parameter IDs. By establishing the parameter index table, when the display panel needs to operate on a parameter, it can quickly locate the corresponding parameter ID and related information simply by using the parameter's index value, thereby greatly improving the efficiency of parameter processing.
[0146] In one embodiment, after receiving parameter value update requests corresponding to different interface categories of the display panel and returning the parameter values corresponding to the parameter value update requests to the display panel, the method further includes:
[0147] Step 1: Respond to the new parameter operation and identify the parameter ID range corresponding to the new parameter.
[0148] During device operation, when the main control board needs to expand parameters (i.e., add new parameters), it will trigger a parameter addition operation. After receiving the relevant instructions or data for the new parameter, the main control board will initiate an identification process. This process will determine the parameter ID corresponding to the new parameter and further determine the range of this parameter ID. The parameter ID range is divided according to the device's pre-set parameter protocol. The protocol clearly defines the available parameter ID range, with a portion of the range reserved for possible future parameter expansion.
[0149] Step 2: If the parameter ID range is within the reserved range of the bitmap in the parameter structure frame, then the new parameter will be filled into the bitmap in the parameter structure frame to generate a new parameter structure frame.
[0150] After identifying the parameter ID range of the new parameter, the main control board compares it with the reserved range specified by the bitmap in the parameter structure frame. If the parameter ID of the new parameter is within the reserved range, it means that the new parameter meets the protocol requirements for device parameter extension. The main control board will then set the corresponding position of the new parameter in the bitmap according to the bitmap encoding rules (e.g., setting the corresponding bit to 1 to indicate the existence of the parameter). After completing the setting operation, the main control board will re-encapsulate and generate a new parameter structure frame based on the updated bitmap information. The new parameter structure frame contains information about the original parameters and the identification information of the new parameter, accurately reflecting all parameters currently supported by the device.
[0151] Step 3: When the power-on of the display board is detected, a new parameter structure frame is sent to the display board, and the steps of receiving the target parameter ID sent by the display board in parsing the parameter structure frame are returned.
[0152] The main control board continuously monitors the display board's status. When it detects that the display board is powered on, the main control board sends the previously generated new parameter structure frame to the display board through a pre-established communication link. Upon receiving the new parameter structure frame, the display board parses it according to predetermined parsing rules, extracts the bitmap information, and identifies the target parameter IDs supported by the current device based on the bitmap. This includes the parameter ID of the newly added parameter. Afterward, the system process returns to the step of receiving the target parameter IDs sent by the display board while parsing the parameter structure frame. The display board requests the corresponding parameter values from the main control board based on these target parameter IDs. After the main control board returns the parameter values, the display board further loads the attributes and UI (user interface) of the newly added parameter. If the parameter ID of the newly added parameter exceeds the reserved range defined by the protocol, the system will trigger a "protocol mismatch" alarm, prompting maintenance personnel to check and ensure system stability and compatibility.
[0153] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0154] Based on the same inventive concept, this application also provides a display interface configuration device for implementing the display interface configuration method described above. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations in one or more display interface configuration device embodiments provided below can be found in the limitations of the display interface configuration method described above, and will not be repeated here.
[0155] In one embodiment, such as Figure 6 As shown, a display interface configuration device is provided, applied to a display panel, the device comprising:
[0156] The parameter structure frame acquisition module 610 is used to acquire the parameter structure frame sent by the main control board. The parameter structure frame is generated by the main control board based on the parameter metadata structure and the parameter configuration table of the current device. The parameter metadata structure is constructed based on a unified set of parameter attribute fields.
[0157] The parsing module 620 is used to parse the parameter structure frame to identify the target parameter IDs supported by the current device, and to build a parameter index table according to the order of the target parameter IDs;
[0158] The UI control generation module 630 is used to request target attribute information corresponding to target parameter ID from the main control board, group the target parameter ID according to the interface category, and generate UI controls corresponding to different interface categories according to the parameter index table and target attribute information.
[0159] The update request module 640 is used to identify the current interface category, load the corresponding UI control according to the current interface category, and send the parameter value update request corresponding to the current interface category to the main control board.
[0160] The control update module 650 is used to update the loaded UI controls based on the parameter values returned by the main control board.
[0161] In one embodiment, the update request module 640 is further configured to load the UI control corresponding to the main interface if the current interface category is the main interface; and send the key parameter frame corresponding to the main interface to the main control board to request the main control board to return the parameter value corresponding to the key parameter.
[0162] In one embodiment, the update request module 640 is further configured to load the UI control corresponding to the settings / debugging interface if the current interface category is settings / debugging interface; and send a full parameter request frame corresponding to the settings / debugging interface to the main control board to request the main control board to return the parameter values corresponding to all target parameters.
[0163] In one embodiment, the update request module 640 is also used to respond to parameter modification operations, generate a parameter modification frame, and send it to the main control board; if no confirmation frame is received from the main control board based on the parameter modification frame after waiting for a preset time, the parameter modification frame is automatically resent.
[0164] In one embodiment, the parsing module 620 is further configured to parse the parameter structure frame, extract the bitmap carried in the parameter structure frame, where each bit in the bitmap corresponds to a different parameter ID; identify the target parameter IDs supported by the current device based on the bitmap to obtain a parameter ID set; and establish a parameter index table according to the order of the target parameter IDs in the parameter ID set.
[0165] In one embodiment, such as Figure 7 As shown, a display interface configuration device is provided, applied to a main control board, the device comprising:
[0166] The data acquisition module 710 is used to acquire a unified set of parameter attribute fields and construct an extensible parameter metadata structure based on the set of parameter attribute fields.
[0167] The first sending module 720 is used to generate a parameter structure frame based on the parameter metadata structure and the parameter configuration table of the current device, and send the parameter structure frame to the display panel.
[0168] The query module 730 is used to receive the target parameter ID sent by the display panel parsing the parameter structure frame, query the target attribute information corresponding to the target parameter ID, and send the target attribute information to the display panel; the display panel groups the target parameter IDs according to their respective interface categories, and generates UI controls corresponding to different interface categories based on the parameter index table and the target attribute information;
[0169] The second sending module 740 is used to receive parameter value update requests corresponding to different interface categories of the display panel, return the parameter value corresponding to the parameter value update request to the display panel, and update the UI controls that have been loaded according to the current interface category of the display panel.
[0170] In one embodiment, the second sending module 740 is further configured to respond to the addition of a parameter operation, identify the parameter ID range corresponding to the addition of the parameter; if the parameter ID range is within the reserved range of the bitmap in the parameter structure frame, then the addition of the parameter is filled into the bitmap in the parameter structure frame to generate a new parameter structure frame; when the power-on of the display board is detected, the new parameter structure frame is sent to the display board, and the query module 730 is controlled to re-execute the operation of receiving the target parameter ID sent by the display board parsing the parameter structure frame.
[0171] Each module in the aforementioned display interface configuration device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.
[0172] In addition, this application also provides a display interface configuration system, including a main control board and a display board. The main control board obtains a unified set of parameter attribute fields and constructs an extensible parameter metadata structure based on the parameter attribute field set. Based on the parameter metadata structure and the parameter configuration table of the current device, it generates a parameter structure frame and sends the parameter structure frame to the display board. The display board parses the parameter structure frame to identify the target parameter IDs supported by the current device, and establishes a parameter index table according to the order of the target parameter IDs, and sends the target parameter IDs to the main control board. The main control board queries the target attribute information corresponding to the target parameter ID and sends the target attribute information to the display board. The display board groups the target parameter IDs according to their respective interface categories and generates UI controls corresponding to different interface categories based on the parameter index table and the target attribute information. It identifies the current interface category, loads the corresponding UI controls according to the current interface category, and sends a parameter value update request corresponding to the current interface category to the main control board. The main control board receives the parameter value update requests corresponding to different interface categories from the display board and returns the parameter values corresponding to the parameter value update requests to the display board. The display board updates the loaded UI controls according to the returned parameter values.
[0173] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 8 As shown, the computer device includes a processor, memory, communication interface, display screen, and input device connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a display interface configuration method.
[0174] Those skilled in the art will understand that Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0175] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-described display interface configuration method.
[0176] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the above-described display interface configuration method.
[0177] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the above-described display interface configuration method.
[0178] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0179] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0180] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for configuring a display interface, characterized in that, Applied to a display panel, the method includes: Obtain the parameter structure frame sent by the main control board; the parameter structure frame is generated by the main control board based on the parameter metadata structure and the parameter configuration table of the current device; the parameter metadata structure is constructed based on a unified set of parameter attribute fields; The parameter structure frame is parsed to identify the target parameter IDs supported by the current device, and a parameter index table is established according to the order of the target parameter IDs; The system requests target attribute information corresponding to the target parameter ID from the main control board, groups the target parameter IDs according to their respective interface categories, and generates UI controls corresponding to different interface categories based on the parameter index table and the target attribute information. Identify the current interface category, load the corresponding UI control according to the current interface category, and send the parameter value update request corresponding to the current interface category to the main control board; Update the loaded UI controls based on the parameter values returned by the main control board.
2. The method according to claim 1, characterized in that, The steps of identifying the current interface category, loading the corresponding UI control according to the current interface category, and sending a parameter value update request corresponding to the current interface category to the main control board include: If the current interface category is the main interface, then load the UI controls corresponding to the main interface. Send the key parameter frame corresponding to the main interface to the main control board to request the main control board to return the parameter value corresponding to the key parameter.
3. The method according to claim 1, characterized in that, The steps of identifying the current interface category, loading the corresponding UI control according to the current interface category, and sending a parameter value update request corresponding to the current interface category to the main control board include: If the current interface category is settings / debugging interface, then load the UI controls corresponding to the settings / debugging interface; Send a full parameter request frame corresponding to the settings / debugging interface to the main control board to request the main control board to return the parameter values corresponding to all target parameters.
4. The method according to claim 3, characterized in that, After identifying the current interface category, loading the corresponding UI control according to the current interface category, and sending a parameter value update request corresponding to the current interface category to the main control board, the method further includes: In response to parameter modification operations, a parameter modification frame is generated and sent to the main control board; If no confirmation frame is received from the main control board after a preset time, the parameter modification frame will be automatically resent.
5. The method according to claim 1, characterized in that, The step of parsing the parameter structure frame to identify the target parameter IDs supported by the current device, and establishing a parameter index table according to the order of the target parameter IDs, includes: Parse the parameter structure frame and extract the bitmap carried in the parameter structure frame, where each bit in the bitmap corresponds to a different parameter ID; Based on the bitmap, identify the target parameter IDs supported by the current device to obtain a set of parameter IDs; A parameter index table is established based on the order of the target parameter IDs in the parameter ID set.
6. A method for configuring a display interface, characterized in that, Applied to the main control board, the method includes: Obtain a unified set of parameter attribute fields, and construct an extensible parameter metadata structure based on the set of parameter attribute fields; Based on the parameter metadata structure and the parameter configuration table of the current device, a parameter structure frame is generated and sent to the display panel; The display panel receives and parses the target parameter ID sent by the parameter structure frame, queries the target attribute information corresponding to the target parameter ID, and sends the target attribute information to the display panel; the display panel groups the target parameter IDs according to their respective interface categories, and generates UI controls corresponding to different interface categories according to the parameter index table and the target attribute information; the parameter index table is constructed according to the order of the target parameter IDs; The system receives parameter value update requests corresponding to different interface categories from the display panel, and returns the parameter values corresponding to the parameter value update requests to the display panel; the display panel then updates the loaded UI controls based on the parameter values returned by the main control board.
7. The method according to claim 6, characterized in that, After receiving the parameter value update request corresponding to different interface categories of the display panel and returning the parameter value corresponding to the parameter value update request to the display panel, the method further includes: In response to the addition of a parameter operation, identify the parameter ID range corresponding to the added parameter; If the parameter ID is within the reserved range of the bitmap in the parameter structure frame, then the newly added parameter is filled into the bitmap in the parameter structure frame to generate a new parameter structure frame; When the power-on of the display board is detected, the new parameter structure frame is sent to the display board, and the receiving display board returns to the step of parsing the target parameter ID sent by the parameter structure frame.
8. A display interface configuration device, characterized in that, Applied to a display panel, the device includes: The parameter structure frame acquisition module is used to acquire the parameter structure frame sent by the main control board; the parameter structure frame is generated by the main control board based on the parameter metadata structure and the parameter configuration table of the current device; the parameter metadata structure is constructed based on a unified set of parameter attribute fields. The parsing module is used to parse the parameter structure frame to identify the target parameter IDs supported by the current device, and to establish a parameter index table according to the order of the target parameter IDs; The UI control generation module is used to request target attribute information corresponding to target parameter ID from the main control board, group the target parameter ID according to its interface category, and generate UI controls corresponding to different interface categories according to the parameter index table and the target attribute information. The update request module is used to identify the current interface category, load the corresponding UI control according to the current interface category, and send the parameter value update request corresponding to the current interface category to the main control board. The control update module is used to update the loaded UI controls based on the parameter values returned by the main control board.
9. A display interface configuration device, characterized in that, Applied to the main control board, the device includes: The data acquisition module is used to acquire a unified set of parameter attribute fields and construct an extensible parameter metadata structure based on the set of parameter attribute fields. The first sending module is used to generate a parameter structure frame based on the parameter metadata structure and the parameter configuration table of the current device, and send the parameter structure frame to the display panel. The query module is used to receive the target parameter ID sent by the display panel after parsing the parameter structure frame, query the target attribute information corresponding to the target parameter ID, and send the target attribute information to the display panel; the display panel groups the target parameter IDs according to their respective interface categories, and generates UI controls corresponding to different interface categories according to the parameter index table and the target attribute information; the parameter index table is constructed according to the order of the target parameter IDs; The second sending module is used to receive parameter value update requests corresponding to different interface categories of the display panel, return the parameter value corresponding to the parameter value update request to the display panel, and update the UI controls that have been loaded according to the current interface category of the display panel.
10. A display interface configuration system, characterized in that, The system includes a main control board and a display board; The main control board obtains a unified set of parameter attribute fields and constructs an extensible parameter metadata structure based on the set of parameter attribute fields. Based on the parameter metadata structure and the parameter configuration table of the current device, a parameter structure frame is generated and sent to the display board; the display board parses the parameter structure frame to identify the target parameter IDs supported by the current device, and establishes a parameter index table according to the order of the target parameter IDs, and sends the target parameter IDs to the main control board; The main control board queries the target attribute information corresponding to the target parameter ID and sends the target attribute information to the display board; The display panel groups the target parameter IDs according to their respective interface categories, and generates UI controls corresponding to different interface categories based on the parameter index table and the target attribute information. Identify the current interface category, load the corresponding UI control according to the current interface category, and send the parameter value update request corresponding to the current interface category to the main control board; The main control board receives parameter value update requests from the display board corresponding to different interface categories, and returns the parameter values corresponding to the parameter value update requests to the display board; the display board updates the loaded UI controls according to the returned parameter values.