A matrix backlight control method and device of a device, a device, and a storage medium
By dividing the software code of the matrix backlight driver board into general and differential parts, and burning the target data after detecting the device code, the problems of resource waste and frequent upgrades in the existing technology are solved, and the software universality and efficient control of the matrix backlight are realized.
Patent Information
- Application Number
- CN202310462403.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-20
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2043-04-20
AI Technical Summary
The existing matrix backlight driving solution uses a fixed software driving method, which leads to resource waste and frequent upgrade requirements, and cannot adapt to the changing needs of different machines.
The software code of the matrix backlight driver board is divided into a general part and a differential part. When the device code meets the preset conditions, the target data is acquired and burned into the differential part to realize the control of different matrix backlights.
It achieves software versatility for matrix backlighting, reduces resource waste, improves code burning efficiency and control convenience, and reduces the hassle of factory upgrades and order transfers.
Smart Images

Figure CN116504187B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of matrix backlight control, and particularly relate to a matrix backlight control method and device of a device, a device, and a storage medium. BACKGROUND
[0002] With the increasing demand of users for display products, more and more display products are equipped with matrix backlight function. The matrix backlight technology changes the previous single backlight into multiple sub-zones with controllable brightness under the screen, and realizes more accurate backlight brightness output through individual control of the sub-zones, which greatly improves the display effect and user experience after cooperation with screen content.
[0003] At present, the mainstream of matrix backlight driving needs a special MCU to control the light of each sub-zone. The MCU receives the backlight brightness data sent by the control board through a fixed interface to display each sub-zone. There are many matrix backlight driving schemes at present, but the driving mode of a single manufacturer and a single product is fixed. After the driving mode is fixed, the internal difference is relatively small, and there are only differences such as backlight and backlight current intensity, but the total driving mode and driving logic are the same.
[0004] In the above case, when the matrix backlight driving scheme of the same series is used, the factory often needs to prepare different software according to the number of matrix backlight sub-zones or the difference in matrix backlight current intensity, but the hardware is actually the same, which causes waste of some resources; and there are often changes in demand in the production process. The driving board originally adapts to the matrix backlight of machine A, but needs to be temporarily changed to adapt to machine B, which requires re-upgrade to realize the related functions, also causing waste of resources. SUMMARY
[0005] In view of this, in order to solve the above or part of the technical problems, embodiments of the present application provide a matrix backlight control method and device of a device, a device, and a storage medium.
[0006] In a first aspect, embodiments of the present application provide a matrix backlight control method of a device, comprising:
[0007] When it is detected that a second code in the device meets a preset condition, target data is obtained, and a first code corresponding to the second code is pre-burned in the device;
[0008] The target data is burned into a target address in the second code to obtain a burned second code;
[0009] The matrix backlight of the device is controlled according to the burned second code and the first code.
[0010] In a possible implementation, the obtaining the target data comprises:
[0011] obtaining, from the host computer, partition data, driving current data and partition mapping data corresponding to the matrix backlight;
[0012] taking the partition data, the driving current data and the partition mapping data as the target data.
[0013] In a possible implementation, the obtaining the target data when it is detected that the second code in the device meets the preset condition comprises:
[0014] detecting whether data in a preset format exists in a target address of the second code in the device;
[0015] when the detection result is that the data in the preset format does not exist, determining that the second code meets the preset condition;
[0016] obtaining identification information of the matrix backlight;
[0017] obtaining the target data from the host computer according to the identification information.
[0018] In a possible implementation, the method further comprises:
[0019] when the detection result is that the data in the preset format exists, obtaining identification information of the matrix backlight;
[0020] obtaining first target data of the matrix backlight from the host computer according to the identification information;
[0021] obtaining the data in the preset format from the target address of the second code as second target data;
[0022] when the first target data is different from the second target data, taking the first target data as the target data;
[0023] or, when the first target data is the same as the second target data, controlling the matrix backlight of the device according to the second code and the first code.
[0024] In a possible implementation, the burning the target data into the target address in the second code comprises:
[0025] when it is detected that a target command exists in the target data, determining a data type of each sub-data in the target data;
[0026] determining a target sub-address in the target address corresponding to each sub-data according to the data type
[0027] burn the each of the sub-data into a corresponding target sub-address.
[0028] In a possible implementation, the controlling the matrix backlight of the device according to the second code after the burning and the first code comprises:
[0029] determining a target partition of the matrix backlight corresponding to the second code according to the partition data and the partition mapping data;
[0030] determining a current parameter corresponding to the target partition according to the driving current data;
[0031] controlling the target partition according to the current parameter and the first code.
[0032] In a possible implementation, the method further comprises:
[0033] when the burning of the target data into the target address fails, obtaining third target data stored in advance;
[0034] burning the third target data into the target address in the second code.
[0035] In a second aspect, an embodiment of the present application provides a matrix backlight control device of a device, comprising:
[0036] an obtaining module, configured to obtain target data when it is detected that a second code in the device meets a preset condition, the device having a first code corresponding to the second code burned in advance;
[0037] a burning module, configured to burn the target data into a target address in the second code, to obtain a second code after burning;
[0038] a control module, configured to control a matrix backlight of the device according to the second code after the burning and the first code.
[0039] In a third aspect, an embodiment of the present application provides a device, comprising a processor and a memory, the processor being configured to execute a matrix backlight control program of the device stored in the memory, to implement the matrix backlight control method of the device in any one of the first aspect.
[0040] In a fourth aspect, an embodiment of the present application provides a storage medium, the storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the matrix backlight control method of the device in any one of the first aspect.
[0041] The matrix backlight control scheme of the device provided by the embodiment of the present application comprises the following steps: when it is detected that the second code in the device meets a preset condition, target data is acquired, the first code corresponding to the second code is pre-burned in the device; the target data is burned into a target address in the second code to obtain a burned second code; and the matrix backlight of the device is controlled according to the burned second code and the first code. Therefore, the software universality of the matrix backlight can be realized, the software code of the matrix backlight driving board is divided into two parts, the software does not need to be frequently updated when different matrix backlights are controlled, one set of software can be used to control the same series of matrix backlights, the code burning efficiency of the matrix backlight is improved, resource waste is reduced, the richness and convenience of the matrix backlight control are increased, and the trouble of factory upgrading and single conversion is reduced. BRIEF DESCRIPTION OF DRAWINGS
[0042] Figure 1 A flowchart of a matrix backlight control method of a device provided by the embodiment of the present application is shown in
[0043] Figure 2 A flowchart of another matrix backlight control method of a device provided by the embodiment of the present application is shown in
[0044] Figure 3 A flowchart of still another matrix backlight control method of a device provided by the embodiment of the present application is shown in
[0045] Figure 4 A structure diagram of a matrix backlight control device of a device provided by the embodiment of the present application is shown in
[0046] Figure 5 A structure diagram of a device provided by the embodiment of the present application is shown in DETAILED DESCRIPTION
[0047] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described below in connection with the drawings in the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
[0048] To make the embodiments of the present application clearer, the following will be further explained and described in specific embodiments in connection with the drawings, and the embodiments do not constitute a limitation on the embodiments of the present application.
[0049] Figure 1 A flowchart of a matrix backlight control method of a device provided by the embodiment of the present application is shown in Figure 1As shown, the method specifically comprises:
[0050] S11, when detecting that the second code in the device meets a preset condition, obtaining target data, the device being pre-burned with a first code.
[0051] The matrix backlight control method of the device provided by the embodiment of the application is applied to a control board of a matrix backlight, the control board is provided with an MCU, the control board can send a control instruction to a driving board, and the driving board can be controlled to drive the matrix backlight. Specifically, the code of software in the control board is divided into two parts, only the program of the general part is burned during production, and only the first power-on will cause the control board to burn the data of the difference part, thereby realizing control of different matrix backlights.
[0052] In the embodiment, the device is a display terminal with a matrix backlight, and the device can include but is not limited to a television device, a projection device, a computer device, and the like. The device includes a control board, a driving board, and a matrix backlight, the control board is provided with an MCU, the software corresponding to the matrix backlight driving board with the same hardware structure is different, therefore, in order to facilitate control of different matrix backlights, the software corresponding to the matrix backlight is re-planned and set into two parts in advance: a first code and a second code, which are usually stored in a Flash. The first code is a code of a general part, and the second code is a code of a data part. The code of the general part is used to realize basic functions of controlling the matrix backlight, the general functions of the software are concentrated in the code of the general part, facilitating burning of the control board of the same type, therefore, the first code is applicable to all types of matrix backlights set in advance, the first code is burned during production, and after burning, the first code can be assembled into a complete machine product. The data part is different between different matrix backlights, and the data part is used to store target data corresponding to different matrix backlights. The matrix backlight is controlled according to the data in the data part to realize different display effects. The general part can realize different control of the matrix backlight in combination with the data in the data part.
[0053] Specifically, whether the data in the second code of the device is initialized is detected, the detection method can be judging whether the data exists in the target address of the second code and whether the data is complete, when the data does not exist or the data is incomplete, it is determined that the data is not initialized, after it is determined that the data in the second code is not initialized, the control board is required to send the target data required by the second code to an upper computer according to a preset communication protocol, and the target data fed back by the upper computer is received, the upper computer is in communication connection with the control board, and can include but is not limited to a preset computer device, a server, and the like. Different target data are pre-stored in the upper computer, the target data are data used to control display content of the matrix backlight, and can include but are not limited to current data used to control the matrix backlight, partition data of the matrix backlight, partition mapping data, and the like.
[0054] S12, burn the target data to a target address in the second code to obtain a second code after burning.
[0055] In the embodiment, the target address is divided in the second code in advance for burning the target data, and after the device is powered on, the target data is burned into the target address through the pre-set packaging mode to obtain the second code after burning. When the matrix backlight needs to be controlled after burning, the target data can be obtained by parsing the second code through the first code.
[0056] In a possible implementation, if the target data fails to be burned in the target address, repeated burning can be performed, and when the number of times of burning reaches a set threshold, third target data pre-stored in the MCU by a developer is obtained. The third target data can be data with the most historical use times of the current device or data capable of controlling most types of matrix backlights. The burning failure can be caused by a format error of the target data or a failure in parsing the target data. Therefore, the third target data is burned into the target address in the second code to obtain the second code after burning.
[0057] S13, controlling the matrix backlight of the device according to the second code after burning and the first code.
[0058] In the embodiment, the device stops the related process of burning after burning and enters a normal working state. In the normal use process of the device, the first code parses the second code and extracts the target data therefrom. According to the target data, the partition that needs to be controlled and the target current parameter corresponding to each partition can be determined. Further, the current parameter of different partitions of the matrix backlight of the device is adjusted to the corresponding target current parameter to control the matrix backlight of the device.
[0059] The matrix backlight control method of the device provided in the embodiment can achieve software universality of the matrix backlight, divide the software code of the matrix backlight driving board into two parts, and control different matrix backlights without frequent updating of software. One set of software can be used to control the same series of matrix backlights, the code burning efficiency of the matrix backlight is improved, resource waste is reduced, the richness and convenience of the matrix backlight control are increased, and the trouble of factory upgrading and single conversion is reduced.
[0060] Figure 2A flowchart of a matrix backlight control method of another device provided by an embodiment of the present application is shown in FIG. 3, which specifically includes the following steps. Figure 2
[0061] S21, when it is detected that the second code in the device meets a preset condition, obtaining the partition data, the driving current data and the partition mapping data corresponding to the matrix backlight from the host computer; taking the partition data, the driving current data and the partition mapping data as the target data.
[0062] In this embodiment, the preset condition is set in advance to determine whether the data in the second code has been initialized. The preset condition can be that there is no data in the target address of the second code, or the data existing in the target address is not standardized, or the data existing in the target address is not complete. The method of determining whether the data is complete can be that when the length or number of the data in the target address is less than a set threshold, it is determined that the data is not complete. The method of determining whether the data is standardized can be that when the format of the data in the target address does not conform to a preset format, it is determined that the data is not standardized. The second code meets the preset condition, which means that the second code is not initialized at present and needs to obtain the target data to program the second code.
[0063] The target data is data for controlling the matrix backlight, including but not limited to the partition data, the driving current data and the partition mapping data corresponding to the matrix backlight. The partition data of the matrix backlight is used to represent how many partitions the current matrix backlight is divided into, how many rows and how many columns each row has, the unique identifier of each partition and the position of each partition in the matrix backlight. The driving current data of the matrix backlight is used to represent the current parameter required by each partition to light up. The partition mapping data of the matrix backlight is used to represent the target partition of the matrix backlight that needs to be controlled corresponding to the current target data.
[0064] Specifically, the host computer is a computer device in communication connection with the device. The target data corresponding to each type of matrix backlight is stored in the host computer. When it is detected that the second code meets the preset condition, the partition data, the driving current data and the partition mapping data corresponding to the current matrix backlight are obtained from the host computer as the target data through a preset communication protocol.
[0065] S22, when detecting that the target command exists in the target data, determining the data type of each sub-data in the target data; according to the data type, determining the target sub-address in the target address corresponding to each sub-data, and burning each sub-data into the corresponding target sub-address.
[0066] In the embodiment, the target command is set in the target data, the target command is a command for triggering the burning of the second code, and the data to be burned into the second code is set after the target command. Optionally, all data after the target command can be regarded as the data to be burned, or a preset number of data after the target command can be regarded as the data to be burned. For example, the beginning 0xaa0x20 SPI command is defined as the target command, when detecting that the target command exists in the target data, it is determined that 255 data after the target command are all data to be burned into the second code.
[0067] Further, the data to be burned into the second code in the target data is parsed to obtain a plurality of sub-data, the data type of each sub-data is determined according to the format or position of the sub-data in the target data, and the data type can include a partition data type, a driving current data type and a partition mapping data type, so that each sub-data can be divided into partition data, driving current data and partition mapping data (for example, the first 20 data are determined as partition data, the 21st-50th data are determined as driving current data, and the 51st-100th data are determined as driving current data).
[0068] Further, the target address is divided into a plurality of target sub-addresses, and each target sub-address corresponds to a sub-data of a data type. Each sub-data is burned into the corresponding target sub-address according to the data type.
[0069] As an example, 0x1000 addresses in 0x01000000 addresses in the flash in the MCU are drawn as target addresses for burning target data, the addresses are divided into a plurality of parts, each part corresponds to a target sub-data, and the partition data of the matrix backlight, the driving current data of the matrix backlight and the partition mapping data of the matrix backlight are stored in hexadecimal to realize relatively fixed storage positions and facilitate the parsing of the first code.
[0070] S23, according to the partition data and the partition mapping data, determining the target partition of the matrix backlight corresponding to the second code; according to the driving current data, determining the current parameter corresponding to the target partition; and according to the current parameter and the first code, controlling the target partition.
[0071] In the embodiment, after the burning is completed, the device starts normal work, the first code analyzes the second code, extracts the partition data, the driving current data and the partition mapping data from the target address respectively, the target partition in the matrix backlight which needs to be controlled currently can be determined according to the partition mapping data, the number of the target partition can be one or more, which is not specifically limited in the embodiment, the position of the target partition in the matrix backlight can be determined according to the partition data (for example, the partition mapping data is the partition identified as A which needs to be controlled currently, and the position of the A partition in the matrix backlight is three rows and three columns according to the partition data), and the driving current data is the current parameter which needs to be adjusted corresponding to the target partition. The first code generates a control instruction according to the position of the target partition and the current parameter, and sends the control instruction to the driver board, and the driver board drives the target partition to adjust the current parameter according to the control instruction.
[0072] The matrix backlight control method of the device provided by the embodiment of the application comprises the following steps:
[0073] Figure 3 For another matrix backlight control method of the device provided by the embodiment of the application, a flowchart is shown in FIG. 6. Figure 3 The method specifically comprises the following steps:
[0074] S31, detecting whether there is data in a preset format in the target address of the second code in the device; when the detection result is that there is no data in a preset format, it is determined that the second code meets a preset condition; obtaining identification information of the matrix backlight; and obtaining target data from the host computer according to the identification information.
[0075] In the embodiment, it is detected whether data exists in the target address, when data exists, it is judged whether the data format is the preset format, when the judgment result is that the data format is the preset format, it is indicated that the current second code has been burned and does not need to be burned again, when the judgment result is that the data format is not the preset format, it is indicated that the second code needs to be burned, at this time, it is determined that the second code meets the preset condition, further, the unique identification of the matrix backlight is acquired as the identification information, the identification information can include but is not limited to the model of the matrix backlight or the coding of the matrix backlight performed by a person, etc. The correspondence between the target data and the identification information is stored in the upper computer, and the corresponding target data is acquired according to the identification information.
[0076] S32, when the detection result is that the data of the preset format exists, identification information of the matrix backlight is acquired; and first target data of the matrix backlight is acquired from the upper computer according to the identification information.
[0077] In the embodiment, when the detection result is that the data of the preset format exists, it is indicated that the data has been burned in the current second code, and it is further needed to judge whether the burned data is the data corresponding to the current matrix backlight. Therefore, the identification information of the matrix backlight is acquired, and the target data corresponding to the identification information is acquired from the upper computer as the first target data.
[0078] S33, the data of the preset format is acquired from the target address of the second code as second target data; and when the first target data is different from the second target data, the first target data is taken as the target data.
[0079] In the embodiment, data exists in the current target address, the data of the preset format currently existing in the target address is extracted as the second target data, and it is judged whether the first target data is same as the second target data, when there is any different data between the first target data and the second target data, it is indicated that the data in the current target address is not the target data corresponding to the current matrix backlight, at this time, the first target data is taken as the target data.
[0080] In one possible implementation, when the first target data is same as the second target data, it is indicated that the data in the current target address is the target data corresponding to the current matrix backlight, at this time, the step of burning is not needed to be performed, and the step of controlling the matrix backlight of the device according to the second code and the first code is directly performed.
[0081] S34, when it is detected that the target command exists in the target data, the data type of each sub-data in the target data is determined; the target sub-address in the target address corresponding to each sub-data is determined according to the data type, and each sub-data is burned into the corresponding target sub-address.
[0082] S35, determining a target partition of the matrix backlight corresponding to the second code according to the partition data and the partition mapping data; determining a current parameter corresponding to the target partition according to the driving current data; and controlling the target partition according to the current parameter and the first code.
[0083] In the embodiment, steps S34-S35 are similar to steps S22-S23, and details are referred to Figure 2 For brevity, details are not described herein.
[0084] The matrix backlight control method of the device provided by the embodiment of the application comprises the following steps: detecting whether preset format data exists in a target address of a second code in the device; when the detection result is that the preset format data does not exist, determining that the second code meets a preset condition; obtaining identification information of a matrix backlight; and obtaining target data from an upper computer according to the identification information; when the detection result is that the preset format data exists, obtaining the identification information of the matrix backlight; obtaining first target data of the matrix backlight from the upper computer according to the identification information; obtaining the preset format data in the target address of the second code as second target data; when the first target data is different from the second target data, taking the first target data as the target data; when it is detected that a target command exists in the target data, determining a data type of each sub-data in the target data; determining a target sub-address in a target address corresponding to each sub-data according to the data type; and burning each sub-data into the corresponding target sub-address. According to the partition data and the partition mapping data, a target partition of the matrix backlight corresponding to the second code is determined; according to the driving current data, a current parameter corresponding to the target partition is determined; and according to the current parameter and the first code, the target partition is controlled. Thus, the data burned in the second code can be judged, and when the burned data is different from the target data, the burning is performed again, so that the burning efficiency is improved, one set of software can be used to control the same series of matrix backlights, and resource waste is reduced.
[0085] Figure 4 A structural schematic diagram of a matrix backlight control device of a device provided by the embodiment of the application is shown in Figure 4 The device specifically comprises:
[0086] The obtaining module 41 is configured to obtain target data when it is detected that the second code in the device meets the preset condition, and the first code is burned in the device in advance.
[0087] The burning module 42 is configured to burn the target data into a target address in the second code to obtain a burned second code.
[0088] The control module 43 is configured to control the matrix backlight of the device according to the burned second code and the first code.
[0089] In a possible implementation, the obtaining module is specifically configured to obtain, from the host computer, the partition data, the driving current data, and the partition mapping data corresponding to the matrix backlight.
[0090] The processing module 44 is configured to take the partition data, the driving current data, and the partition mapping data as the target data.
[0091] In a possible implementation, the detection module 45 is configured to detect whether there is preset format data in the target address of the second code in the device.
[0092] The determination module 46 is configured to determine that the second code meets a preset condition when the detection result is that there is no preset format data.
[0093] The obtaining module is specifically configured to obtain identification information of the matrix backlight.
[0094] The target data is obtained from the host computer according to the identification information.
[0095] In a possible implementation, the obtaining module is further configured to obtain identification information of the matrix backlight when the detection result is that there is preset format data.
[0096] The first target data of the matrix backlight is obtained from the host computer according to the identification information.
[0097] The preset format data is obtained from the target address of the second code as second target data.
[0098] The processing module is further configured to take the first target data as the target data when the first target data is different from the second target data.
[0099] The control module is further configured to control the matrix backlight of the device according to the second code and the first code when the first target data is the same as the second target data.
[0100] In a possible implementation, the determination module is specifically configured to determine a data type of each sub-data in the target data when it is detected that there is a target command in the target data.
[0101] A target sub-address in the target address corresponding to each sub-data is determined according to the data type.
[0102] The burning module is specifically configured to burn each sub-data into a corresponding target sub-address.
[0103] In a possible implementation, the determining module is specifically configured to determine a target partition of the matrix backlight corresponding to the second code according to the partition data and the partition mapping data.
[0104] determine a current parameter corresponding to the target partition according to the driving current data;
[0105] The control module is specifically configured to control the target partition according to the current parameter and the first code.
[0106] In a possible implementation, the obtaining module is further configured to obtain third target data stored in advance when the target data fails to be burned into the target address.
[0107] The burning module is further configured to burn the third target data into the target address in the second code.
[0108] The matrix backlight control apparatus of the device provided in this embodiment can be an apparatus as shown in Figure 4 , and can perform all steps of the matrix backlight control method of the device as shown in Figures 1-3 , and thus achieve the technical effects of the matrix backlight control method of the device as shown in Figures 1-3 . For details, refer to the related description, which will not be repeated here for brevity. Figures 1-3
[0109] Figure 5 A structural schematic diagram of a device provided in this embodiment is shown in Figure 5 The device 500 shown in the figure includes at least one processor 501, a memory 502, at least one network interface 504 and other user interfaces 503. The various components in the device 500 are coupled together through a bus system 505. It can be understood that the bus system 505 is used to realize the connection and communication between the components. The bus system 505 includes not only a data bus, but also a power bus, a control bus and a status signal bus. However, for the sake of clarity, all kinds of buses are marked as the bus system 505 in the figure. Figure 5
[0110] The user interface 503 can include a display, a keyboard or a clicking device (for example, a mouse, a trackball, a touchpad or a touch screen, etc.).
[0111] It is to be understood that the memory 502 in embodiments of the present application can be volatile or nonvolatile memory, or can include both volatile and nonvolatile memory. The nonvolatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable ROM (EPROM), electrically EPROM (EEPROM), or flash memory. The volatile memory can be random access memory (RAM) used as external cache. By way of example, and not limitation, many forms of RAM are available, for example, static RAM (SRAM), dynamic RAM (DRAM), synchronous dynamic RAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and direct Rambus RAM (DRRAM). Memory 502 described herein is intended to include, without being limited to, these and any other suitable types of memory.
[0112] In some embodiments, the memory 502 stores the following elements, executable units or data structures, or a subset of them, or an extended set of them: an operating system 5021 and application programs 5022.
[0113] The operating system 5021 contains various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application programs 5022 contain various application programs, such as a media player, a browser, etc., for implementing various application services. The programs for implementing the method embodiments of the present application can be included in the application programs 5022.
[0114] In embodiments of the present application, the processor 501 is configured to execute the method steps provided by each method embodiment by invoking the programs or instructions stored in the memory 502, in particular, the programs or instructions stored in the application programs 5022. For example, the processor 501 is configured to execute the method steps provided by each method embodiment, including:
[0115] acquiring target data when it is detected that the second code in the device meets preset conditions, the first code being pre-burned in the device;
[0116] burning the target data into a target address in the second code to obtain a second code after burning;
[0117] controlling a matrix backlight of the device according to the second code after burning and the first code.
[0118] In a possible implementation, partition data, driving current data and partition mapping data corresponding to the matrix backlight are acquired from a host computer;
[0119] The partition data, the driving current data and the partition mapping data are taken as the target data.
[0120] In a possible implementation, it is detected whether preset format data exists in a target address of the second code in the device;
[0121] When the detection result is that the preset format data does not exist, it is determined that the second code meets preset conditions;
[0122] acquiring identification information of the matrix backlight;
[0123] acquiring the target data from the host computer according to the identification information.
[0124] In a possible implementation, when the detection result is that the preset format data exists, identification information of the matrix backlight is acquired;
[0125] first target data of the matrix backlight is acquired from the host computer according to the identification information;
[0126] the preset format data in the target address of the second code is acquired as second target data;
[0127] When the first target data is different from the second target data, the first target data is taken as the target data;
[0128] Or, when the first target data is the same as the second target data, the matrix backlight of the device is controlled according to the second code and the first code.
[0129] In a possible implementation, when it is detected that target commands exist in the target data, data types of each sub-data in the target data are determined;
[0130] According to the data types, target sub-addresses in the target addresses corresponding to each of the sub-data are determined
[0131] Burn each of the sub-data into a corresponding target sub-address.
[0132] In a possible implementation, the target sub-area of the matrix backlight corresponding to the second code is determined according to the partition data and the partition mapping data;
[0133] The current parameter corresponding to the target sub-area is determined according to the driving current data;
[0134] The target sub-area is controlled according to the current parameter and the first code.
[0135] In a possible implementation, when the target data fails to be burned in the target address, third target data stored in advance is acquired;
[0136] The third target data is burned into the target address in the second code.
[0137] The method disclosed in the embodiments of the present application can be applied to the processor 501 or implemented by the processor 501. The processor 501 can be an integrated circuit chip having a signal processing capability. In the implementation process, each step of the above method can be completed by an integrated logic circuit or an instruction in the form of software in the processor 501. The processor 501 can be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. Each method, step and logic block diagram disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as a hardware code processor for execution, or a combination of hardware and software units in the code processor for execution. The software unit can be located in a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register or other mature storage media in the field. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and combines the hardware to complete the steps of the above method.
[0138] It can be understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing units can be implemented within one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSP Devices, DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units designed to perform the functions described herein, or a combination thereof.
[0139] For software implementation, the techniques described herein can be implemented with a processing unit that executes program components or modules. The software code can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.
[0140] The device provided by the embodiment can be a device as shown in Figure 5 may perform all the steps of the matrix backlight control method as shown in Figures 1-3 may achieve the technical effects of the matrix backlight control method as shown in Figures 1-3 , and specific reference can be made to Figures 1-3 for related descriptions, which will not be repeated here for brevity.
[0141] The embodiment of the application further provides a storage medium (computer readable storage medium). The storage medium stores one or more programs. The storage medium can include a volatile memory, such as a random access memory; the storage medium can also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk, or a solid state disk; the storage medium can also include a combination of the above kinds of memories.
[0142] When the one or more programs stored in the storage medium can be executed by the one or more processors to implement the matrix backlight control method executed at the device side.
[0143] The processor is configured to execute the matrix backlight control program stored in the memory to implement the following steps of the matrix backlight control method executed at the device side:
[0144] When it is detected that the second code in the device meets the preset condition, the target data is acquired, and the first code is pre-burned in the device;
[0145] burn the target data into a target address in the second code to obtain a second code after burning;
[0146] control a matrix backlight of the device according to the second code after burning and the first code.
[0147] In a possible implementation, the partition data, the driving current data and the partition mapping data corresponding to the matrix backlight are obtained from a host computer;
[0148] The partition data, the driving current data and the partition mapping data are taken as the target data.
[0149] In a possible implementation, it is detected whether data in a preset format exists in a target address of the second code in the device;
[0150] When the detection result is that the data does not exist, it is determined that the second code meets a preset condition;
[0151] Obtain identification information of the matrix backlight;
[0152] According to the identification information, the target data is obtained from the host computer.
[0153] In a possible implementation, when the detection result is that the data in the preset format exists, the identification information of the matrix backlight is obtained;
[0154] According to the identification information, first target data of the matrix backlight is obtained from the host computer;
[0155] The data in the preset format is obtained from the target address of the second code as second target data;
[0156] When the first target data is different from the second target data, the first target data is taken as the target data;
[0157] Or, when the first target data is the same as the second target data, the matrix backlight of the device is controlled according to the second code and the first code.
[0158] In a possible implementation, when it is detected that a target command exists in the target data, the data type of each sub-data in the target data is determined;
[0159] According to the data type, a target sub-address in the target address corresponding to each sub-data is determined
[0160] Each sub-data is burned into the corresponding target sub-address.
[0161] In a possible implementation, the target partition corresponding to the second code is determined according to the partition data and the partition mapping data;
[0162] The current parameter corresponding to the target partition is determined according to the driving current data;
[0163] The target partition is controlled according to the current parameter and the first code.
[0164] In a possible implementation, when the target data fails to be burned in the target address, third target data stored in advance is acquired;
[0165] The third target data is burned in the target address in the second code.
[0166] Those skilled in the art should further appreciate that the units and algorithm steps of each example described in connection with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, each example has been described in general terms by functionally grouping the units and steps. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0167] The steps of the methods or algorithms described in connection with the embodiments disclosed herein can be implemented in hardware, software executed by a processor, or a combination of both. The software modules can be stored in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0168] The above detailed description of the specific implementation further describes the purpose, technical solution, and beneficial effects of the present application. It should be understood that the above description is only a specific implementation of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A method of matrix backlight control of a device, characterized by, The method comprises the steps of: when it is detected that the second code in the device meets a preset condition, obtaining target data, the device being pre-burned with a first code, the obtaining of the target data comprising: obtaining partition data, driving current data and partition mapping data corresponding to the matrix backlight from an upper computer; taking the partition data, the driving current data and the partition mapping data as the target data, wherein the preset condition comprises: there is no data in a preset format; burning the target data into a target address in the second code to obtain a burned second code, comprising: when it is detected that there is a target command in the target data, determining the data type of each sub-data in the target data; determining a target sub-address in the target address corresponding to each sub-data according to the data type; and burning each sub-data into the corresponding target sub-address; controlling the matrix backlight of the device according to the burned second code and the first code.
2. The method of claim 1, wherein, The method further comprises: detecting whether there is data in a preset format in the target address of the second code in the device; when the detection result is that there is no data in a preset format, determining that the second code meets a preset condition; obtaining identification information of the matrix backlight; obtaining the target data from the upper computer according to the identification information.
3. The method of claim 2, wherein, The method further comprises: when the detection result is that there is data in a preset format, obtaining identification information of the matrix backlight; obtaining first target data of the matrix backlight from the upper computer according to the identification information; obtaining the data in a preset format from the target address of the second code as second target data; when the first target data is different from the second target data, taking the first target data as the target data; or, when the first target data is the same as the second target data, controlling the matrix backlight of the device according to the second code and the first code.
4. The method of claim 1, wherein, The controlling of the matrix backlight of the device according to the burned second code and the first code comprises: determining a target partition of the matrix backlight corresponding to the second code according to the partition data and the partition mapping data; determining a current parameter corresponding to the target partition according to the driving current data; controlling the target partition according to the current parameter and the first code.
5. The method of claim 1, wherein, The method further comprises: when the burning of the target data into the target address fails, obtaining third target data stored in advance; burning the third target data into the target address in the second code.
6. A matrix backlight control apparatus of a device, characterized by comprising: The method comprises: an obtaining module, configured to, when it is detected that the second code in the device meets a preset condition, obtain target data, the device being pre-burned with a first code, the obtaining of the target data being specifically configured to: obtain partition data, driving current data and partition mapping data corresponding to the matrix backlight from an upper computer; taking the partition data, the driving current data and the partition mapping data as the target data, wherein the preset condition comprises: there is no data in a preset format; The burning module is configured to burn the target data into a target address in the second code to obtain a burned second code, and specifically configured to: when it is detected that the target data includes a target command, determine a data type of each sub-data in the target data; determine a target sub-address in the target address corresponding to each sub-data according to the data type; and burn each sub-data into the corresponding target sub-address. The control module is configured to control the matrix backlight of the device according to the burned second code and the first code.
7. A computer device, comprising: The device comprises: A processor and a memory, wherein the processor is configured to execute a matrix backlight control program of the device stored in the memory to implement the matrix backlight control method of any one of claims 1-5.
8. A storage medium, characterized by The storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the matrix backlight control method of any one of claims 1-5.
Citation Information
Patent Citations
Multi-zone backlight control method and device, terminal and storage medium
CN110211540A
Product parameter burning method and device
CN115756506A