Indicator Display Method, Device, Electronic Device, and Computer Readable Storage Medium

By introducing proxy queues and regular polling mechanisms into the on-board terminals of the automotive dashboard, the problem of large resource consumption of indicator light display schemes in the prior art is solved, and the effect of reducing the number of dashboard refreshes and improving user experience is achieved.

CN115320376BActive Publication Date: 2025-06-27BEI DOU ZHI LIAN KE JI YOU XIAN GONG SI
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210974659.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-15
Publication Date
2025-06-27
Estimated Expiration
2042-08-15

AI Technical Summary

Technical Problem

The indicator light display scheme of the existing automobile dashboard consumes a lot of system resources, especially when multiple indicator lights need to be updated continuously, resulting in an increase in the number of dashboard refreshes and excessive system resources consumption.

Method used

By introducing a proxy queue in the on-board terminal, receiving control instructions of the car function system and cacheing indicator light information, polling the proxy queue regularly. When the status is required to be updated, all indicator light information is read and drawn, so that multiple indicator lights are drawn simultaneously without continuously refreshing the dashboard.

Benefits of technology

It reduces the number of refreshes of the dashboard, reduces the consumption of system resources, improves the user experience, and effectively avoids the chaos when the indicator lights flash.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115320376B_ABST
    Figure CN115320376B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides an indicator light display method, device, electronic device, and computer-readable storage medium, belonging to the field of vehicle indicator lights. The method applied to an in-vehicle terminal including an instrument panel includes: when receiving a control instruction of any automotive function system, parsing the control instruction to obtain indicator light information, caching the indicator light information into a proxy queue, and setting the status of the proxy queue to a first status; periodically polling the proxy queue, and when it is queried that the proxy queue is in the first status, reading all the indicator light information in the proxy queue, and simultaneously drawing the target indicator lights corresponding to all the indicator light information in the proxy queue on the instrument panel through a UI process, so as to realize that when there are continuously different indicator lights that need to be updated, periodically refreshing the instrument panel to simultaneously draw multiple indicator lights, thereby being able to reduce the refresh times of the instrument panel and further reducing the resource consumption of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle indicator lights, and in particular, to an indicator light display method, device, electronic device, and computer-readable storage medium. Background Art

[0002] With the development of in-vehicle intelligent terminals and automotive technologies, drivers can understand the operating conditions of various components of the entire vehicle and the overall operating state of the vehicle through the indicator lights on the vehicle dashboard. For example, it is used to indicate whether the seat belt is fastened and whether the airbag is working properly.

[0003] However, due to the increasing number of types of indicator lights on vehicles, a plurality of indicator lights need to be continuously displayed on the vehicle dashboard for a period of time. In this case, the current indicator light display scheme of the vehicle dashboard consumes a large amount of system resources. Summary of the Invention

[0004] In view of this, an object of the present invention is to provide an indicator light display method, device, electronic device, and computer-readable storage medium, which can improve the problem of large system resource consumption of the current indicator light display scheme of the vehicle dashboard.

[0005] To achieve the above object, the technical solutions adopted in the embodiments of the present invention are as follows:

[0006] In a first aspect, an embodiment of the present invention provides an indicator light display method, which is applied to an in-vehicle terminal including a dashboard. The method includes:

[0007] When a control instruction of any automotive function system is received, parse the control instruction to obtain indicator light information, cache the indicator light information into a proxy queue, and set the state of the proxy queue to a first state; the first state indicates that an update is required.

[0008] Periodically poll the proxy queue. When it is queried that the proxy queue is in the first state, read all the indicator light information in the proxy queue.

[0009] Based on the indicator light information, simultaneously draw target indicator lights corresponding to all the indicator light information in the proxy queue on the dashboard through a UI process.

[0010] Further, in the memory library of the in-vehicle terminal, a graphic file of each indicator light and an ID identifier of the indicator light are stored in a corresponding relationship. Each piece of the indicator light information includes an ID identifier of a target indicator light and position information.

[0011] The step of simultaneously drawing target indicator lights corresponding to all the indicator light information in the proxy queue on the dashboard through a UI process based on the indicator light information includes:

[0012] Load the graphic file corresponding to the ID identifier in each of the indicator light information from the memory library;

[0013] At the physical position on the dashboard that matches the position information, draw the graphic file corresponding to the ID identifier that belongs to the same indicator light information as the position information, so as to draw all the target indicator lights corresponding to the indicator light information in the agent queue on the dashboard.

[0014] Further, when the indicator light information further includes the blinking frequency of the target indicator light, after the step of reading all the indicator light information in the agent queue, the method further includes:

[0015] Based on the blinking frequencies in each of the indicator light information, update the preset blinking information, and based on the updated blinking information, perform blinking control on the physical positions on the dashboard that match each of the position information on the same time advancement line, so as to perform blinking control on the target indicator lights at each of the physical positions.

[0016] Further, the blinking information includes a frequency array, and position data corresponding to each blinking frequency in the frequency array;

[0017] The step of updating the preset blinking information based on the blinking frequencies in each of the indicator light information includes:

[0018] For each blinking frequency in each of the indicator light information, query whether the blinking frequency already exists in the frequency array;

[0019] If not, add the blinking frequency to the frequency array, create a position array corresponding to the blinking frequency, and put the position information in the indicator light information into the position array corresponding to the blinking frequency;

[0020] If so, put the position information in the indicator light information into the position array corresponding to the blinking frequency.

[0021] Further, the step of performing blinking control on the physical positions on the dashboard that match each of the position information on the same time advancement line based on the updated blinking information includes:

[0022] Advance all the blinking frequencies in the frequency array on the same time advancement line. When any blinking frequency advances to zero, switch the on / off state of the physical positions on the dashboard that match each position information in the position array corresponding to the blinking frequency, and restart advancing the blinking frequency.

[0023] Further, after the step of reading all the indicator light information in the proxy queue, the method further includes:

[0024] Set the status of the proxy queue to the second status, and delete all the indicator light information in the proxy queue; wherein, the second status indicates that no update is required;

[0025] Alternatively, set the status of the proxy queue to the second status, and set the status of all the indicator light information in the proxy queue to processed.

[0026] Further, the method further includes:

[0027] Receive and parse an update instruction to obtain an ID identifier and a replacement graphic file;

[0028] Update the graphic file corresponding to the ID identifier in the memory library with the replacement graphic file.

[0029] In a second aspect, an embodiment of the present invention provides an indicator light display device, which is applied to an in-vehicle terminal including a dashboard. The indicator light display device includes a preprocessing module and a drawing module:

[0030] When receiving a control instruction of any automotive function system, the preprocessing module parses the control instruction to obtain indicator light information, caches the indicator light information in a proxy queue, and sets the status of the proxy queue to the first status; the first status indicates that an update is required;

[0031] The drawing module is used to periodically poll the proxy queue. When it is queried that the proxy queue is in the first status, read all the indicator light information in the proxy queue;

[0032] The drawing module is further used to, based on the indicator light information, simultaneously draw target indicator lights corresponding to all the indicator light information in the proxy queue on the dashboard through a UI process.

[0033] In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory. The memory stores a computer program that can be executed by the processor, and the processor can execute the computer program to implement the indicator light display method as described in the first aspect.

[0034] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the indicator light display method as described in the first aspect is implemented.

[0035] The indicator light display method, device, electronic device, and computer-readable storage medium provided by the embodiments of the present invention, when the vehicle-mounted terminal receives a control instruction of any automotive function system, cache the indication information obtained from the control instruction into the proxy queue, and set the state of the proxy queue to the first state. When polling the proxy queue regularly and querying that the state is the first state, read all the indicator light information in the proxy queue, and based on the indication information, simultaneously draw the target indicator lights corresponding to all the indicator light information on the dashboard through the UI process, realizing that when there are continuously different indicator lights that need to be updated, polling the dashboard regularly to simultaneously draw multiple indicator lights, without continuously refreshing the dashboard, thereby being able to reduce the number of refreshes of the dashboard, and further reducing the resource consumption of the system.

[0036] To make the above objects, features, and advantages of the present invention more obvious and understandable, the following specific preferred embodiments are given below and described in detail in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] To more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings required for the embodiments. It should be understood that the following drawings only show some embodiments of the present invention, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, without creative efforts, other relevant drawings can also be obtained based on these drawings.

[0038] Figure 1 Shows a block diagram of the indicator light display system provided by the embodiments of the present invention.

[0039] Figure 2 Shows a flowchart of the indicator light display method provided by the embodiments of the present invention.

[0040] Figure 3 Shows a flowchart of the indicator light display method provided by the embodiments of the present invention.

[0041] Figure 4 Shows Figure 2 or Figure 3 A flowchart of some sub-steps of step S13 in

[0042] Figure 5 Shows a flowchart of the indicator light display method provided by the embodiments of the present invention.

[0043] Figure 6 Shows Figure 5 A flowchart of some sub-steps of step S16 in

[0044] Figure 7 Shows a block diagram of the indicator light display device provided by the embodiments of the present invention.

[0045] Figure 8 The block diagram of the electronic device provided by the embodiment of the present invention is shown.

[0046] Icons: 100 - Indicator light display system; 110 - Vehicle-mounted terminal; 120 - CAN bus; 130 - Automotive function system; 140 - Indicator light display device; 150 - Preprocessing module; 160 - Drawing module; 170 - Flashing module; 180 - Electronic device. Specific embodiments

[0047] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Usually, the components of the embodiments of the present invention described and shown in the accompanying drawings here can be arranged and designed in various different configurations.

[0048] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed present invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present invention.

[0049] It should be noted that relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprising", "including" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, the element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.

[0050] The indicator light display solution of the traditional automotive instrument panel is as follows: after any control instruction of the indicator light of an automotive function module, functional component or functional system, the vehicle-mounted terminal responds to the control instruction to refresh the instrument panel, so as to draw the indicator light specified by the control instruction on the instrument panel, that is, the control instruction is the active party to refresh the interface.

[0051] With the development of in-vehicle intelligent terminal technology, drivers can understand the operating conditions of various components of the vehicle and the overall operating state of the vehicle through the indicator lights on the car dashboard. The types of indicator lights on the vehicle are increasing, which means that the in-vehicle terminal is very likely to continuously receive multiple control commands within a period of time. At this time, if the traditional indicator light display scheme of the car dashboard is adopted, it is necessary to continuously refresh the dashboard to continuously draw new indicator lights on the dashboard. For example, if 10 control commands are received within 10 ms, the dashboard needs to be refreshed 10 times within these 10 ms. The continuous refresh of the dashboard requires a large amount of CPU, resulting in a huge consumption of system resources.

[0052] At the same time, when multiple indicator lights need to flash, the traditional indicator light display scheme of the car dashboard is very likely to flash chaotically, reducing the user experience.

[0053] Therefore, there is an urgent need to provide a solution that can reduce the system resource consumption caused by indicator light display and improve the user experience.

[0054] Based on the above considerations, the embodiments of the present invention provide an indicator light display scheme, which can improve the problem of large system resource consumption when the dashboard draws indicator lights and can improve the user experience. Hereinafter, the indicator light display scheme will be introduced from multiple perspectives.

[0055] The indicator light display method provided by the embodiments of the present invention can be applied to the indicator light display system 100 as shown in Figure 1 The indicator light display system 100 includes an in-vehicle terminal 110 and a CAN bus 120. The in-vehicle terminal 110 includes a dashboard. The in-vehicle terminal 110 can be communicatively connected to each automotive function system 130 on the vehicle through the CAN bus 120. Among them, the automotive function system 130 includes but is not limited to: an air conditioning system, a safety system, an opening and closing system, a fuel system, and a battery system.

[0056] The in-vehicle terminal 110 is configured to, when receiving a control command from any automotive function system 130, cache the obtained indicator light information into the proxy queue after parsing it, and set the state of the proxy queue to the first state. The UI process periodically polls the proxy queue. When it queries that the proxy queue is in the first state, it reads all the indicator light information in the proxy queue and, based on the indicator light information, simultaneously draws the target indicator lights corresponding to all the indicator light information in the proxy queue on the dashboard through the UI process.

[0057] Among them, the first state indicates that an update is required. One UI process and one flashing process can run on the in-vehicle terminal 110.

[0058] The UI process and the blinking process can use the same time interval as the polling period to synchronously and regularly poll the proxy queue to read all the indicator light information that has not been processed in the proxy queue. Then, the UI process can, based on all the read indicator light information, simultaneously draw the target indicator lights corresponding to all the indicator light information on the dashboard. Similarly, the blinking process can, based on the read indicator light information, perform blinking control on the newly drawn target indicator lights on the dashboard.

[0059] The display area of the dashboard can be divided into multiple entity positions, and unique position information can be configured for each entity position. This position information can be coordinates or other information that can represent a position. Different indicator lights of different automotive function systems 130 can correspond to a unique position information, that is, the indicator lights are bound to the entity positions.

[0060] In addition, to ensure the normal operation of the indicator light display method provided by the embodiments of the present invention, the above memory library can pre-store the ID identifier of each indicator light and the graphic file of the indicator light, and the ID identifier and the graphic file of each indicator light are stored in a corresponding relationship.

[0061] In one implementation manner, referring to Figure 2 , a method for displaying indicator lights is provided. In this implementation manner, taking the application of this indicator light display method to the Figure 1 in-vehicle terminal 110 as an example, the following steps are included.

[0062] S11, when receiving a control instruction of any automotive function system, parse the control instruction to obtain indicator light information, cache the indicator light information into the proxy queue, and set the status of the proxy queue to the first status.

[0063] Among them, the indicator light information is used to specify the target indicator light. The first status of the proxy queue can be called the (client), which indicates that an update is required, that is, it represents true. The proxy queue can include two statuses (the first status and the second status), and the second status indicates that no update is required, that is, it can be false.

[0064] S13, regularly poll the proxy queue. When it is queried that the proxy queue is in the first status, read all the indicator light information in the proxy queue.

[0065] S15, based on the indicator light information, simultaneously draw the target indicator lights corresponding to all the indicator light information in the proxy queue on the dashboard through the UI process.

[0066] It should be noted that steps S13 and S15 can be implemented by the in-vehicle terminal 110 by running the UI process.

[0067] Exemplarily, when the in-vehicle terminal 110 receives a control instruction sent by any vehicle function system 130, it will put the indicator light information parsed from the control instruction into the proxy queue. Once new and unprocessed indicator light information appears in the proxy queue, the status of the proxy queue is set to the first status, that is, set to true.

[0068] The UI process polls the proxy queue regularly at intervals of duration T. For example, if the previous polling time is at time t1, then the next polling time is at time t2 (t2 = t1 + T). If during the period from time t1 to time t2, the in-vehicle terminal 110 caches new indicator light information parsed from the received control instruction into the proxy queue. If the UI process queries that the status of the proxy queue is the first status (i.e., true), it reads all the indicator light information cached in the proxy queue during the period from time t1 to time t2, and based on all the indicator light information, notifies the dashboard to draw the target indicator lights corresponding to all the indicator light information.

[0069] The interval duration is any set value, which can be adjusted according to requirements in actual applications. For example, the interval duration T can be 20 ms, that is, the UI reads the information of the proxy queue every 20 ms. In the case where there are control instructions in each cycle, it can also be understood that the dashboard is refreshed every 20 ms.

[0070] Compared with the traditional indicator light display scheme that refreshes the dashboard every time a control instruction comes, the indicator light display method provided by the embodiments of the present invention realizes that when there are different indicator lights that need to be updated continuously, the dashboard is refreshed regularly to draw multiple indicator lights simultaneously, thereby being able to reduce the refresh times of the dashboard, and further reducing the CPU occupancy rate when the indicator lights are displayed to reduce system resource consumption.

[0071] Furthermore, in order to avoid mis-refreshing caused by the status of the proxy queue (client), for example, when polling the proxy queue for the previous time, due to new indicator light information, the status of the proxy queue is the first status. Affected by this status, the first status of the proxy queue remains and causes mis-refreshing for the next polling. Therefore, a second status is introduced for the proxy queue, and the second status indicates that no update is required. On this basis, referring to Figure 3 , the indicator light display method provided by the embodiments of the present invention further includes step S14, which is executed after reading all the indicator light information in the proxy queue.

[0072] S14, set the status of the proxy queue to the second status, and delete all the indicator light information in the proxy queue; or, set the status of the proxy queue to the second status, and set the status of all the indicator light information in the proxy queue to processed.

[0073] After directly deleting all the indicator light information read from the proxy queue, the next polling will no longer be affected by this indicator light information. Similarly, set the status of the read indicator light information to processed, and the next round of polling will only read the newly obtained indicator light information within the next cycle. Also, after reading the indicator light information, set the status of the proxy queue to the second status, which can avoid misreading caused by no new indicator light information in the next cycle. Thus, the situation of data misreading can be greatly avoided.

[0074] In one implementation, in order to avoid the error of indicator light drawing to a certain extent and facilitate users to identify different indicator lights. Therefore, divide the display area of the dashboard into multiple entity positions, configure unique position information (position identifier, positionID) for each entity position, configure a unique ID identifier (eventID) for each indicator light, and configure the corresponding entity position on the dashboard for each indicator light to draw the indicator light, and store the graphic file of each indicator light and the ID identifier of the indicator light in a corresponding relationship in the memory library of the vehicle-mounted terminal. And obtaining each indicator light information from the control instruction includes the ID identifier and position information of a target indicator light. On this basis, referring to Figure 4 , the above step S13 may include the following steps.

[0075] S131, Load the graphic file corresponding to the ID identifier in each indicator light information from the memory library.

[0076] S132, At the entity position on the dashboard that matches the position information, draw the graphic file corresponding to the ID identifier that belongs to the same indicator light information as the position information, so as to draw the target indicator lights corresponding to all the indicator light information in the proxy queue on the dashboard at the same time.

[0077] Among them, the determination of the entity position and the correspondence of the graphic file can be implemented through the following position data structure and graphic data structure in the UI process.

[0078] The position data structure can be in the form of: {positionId, position, eventId, state}. Where positionId represents the position information, position represents the entity position corresponding to the position information, eventId represents the ID identifier of the indicator light corresponding to the entity position, and state records whether the indicator light at this position is on or off.

[0079] The graphic data structure can be in the form of: {eventId, image}. Image represents the graphic file corresponding to the ID identifier.

[0080] It should be understood that the above data structures are only examples and not the only limitations.

[0081] For example, when the read indicator information includes the ID identifier "001" and the position information (3, 4), then according to the ID identifier in the indicator information, the graphic file A corresponding to "001" is retrieved from the memory library, and the graphic file A is loaded (copied / copied) to the dashboard, and the graphic file A is drawn at the entity position with the position coordinates (3, 4).

[0082] Each indicator has a fixed position, which facilitates the user to form a memory of what the indicator at any entity position on the dashboard represents. This drawing and refreshing method also makes the operation data more convenient, reduces the code complexity, and is more convenient for reading and understanding. At the same time, the data (graphic file, the entity position displayed by each indicator) and the display are separated. The display of the indicator is based on the cached data (graphic file) stored externally, so that there will be no dirty data due to the change of internal data caused by an external signal during drawing, and it is convenient for maintenance.

[0083] In some cases, it is required that the indicator blinks. At this time, the obtained indicator information may further include the blinking frequency of the target indicator. On this basis, blinking control is introduced in the indicator display method provided by the present invention. Refer to Figure 5 , which includes the following step S16, and step S16 is executed after step S13.

[0084] S16, based on the blinking frequency in each indicator information, update the preset blinking information, and based on the updated blinking information, perform blinking control on the entity positions on the dashboard that match the position information in the same time advancement line, so as to perform blinking control on the target indicators at each entity position.

[0085] It should be noted that steps S13 and S16 can be implemented by the vehicle-mounted terminal 110 by running a blinking process.

[0086] A blinking process runs on the vehicle-mounted terminal 110. The blinking process and the UI process synchronously read the indicator information in the proxy queue. If at least one piece of indicator information contains a blinking frequency, the preset blinking information will be updated. Then, based on the updated blinking information, blinking control is performed on the entity positions on the dashboard that match the position information in each piece of indicator information containing the blinking frequency on the same time line, so as to implement the blinking control of the target indicator.

[0087] For example, an indicator light information includes an ID identifier "001", a position information (3, 4), and a blinking frequency of 500 ms. Another indicator light information includes an ID identifier "003", a position information (3, 5), and a blinking frequency of 250 ms. Then, the blinking process updates the preset blinking information and controls the blinking of the entity positions at coordinates (3, 4) and (3, 5) on the dashboard on the same production line at the same time. In this way, the target indicator light (No. 001 indicator light) at the entity position with coordinates (3, 4) blinks at a frequency of 500 ms, and the target indicator light (No. 002 indicator light) at the entity position with coordinates (3, 5) blinks at a frequency of 250 ms.

[0088] In one implementation, the data structure of the blinking information can be in the form of: {[freq1, time1, state1, positionId1 array], [freq2, time2, state2, positionId2 array], …, [freq N, time N, stateN, positionId N array]}.

[0089] Among them, freq1 represents the first blinking frequency, time1 represents how many ms are left until the next switching / turning state of the blinking frequency, and the positionId1 array represents the position coordinates where the indicator lights with the blinking frequency are displayed.

[0090] It can be known that the blinking information includes a frequency array (freq1, freq2), and a position array (positionId N array) corresponding to each blinking frequency in the frequency array. On this basis, referring to Figure 6 , the above step S16 may include the following steps.

[0091] S161, for the blinking frequency in each indicator light information, query whether there is already a blinking frequency in the frequency array. If so, execute step S162; otherwise, execute step S163.

[0092] S162, put the position information in the indicator light information into the position array corresponding to the blinking frequency.

[0093] S163, add the blinking frequency to the frequency array, create a position array corresponding to the blinking frequency, and put the position information in the indicator light information into the position array corresponding to the blinking frequency.

[0094] Through the above steps S161 - S163, the update of the blinking information is completed.

[0095] To effectively prevent the situation of chaotic blinking timing when multiple indicator lights blink, in one implementation, please continue to refer to Figure 6, step S16 further includes step S164, which realizes blinking control. This step S164 is executed after steps S162 and S163.

[0096] S164, advance all the blinking frequencies in the frequency array on the same time advancement line. When any blinking frequency advances to zero, switch the on / off state of the physical positions corresponding to each position information in the position array on the dashboard that matches the blinking frequency, and re-advance the blinking frequencies.

[0097] Through the above step S16 and its sub-steps, the blinking of multiple indicator lights can be controlled orderly, and the indicator lights with the same blinking frequency can blink synchronously.

[0098] Each indicator light can have a preset blinking duration. After the target indicator light blinks, the vehicle-mounted terminal 110 starts timing. When the blinking duration of the target indicator light reaches the preset blinking duration, the vehicle-mounted terminal 110 can stop displaying the target indicator light. It is also possible for the user to issue a stop command in the form of voice input or text input, and the vehicle-mounted terminal 110 responds to the stop command and stops displaying the target indicator light.

[0099] It should be noted that the above methods for stopping the display of the target indicator light are only examples, not the only limitations. In actual applications, adaptive adjustments can be made.

[0100] In one implementation, the graphic file of any indicator light can be updated. The update method may include: receiving and parsing an update instruction to obtain an ID identifier and a replacement graphic file; updating the graphic file corresponding to the ID identifier in the external storage to the replacement graphic file.

[0101] Similarly, the update of the display position of the indicator light can also be carried out in the same way as the above update of the graphic file.

[0102] The indicator light display method provided by the embodiments of the present invention provides a stable indicator light display scheme and refresh mechanism for interacting with the outside world, greatly reducing the probability of drawing errors of the indicator lights, and effectively reducing the CPU and resource consumption occupied by the indicator light display. At the same time, it provides a storage logic and mechanism for the prompt light information (graphic file and position information), realizes the separation of data and display, can avoid data chaos and display chaos to a certain extent, can effectively solve the problem of inconsistency between data (indicator light information in the control instruction) and display under the processing of a large number of signals, and is convenient for updating and maintenance.

[0103] Based on the concept of the above indicator light display method, in one implementation, referring to Figure 7 , an indicator light display device 140 is further provided. This indicator light display device 140 can be applied to Figure 1The in - vehicle terminal 110, the indicator light display device 140 includes a pre - processing module 150 and a drawing module 160.

[0104] The pre - processing module 150, when receiving a control instruction from any vehicle function system 130, parses the control instruction to obtain indicator light information, caches the indicator light information into the proxy queue, and sets the status of the proxy queue to the first status.

[0105] The drawing module 160 is used to periodically poll the proxy queue. When it queries that the proxy queue is in the first status, it reads all the indicator light information in the proxy queue.

[0106] The drawing module 160 is also used to, based on the indicator light information, draw the target indicator lights corresponding to all the indicator light information in the proxy queue on the dashboard through the UI process.

[0107] Furthermore, the indicator light display device 140 further includes a flashing module 170.

[0108] The flashing module 170 is used to periodically poll the proxy queue. When it queries that the proxy queue is in the first status, it reads all the indicator light information in the proxy queue, updates the preset flashing information based on the flashing frequency in each indicator light information, and based on the updated flashing information, performs flashing control on the entity positions on the dashboard that match the respective position information at the same time advancement line, so as to perform flashing control on the target indicator lights at each entity position.

[0109] It should be noted that the flashing module 170 and the drawing module 160 poll the proxy queue synchronously.

[0110] Through the coordinated action among the pre - processing module 150, the drawing module 160 and the flashing module 170 in the above - mentioned indicator light display device 140, when there are continuously different indicator lights that need to be updated, the dashboard is refreshed periodically to draw multiple indicator lights at the same time, without continuously refreshing the dashboard, thereby being able to reduce the refresh times of the dashboard and further reducing the resource consumption of the system.

[0111] For the specific limitations of the indicator light display device 140, reference can be made to the limitations on the indicator light display method in the above text, which will not be elaborated here. Each module in the above - mentioned indicator light display device 140 can be implemented in whole or in part through software, hardware and their combination. The above - mentioned modules can be embedded in the processor in the in - vehicle terminal 110 in hardware form or be independent of it, or can be stored in the memory of the in - vehicle terminal 110 in software form, so as to facilitate the processor to call and execute the operations corresponding to each of the above - mentioned modules.

[0112] In one implementation, an electronic device 180 is provided. The electronic device 180 can be the in - vehicle terminal 110, and its internal structure diagram can be as Figure 8As shown. The electronic device 180 includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. Among them, the processor of the electronic device 180 is used to provide computing and control capabilities. The memory of the electronic device 180 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The communication interface of the electronic device 180 is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, an operator network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, the indicator light display method is implemented.

[0113] Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the electronic device 180 to which the solution of the present invention is applied. The specific electronic device 180 may include Figure 8 More or fewer components may be shown, or certain components may be combined, or may have a different arrangement of components.

[0114] In one embodiment, the indicator light display device 140 provided by the present invention can be implemented in the form of a computer program. The computer program can be Figure 8 The memory of the electronic device 180 may store various program modules constituting the indicator light display device 140, for example, Figure 7 The pre-processing module 150, the drawing module 160 and the flashing module 170 are shown. The computer program composed of various program modules enables the processor to execute the steps described in this specification and applied to the indicator light display method.

[0115] For example, Figure 8 The electronic device 180 shown may be Figure 7 The preprocessing module 150 in the indicator light display device 140 shown in the figure performs step S11. The electronic device 180 can perform steps S13 and S15 through the drawing module 160. The electronic device 180 can perform steps S13 and S16 through the flashing module 170.

[0116] In one embodiment, an electronic device 180 is provided, including a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the following steps are implemented: when a control instruction of any automotive function system is received, parse the control instruction to obtain indicator light information, cache the indicator light information into a proxy queue, and set the status of the proxy queue to a first status; periodically poll the proxy queue, and when it is queried that the proxy queue is in the first status, read all the indicator light information in the proxy queue; based on the indicator light information, simultaneously draw the target indicator lights corresponding to all the indicator light information in the proxy queue on the dashboard through a UI process.

[0117] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: when a control instruction of any automotive function system is received, parse the control instruction to obtain indicator light information, cache the indicator light information into a proxy queue, and set the status of the proxy queue to a first status; periodically poll the proxy queue, and when it is queried that the proxy queue is in the first status, read all the indicator light information in the proxy queue; based on the indicator light information, simultaneously draw the target indicator lights corresponding to all the indicator light information in the proxy queue on the dashboard through a UI process.

[0118] In several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the drawings show the possible architectures, functions, and operations of devices, methods, and computer program products according to multiple embodiments of the present invention. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order from that marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

[0119] In addition, in each embodiment of the present invention, the functional modules can be integrated together to form an independent part, or each module can exist alone, or two or more modules can be integrated to form an independent part.

[0120] When the above-mentioned functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.

[0121] The foregoing are only the preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. An indicator display method, characterized in that, Applied to an in-vehicle terminal including an instrument panel, the method includes: When a control instruction of any vehicle function system is received, parse the control instruction to obtain indicator light information, cache the indicator light information into a proxy queue, and set the status of the proxy queue to a first status; the first status indicates that an update is required. Periodically poll the proxy queue. When it is queried that the proxy queue is in the first status, read all the indicator light information in the proxy queue. Based on the indicator light information, simultaneously draw the target indicator lights corresponding to all the indicator light information in the proxy queue on the instrument panel through the UI process. After the step of reading all the indicator light information in the proxy queue, the method further includes: Set the status of the proxy queue to a second status, and delete all the indicator light information in the proxy queue; wherein, the second status indicates that no update is required. Alternatively, set the status of the proxy queue to a second status, and set the status of all the indicator light information in the proxy queue to processed.

2. The indicator light display method according to claim 1, wherein In the memory library of the in-vehicle terminal, the graphic file of each indicator light and the ID identifier of the indicator light are stored in a corresponding relationship. Each piece of the indicator light information includes the ID identifier of a target indicator light and location information. The step of simultaneously drawing the target indicator lights corresponding to all the indicator light information in the proxy queue on the instrument panel through the UI process based on the indicator light information includes: Load the graphic file corresponding to the ID identifier in each piece of the indicator light information from the memory library. At the entity position on the instrument panel that matches the location information, draw the graphic file corresponding to the ID identifier that belongs to the same piece of indicator light information as the location information, so as to simultaneously draw the target indicator lights corresponding to all the indicator light information in the proxy queue on the instrument panel.

3. The indicator light display method according to claim 2, characterized in that, When the indicator light information further includes the blinking frequency of the target indicator light, after the step of reading all the indicator light information in the proxy queue, the method further includes: Based on the blinking frequency in each piece of the indicator light information, update the preset blinking information, and based on the updated blinking information, perform blinking control on the entity positions on the instrument panel that match the respective location information on the same time advancement line, so as to perform blinking control on the target indicator lights at the respective entity positions.

4. The indicator light display method according to claim 3, wherein The blinking information includes a frequency array, and position data corresponding to each blinking frequency in the frequency array. The step of updating the preset blinking information based on the blinking frequency in each piece of the indicator light information includes: For the blinking frequency in each piece of the indicator light information, query whether the blinking frequency already exists in the frequency array. If not, add the blinking frequency to the frequency array, create a position array corresponding to the blinking frequency, and put the location information in the piece of indicator light information into the position array corresponding to the blinking frequency. If so, put the location information in the piece of indicator light information into the position array corresponding to the blinking frequency.

5. The indicator light display method according to claim 4, wherein The step of performing flashing control on the entity positions on the dashboard that match each of the position information on the same time advancement line based on the updated flashing information includes: Advance all the flashing frequencies in the frequency array on the same time advancement line. When any flashing frequency advances to zero, switch the on / off state of the entity positions that match each position information in the position array corresponding to the flashing frequency on the dashboard, and re-advance the flashing frequency.

6. The indicator light display method according to claim 2, characterized in that The method further includes: Receiving and parsing an update instruction to obtain an ID identifier and a replacement graphic file; Updating the graphic file corresponding to the ID identifier in the memory library to the replacement graphic file.

7. An indicator display device, characterized in that, Applied to an in-vehicle terminal including a dashboard, the indicator light display device includes a preprocessing module and a drawing module: When receiving a control instruction from any automotive function system, the preprocessing module parses the control instruction to obtain indicator light information, caches the indicator light information in a proxy queue, and sets the status of the proxy queue to a first status; the first status indicates that an update is required. The drawing module is used to periodically poll the proxy queue. When it is queried that the proxy queue is in the first status, read all the indicator light information in the proxy queue. The drawing module is further used to, based on the indicator light information, simultaneously draw the target indicator lights corresponding to all the indicator light information in the proxy queue on the dashboard through a UI process. After the step of reading all the indicator light information in the proxy queue, the drawing module is further used to: Set the status of the proxy queue to a second status and delete all the indicator light information in the proxy queue; wherein, the second status indicates that no update is required. Alternatively, set the status of the proxy queue to a second status and set the status of all the indicator light information in the proxy queue to processed.

8. An electronic device, characterized in that, Including a processor and a memory, the memory stores a computer program that can be executed by the processor, and the processor can execute the computer program to implement the indicator light display method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the indicator light display method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Display control device, reproduction device, information display system for mobile object, module for driver's seat, and mobile object

    US20100245580A1