Multi-channel data updating method, vehicle lamp and vehicle

By setting priority fields and intelligent update strategies in the multi-channel LED control chip, determining the combination of channels to be updated and data updates are performed, the problems of inefficient data updates and poor real-time performance in traditional methods are solved, and more efficient data transmission and faster system response are achieved.

CN119946932APending Publication Date: 2025-05-06NANNING LIAOWANG AUTOMOTIVE LAMPS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411913934.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

In modern LED lighting and display applications, the traditional data update method of multi-channel LED control chips has problems of inefficiency and poor real-time performance. Especially when it is necessary to control multiple multi-channel chips at the same time, how to efficiently and orderly update the brightness data of each channel becomes an important issue.

Method used

A multi-channel data update method is proposed. By presetting the priority fields of each channel, the channels to be updated are determined, and based on the number of channels to be updated and the maximum channel update capability of the chip, the channels to be updated are determined, the combined data is obtained and the combined data is updated.

Benefits of technology

The priority mechanism ensures that high-priority channels are updated first, and improve system response speed and user experience; through intelligent update strategies, the number of data transmission times and data volume are reduced, and data transmission efficiency and communication bandwidth utilization are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119946932A_ABST
    Figure CN119946932A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of vehicle control, in particular to a multi-channel data updating method, which comprises the following steps of: determining a to-be-updated channel based on a preset priority field corresponding to each channel; determining a to-be-updated channel number corresponding to the to-be-updated channel, and determining a to-be-updated channel combination based on the to-be-updated channel number and the maximum channel updating capability of a chip; and obtaining to-be-updated channel combination data corresponding to the to-be-updated channel combination, and updating the to-be-updated channel combination data based on the chip. Through the technical scheme provided by the invention, the problem of low data transmission efficiency in the vehicle LED illumination and display process can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle control technology, and in particular to a multi-channel data updating method, a vehicle lamp and a vehicle. Background Art

[0002] In modern LED lighting and display applications, multi-channel LED control chips are widely used because they can simultaneously control the brightness of multiple LED channels.

[0003] However, in order to cover a larger display area or achieve more sophisticated brightness control, multiple multi-channel control chips are usually needed at the same time. However, due to the limitations of communication bandwidth and the performance of the chip itself, traditional data update methods have problems such as low efficiency and poor real-time performance.

[0004] When controlling multiple multi-channel chips at the same time, how to update the brightness data of each channel efficiently and orderly becomes an important issue. Summary of the invention

[0005] One purpose of the present application is to provide a multi-channel data updating method, a vehicle lamp and a vehicle, which can solve the problem of low data transmission efficiency during vehicle LED lighting and display.

[0006] In a first embodiment of the present application, a multi-channel data updating method is provided, the method comprising:

[0007] Determine the channel to be updated based on the priority fields corresponding to the pre-set channels;

[0008] Determine the number of channels to be updated corresponding to the channels to be updated, and determine a combination of channels to be updated based on the number of channels to be updated and the maximum channel update capability of the chip;

[0009] Acquire the channel combination data to be updated corresponding to the channel combination to be updated, and update the channel combination data to be updated based on the chip.

[0010] In some embodiments, determining the channel combination to be updated based on the number of channels to be updated and the maximum channel update capability of the chip includes:

[0011] Determine the maximum number of update channels of the chip based on the maximum channel update capability of the chip;

[0012] In response to the maximum number of update channels of the chip being greater than the number of channels to be updated, combining all or part of the channels to be updated to obtain a channel combination to be updated;

[0013] In response to the maximum channel update quantity of the chip being less than the number of channels to be updated, channels whose number is not greater than the maximum channel update quantity are selected from the channels to be updated and combined to obtain a channel combination to be updated.

[0014] In some embodiments, combining all or part of the to-be-updated channels to obtain a to-be-updated channel combination includes:

[0015] Determine the channels that are continuous and to be updated among the channels to be updated;

[0016] The number of channels that are continuous and to be updated is used as the channels to be combined;

[0017] A channel combination to be updated is generated based on the channels to be combined.

[0018] In some embodiments, the selecting channels no greater than the maximum channel update number from the channels to be updated to combine to obtain a channel combination to be updated includes:

[0019] Determine the channels that are continuous and to be updated among the channels to be updated;

[0020] The number of channels that are continuous and to be updated is used as the channels to be combined;

[0021] Channels whose number is no greater than the maximum channel update number are selected from the channels to be combined to obtain the combined channels to be updated.

[0022] In some embodiments, the acquiring the channel combination data to be updated corresponding to the channel combination to be updated, and updating the channel combination data to be updated based on the chip, includes:

[0023] In response to the number of channels to be updated being multiple, the channel data to be updated corresponding to the multiple channels to be updated are combined, and the combined data are sent to the chip at one time for data update;

[0024] In response to the number of channels that are continuous and to be updated being one, the channel data to be updated corresponding to one channel to be updated is sent to the chip for data update.

[0025] In some embodiments, the method further comprises:

[0026] A priority field is pre-set for each channel, and the priority field is used to identify the order in which the channels are processed.

[0027] In some embodiments, the method further comprises:

[0028] In response to the current update failure, the pending channels that failed to update are marked as pending update status again, and the update processing is continued based on the order corresponding to the priority fields of the pending channels that failed to update.

[0029] In some embodiments, the method further comprises:

[0030] The priority fields of the channels are dynamically adjusted, and update processing is performed based on the order corresponding to the adjusted priority fields.

[0031] Some embodiments of the present application also provide a vehicle lamp, which includes a multi-channel data update method provided in any of the above embodiments. A multi-channel data update method, the method comprising: determining a channel to be updated based on a priority field corresponding to each channel pre-set; determining the number of channels to be updated corresponding to the channel to be updated, and determining a channel combination to be updated based on the number of channels to be updated and the maximum channel update capability of the chip; obtaining channel combination data to be updated corresponding to the channel combination to be updated, and updating the channel combination data to be updated based on the chip.

[0032] In some embodiments of the present application, a vehicle is further provided, the vehicle comprising the headlight provided in any of the above embodiments, and the multi-channel data updating method provided in any of the above embodiments. A multi-channel data updating method, the method comprising: determining a channel to be updated based on a priority field corresponding to each channel pre-set; determining the number of channels to be updated corresponding to the channel to be updated, and determining a channel combination to be updated based on the number of channels to be updated and the maximum channel updating capability of the chip; obtaining channel combination data to be updated corresponding to the channel combination to be updated, and updating the channel combination data to be updated based on the chip.

[0033] The technical solution provided by this application can improve the update speed of key channels. Through the priority mechanism, it is ensured that high-priority channels can be updated first, thereby improving the response speed of the system and user experience.

[0034] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0036] Figure 1 is a flowchart of a multi-channel data updating method provided in one embodiment of the present application;

[0037] Figure 2 is a schematic diagram of the structure of a multi-channel control system provided in one embodiment of the present application;

[0038] Figure 3 It is a flowchart of a method for determining a channel combination to be updated provided in one embodiment of the present application;

[0039] Figure 4 It is a flowchart of a method for combining all or part of the channels to be updated to obtain a combination of channels to be updated provided in one embodiment of the present application;

[0040] Figure 5 It is a flowchart of a method for selecting channels not greater than the maximum channel update number from the channels to be updated to obtain a channel combination to be updated, provided in one embodiment of the present application;

[0041] Figure 6 It is a flowchart of a method for determining a combination of channels to be updated based on the number of channels to be updated provided in one embodiment of the present application;

[0042] Figure 7 It is a structural schematic diagram of a multi-channel data updating device according to an embodiment of the present application;

[0043] Figure 8 It is a structural diagram of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0045] The technical solutions between the various embodiments of the present invention can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0046] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the specific embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0047] like Figure 1 As shown, the present application provides a multi-channel data updating method, comprising:

[0048] Step 101 : determining a channel to be updated based on a priority field preset corresponding to each channel.

[0049] The above-mentioned presetting includes adding a priority field for each channel in the device group data structure to identify the update priority of each channel.

[0050] By pre-selecting and setting the update priority for each channel, it is possible to ensure that the channel is updated in the pre-set order, and the order of channel updates is guaranteed. And the priority order can be customized based on demand, so that the order in which each channel is updated can be adjusted based on business needs, so that the order in which each channel is updated in different businesses has a certain degree of flexibility.

[0051] By presetting the update priority of each channel, a higher priority can be set for the key channel, which can increase the update speed of the key channel. Through the priority mechanism, it is ensured that the high-priority channel can be updated first, thereby improving the system's response speed and user experience.

[0052] The priority of the channel to be updated can be set through the device group data structure. The device group data structure is part of the operating system and is used to manage the devices connected to the channel output and input ends and the channel itself to ensure the correct operation of each device.

[0053] For example, a chip includes multiple channels, and the priority of each channel in the chip can be pre-set. Figure 2 The chip may be an LED control chip, and the output ends of the multi-channel LED control chip may be connected to LEDs respectively, for example, one channel may be connected to one LED, and the multi-channel LED control chip is connected to the control system via a communication interface.

[0054] The device group data structure may also include information such as the bus ID of each chip, the number of controllable channels, the current duty cycle setting, the channel status array, and the current update index, which are used to manage the lighting and display of the LEDs.

[0055] In some embodiments, the aforementioned channels may refer to output end channels of a multi-channel chip; or may refer to the multi-channel chip itself, for example, the multi-channel chip is regarded as an integral channel.

[0056] In some embodiments, at the beginning of each update cycle, all channels or chips that need to be updated are first traversed, and the channels are sorted according to the priority fields of the channels. The sorting result ensures that the channels or chips with high priority are arranged in front so as to be processed first.

[0057] Step 102: Determine the number of channels to be updated corresponding to the channels to be updated, and determine a combination of channels to be updated based on the number of channels to be updated.

[0058] Among them, the number of channels to be updated can be the number of channels that need to be updated in this update cycle, and the combination of channels to be updated can be, when there are multiple channels to be updated, the multiple channels to be updated are combined according to certain rules, and the combined channels are combined and updated, which can improve the update efficiency of the channels.

[0059] Step 103 , obtaining the channel combination data to be updated corresponding to the channel combination to be updated, and updating the channel combination data to be updated based on the chip.

[0060] The channel combination to be updated is determined to be the optimal combination, and the combination data corresponding to the channel combination to be updated is obtained, and the combination data is sent to the chip at one time. The chip performs a one-time data update on the received combination data, thereby improving the efficiency of channel data updating.

[0061] Data is sent in combination according to the maximum update capability of the chip, which reduces the number of data transmissions and the amount of data, optimizes data transmission efficiency, and improves the utilization of communication bandwidth.

[0062] For example, if four channels that need to be updated are obtained during this update cycle, the channel data corresponding to the four channels can be combined to form a combination to be updated, and the data corresponding to the combination to be updated are uniformly sent to the chip, and the chip is updated.

[0063] For example, in this update cycle, the channel combination to be updated includes one or more channels, and the data corresponding to the channel combination to be updated is used to be sent to the chip in combination for updating.

[0064] In some embodiments, after performing the channel update, the method further includes updating the channel status array and the current update index of the chip.

[0065] In some embodiments, the method further includes: determining a maximum channel update capability corresponding to the chip, and determining a channel combination to be updated based on the maximum channel update capability of the chip and the number of channels to be updated.

[0066] For example, the maximum channel update capability corresponding to the chip may be the number of channels that the chip can update. For example, if the chip can update 1 channel, 2 channels, or 4 channels at a time, then the maximum update capability corresponding to the chip is 1 channel, 2 channels, or 4 channels.

[0067] In some embodiments, the method further includes confirming the maximum channel update capability of the chip, and determining the channel combination to be updated based on the maximum channel update capability of the chip. For example, the number of channels included in the channel combination to be updated must be less than or equal to the maximum update capability of the chip. In this way, it can be ensured that after the updated data corresponding to the channel combination to be updated is uniformly sent to the chip, the chip has the ability to update these data at one time.

[0068] like Figure 3 As shown, in some embodiments, determining the channel combination to be updated based on the number of channels to be updated and the maximum channel update capability of the chip includes:

[0069] Step 301, determining the maximum number of update channels of the chip based on the maximum channel update capability of the chip;

[0070] Step 302, in response to the maximum number of update channels of the chip being greater than the number of channels to be updated, all or part of the channels to be updated are combined to obtain a channel combination to be updated;

[0071] Step 303 , in response to the maximum channel update quantity of the chip being less than the number of channels to be updated, channels whose number is not greater than the maximum channel update quantity are selected from the channels to be updated and combined to obtain a channel combination to be updated.

[0072] In step 301 , the maximum channel update capability of the chip may be determined based on the number of channels that the chip can update at one time.

[0073] In step 302, in this update cycle, the maximum number of update channels of the chip is greater than the number of channels to be updated this time. That is, in this update cycle, the chip can update all the channels to be updated at one time, without having to update them separately in multiple times. Therefore, at this time, all the channels to be updated this time can be sent to the chip for processing, or some channels can be selected from the channels to be updated this time and sent to the chip for updating as needed.

[0074] In step 303, in this update cycle, the maximum number of update channels of the chip is less than the number of channels to be updated this time. That is, in this update cycle, the chip cannot update all the channels to be updated at one time, so it needs to be updated separately in multiple times. Therefore, at this time, the number of channels to be updated that is not greater than the maximum number of update channels of the chip can be selected from all the channels to be updated, and the data corresponding to the selected channels to be updated are sent to the chip for processing.

[0075] like Figure 4 As shown, in some embodiments, combining all or part of the channels to be updated to obtain a channel combination to be updated includes:

[0076] Step 401, determining the channels to be updated that are continuous among the channels to be updated;

[0077] Step 402, taking the number of channels that are continuous and to be updated as channels to be combined;

[0078] Step 403: Generate a channel combination to be updated based on the channels to be combined.

[0079] In the above embodiment, since the maximum number of update channels of the chip is greater than the number of channels to be updated this time, continuous channels to be updated can be selected from the channels to be updated, and data corresponding to all channels that meet the conditions are sent to the chip.

[0080] like Figure 5 As shown, in some embodiments, the selecting channels no greater than the maximum channel update number from the channels to be updated to combine to obtain the channel combination to be updated includes:

[0081] Step 501, determining the channels to be updated that are continuous among the channels to be updated;

[0082] Step 502, taking the number of channels that are continuous and to be updated as channels to be combined;

[0083] Step 503: Select channels no greater than the maximum channel update number from the channels to be combined to obtain combined channels to be updated.

[0084] In the above embodiment, since the maximum number of update channels of the chip is less than the number of channels to be updated this time, that is, the chip does not have the ability to process all the channel data to be updated this time, it is possible to select continuous channels to be updated from the channels to be updated, and select channels no greater than the maximum number of channel updates to combine, and send the combined data to the chip for updating.

[0085] like Figure 6 As shown, in some embodiments, determining the number of channels to be updated corresponding to the channels to be processed, and determining the combination of channels to be updated based on the number of channels to be updated includes:

[0086] Step 601: determine the channels that are continuous and to be updated among the channels to be processed, and use the number of the channels that are continuous and to be updated as the number of channels to be updated.

[0087] Step 602 , in response to the channel data to be updated being less than or equal to the maximum channel update capability of the chip, combining the channel data corresponding to the number of channels to be updated that are continuous to obtain an update combination.

[0088] In the above embodiment, continuous channels that need to be updated are searched within the channel range that can be controlled by the chip, and the optimal update combination is selected according to the number of continuous channels found, and the data corresponding to the channel combination to be updated is sent to the chip for updating. When determining the channel combination to be updated, the maximum update capability of the chip is taken into consideration, so that the chip can be guaranteed to have the ability to process the received channel data at one time, and also ensure that the chip can process data at the maximum possible time, ensure that the chip resources are reused, and improve the efficiency of chip data processing.

[0089] In the above embodiment, the channels to be updated are searched based on the priority of each channel, and it is confirmed whether the channels to be updated are continuous channels. If there are continuous channels, the continuous channels are combined and updated, and at the same time, it is ensured that the number of channels included in the combined channels to be updated is less than or equal to the maximum update capability of the chip.

[0090] In some embodiments, combining the channel data corresponding to the number of channels that are in a continuous state and to be updated to obtain an updated combination includes:

[0091] In response to the number of channels to be updated being multiple, the channel data to be updated corresponding to the multiple channels to be updated are combined, and the combined data are sent to the chip at one time for data update;

[0092] In response to the number of channels that are continuous and to be updated being one, the channel data to be updated corresponding to one channel to be updated is sent to the chip for data update.

[0093] For example, the current chip can update 4 channels at a time. If 4 consecutive channels that need to be updated are found, their data are packaged into one transmission. For another example, if only 2 consecutive channels that need to be updated are found, the data of these two channels are sent. For another example, if only a single channel needs to be updated and the next channel does not need to be updated, only the data of this channel is sent.

[0094] In some embodiments, a priority field is pre-set for each channel, and the priority field is used to identify the order in which the channels are processed. The priority field is an integer type, and the smaller the value, the higher the priority. Of course, in other embodiments, the larger the priority, the higher the priority, which is not limited here.

[0095] In some embodiments, the method further includes: dynamically adjusting the priority field of the channel, and performing update processing based on the order corresponding to the adjusted priority field.

[0096] The system allows dynamic adjustment of the priority of each channel or chip according to actual needs, enhancing system flexibility and enabling the system to adapt to different application scenarios and demand changes. For example, in a specific scenario, some channels or chips may need to temporarily increase their priority to ensure timely update of their data. A specific scenario may be a temporary need for the LED to display other content, or other temporary needs.

[0097] In some embodiments, the method further includes: in response to the current update failure, marking the pending channels that failed to update as pending update status again, and continuing the update processing based on the order corresponding to the priority fields of the pending channels that failed to update.

[0098] In some embodiments, during the data transmission process, data update failure may occur, so an error detection and retry mechanism is added.

[0099] The above method also includes responding to the current update failure, marking the pending channel that failed to update as a pending update state again, and continuing the update process based on the order corresponding to the priority field of the pending channel that failed to update. If a data transmission fails, the channel or chip that was not successfully updated is re-marked as a pending update state, and retried in a subsequent update cycle according to its priority.

[0100] This application proposes a multi-channel LED control chip data update method based on priority and intelligent update strategy, specifically including:

[0101] Device data structure extension: In the device group data structure, add a priority field for each channel or chip to identify its update priority. The priority field can be an integer type, and the smaller the value, the higher the priority. By adding a priority to the chip, the channels corresponding to the chip have the same priority order. In other words, the priority order of the channels is determined based on the chip. Channels belonging to the same chip have the same priority.

[0102] The device group data structure also contains information such as the bus ID of each chip, the number of controllable channels, the current duty cycle setting, the channel status array (recording which channels need to be updated), and the current update index.

[0103] Priority sorting: At the beginning of each update cycle, all channels or chips that need to be updated are first traversed and sorted according to their priority fields. The sorting result will ensure that high-priority channels or chips are placed at the front for priority processing.

[0104] Intelligent update strategy: Based on the sorted results, process the update request of each channel or chip in turn. For each request, perform the following steps: Check the maximum update capability of the current chip (e.g., 1, 2, or 4 channels can be updated at a time). Starting from the current update index, search for continuous channels that need to be updated within the controllable channel range of the chip. Select the optimal update combination based on the number of continuous channels found. For example, if 4 continuous channels that need to be updated are found, their data is packaged into one transmission; if there are only 2 continuous channels, the data of these two channels is sent; if only a single channel needs to be updated and the next channel does not need to be updated, only the data of that channel is sent. Send data to the chip for update, and update the chip's channel status array and current update index.

[0105] Error handling and retry mechanism: During the data transmission process, an error detection and retry mechanism is added. If a data transmission fails, the channel or chip that was not successfully updated is re-marked as pending update status and retried in the subsequent update cycle according to its priority.

[0106] Dynamic priority adjustment: The system allows dynamic adjustment of the priority of each channel or chip according to actual needs. For example, in certain scenarios, some channels may need to temporarily increase their priority to ensure timely update of their data.

[0107] The technical solution provided by this application can improve the update speed of key channels. Through the priority mechanism, it is ensured that high-priority channels can be updated first, thereby improving the response speed of the system and user experience.

[0108] The technical solution provided by the present application can optimize data transmission efficiency. Combined with the intelligent update strategy, data combination transmission is performed according to the maximum update capability of the chip, which reduces the number of data transmissions and the amount of data, and improves the utilization of communication bandwidth.

[0109] The technical solution provided by this application can enhance the flexibility of the system, allow dynamic adjustment of priorities, and enable the system to adapt to different application scenarios and demand changes.

[0110] The technical solution provided by this application can reduce system complexity. The unified device group management model and priority sorting algorithm simplify the control logic of multiple multi-channel chips and reduce the difficulty of system development and maintenance.

[0111] The technical solution provided by this application is illustrated below with a specific embodiment.

[0112] The present application provides a multi-channel LED control chip data update method based on priority and intelligent update strategy, which relates to the field of LED lighting and display control technology, and is specifically a multi-channel LED control chip data update method combined with priority management and intelligent update strategy. The method improves data transmission efficiency and system response speed by giving priority to data of high-priority channels and intelligently combining and sending data in combination with the maximum update capability of the chip.

[0113] In LED lighting and display applications, multi-channel LED control chips can be used to control the brightness of multiple LED channels at the same time. However, in large projects, in order to cover a larger display area or achieve more sophisticated brightness control, it is usually necessary to use multiple multi-channel control chips at the same time. These chips are often connected to the control system through serial communication interfaces such as UART, but are limited by the communication bandwidth and the performance limitations of the chip itself (such as the maximum number of channels updated at a time). Traditional data update methods have problems such as low efficiency and poor real-time performance. When controlling multiple multi-channel chips at the same time, how to update the brightness data of each channel efficiently and orderly becomes an important issue.

[0114] In some embodiments, a simple polling or sequential update method can be used, but the update order cannot be flexibly adjusted according to actual needs, resulting in possible delays in the update of key channels. The update method in other embodiments often lacks a priority processing mechanism and fails to fully utilize the maximum update capacity of the chip, resulting in low data transmission efficiency and slow system response speed.

[0115] In the above embodiments, there is a technical problem that the update order is inflexible. Traditional multi-channel LED control chip data update methods often use simple polling or sequential update methods, and cannot dynamically adjust the update order according to the priority or importance of the channel. This causes the data update of important channels to be delayed in emergency or critical situations, affecting the overall performance of the system and user experience. In the embodiments provided by the present application, by introducing a priority mechanism, it is allowed to dynamically adjust the priority of each channel according to actual needs, ensuring that high-priority channels can be updated first.

[0116] The above embodiments have the technical problem of low data transmission efficiency. In a multi-channel LED control system, if the data of each channel is sent separately, the number of data transmissions and the amount of data will be greatly increased, thereby reducing the utilization rate of the communication bandwidth. In addition, if the maximum update capability of the chip is not fully utilized (such as being able to update multiple channels at a time), low data transmission efficiency will also result. The technical solution provided in this application, through an intelligent update strategy, combines and sends data according to the maximum update capability of the chip, thereby reducing the number of data transmissions and the amount of data, and improving data transmission efficiency.

[0117] The above embodiments have the technical problem of poor system scalability. In large-scale LED lighting and display systems, as the number of control chips increases, the traditional update method may cause system performance to deteriorate due to insufficient data processing capabilities. The technical solution provided by this application optimizes the update strategy and device data structure, so that the system can better support the simultaneous control of multiple multi-channel LED control chips, thereby improving the scalability of the system.

[0118] There are technical problems in the above embodiments that the error handling and retry mechanisms are insufficient. During the data transmission process, data transmission may fail due to various reasons (such as communication failure, equipment failure, etc.). The update method in the above embodiments lacks a complete error handling and retry mechanism, resulting in that the data that has not been successfully updated cannot be processed in time. The technical solution provided in the present application ensures that the data that has not been successfully updated can be retried in the subsequent update cycle by adding an error detection and retry mechanism, thereby improving the reliability and stability of the system.

[0119] Specifically, this application proposes a multi-channel LED control chip data update method based on priority and intelligent update strategy. The specific technical solution is as follows:

[0120] First, set up the device data structure extension: In the device group data structure, add a priority field for each channel or chip (depending on the specific implementation) to identify its update priority. The priority field is an integer type, and the smaller the value, the higher the priority. The device group data structure also contains information such as the bus ID of each chip, the number of controllable channels, the current duty cycle setting, the channel status array (recording which channels need to be updated), and the current update index.

[0121] Secondly, design priority sorting. At the beginning of each update cycle, first traverse all channels or chips that need to be updated and sort them according to their priority fields. The sorting result will ensure that high-priority channels or chips are placed in front for priority processing.

[0122] Then, design an intelligent update strategy. According to the priority sorting results, process the update request of each channel or chip in turn. For each request, perform the following steps: Check the maximum update capability of the current chip (such as 1, 2, or 4 channels can be updated at a time). Starting from the current update index, search for continuous channels that need to be updated within the controllable channel range of the chip. Select the optimal update combination based on the number of continuous channels found. For example, if 4 continuous channels that need to be updated are found, their data is packaged into one transmission; if there are only 2 continuous channels, the data of these two channels is sent; if only a single channel needs to be updated and the next channel does not need to be updated, only the data of that channel is sent. Send data to the chip for update, and update the chip's channel status array and current update index.

[0123] In addition, an error handling and retry mechanism is designed. In the data transmission process, an error detection and retry mechanism is added. If a data transmission fails, the channel or chip that was not successfully updated is re-marked as pending update status and retried in the subsequent update cycle according to its priority.

[0124] Furthermore, the solution provided by the present application also includes dynamic priority adjustment. The system allows the priority of each channel or chip to be dynamically adjusted according to actual needs. For example, in a specific scenario, some channels may need to temporarily increase their priority to ensure timely update of their data.

[0125] Through the technical solutions provided in the above embodiments, the update speed of key channels can be improved. Through the priority mechanism, it is ensured that high-priority channels can be updated first, thereby improving the response speed of the system and user experience. The data transmission efficiency can be optimized. Combined with the intelligent update strategy, data combination is sent according to the maximum update capability of the chip, which reduces the number of data transmissions and the amount of data, and improves the utilization rate of the communication bandwidth. The flexibility of the system can be enhanced. Dynamic adjustment of priorities is allowed so that the system can adapt to different application scenarios and changes in requirements. The complexity of the system can be reduced. The unified device group management model and priority sorting algorithm simplify the control logic of multi-chip multi-channel chips and reduce the difficulty of system development and maintenance.

[0126] In one embodiment, Figure 7 As shown, the present application provides a data updating device, the device comprising:

[0127] A preset module 701, used to determine the channel to be updated based on the priority field corresponding to each channel preset;

[0128] A determination module 702 is used to determine the number of channels to be updated corresponding to the channels to be updated, and determine a combination of channels to be updated based on the number of channels to be updated and the maximum channel update capability of the chip;

[0129] The updating module 703 is used to obtain the channel combination data to be updated corresponding to the channel combination to be updated, and update the channel combination data to be updated based on the chip.

[0130] For the specific definition of the data updating device, please refer to the definition of the multi-channel data updating method above, which will not be repeated here. Each module in the above data updating device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0131] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for channel data related data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a data update processing method is implemented.

[0132] Those skilled in the art will understand that 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 application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0133] In one embodiment, a computer device is also provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program. The multi-channel data update method includes: determining the channel to be updated based on the priority field corresponding to each channel pre-set; determining the number of channels to be updated corresponding to the channel to be updated, and determining the channel combination to be updated based on the number of channels to be updated and the maximum channel update capability of the chip; obtaining the channel combination data to be updated corresponding to the channel combination to be updated, and updating the channel combination data to be updated based on the chip.

[0134] In one embodiment, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented. The multi-channel data update method includes: determining the channel to be updated based on the priority field corresponding to each channel pre-set; determining the number of channels to be updated corresponding to the channel to be updated, and determining the channel combination to be updated based on the number of channels to be updated and the maximum channel update capability of the chip; obtaining the channel combination data to be updated corresponding to the channel combination to be updated, and updating the channel combination data to be updated based on the chip.

[0135] The present application also provides a computer program product, including a computer program or an instruction, characterized in that the computer program or the instruction, when executed by a processor, implements the steps of the method provided in any of the above embodiments. Wherein, the multi-channel data update method includes: determining the channel to be updated based on the priority field corresponding to each channel set in advance; determining the number of channels to be updated corresponding to the channel to be updated, and determining the channel combination to be updated based on the number of channels to be updated and the maximum channel update capability of the chip; obtaining the channel combination data to be updated corresponding to the channel combination to be updated, and updating the channel combination data to be updated based on the chip.

[0136] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0137] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0138] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A multi-channel data updating method, characterized in that: The method comprises: Determine the channel to be updated based on the priority fields corresponding to the pre-set channels; Determine the number of channels to be updated corresponding to the channels to be updated, and determine a combination of channels to be updated based on the number of channels to be updated and the maximum channel update capability of the chip; Acquire the channel combination data to be updated corresponding to the channel combination to be updated, and update the channel combination data to be updated based on the chip.

2. The method according to claim 1, characterized in that The determining of the channel combination to be updated based on the number of channels to be updated and the maximum channel update capability of the chip includes: Determine the maximum number of update channels of the chip based on the maximum channel update capability of the chip; In response to the maximum number of update channels of the chip being greater than the number of channels to be updated, combining all or part of the channels to be updated to obtain a channel combination to be updated; In response to the maximum channel update quantity of the chip being less than the number of channels to be updated, channels whose number is not greater than the maximum channel update quantity are selected from the channels to be updated and combined to obtain a channel combination to be updated.

3. The method according to claim 2, characterized in that The step of combining all or part of the channels to be updated to obtain a channel combination to be updated includes: Determine the channels that are continuous and to be updated among the channels to be updated; The number of channels that are continuous and to be updated is used as the channels to be combined; A channel combination to be updated is generated based on the channels to be combined.

4. The method according to claim 2, characterized in that: The selecting channels no greater than the maximum channel update number from the channels to be updated and combining them to obtain a channel combination to be updated includes: Determine the channels that are continuous and to be updated among the channels to be updated; The number of channels that are continuous and to be updated is used as the channels to be combined; Channels whose number is no greater than the maximum channel update number are selected from the channels to be combined to obtain the combined channels to be updated.

5. The method according to claim 1, characterized in that The acquiring the channel combination data to be updated corresponding to the channel combination to be updated, and updating the channel combination data to be updated based on the chip, includes: In response to the number of channels to be updated being multiple, the channel data to be updated corresponding to the multiple channels to be updated are combined, and the combined data are sent to the chip at one time for data update; In response to the number of channels that are continuous and to be updated being one, the channel data to be updated corresponding to one channel to be updated is sent to the chip for data update.

6. The method according to claim 1, characterized in that The method further comprises: A priority field is pre-set for each channel, and the priority field is used to identify the order in which the channels are processed.

7. The method according to claim 1, characterized in that The method further comprises: In response to the current update failure, the pending channels that failed to update are marked as pending update again, and the update process is continued based on the order corresponding to the priority fields of the pending channels that failed to update.

8. The method according to any one of claims 1 to 7, characterized in that The method further comprises: The priority fields of the channels are dynamically adjusted, and update processing is performed based on the order corresponding to the adjusted priority fields.

9. A vehicle lamp, characterized in that: The vehicle lamp includes the multi-channel data updating method according to any one of claims 1 to 8.

10. A vehicle, characterized in that: The vehicle comprises the vehicle lamp as claimed in claim 9, or the multi-channel data updating method as claimed in any one of claims 1 to 8.