Indicator light display control method, device and vehicle

By combining vehicle instrument indicator lights into composite diagrams and configuring display properties, the problems of long resource loading time and inconvenient maintenance are solved, fast loading and flexible layout are achieved, and the efficiency and reliability of instrument display are improved.

CN118928021BActive Publication Date: 2025-09-16CHENGDU CELIS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411351246.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2025-09-16
Estimated Expiration
2044-09-26

AI Technical Summary

Technical Problem

In the existing technology, the resource loading time of vehicle instrument indicator lights is long, the memory usage is large, and the maintenance is inconvenient. Frequent changes to image resources are prone to errors.

Method used

Combine the indicator lights of each instrument into a composite graph, represent it through the structure, generate container nodes and configure display properties, use Kanzi Studio's graphics shader to calculate the position and status, and respond to control instructions for display control.

Benefits of technology

It reduces resource requirements, simplifies maintenance, improves loading speed and responsiveness, and utilizes GPU parallel processing to accelerate rendering and reduce the possibility of errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118928021B_ABST
    Figure CN118928021B_ABST
Patent Text Reader

Abstract

The present application relates to the field of instrument display technology, and discloses an indicator light display control method, device, and vehicle. The application generates a combination diagram by combining the indicator lights corresponding to each instrument, and the combination diagram is characterized based on a structure; creates a corresponding container node for each indicator light in the combination diagram, and configures the attribute information of each container node, and the attribute information includes the display attributes for turning on and off the indicator lights; responds to the received control instruction and parses it to obtain the name, position identifier, and type identifier of the light to be controlled, as well as the status value; determines the target indicator light in the combination diagram based on the name, position identifier, and type identifier of the light to be controlled; if the status value of the light to be controlled controls the display attribute corresponding to the target indicator light to be on, the target indicator light is controlled to be displayed in the preset instrument, and multiple icons are merged into a combination diagram, which not only significantly improves the loading speed and responsiveness, but also facilitates subsequent management and storage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of instrument display technology, and in particular to an indicator light display control method, device and vehicle. Background Art

[0002] With the continuous development of automotive electronics technology, vehicle instrument displays are gradually moving towards digitalization, intelligence, and integration. Vehicle instruments are a crucial component of the vehicle's electronic system. Instrument indicators—the various lights and symbols on the dashboard—provide the driver with real-time information on vehicle status, system operation, and potential problems.

[0003] In related technologies, vehicle instrument indicator lights rely on icons and colors to convey information. Different icons represent different functions or states, while colors are used to indicate the urgency and importance of the information. However, since each indicator light requires an image, launching the program involves loading multiple corresponding image resources, which inevitably increases resource loading time and memory usage. Furthermore, as the number and status of indicator lights change, adding, deleting, or modifying them also increases the amount of image resource data. This not only hinders subsequent maintenance, but also makes frequent changes to image resources prone to operational errors, hindering subsequent management and storage. Summary of the Invention

[0004] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical elements or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.

[0005] In view of the above-mentioned shortcomings of the prior art, the present application provides an indicator light display control method, device and vehicle to reduce the loading resources and maintenance costs required for instrument indicator light display control.

[0006] The present application provides a method for controlling indicator light display, comprising: combining indicator lights corresponding to various instruments to generate a combination diagram, wherein the combination diagram is represented based on a structure, wherein the structure includes the name, position identifier, type identifier, and status value of the indicator light; creating a corresponding container node for each indicator light in the combination diagram, and configuring attribute information of each container node, wherein the attribute information includes display attributes for turning the indicator light on and off; responding to and parsing a received control instruction to obtain at least one of the name, position identifier, and type identifier of the light to be controlled, and the status value; determining a target indicator light in the combination diagram based on at least one of the name, position identifier, and type identifier of the light to be controlled, and if the status value of the light to be controlled controls the display attribute corresponding to the target indicator light to be on, controlling the target indicator light to be displayed in a preset instrument.

[0007] In an embodiment of the present application, the method further includes: if the state value of the light to be controlled controls the display attribute corresponding to the target indicator light to be in an off state, controlling the target indicator light to be hidden in a preset instrument.

[0008] In one embodiment of the present application, determining the status value of the light to be controlled includes: importing the combination diagram into the instrument design interface of Kanzi to obtain a graphics shader code, wherein the combination diagram is a picture containing a texture atlas; segmenting the graphics shader code and identifying the segmented code to determine variable parameters reflecting the graphics shader, wherein the variable parameters include a texture identifier; determining the position of the target indicator light in the texture atlas through the texture identifier, and using the texture identifier as the status value of the light to be controlled.

[0009] In one embodiment of the present application, the variable parameters also include the size of the combined image and the size of each icon; wherein, determining the position of the target indicator light in the texture atlas through the texture identifier includes: determining the number of texture blocks accommodated in each row based on the width-to-texture ratio between the size of the combined image and the size of each icon; performing logical calculations based on the number of texture blocks and the texture identifier to determine the texture jump value required for the logical jump of the positioning target texture block; combining the texture jump value and the texture identifier to determine the texture coordinates of the target texture block in the texture atlas, and using the texture coordinates as the target indicator light position.

[0010] In one embodiment of the present application, the variable parameters also include a vertex position and the transformation matrix from the camera to the world space, wherein the vertex position is calculated by converting the vertex coordinates from the world coordinates to the clipping space coordinates, and based on the transformation matrix from the camera to the world space, the vertex position is multiplied by the projection to determine the display position mapped to the preset instrument.

[0011] In one embodiment of the present application, the target indicator light in the combination diagram is determined according to at least one of the name, position identifier and type identifier of the light to be controlled, including: matching the name of the light to be controlled with the name of the indicator light stored in the structure to determine the target indicator light in the combination diagram; or matching the position identifier of the light to be controlled with the position identifier of the indicator light stored in the structure to determine the target indicator light in the combination diagram; or matching the type identifier of the light to be controlled with the type identifier of the indicator light stored in the structure to determine the target indicator light in the combination diagram; or matching the name and position identifier of the light to be controlled with the name and position identifier of the indicator light stored in the structure Perform similar matching and determine the target indicator light in the combination diagram according to the matching result; or perform similar matching on the name and type identifier of the light to be controlled and the name and type identifier of the indicator light stored in the structure, and determine the target indicator light in the combination diagram according to the matching result; or perform similar matching on the position identifier and type identifier of the light to be controlled and the position identifier and type identifier of the indicator light stored in the structure, and determine the target indicator light in the combination diagram according to the matching result; or perform similar matching on the name, position identifier and type identifier of the light to be controlled and the name, position identifier and type identifier of the indicator light stored in the structure, and determine the target indicator light in the combination diagram according to the matching result.

[0012] In one embodiment of the present application, a corresponding container node is created for each indicator light in the combination diagram, and attribute information of each container node is configured, wherein the attribute information includes display attributes for turning on and off the indicator light, including: based on the Kanzi instrument design interface, a corresponding container node is created for each indicator light in the combination diagram, wherein the container node is a two-dimensional empty node; by adding attribute information to the two-dimensional empty node, each two-dimensional empty node is configured to be used for turning on and off the display attributes of the indicator light, wherein the attribute information also includes the current position and icon size of the indicator light.

[0013] In one embodiment of the present application, the indicator lights corresponding to each instrument are combined to generate a combination diagram, including: classifying the icons corresponding to each instrument according to the type of the indicator light, arranging the indicator lights of the same type together, so that the indicator lights are arranged into a picture by category to generate a combination diagram.

[0014] The present application provides an indicator light display control device, including: an icon synthesis module, used to combine the indicator lights corresponding to each instrument to generate a combination diagram, wherein the combination diagram is represented based on a structure, and the structure includes the name, position identifier, type identifier and status value of the indicator light; a node creation module, used to create a corresponding container node for each indicator light in the combination diagram, and configure attribute information of each container node, wherein the attribute information includes display attributes for turning the indicator light on and off; an instruction parsing module, used to respond to and parse the received control instruction to obtain at least one of the name, position identifier and type identifier of the light to be controlled, and the status value; a display control module, used to determine the target indicator light in the combination diagram according to at least one of the name, position identifier and type identifier of the light to be controlled, and if the status value of the light to be controlled controls the display attribute corresponding to the target indicator light to be on, then the target indicator light is controlled to be displayed in a preset instrument.

[0015] The present application provides a vehicle, comprising: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the vehicle performs the above-mentioned method.

[0016] Beneficial effects of this application:

[0017] The present application combines the indicator lights corresponding to each instrument to generate a combined diagram, and represents the combined diagram through a structure. This not only reduces the required combined diagram resources, but also simplifies maintenance work and avoids the possibility of errors caused by frequent icon updates. A corresponding container node is created for each indicator light in the combined diagram, and attribute information of each container node is configured. The attribute information includes display attributes for turning the indicator light on and off. This can meet user needs to configure attribute information, dynamically adjust icon size and position, and make layout control more flexible. In response to and parsing the received control instruction, the name, at least one of a location identifier and a type identifier, and a status value of the light to be controlled are obtained. Based on at least one of the name, location identifier and type identifier of the light to be controlled, the target indicator light in the combined diagram is determined. If the status value of the light to be controlled controls the display attribute corresponding to the target indicator light to be on, the target indicator light is controlled to be displayed in the preset instrument. In this way, merging multiple icons into a combined diagram can not only significantly improve loading speed and responsiveness, but also utilize the parallel processing capabilities of the GPU to accelerate the rendering process. This advantage is particularly obvious when processing a large number of icons or complex animations, and is also more convenient for management and storage. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 This is a flow chart of a method for controlling indicator light display in an embodiment of the present application;

[0019] Figure 2 This is a complete schematic diagram of a combination diagram generated by an indicator light in an embodiment of the present application;

[0020] Figure 3 This is a position display diagram of a method for controlling indicator light display in an embodiment of the present application;

[0021] Figure 4 This is another position display diagram of an indicator light display control method in an embodiment of the present application;

[0022] Figure 5 This is a schematic structural diagram of an indicator light display control device according to an embodiment of the present application;

[0023] Figure 6 The figure is a schematic diagram of the structure of a computing system for a vehicle terminal according to an embodiment of the present invention. DETAILED DESCRIPTION

[0024] The following describes the embodiments of the present invention through specific examples. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through different specific embodiments. The details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and sub-samples in the embodiments can be combined with each other unless there is a conflict.

[0025] It should be noted that the illustrations provided in the following embodiments are merely schematic illustrations of the basic concept of the present invention. Therefore, the illustrations only show components related to the present invention and are not drawn according to the number, shape, and size of components in actual implementation. In actual implementation, the type, quantity, and proportion of each component may be changed arbitrarily, and the component layout may also be more complex.

[0026] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it will be apparent to those skilled in the art that the embodiments of the present invention may be practiced without these specific details. In other embodiments, well-known structures and devices are shown in block diagram form rather than in detail to avoid obscuring the embodiments of the present invention.

[0027] In the description and claims of the embodiments of the present disclosure, as well as in the accompanying drawings, the terms "first," "second," and the like are used to distinguish similar items and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate to describe the embodiments of the present disclosure herein. In addition, the terms "including," "having," and any variations thereof are intended to cover non-exclusive inclusions.

[0028] Unless otherwise stated, the term "plurality" means two or more.

[0029] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B means: A or B.

[0030] The term "and / or" describes an association between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or A and B.

[0031] Nowadays, automotive instrument clusters play a crucial role in vehicle operation. They are not only a vital way for drivers to access vehicle information, but also enhance the driving experience, ensure driving safety, and provide navigation and entertainment functions, playing an indispensable role in vehicle operation and user experience. KanziStudio, a tool specifically designed for instrument cluster displays, will be used. Its intuitive user interface and rich interactive design tools enable developers to quickly and easily create attractive and user-friendly instrument cluster interfaces. Furthermore, Kanzi Studio offers extensive customization options, allowing developers to flexibly design and layout the instrument cluster to meet the needs of different vehicle models and user groups. Kanzi Studio supports hardware acceleration and real-time rendering technology, ensuring smooth and responsive interface operation in all conditions. Furthermore, Kanzi Studio supports multiple operating systems and hardware platforms, making it easy to deploy on various vehicle brands and models, improving development efficiency and flexibility.

[0032] However, traditional indicator light design requires setting an image for each indicator light. That is, each indicator light is designed in the form of an image. When the program needs to display an indicator light, the corresponding image resource needs to be loaded. If the program starts a large number of indicator lights, this will significantly increase the resource loading time and memory usage when the program starts. In addition, as the program develops and is maintained, the number and status of indicator lights will also change. If each indicator light is represented by an image, then when an indicator light needs to be added, deleted, or modified, the corresponding image resource needs to be updated. This not only increases the maintenance workload but also easily introduces errors. At the same time, in order to ensure that all relevant images are accurately updated, it is not friendly to the maintainability of the program.

[0033] Combine Figure 1 As shown, the embodiment of the present disclosure provides a flow chart of an indicator light display control method, including:

[0034] Step S101: combining the indicator lights corresponding to the various instruments to generate a combination diagram, wherein the combination diagram is represented based on a structure, wherein the structure includes the name, location identifier, type identifier, and status value of the indicator lights;

[0035] It should be understood that the instruments include but are not limited to fuel tank instruments, headlight instruments, engine instruments, etc. of various transportation vehicles, and the instruments can accurately and timely reflect the status or function of the transportation vehicles; in addition, the structure can be represented by an array structure.

[0036] The structure includes the name, position identifier, type identifier and status value of the indicator light, wherein the name, position identifier and type identifier of the indicator light are all unique, and the status value represents the object of the state change (old state and new state).

[0037] It should be noted that a structure is a user-defined data type that combines different types of data items into a single type. Each data item or several data items in the structure can also be accessed individually.

[0038] Specifically, the icons corresponding to the various instruments are classified according to the types of the indicator lights, and the indicator lights of the same type are arranged together, so that the indicator lights are arranged into a picture by category to generate a combined picture.

[0039] In some embodiments, the indicator light icons are classified and arranged together according to the same category, that is, all the indicator light icons are arranged in sequence to form a combined image; for example, an array of indicator light icons can be formed in a picture file, see Figure 2, which is a complete schematic diagram of a combination diagram generated by an indicator light in an embodiment of the present application, including, from left to right, a left turn light, a right turn light, a low beam indicator light, a high beam indicator light, a high beam indicator light automatically on, a high beam indicator light automatically off, a front fog light indicator light, a rear fog light indicator light, a position light indicator light, etc., and an indicator light icon array is formed by evenly arranging multiple rows, which can manage and store multiple indicator lights at the same time; of course, it can also be arranged in other shapes in an orderly manner.

[0040] According to the above description, the following code is used:

[0041]

[0042] In some embodiments, for example, if one needs to change the icon of one or more indicator lights, one only needs to determine the identifier of the indicator lights to be changed and replace them according to their original position in the combination diagram; if one needs to delete the icon of one or more indicator lights, one only needs to determine the identifier of the indicator lights to be deleted and delete them according to their original position in the combination diagram; if one needs to add the icon of one or more indicator lights, one only needs to determine the relevant information of the indicator lights to be added and add the icon of the indicator lights to be added to the end of the original combination diagram. In addition, after deleting, adding or changing the icon of the indicator lights, the icons of the indicator lights in the original combination diagram can also be rearranged as needed, and the arrangement standard is not limited.

[0043] In this embodiment, when updating or modifying an icon, only one combined image needs to be replaced or updated, rather than multiple separate image files. This greatly simplifies maintenance work and reduces the possibility of errors.

[0044] In addition, when searching for problems based on the name of an indicator light, you can directly view the signal value received by the corresponding indicator light in the log, send the Newstate value (i.e., status value) of each indicator light to Kanzi Studio, and connect the code and graphical interface development project through the data source.xml file.

[0045] By using the above method, all instrument icons are stored in one combination chart, which not only reduces the required combination chart resources, but also simplifies maintenance work and avoids the possibility of errors caused by frequent icon updates.

[0046] Step S102: creating a corresponding container node for each indicator light in the combination diagram, and configuring attribute information of each container node, wherein the attribute information includes display attributes for turning on and off the indicator light;

[0047] Optionally, based on the instrument design interface of Kanzi Studio, a corresponding container node is created for each indicator light in the combination diagram, and the container node is a two-dimensional empty node; by adding attribute information to the two-dimensional empty node, each two-dimensional empty node is configured to switch the display properties of the indicator light, wherein the attribute information also includes the current position and icon size of the indicator light.

[0048] In some embodiments, first, open a project in the Kanzi Studio development environment; second, in the interface editor, find the tool or menu item for adding a new node, usually by dragging an "empty node" or "container" component onto the design canvas, and give each newly created node a descriptive name, such as two-dimensional empty node, three-dimensional empty node, etc., to facilitate subsequent management and reference.

[0049] In other embodiments, by adding attribute information to the two-dimensional empty node, for example, the current position of the indicator light sets the X and Y coordinates of the indicator light in the composite diagram; the icon size is used to set the width and height of the indicator light icon; the display attribute (Visible attribute) is used to determine whether the indicator light is displayed. If the Visible attribute is set to true, the indicator light is displayed; if it is set to false, it is not displayed. Therefore, the Newstate received from the code can be used to change the Visible value to realize the display of the indicator light on the actual vehicle.

[0050] In other embodiments, by calculating the position of each indicator light through a graphics shader, very flexible layout control can be achieved. At the same time, the size and position of the icon can be dynamically adjusted as needed. In this way, the indicator light icons can be flexibly arranged by adjusting different screen sizes and resolutions without modifying the composite image itself.

[0051] Step S103, responding to and parsing the received control instruction to obtain the name, at least one of the location identifier and the type identifier, and the status value of the light to be controlled;

[0052] Specifically, a control instruction from a user, an application, a control terminal or an in-vehicle system is received, the control instruction is parsed, and the name, at least one of a location identifier and a type identifier of the light to be controlled, and a status value are obtained.

[0053] It should be noted that the parsing process includes confirming the format of the instruction, for example, a JSON string; using a JSON parsing library to convert the string into a dictionary or object for easy access; and extracting at least one of the lamp name, location identifier, type identifier, and status value from the parsed data.

[0054] Step S104, determining the target indicator light in the combination diagram based on at least one of the name, position identifier and type identifier of the light to be controlled; if the status value of the light to be controlled controls the display attribute corresponding to the target indicator light to be on, controlling the target indicator light to be displayed in a preset instrument.

[0055] Optionally, determining the target indicator light in the combination diagram according to at least one of the name, location identifier, and type identifier of the light to be controlled includes:

[0056] Matching the name of the lamp to be controlled with the name of the indicator light stored in the structure to determine the target indicator light in the combination diagram; or

[0057] Matching the position identifier of the lamp to be controlled with the position identifier of the indicator light stored in the structure to determine the target indicator light in the combination diagram; or

[0058] Matching the type identifier of the lamp to be controlled with the type identifier of the indicator light stored in the structure to determine the target indicator light in the combination diagram; or

[0059] Performing similar matching between the name and position identifier of the lamp to be controlled and the name and position identifier of the indicator light stored in the structure, and determining the target indicator light in the combination diagram according to the matching result; or

[0060] Performing similar matching between the name and type identifier of the lamp to be controlled and the name and type identifier of the indicator light stored in the structure, and determining the target indicator light in the combination diagram according to the matching result; or

[0061] Performing similar matching between the position identifier and type identifier of the lamp to be controlled and the position identifier and type identifier of the indicator light stored in the structure, and determining the target indicator light in the combination diagram according to the matching result; or

[0062] The name, position identifier and type identifier of the lamp to be controlled are matched with the name, position identifier and type identifier of the indicator light stored in the structure, and the target indicator light in the combination diagram is determined according to the matching result.

[0063] It should be noted that the basis for executing the above logic is that the name, position identifier and type identifier of the indicator light are all unique, and the light to be controlled is at least one of all the indicator lights.

[0064] Through the above method, the present application can flexibly select matching conditions, and the target indicator light in the combination diagram can be determined by any of the above matching conditions. In this way, not only the accuracy of determining the target indicator light is guaranteed, but also the flexibility of the target indicator light is ensured.

[0065] Optionally, in the above embodiment, the method further includes: if the state value of the light to be controlled controls the display attribute corresponding to the target indicator light to be in an off state, controlling the target indicator light to be hidden in a preset instrument.

[0066] In some embodiments, taking a vehicle as an example, if the status value of the light to be controlled controls the display attribute corresponding to the target indicator light to be in the on state, the target indicator light is controlled to be displayed in the preset instrument (instrument display area) corresponding to the vehicle; on the contrary, if the status value of the light to be controlled controls the display attribute corresponding to the target indicator light to be in the off state, the target indicator light is controlled not to be displayed in the preset instrument (instrument display area) corresponding to the vehicle, that is, by hiding the target indicator light in the preset instrument.

[0067] Through the above method, multiple icons are merged into a combined diagram, the target indicator light in the combined diagram is determined according to the control instruction, and the display attribute corresponding to the target indicator light is controlled according to the status value. In this way, not only the loading speed and responsiveness are significantly improved, but also the parallel processing capability of the GPU is used to accelerate the rendering process. This advantage is particularly obvious when processing a large number of icons or complex animations, and is more conducive to management and preservation.

[0068] Optionally, determining the state value of the light to be controlled includes:

[0069] Importing the combined image into the instrument design interface of Kanzi Studioi to obtain a graphics shader code, wherein the combined image is a picture including a texture atlas;

[0070] Segmenting the graphics shader code, identifying the segmented code, and determining variable parameters reflecting the graphics shader, wherein the variable parameters include a texture identifier;

[0071] The position of the target indicator light in the texture atlas is determined by a texture identifier, and the texture identifier is used as the state value of the light to be controlled.

[0072] It should be understood that the specific indicator icon displayed in the composite graph is controlled by the Texture ID designed in Kanzi Studio. The Texture ID data type is defined as an integer. A Texture ID attribute is added to each node, and the value of this attribute is calculated by the shader in Kanzi Studio.

[0073] In some embodiments, a composite image containing a texture atlas (such as PNG, JPG, etc.) is imported into the project resources of KanziStudio and parsed by Kanzi Studio to obtain graphics shader code, which may be C++, JavaScript, or other languages ​​supported by Kanzi.

[0074] In other embodiments, the texture identifier can be an enumeration, a string, or an integer, which is used to reference a specific texture in the atlas in the code; and in the logic code, based on the received control instruction (including the name of the light to be controlled, the position identifier, etc.), the target indicator light position in the texture atlas is determined, and the texture identifier (or equivalent information) is used to update the UI element to accurately display the indicator light status (such as on or off).

[0075] Optionally, the variable parameters further include the size of the combined image and the size of each icon; wherein determining the position of the target indicator light in the texture atlas by using the texture identifier includes:

[0076] determining the number of texture blocks accommodated in each row according to a width-to-texture ratio between the size of the combined image and the size of each icon;

[0077] Performing a logical calculation based on the number of texture blocks and the texture identifier to determine a texture jump value required for a logical jump to locate a target texture block;

[0078] The texture jump value and the texture identifier are combined to determine the texture coordinates of the target texture block in the texture atlas, and the texture coordinates are used as the target indicator light position.

[0079] In some embodiments, first, by combining the texture width ratio between the width of the image and the width of the icon, it is calculated how many texture blocks (i.e., icons) can be accommodated in each row; secondly, a logical jump value is calculated based on the texture identifier (TextureId, assuming it is an integer index starting from 0) and the number of texture blocks in each row, wherein the jump value helps to determine in which row and column the target texture block is located; thirdly, the row where the target texture block is located is found by dividing the texture identifier by the number of texture blocks in each row, and the "texture jump value" is used to logically locate the texture block; after determining the row and column information, the texture coordinates of the target texture block in the texture atlas are calculated; the calculated texture coordinates are used as the position of the target indicator light in the texture atlas; it can not only be used in the graphics rendering API, but also display the correct texture block on the UI element.

[0080] Optionally, the variable parameters also include a vertex position and the camera-to-world space transformation matrix, wherein the vertex position is calculated by converting the vertex coordinates from world coordinates to clipping space coordinates, and based on the camera-to-world space transformation matrix, the vertex position is multiplied by the projection to determine the display position mapped to the preset instrument.

[0081] In other embodiments, the above-mentioned indicator light display control method is adopted, wherein the algorithm for calculating the Texture ID (texture identifier) ​​using a graphics shader is described in detail as follows:

[0082] First, import the combined image of all icons into Kanzi Studio, and then segment the entire image using the shader code in Kanzi Studio. The code is as follows:

[0083] void main()

[0084] {

[0085] precision lowp float;

[0086] float actualwidth=TextureTileSize.x / TextureSheetSize.x;

[0087] float actualHeight = TextureTileSize.y / TextureSheetSize.y; / / Calculate the actual size of the texture block

[0088] lowp int itemsInRow = int(TextureSheetSize.x) / int(TextureTileSize.x); / / Calculate the number of texture blocks per row

[0089] float jump = float ((TextureId-1) / itemsInRow); / / Calculate jump value

[0090] float xPos=kzTextureCoordinate0.x*actualwidth*TextureSize.x+float(TextureId-1)*actualwidth-jump;

[0091] float yPos = kzTextureCoordinate0.y * actualHeight * TextureSize.y + 1.0 - (jump + 1.0) * actualHeight; / / Calculate texture coordinates

[0092] vTexCoord = vec2(xPos, yPos); / / Set texture coordinate output

[0093] gl_Position=kzProjectionCameraWorldMatrix*vec4(kzPosition.xyz,1.0);

[0094] }

[0095] Among them, the variable parameters include the following: TextureTileSize, TextureSheetSize, TextureId, kzTextureCoordinate0, TextureSize, kzPosition, kzProjectionCameraWorldMatrix. The above variable parameters are all defined and passed in outside the graphics shader.

[0096] TextureSheetSize: The size of the composite image;

[0097] TextureTileSize: The size of each cropped icon;

[0098] TextureSize: indicates that one position corresponds to one icon;

[0099] kzTextureCoordinate0: indicates that the texture coordinate information starts from 0;

[0100] The precision of floating-point numbers is set to lowp (low precision) to reduce the computational load and memory usage on the GPU.

[0101] actualwidth and actualHeight calculate the width and height ratio of a single texture block relative to the texture atlas.

[0102] itemsInRow calculates the number of texels that can fit into each row of the texture atlas by dividing the width of the texture atlas by the width of a single texel and rounding up.

[0103] The jump calculation is based on TextureId and the number of texture blocks per row, in order to correctly jump the number of rows in the texture image set so as to locate the correct texture block.

[0104] In the calculation of xPos and yPos, the size of the texture block, the size of the texture image set, and the texture ID (TextureId) are combined to locate the specific texture block position.

[0105] The calculation of gl_Position is to convert the world coordinates of the vertex into clip space coordinates, which is used to store the transformed vertex position. In the code, it is calculated by multiplying the vertex position (kzPosition.xyz) by a projection and camera to world space matrix (kzProjectionCameraWorldMatrix).

[0106] Finally, pass TextureId to the outside of the shader. This value is the position value corresponding to each indicator light. For example, the TextureId value corresponding to the left turn indicator light is 1. Figure 3 As shown, the TextureId value corresponding to the airbag warning indicator light is 12. Figure 4 As shown; in this way, the composite graph is divided into one icon and one position. After setting the name on each node, the TextureID is set to the value of the indicator light corresponding to the name.

[0107] In Kanzi Studio, configure the corresponding TextureID and position information for each node, and then use the external Newstate information to determine the Visible to display different indicator lights.

[0108] By adopting the indicator light display control method provided by the embodiment of the present disclosure, the indicator lights corresponding to the various instruments are combined to generate a combination diagram, and the combination diagram is represented by a structure. In this way, not only the required combination diagram resources are reduced, but also the maintenance work is simplified, and the possibility of errors caused by frequent icon updates is avoided; a corresponding container node is created for each indicator light in the combination diagram, and attribute information of each container node is configured. The attribute information includes display attributes for turning on and off the indicator lights, which can meet the user's configuration needs, dynamically adjust the icon size and position, and make the layout control more flexible; respond to the received control instruction and parse it to obtain the name, position identifier and type identifier of the light to be controlled At least one of the symbols, and a status value; based on the name, position identifier, and type identifier of the light to be controlled, the target indicator light in the combination diagram is determined. If the display attribute corresponding to the target indicator light is turned on by the status value of the light to be controlled, the target indicator light is controlled to be displayed in the preset instrument. In this way, on the one hand, by calculating the position of each indicator light through the shader, very flexible layout control can be achieved. The size and position of the icon can also be dynamically adjusted as needed, and even respond to different screen sizes and resolutions without modifying the combination diagram itself. On the other hand, when updating or modifying the icon, only one combination diagram needs to be replaced or updated, rather than multiple separate files. This greatly simplifies maintenance work and reduces the possibility of errors. On the other hand, merging multiple icons into a single file can significantly improve the loading speed and responsiveness of the project, leveraging the parallel processing capabilities of the GPU to accelerate the rendering process. This advantage is particularly evident when processing a large number of icons or complex animations.

[0109] Combine Figure 5 As shown, the embodiment of the present disclosure provides an indicator light display control device, including an icon synthesis module 501, a node creation module 502, an instruction parsing module 503 and a display control module 504.

[0110] An icon synthesis module 501 is used to combine the indicator lights corresponding to the various instruments to generate a combination diagram, wherein the combination diagram is represented based on a structure including the name, location identifier, type identifier, and status value of the indicator lights;

[0111] A node creation module 502 is configured to create a corresponding container node for each indicator light in the combination diagram, and configure attribute information of each container node, wherein the attribute information includes display attributes for turning on and off the indicator light;

[0112] The instruction parsing module 503 is used to respond to and parse the received control instruction to obtain the name, at least one of the location identifier and the type identifier of the lamp to be controlled, and the state value;

[0113] The display control module 504 is used to determine the target indicator light in the combination diagram based on at least one of the name, position identifier and type identifier of the light to be controlled. If the status value of the light to be controlled controls the display attribute corresponding to the target indicator light to be on, the target indicator light is controlled to be displayed in a preset instrument.

[0114] The indicator light display control device provided by the embodiment of the present disclosure combines the indicator lights corresponding to the various instruments to generate a combined diagram. The combined diagram is represented by a structure. This not only reduces the required combined diagram resources, but also simplifies maintenance and avoids the possibility of errors caused by frequent icon updates. A corresponding container node is created for each indicator light in the combined diagram, and attribute information of each container node is configured. The attribute information includes display attributes for turning the indicator light on and off. This can meet user needs to configure attribute information, dynamically adjust icon size and position, and provide more flexible layout control. In response to and parsing the received control instruction, the name, at least one of a location identifier and a type identifier, and a status value of the light to be controlled are obtained. Based on at least one of the name, location identifier, and type identifier of the light to be controlled, a target indicator light in the combined diagram is determined. If the status value of the light to be controlled controls the display attribute corresponding to the target indicator light to be on, the target indicator light is controlled to be displayed in a preset instrument. In this way, merging multiple icons into a combined diagram not only significantly improves loading speed and responsiveness, but also utilizes the parallel processing capabilities of a GPU to accelerate the rendering process. This advantage is particularly evident when processing a large number of icons or complex animations, and is more conducive to management and storage.

[0115] An embodiment of the present disclosure further provides a vehicle, comprising: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the vehicle executes the above method.

[0116] Figure 6 The following is a schematic diagram showing the structure of a computer system suitable for implementing the vehicle of the embodiment of the present application. Figure 6 The vehicle computer system 600 shown is only an example and should not limit the functions and scope of use of the embodiments of the present application.

[0117] It should be noted that the vehicle in this application is a synonym for transportation vehicles, including new energy vehicles and fuel vehicles. For example, fuel vehicles are cars, motorcycles, ships and airplanes powered by fuel, which will not be repeated here; and new energy vehicles include but are not limited to pure electric vehicles, hybrid electric vehicles, fuel cell electric vehicles, gas fuel vehicles, biofuel vehicles, for example, also include supercapacitor vehicles, flywheel energy storage vehicles, etc., and even flying cars or aircraft.

[0118] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 602 or the program loaded from the storage part 608 into the random access memory (RAM) 603, such as executing the method in the above embodiment. Various programs and data required for system operation are also stored in the RAM 603. The CPU 601, ROM 602 and RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0119] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, and the like; an output section 607 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 608 including a hard disk; and a communication section 609 including a network interface card such as a LAN (Local Area Network) card or a modem. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. Removable media 611, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 610 as needed, so that computer programs read from the removable media can be installed in the storage section 608 as needed.

[0120] The vehicle disclosed in this embodiment includes a processor, a memory, a transceiver and a communication interface. The memory and the communication interface are connected to the processor and the transceiver and complete communication with each other. The memory is used to store computer programs, the communication interface is used to communicate, and the processor and the transceiver are used to run the computer program so that the vehicle executes the various steps of the above method.

[0121] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure to enable those skilled in the art to practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible variations. Unless expressly required, individual components and functions are optional, and the order of operations may vary. Parts and subsamples of some embodiments may be included in or replace parts and subsamples of other embodiments. Moreover, the terms used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to also include plural forms. Similarly, the term "and / or" used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variations "comprises" and / or comprising refer to the presence of a stated subsample, whole, step, operation, element, and / or component, but do not exclude the presence or addition of one or more other subsamples, wholes, steps, operations, elements, components and / or groups of these. In the absence of further restrictions, an element defined by the statement "comprises a..." does not exclude the presence of other identical elements in the process, method or device that includes the element. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments can be referenced to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can be found in the description of the method part.

[0122] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. Technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. Technicians can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0123] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of units can be merely a logical functional division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some sub-samples can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to implement this embodiment. In addition, the functional units in the embodiments of the present disclosure can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0124] The flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions and operations of the systems, methods and computer program products according to the embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment or part of the code, and the module, program segment or part of the code contains one or more executable instructions for implementing the specified logical functions. In some alternative implementations, the functions marked in the boxes can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, or they can sometimes be executed in the opposite order, which can depend on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in an order different from that disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, or they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified function or action, or may be implemented by a combination of dedicated hardware and computer instructions.

Claims

1. A method for controlling indicator light display, characterized in that: include: Combining the indicator lights corresponding to the various instruments to generate a combination diagram, wherein the combination diagram is represented based on a structure, wherein the structure includes the name, location identifier, type identifier, and status value of the indicator lights; Creating a corresponding container node for each indicator light in the combination diagram, and configuring attribute information of each container node, wherein the attribute information includes display attributes for turning on and off the indicator light; Responding to and parsing the received control instruction, obtaining a name, at least one of a location identifier and a type identifier, and a status value of the lamp to be controlled; Determine a target indicator light in the combination diagram based on at least one of the name, position identifier, and type identifier of the light to be controlled, and control the target indicator light to be displayed in a preset instrument if the state value of the light to be controlled controls the display attribute corresponding to the target indicator light to be on; If the state value of the light to be controlled controls the display attribute corresponding to the target indicator light to be in an off state, the target indicator light is controlled to be hidden in a preset instrument.

2. The method according to claim 1, characterized in that Determining the state value of the light to be controlled includes: Importing the combined graph into Kanzi's instrument design interface to obtain graphics shader code, wherein the combined graph is a picture including a texture atlas; Segmenting the graphics shader code, identifying the segmented code, and determining variable parameters reflecting the graphics shader, wherein the variable parameters include a texture identifier; The position of the target indicator light in the texture atlas is determined by a texture identifier, and the texture identifier is used as the state value of the light to be controlled.

3. The method according to claim 2, characterized in that The variable parameters also include the size of the combined image and the size of each icon; wherein determining the position of the target indicator light in the texture atlas by using the texture identifier includes: determining the number of texture blocks accommodated in each row according to a width-to-texture ratio between the size of the combined image and the size of each icon; Performing a logical calculation based on the number of texture blocks and the texture identifier to determine a texture jump value required for a logical jump to locate a target texture block; The texture jump value and the texture identifier are combined to determine the texture coordinates of the target texture block in the texture atlas, and the texture coordinates are used as the target indicator light position.

4. The method according to claim 2, characterized in that The variable parameters also include a vertex position and a camera-to-world space transformation matrix, wherein the vertex position is calculated by converting the vertex coordinates from world coordinates to clip space coordinates, and based on the camera-to-world space transformation matrix, the vertex position is multiplied by a projection to determine the display position mapped to the preset instrument.

5. The method according to claim 1, wherein Determining the target indicator light in the combination diagram according to at least one of the name, location identifier, and type identifier of the lamp to be controlled includes: Matching the name of the lamp to be controlled with the name of the indicator light stored in the structure to determine the target indicator light in the combination diagram; or Matching the position identifier of the lamp to be controlled with the position identifier of the indicator light stored in the structure to determine the target indicator light in the combination diagram; or Matching the type identifier of the lamp to be controlled with the type identifier of the indicator light stored in the structure to determine the target indicator light in the combination diagram; or Performing similar matching between the name and position identifier of the lamp to be controlled and the name and position identifier of the indicator light stored in the structure, and determining the target indicator light in the combination diagram according to the matching result; or Performing similar matching between the name and type identifier of the lamp to be controlled and the name and type identifier of the indicator light stored in the structure, and determining the target indicator light in the combination diagram according to the matching result; or Performing similar matching between the position identifier and type identifier of the lamp to be controlled and the position identifier and type identifier of the indicator light stored in the structure, and determining the target indicator light in the combination diagram according to the matching result; or The name, position identifier and type identifier of the lamp to be controlled are matched with the name, position identifier and type identifier of the indicator light stored in the structure, and the target indicator light in the combination diagram is determined according to the matching result.

6. The method according to any one of claims 1 to 5, characterized in that A corresponding container node is created for each indicator light in the combination diagram, and attribute information of each container node is configured. The attribute information includes display attributes for turning on and off the indicator light, including: Based on Kanzi's instrument design interface, a corresponding container node is created for each indicator light in the combination diagram, where the container node is a two-dimensional empty node; By adding attribute information to the two-dimensional empty nodes, each of the two-dimensional empty nodes is configured to be used to turn on or off the display attribute of the indicator light, wherein the attribute information also includes the current position and icon size of the indicator light.

7. The method according to any one of claims 1 to 5, characterized in that Combine the indicator lights corresponding to each instrument to generate a combination diagram, including: The icons corresponding to the various instruments are classified according to the types of the indicator lights, and the indicator lights of the same type are arranged together, so that the indicator lights are arranged into a picture by category to generate a combined picture.

8. An indicator light display control device, characterized in that: include: An icon synthesis module is used to combine the indicator lights corresponding to the various instruments to generate a combination diagram, wherein the combination diagram is represented based on a structure, wherein the structure includes the name, location identifier, type identifier, and status value of the indicator lights; a node creation module, configured to create a corresponding container node for each indicator light in the combination diagram, and configure attribute information of each container node, wherein the attribute information includes display attributes for turning on and off the indicator light; An instruction parsing module, configured to respond to and parse a received control instruction to obtain a name, at least one of a location identifier and a type identifier, and a status value of the lamp to be controlled; A display control module, configured to determine a target indicator light in the combination diagram based on at least one of the name, position identifier, and type identifier of the light to be controlled, and control the target indicator light to be displayed in a preset instrument if the state value of the light to be controlled controls the display attribute corresponding to the target indicator light to be on; If the state value of the light to be controlled controls the display attribute corresponding to the target indicator light to be in an off state, the target indicator light is controlled to be hidden in a preset instrument.

9. A vehicle, characterized in that: include: processor and memory; The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so as to enable the vehicle to perform the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Digital Instrument Display Method of Vehicle and Digital Instrument Display Apparatus Using Method

    CN113138736A

  • Vehicle indicator light display method and device, electronic equipment, storage medium and vehicle

    CN117549742A