Equipment dimming system, method and device, readable storage medium and program product

The dimming control protocol waveform is generated by the device's internal processor and programmable logic chip, which solves the problem of low dimming efficiency of existing equipment and realizes efficient and low-cost dimming control.

CN120812809APending Publication Date: 2025-10-17HUNAN HANBOWEI MICROELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511110285.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-08
Publication Date
2025-10-17

AI Technical Summary

Technical Problem

Existing device dimming methods are inefficient, especially in devices with strict space constraints, where additional microcontroller components are required and costs are increased, resulting in inefficient dimming control.

Method used

The device uses an internal processor and programmable logic chip (such as CPLD) to generate a dimming control protocol waveform, which is sent directly to the dimming component through the built-in programmable logic chip without the need for additional microcontroller devices, achieving efficient dimming.

Benefits of technology

No additional single-chip microcomputer devices are required, which improves the operating efficiency of the processor, shortens the time for the dimming component to obtain the target pulse width modulation waveform, and realizes efficient equipment dimming.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120812809A_ABST
    Figure CN120812809A_ABST
Patent Text Reader

Abstract

The invention relates to an equipment dimming system, method and device, a readable storage medium and a program product. The system is arranged in equipment, and comprises a processor used for obtaining a dimming instruction of the equipment, processing the dimming instruction, obtaining a dimming control protocol waveform matched with the dimming instruction, and sending the dimming control protocol waveform to a programmable logic chip; the programmable logic chip is used for converting the detected dimming control protocol waveform into a target pulse width modulation waveform and feeding back the target pulse width modulation waveform to the dimming assembly; and the dimming component is used for dimming the equipment according to the target pulse width modulation waveform. By adopting the system, the equipment can be efficiently dimmed.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of dimming control, in particular to a device dimming system, method, device, readable storage medium and program product. BACKGROUND

[0002] The dimming control of the device not only can improve the visual comfort of the user, but also can prolong the service life of the device.

[0003] Taking a display and control computer device as an example, when the dimming control of the device is performed, a single-chip microcomputer is generally used to control the generation of a pulse width modulation (PWM) waveform to a dimming circuit, so that the dimming circuit performs the dimming control of the display and control computer device based on the PWM waveform.

[0004] However, the current device dimming method has the problem of being not efficient enough. SUMMARY

[0005] Therefore, it is necessary to provide an efficient device dimming system, method, device, computer device, computer readable storage medium and computer program product in view of the above technical problems.

[0006] In a first aspect, the present application provides a device dimming system, which is arranged in a device and includes:

[0007] a processor configured to obtain a dimming instruction of the device, process the dimming instruction, obtain a dimming control protocol waveform matched with the dimming instruction, and send the dimming control protocol waveform to a programmable logic chip;

[0008] the programmable logic chip configured to convert the detected dimming control protocol waveform into a target pulse width modulation waveform, and feed back the target pulse width modulation waveform to a dimming component;

[0009] the dimming component configured to dim the device according to the target pulse width modulation waveform.

[0010] In one of the embodiments, the programmable logic chip is further configured to:

[0011] obtain a target low-level time length of the dimming control protocol waveform and a preset period time length;

[0012] detect duty cycle information according to the target low-level time length and the preset period time length;

[0013] generate a target pulse width modulation waveform corresponding to the dimming control protocol waveform according to the duty cycle information.

[0014] In one of the embodiments, the processor is further configured to:

[0015] determining, according to the dimming instruction, a first number of low-level information to be written to the corresponding programmable logic chip;

[0016] generating, according to the first number, a low-level duration corresponding to the first number, and generating, according to the low-level duration, a dimming control protocol waveform matching the dimming instruction.

[0017] In one of the embodiments, the processor is further configured to:

[0018] obtain a mapping relationship between a preset number of low-level information and an adjustment brightness parameter;

[0019] obtain a target adjustment brightness parameter of the device from the dimming instruction, and detect, according to the mapping relationship, a first number of low-level information matching the target adjustment brightness parameter.

[0020] In one of the embodiments, the processor is further configured to:

[0021] before sending the dimming control protocol waveform to the programmable logic chip, sending a preset second number of low-level information and a preset third number of high-level information to the programmable logic chip, so that the programmable logic chip enters a detection state of the dimming control protocol waveform.

[0022] In one of the embodiments, the system further comprises:

[0023] a processor interface connected with the programmable logic chip and the processor respectively, and configured to send the dimming control protocol waveform generated by the processor to the programmable logic chip.

[0024] In a second aspect, the application further provides a device dimming method, applied to the device dimming system as described above, and the method comprises:

[0025] obtaining a dimming instruction of the device;

[0026] processing the dimming instruction to obtain a dimming control protocol waveform matching the dimming instruction;

[0027] converting the dimming control protocol waveform into a target pulse width modulation waveform;

[0028] dimming the device according to the target pulse width modulation waveform.

[0029] In a third aspect, the application further provides a device dimming apparatus, comprising:

[0030] an instruction obtaining module configured to obtain a dimming instruction of the device;

[0031] an instruction processing module configured to process the dimming instruction to obtain a dimming control protocol waveform matching the dimming instruction;

[0032] a waveform conversion module, configured to convert the dimming control protocol waveform into a target pulse width modulation waveform;

[0033] a device dimming module, configured to dim the device according to the target pulse width modulation waveform.

[0034] In a fourth aspect, the present application provides a computer device, comprising a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0035] obtaining a dimming instruction of a device;

[0036] processing the dimming instruction to obtain a dimming control protocol waveform matched with the dimming instruction;

[0037] converting the dimming control protocol waveform into a target pulse width modulation waveform;

[0038] dimming the device according to the target pulse width modulation waveform.

[0039] In a fifth aspect, the present application provides a computer readable storage medium, which stores a computer program, and the computer program implements the following steps when executed by a processor:

[0040] obtaining a dimming instruction of a device;

[0041] processing the dimming instruction to obtain a dimming control protocol waveform matched with the dimming instruction;

[0042] converting the dimming control protocol waveform into a target pulse width modulation waveform;

[0043] dimming the device according to the target pulse width modulation waveform.

[0044] In a sixth aspect, the present application provides a computer program product, comprising a computer program, and the computer program implements the following steps when executed by a processor:

[0045] obtaining a dimming instruction of a device;

[0046] processing the dimming instruction to obtain a dimming control protocol waveform matched with the dimming instruction;

[0047] converting the dimming control protocol waveform into a target pulse width modulation waveform;

[0048] dimming the device according to the target pulse width modulation waveform.

[0049] The above-mentioned device dimming system, method, apparatus, computer equipment, computer-readable storage medium and computer program product, the system includes a processor, a programmable logic chip and a dimming component arranged inside the device. The processor can quickly generate a dimming control protocol waveform that matches the dimming instruction according to the dimming instruction, and then efficiently send the generated dimming control protocol waveform to the device's built-in programmable editing chip without setting up additional single-chip microcomputer devices. Moreover, through the built-in programmable logic chip, there is no need to occupy too many resources of the processor, which can make the processor run more efficiently, and can also improve the efficiency of the programmable logic chip in converting the dimming control protocol waveform into the target pulse width modulation waveform, shortening the time for the dimming component to obtain the target pulse width modulation waveform, so that the dimming component can efficiently dim the device. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments of the present application or related technical descriptions. Obviously, the dimming components in the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying any creative work.

[0051] Figure 1 is a schematic diagram of a device dimming system in one embodiment;

[0052] Figure 2 is a schematic diagram of a device dimming system in another embodiment;

[0053] Figure 3 1 is a flow chart of a device dimming method according to an embodiment;

[0054] Figure 4 A schematic diagram of hardware interaction of a device dimming system in one embodiment;

[0055] Figure 5 This is a structural block diagram of a device dimming apparatus in one embodiment;

[0056] Figure 6 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiment of the dimming component described herein is used to explain this application and is not intended to limit this application.

[0058] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description herein is for describing particular embodiments only and is not intended to be limiting of the application.

[0059] It is to be understood that the terms “first”, “second”, and etc. can be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, a first resistor can be called a second resistor without departing from the scope of the present application, and similarly, a second resistor can be called a first resistor. Both the first resistor and the second resistor are resistors, but they are not the same resistor.

[0060] It is to be understood that “connection” in the following embodiments, if the circuits, modules, units, etc. connected to each other have transmission of electrical signals or data, should be understood as “electrically connected”, “communicatively connected” and the like.

[0061] It is to be understood that “at least one” means one or more, and “multiple” means two or more. “At least part of an element” means part or all of the element.

[0062] As used herein, the singular forms “a”, “an” and “the” include plural referents unless the context clearly dictates otherwise. It is also to be understood that the term “comprising” or “including” or “having” or the like, means the presence of stated features, integers, steps, operations, components, parts, or combinations thereof, but does not preclude the presence or addition of one or more other features, integers, steps, operations, components, parts, or combinations thereof.

[0063] For example, for a display and control computer, a single-chip microcomputer is generally used to control the generation of a PWM (Pulse Width Modulation) waveform to a dimming circuit, so that the dimming circuit performs dimming control of the display and control computer based on the PWM waveform.

[0064] However, the current device dimming method requires an additional single-chip microcomputer to control the dimming of the device, which is difficult to implement and increases the cost for devices with high space limitation requirements. In particular, for display and control computer devices, if the operating system is used to control dimming, an additional communication interface between the CPU (Central Processing Unit) and the single-chip microcomputer is required, i.e., the device needs to interact with the single-chip microcomputer through this communication interface to achieve dimming control, which is relatively inefficient.

[0065] To this end, the application provides a device dimming system, which comprises a processor, a programmable logic chip and a dimming component arranged in a device. The processor can generate a dimming control protocol waveform matched with a dimming instruction according to the dimming instruction, and then the generated dimming control protocol waveform can be efficiently sent to the programmable logic chip of the device without setting an additional single-chip device. The programmable logic chip can make the processor more efficiently run without occupying too many resources of the processor, and can also improve the efficiency of the programmable logic chip in converting the dimming control protocol waveform into a target pulse width modulation waveform, shorten the time for the dimming component to obtain the target pulse width modulation waveform, and make the dimming component efficiently dim the device.

[0066] In one exemplary embodiment, as shown in Figure 1 a device dimming system 103 is provided, which is arranged in a device 104, wherein:

[0067] a processor 105 is configured to obtain a dimming instruction of the device 104, process the dimming instruction, obtain a dimming control protocol waveform matched with the dimming instruction, and send the dimming control protocol waveform to a programmable logic chip 106;

[0068] the programmable logic chip 106 is configured to convert the detected dimming control protocol waveform into a target pulse width modulation waveform, and feed back the target pulse width modulation waveform to a dimming component 107;

[0069] the dimming component 107 is configured to dim the device 104 according to the target pulse width modulation waveform.

[0070] In the application, the device 104 is generally a computer, an electronic device or an intelligent system, which can be a display and control computer, and can also be an embedded computer, wherein the display and control computer is a special computer integrating display function and control function.

[0071] The processor 105 is arranged in the device 104, is a core hardware component responsible for executing calculation, processing data and controlling instruction flow in the device 104, and is an “operation center” for realizing information processing and logical decision. The core function of the processor 105 is to process and operate input data according to a preset program (instruction set), and output results, so as to coordinate the cooperative work of other hardware (such as a memory and an input and output device 104) in the device 104. Generally, the processor 105 can be a CPU of the device 104.

[0072] The programmable logic chip 106 is a chip that is self-provided by the device 104, and is a type of semiconductor chip that can flexibly define the internal logic function through programming (rather than hardware modification). The core feature is that the user can configure the internal logic gate, flip-flop, interconnection line, and other hardware resources according to the needs to realize the self-defined digital logic function (such as logic operation, timing control, signal conversion, etc.), without the need to redesign the physical structure of the chip. Generally, the programmable logic chip 106 can be a CPLD (Complex Programmable Logic Device), which is an integrated circuit chip that can flexibly configure the internal logic structure through programming. Through the internal programmable logic unit, interconnection resource, and I / O interface, the user can self-define the digital logic function (such as logic operation, timing control, signal conversion, etc.) according to the needs, without the need to redesign the hardware of the chip. The programmable logic chip 106 can also be other PLD (Programmable Logic Device), but compared with other PLDs, the CPLD has higher logic scale and structural complexity, larger programmable range, and more widely applicable scenarios. Therefore, in order to improve the efficiency of the dimming control of the device 104, the CPLD is generally used as the programmable logic chip 106 in the present application.

[0073] The dimming component 107 refers to a general term for a type of electronic element, module, or system for adjusting the luminous intensity. The core function is to realize continuous or stepwise adjustment of the luminous intensity of the light source by changing the current, voltage, or luminous flux, etc. parameters, to adapt to the lighting needs of different scenes. Generally, the dimming component 107 can be a dimming circuit, and can also be a modular unit, integrated system, or dedicated device containing hardware, software, or mechanical structure. The core function of the component that realizes the luminous intensity adjustment can be referred to as the dimming component 107.

[0074] Specifically, the processor 105 and the programmable logic chip 106 are both arranged inside the device 104. The user sends the dimming instruction of the device 104 to the processor 105. The processor 105 receives the dimming instruction of the device 104, processes the dimming instruction, and sends the processing result to the programmable logic chip 106. The programmable logic chip 106 further processes the processing result output by the processor 105 to convert the processing result output by the processor 105 from the data of the original protocol to the data of the protocol that can be adapted to the dimming component 107, so that the dimming component 107 adjusts the device 104 according to the target pulse width modulation waveform.

[0075] In more detail, the processor 105 processes the dimming instruction to obtain a dimming control protocol waveform matched with the dimming instruction, wherein the dimming control protocol waveform includes a specific number of low level information and high level information, and sends the dimming control protocol waveform matched with the dimming instruction to the programmable logic chip 106. The programmable logic chip 106 internally implements various logical judgments and processing of the dimming control protocol waveform through programmable logic to output a PWM waveform corresponding to the duty cycle of the dimming control protocol waveform, that is, a target pulse width modulation waveform, and feeds back the target pulse width modulation waveform to the dimming component 107, so that the dimming component 107 can effectively dim the device 104 according to the target pulse width modulation waveform.

[0076] In one embodiment, in the process of converting the dimming control protocol waveform into data of a protocol that can be adapted to the dimming component 107 by the programmable logic chip 106, the protocol conversion can be achieved through the following steps:

[0077] 1. Receive source protocol signal: capture the electrical signal of the original protocol, that is, the dimming control protocol waveform, through the input pin of the programmable logic chip 106.

[0078] 2. Analyze protocol format: identify the data frame structure of the source protocol (such as start bit, data bit, and check bit) with the internal logic circuit of the programmable logic chip 106.

[0079] 3. Data conversion and recombination: repackage the parsed data according to the format of the target protocol (such as adding a new frame header and adjusting the bit width).

[0080] 4. Output target protocol signal: send the converted data, that is, the target pulse width modulation waveform, to the dimming component 107 through the output pin of the programmable logic chip 106 according to the timing of the target protocol (such as clock frequency and level standard).

[0081] In one embodiment, the process of the user sending the dimming instruction of the device 104 to the processor 105: the user sends the dimming instruction of the device 104 to the system layer of the device 104, that is, the operating system, through physical buttons connected to the processor 105 or software parameter settings of touch software in communication with the processor 105, and the operating system further sends the dimming instruction to the processor 105.

[0082] The device dimming system 103, the method, the device, the computer device, the computer readable storage medium and the computer program product, the system includes a processor 105, a programmable logic chip 106 and a dimming component 107 arranged inside the device 104, the processor 105 can generate a dimming control protocol waveform matched with the dimming instruction according to the dimming instruction, and then the generated dimming control protocol waveform can be sent to the programmable editing chip of the device 104 without setting an additional single-chip device, and the programmable logic chip 106 can be used without occupying too many resources of the processor 105, so that the processor 105 can run more efficiently, and the efficiency of the programmable logic chip 106 in converting the dimming control protocol waveform into a target pulse width modulation waveform can be improved, the time for the dimming component 107 to obtain the target pulse width modulation waveform is shortened, and the dimming component 107 can efficiently dim the device 104.

[0083] In an exemplary embodiment, the programmable logic chip 106 is further configured to:

[0084] obtain a target low-level time length of the dimming control protocol waveform and a preset period time length, detect duty cycle information according to the target low-level time length and the preset period time length, and generate a target pulse width modulation waveform corresponding to the dimming control protocol waveform according to the duty cycle information.

[0085] Specifically, after the processor 105 receives the dimming instruction, the processor 105 analyzes the dimming instruction and sends a dimming control protocol waveform matched with the dimming instruction to the programmable logic chip 106, wherein the dimming control protocol waveform includes a specific number of low-level information and high-level information.

[0086] Therefore, the programmable logic chip 106 can obtain a low-level time length of the dimming control protocol waveform according to the specific number of low-level information, and obtain a total preset period time length of the dimming control protocol waveform according to the specific number of low-level information and high-level information.

[0087] The low-level time length in the total preset period time length is taken as a target low-level time length, and duty cycle information of a pulse width modulation waveform to be generated is determined according to a ratio of the target low-level time length to the preset period time length, so that the target pulse width modulation waveform corresponding to the dimming control protocol waveform can be generated through the duty cycle information.

[0088] For example, the total preset period length is 500 ms, and if the low level length in the preset period length is 100 ms, the duty cycle information of the pulse width modulation waveform to be generated is 100 ms / 500 ms X 100% = 20%; for another example, if the low level length in the preset period length is 250 ms, the duty cycle information of the pulse width modulation waveform to be generated is 250 ms / 500 ms X 100% = 50%.

[0089] In the above embodiment, by obtaining the target low level length of the dimming control protocol waveform and the preset period length, the duty cycle information of the pulse width modulation waveform to be generated can be detected, and the target low level length of the dimming control protocol waveform is determined by the dimming instruction, so that the target pulse width modulation waveform can be generated according to the duty cycle information.

[0090] In one exemplary embodiment, the processor 105 is further configured to:

[0091] According to the dimming instruction, a first number of low level information written to the corresponding programmable logic chip 106 is determined; according to the first number, a low level length corresponding to the first number is generated, and a dimming control protocol waveform matching the dimming instruction is generated according to the low level length.

[0092] Specifically, the processor 105 analyzes the dimming instruction to determine a first number of low level information written to the corresponding programmable logic chip 106. At this time, the processor 105 generates a low level length in the dimming control protocol waveform to be generated according to the first number. For example, a corresponding relationship between the low level length and the number of low level information can be obtained in advance, and a low level length matching the first number of low level information is generated, such as 100 ms of low level in a dimming control protocol waveform to be generated when one low level information corresponds to 1 ms of low level and the first number of low level information is 100. In addition, a preset period length of the dimming control protocol waveform to be generated can be obtained, so that the dimming control protocol waveform can be generated according to the preset period length and the low level length.

[0093] It should be noted that the dimming control protocol waveform can be pulled low first and then pulled high, or pulled high first and then pulled low. When pulled low first and then pulled high, in each period of the dimming control protocol waveform, there is a low level of a certain length first, and then a high level of a certain length.

[0094] In one embodiment, the dimming control protocol waveform is generated according to the preset period length and the low level length, including: detecting a high level length in the dimming control protocol waveform to be generated, and generating a final dimming control protocol waveform according to the low level length and the high level length.

[0095] In one embodiment, after determining the first quantity of low-level information to be written to the corresponding programmable logic chip 106, the processor 105 directly writes the first quantity of low-level information to the corresponding programmable logic chip 106, and also writes a specific quantity of high-level information to the corresponding programmable logic chip 106 according to the high-level duration, so that the corresponding programmable logic chip 106 detects the dimming control protocol waveform according to the first quantity of low-level information and the specific quantity of high-level information.

[0096] In the above embodiment, according to the dimming instruction, the first quantity of low-level information to be written to the corresponding programmable logic chip 106 is determined, which can accurately detect the low-level duration in the dimming control protocol waveform, so that an accurate dimming control protocol waveform for dimming can be generated.

[0097] In one exemplary embodiment, the processor 105 is further configured to:

[0098] obtain a mapping relationship between the preset quantity of low-level information and the adjustment brightness parameter, obtain the target adjustment brightness parameter of the device 104 from the dimming instruction, and detect the first quantity of low-level information matched with the target adjustment brightness parameter according to the mapping relationship.

[0099] Specifically, when determining the first quantity of low-level information to be written to the corresponding programmable logic chip 106 according to the dimming instruction, the processor 105 pre-obtains a mapping relationship between the preset quantity of low-level information and the adjustment brightness parameter, and analyzes the dimming instruction to obtain the target adjustment brightness parameter of the device 104.

[0100] At this time, since the processor 105 pre-obtains the mapping relationship between the preset quantity of low-level information and the adjustment brightness parameter, and the target adjustment brightness parameter of the device 104 is known, the first quantity of low-level information matched with the target adjustment brightness parameter of the device 104 can be queried from the mapping relationship according to the target adjustment brightness parameter of the device 104.

[0101] In actual application, the adjustment brightness parameter is generally represented in the form of numbers or letters. In the case where the range of the adjustment brightness parameter is 1-100, analyzing the dimming instruction to obtain the target adjustment brightness parameter of the device 104 can be any one parameter in 1-100. The smaller the adjustment brightness parameter, the more the dimming instruction can represent the reduction of brightness, or the increase of brightness, which is set by the user. Further, it can be considered that the target adjustment brightness parameter of the device 104 is carried in the dimming instruction, that is, when setting the dimming instruction, the user selects or writes the target adjustment brightness parameter of the device 104, so that the target adjustment brightness parameter of the device 104 is carried in the dimming instruction, and the dimming instruction is sent to the processor 105.

[0102] In one embodiment, the more the number of low-level information, the greater the duty cycle of the target pulse width modulation waveform, and dimming the device 104 will increase the brightness of the device 104. Therefore, before obtaining the mapping relationship between the preset number of low-level information and the adjustment brightness parameter, the correlation between the adjustment brightness parameter and the number of low-level information can also be determined in advance, that is, it is determined that the greater the adjustment brightness parameter, the more the number of low-level information, or it is determined that the greater the adjustment brightness parameter, the less the number of low-level information. When the greater the adjustment brightness parameter, the more the number of low-level information, the greater the adjustment brightness parameter means that dimming the device 104 will increase the brightness of the device 104; when the greater the adjustment brightness parameter, the less the number of low-level information, the greater the adjustment brightness parameter means that dimming the device 104 will darken the brightness of the device 104.

[0103] In the above embodiment, by obtaining the mapping relationship between the preset number of low-level information and the adjustment brightness parameter, the first number of low-level information matched with the target adjustment brightness parameter can be quickly and accurately queried, so as to improve the efficiency of generating the dimming control protocol waveform, and further improve the efficiency of dimming the device 104.

[0104] In one exemplary embodiment, the processor 105 is further configured to:

[0105] Before sending the dimming control protocol waveform to the programmable logic chip 106, the preset second number of low-level information and the preset third number of high-level information are sent to the programmable logic chip 106, so that the programmable logic chip 106 enters the detection state of the control protocol waveform.

[0106] Specifically, after the processor 105 is powered on, if the processor 105 does not receive a dimming instruction, the dimming control protocol waveform sent by the processor 105 is in a low level by default at this time, and at this time, the duty cycle of the target pulse width modulation waveform output by the programmable logic chip 106 is a default duty cycle.

[0107] When the processor 105 receives the dimming instruction, the processor 105 sends the preset second number of low-level information and the preset third number of high-level information to the programmable logic chip 106, so that the dimming control protocol waveform sent is pulled up and then pulled down, or pulled down and then pulled up, so that the programmable logic chip 106 enters the detection state of the control protocol waveform.

[0108] After the programmable logic chip 106 enters the detection state of the control protocol waveform, the processor 105 parses the dimming instruction again to obtain a first number of low-level information to be written to the corresponding programmable logic chip 106, and according to the first number of low-level information, the dimming control protocol waveform is pulled low again to generate a new dimming control protocol waveform, so that the programmable logic chip 106 converts the detected dimming control protocol waveform into a target pulse width modulation waveform.

[0109] In the above embodiment, before the dimming control protocol waveform is sent to the programmable logic chip 106, the preset second number of low-level information and the preset third number of high-level information are sent to the programmable logic chip 106, so that the programmable logic chip 106 can reliably enter the detection state of the control protocol waveform, and then the operation of converting the detected dimming control protocol waveform into a target pulse width modulation waveform can be completed.

[0110] In an exemplary embodiment, as shown in Figure 2 The device dimming system 103 further comprises:

[0111] The processor interface 108 is connected with the programmable logic chip 106 and the processor 105 respectively, and the processor interface 108 is used to send the dimming control protocol waveform generated by the processor 105 to the programmable logic chip 106.

[0112] The processor interface 108 refers to the physical connection point and corresponding communication specification of the processor 105 (such as CPU, etc.) for data transmission, signal interaction or instruction communication with external components (other chips, memories, peripherals, buses, etc.). It not only includes the physical pins, connectors at the hardware level, but also covers the communication protocols, signal timing and other rules at the software level, to ensure that the processor 105 and other structures can orderly and accurately transmit data and control signals. Generally, the processor interface 108 can be a GPIO (General Purpose Input / Output, general purpose input / output interface), which is a general-purpose pin on the processor 105 that can be flexibly configured as an input or output state through software programming, and is used to realize simple signal interaction between the chip and other structures.

[0113] Specifically, the processor interface 108 is further arranged between the programmable logic chip 106 and the processor 105, and the processor interface 108 is used to realize the interaction between the programmable logic chip 106 and the processor 105, so that the dimming control protocol waveform generated by the processor 105 is sent to the programmable logic chip 106.

[0114] In one embodiment, the programmable logic chip 106 has IO BANKs (input / output bank, which refers to a set of input / output pins sharing the same electrical characteristics (such as voltage, signal standard), which is the basic unit for the chip to interact with external circuits (such as sensors, actuators, other chips) for signal exchange) with different voltage levels. The programmable logic chip 106 can connect the BANK with the corresponding voltage level and the processor interface 108 through the IO BANK with different voltage levels, for subsequent receiving the corresponding dimming control protocol waveform generated by the processor 105.

[0115] In the above embodiment, the response speed of the programmable logic chip 106 is faster than that of the corresponding interface of the single-chip microcomputer, and therefore, by setting the processor interface 108 between the programmable logic chip 106 and the processor 105, the dimming control protocol waveform generated by the processor 105 can be efficiently sent to the programmable logic chip 106.

[0116] In one exemplary embodiment, the embodiments of the present application also provide a device dimming method, which can be applied to the application environment as shown in Figure 1 . In the application environment, the device dimming system 103 is arranged in the interior of the device 104, the device dimming system 103 is used for dimming the device 104, and the device dimming system 103 comprises the processor 105, the programmable logic chip 106 and the dimming component 107.

[0117] The user sends the dimming instruction of the device 104 to the processor 105 in the device dimming system 103 through the key of the device 104 or the touch software of the device 104. The processor 105 obtains the dimming instruction of the device 104, processes the dimming instruction, obtains the dimming control protocol waveform matched with the dimming instruction, and sends the dimming control protocol waveform to the programmable logic chip 106; the programmable logic chip 106 converts the detected dimming control protocol waveform into a target pulse width modulation waveform, and feeds back the target pulse width modulation waveform to the dimming component 107; and the dimming component 107 dimming the device 104 according to the target pulse width modulation waveform.

[0118] In one exemplary embodiment, as shown in Figure 3 , a device dimming method is provided, and the device dimming method is applied to the device dimming system in Figure 1 . In the device dimming system, the following steps are performed.

[0119] S100, obtaining a dimming instruction of a device.

[0120] Specifically, the terminal sends the dimming instruction of the device to the processor in the device dimming system.

[0121] S200, processing the dimming instruction to obtain a dimming control protocol waveform matched with the dimming instruction.

[0122] Specifically, after the processor is powered on, if the processor does not receive the dimming instruction, the dimming control protocol waveform sent by the processor is at a default low level at this time, and at this time, the duty cycle of the target pulse width modulation waveform output by the programmable logic chip is a default duty cycle.

[0123] When the processor receives the dimming instruction, the processor sends a specific number of low level information and a specific number of high level information to the programmable logic chip, so that the dimming control protocol waveform sent is pulled up and then pulled down, and the programmable logic chip enters a detection state of the control protocol waveform.

[0124] After the programmable logic chip enters the detection state of the control protocol waveform, the processor analyzes the dimming instruction to obtain a first number of low level information written to the corresponding programmable logic chip, and according to the first number of low level information, the dimming control protocol waveform is pulled down again to generate a new dimming control protocol waveform, and the new dimming control protocol waveform is sent to the programmable logic chip, so that the programmable logic chip converts the detected dimming control protocol waveform into a target pulse width modulation waveform.

[0125] The processor obtains the first number of low level information written to the corresponding programmable logic chip, including: the processor obtains a mapping relationship between a preset number of low level information and an adjustment brightness parameter; obtaining a target adjustment brightness parameter of the device from the dimming instruction, and detecting a first number of low level information matched with the target adjustment brightness parameter according to the mapping relationship.

[0126] S300, converting the dimming control protocol waveform into a target pulse width modulation waveform.

[0127] Specifically, after the programmable logic chip detects the dimming control protocol waveform, the programmable logic chip obtains a target low level time length of the dimming control protocol waveform and a preset period time length, detects duty cycle information according to the target low level time length and the preset period time length, and generates a target pulse width modulation waveform corresponding to the dimming control protocol waveform according to the duty cycle information, and feeds back the target pulse width modulation waveform to the dimming component.

[0128] S400, dimming the device according to the target pulse width modulation waveform.

[0129] Specifically, the dimming component dimming the device according to the target pulse width modulation waveform, such as making the brightness of the device darker or making the brightness of the device higher.

[0130] The device dimming method has the advantages that since the device dimming method is applied to a device dimming system, the system includes a processor, a programmable logic chip and a dimming component arranged in the device, the processor can quickly generate a dimming control protocol waveform matched with a dimming instruction according to the dimming instruction, the generated dimming control protocol waveform can be efficiently sent to a programmable editing chip of the device without arranging an additional single-chip device, the programmable logic chip can be used to make the processor more efficiently operate without occupying too many resources of the processor, the efficiency of the programmable logic chip in converting the dimming control protocol waveform into a target pulse width modulation waveform is improved, the time for the dimming component to obtain the target pulse width modulation waveform is shortened, and the dimming component can efficiently dim the device.

[0131] The process of dimming the device through the device dimming system of the display control computer will be described in detail below, and the device is taken as the display control computer as an example, wherein:

[0132] The hardware interaction schematic diagram of the technical solution is shown in Figure 4 The system layer of the processor CPU in the display control computer is an operating system, and after entering the operating system, the system can be used to send various protocol waveforms from the processor interface GPIO of the CPU to the programmable logic chip CPLD.

[0133] Specifically, if the CPU does not receive a dimming instruction after power-on, the dimming control protocol waveform sent from the CPU to the GPIO is at a default low level, and the duty cycle of the pulse width modulation waveform sent from the programmable logic chip GPIO is a default duty cycle.

[0134] If the CPU receives a dimming instruction, the dimming control protocol waveform sent from the CPU to the programmable logic chip GPIO is pulled high for 100 ms and then pulled low, so that the CPLD enters a detection state.

[0135] Then, within a preset period of 500 ms after being pulled low, the dimming control protocol waveform is pulled high again after different pull-down times according to the dimming instruction, and the latest dimming control protocol waveform is sent to the programmable logic chip CPLD, and since the CPLD has input-output groups IO BANK with different voltage levels, the BANK corresponding to the level can be connected with the GPIO of the CPU, so that the CPLD can receive the new dimming control protocol waveform, and various logic judgments and processing can be realized through the programmable logic, and a target pulse width modulation PWM waveform with a corresponding duty cycle is output to the dimming component, which can be a dimming circuit in general.

[0136] For example, the dimming control protocol waveform is pulled down for 100 ms in a preset period of 500 ms, and the CPLD can set the duty cycle of the output PWM waveform to 100 ms / 500 ms X 100% = 20% according to the 100 ms pull-down time.

[0137] Finally, the dimming component dimming the display control computer according to the target pulse width modulation waveform.

[0138] During the whole process, compared with the previous display control computer device dimming processing by the single-chip microcomputer, the device cannot be realized and the cost is increased for the device with high space limitation requirement, or the CPU parses and processes the PWM waveform continuously, which occupies a high resource of the CPU. The technical solution adopts the CPU of the display control computer to parse and process the dimming instruction, and the CPLD device of the display control computer continuously outputs the PWM with different duty cycles according to the control protocol waveform parsed by the CPU. The single-chip microcomputer device is not increased, and the CPU resource is not occupied. The application scenario with high space limitation requirement is met, the cost is reduced, and the efficiency of dimming control is provided.

[0139] It should be understood that, although each step in the flowchart involved in the above embodiments is displayed in sequence according to the arrow, these steps are not necessarily executed in sequence according to the arrow. Unless otherwise stated herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other sequences. Moreover, at least part of the steps in the flowchart involved in the above embodiments can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence of these steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least part of other steps or steps or stages in other steps.

[0140] Based on the same inventive concept, the embodiments of the present application also provide a device dimming apparatus for implementing the above-mentioned device dimming method. The implementation scheme for solving the problem provided by the apparatus is similar to the implementation scheme described in the above method, so the specific limitations in one or more device dimming apparatus embodiments provided below can refer to the limitations of the device dimming method in the above text, which will not be repeated here.

[0141] In one exemplary embodiment, as shown in Figure 5 A device dimming apparatus is provided, comprising: an instruction acquisition module 100, an instruction processing module 200, a waveform conversion module 300, and a device dimming module 400, wherein:

[0142] The instruction acquisition module 100 is configured to acquire a dimming instruction of the device.

[0143] The instruction processing module 200 is configured to process the dimming instruction to obtain a dimming control protocol waveform matched with the dimming instruction.

[0144] The waveform conversion module 300 is configured to convert the dimming control protocol waveform into a target pulse width modulation waveform.

[0145] The device dimming module 400 is configured to dim the device according to the target pulse width modulation waveform.

[0146] The above modules in the device dimming apparatus can be implemented by software, hardware, or a combination thereof, in whole or in part. The above modules can be embedded in or independent of a processor in a computer device in hardware form, or stored in a memory in the computer device in software form, so as to be called and executed by the processor to perform the operations corresponding to the above modules.

[0147] In an exemplary embodiment, a computer device, which can be a terminal, has an internal structure as shown in Figure 6 The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected through a system bus, and the communication interface, the display unit, and the input device are connected to the system bus through the input / output interface. The processor of the computer device is configured 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 and a computer program. The internal memory provides an environment for running the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is configured to exchange information between the processor and external devices. The communication interface of the computer device is configured to perform wired or wireless communication with external terminals. The wireless communication can be achieved through WIFI, mobile cellular network, near field communication (NFC), or other technologies. The computer program is executed by the processor to implement a device dimming method. The display unit of the computer device is configured to form a visually visible picture, which can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer overlaid on the display screen, or a key, trackball, or touchpad arranged on the shell of the computer device, or an external keyboard, touchpad, or mouse, etc.

[0148] Those skilled in the art can understand that, Figure 6The structure shown in the figure, the dimming component is a block diagram of a partial 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 shown in the figure, or combine certain components, or have a different component arrangement.

[0149] In one embodiment, a computer device is further provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.

[0150] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0151] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0152] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by a computer program instructing relevant hardware. The computer program can be stored in a non-volatile computer readable storage medium. When the computer program is executed, the processes of the above-mentioned embodiment methods can be included. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. The non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. The volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration but not limitation, the RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., but is not limited thereto. The processor involved in the embodiments provided in the present application can be a general processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but is not limited thereto.

[0153] Any combination of the technical features of the above embodiments can be made. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described, however, as long as the combination of the technical features does not exist, it should be considered as the range disclosed in the present application.

[0154] The above embodiments only express several implementation ways of the present application, and the description is specific and detailed, but it should not be understood as a limitation to the patent scope of the present application. It should be pointed out that for ordinary skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims

1. A device dimming system, characterized in that: The system is arranged inside the device and includes: a processor configured to obtain a dimming instruction from a device, process the dimming instruction, obtain a dimming control protocol waveform matching the dimming instruction, and send the dimming control protocol waveform to a programmable logic chip; The programmable logic chip is configured to convert the detected dimming control protocol waveform into a target pulse width modulation waveform, and feed the target pulse width modulation waveform back to the dimming component; The dimming component is used to dim the device according to the target pulse width modulation waveform.

2. The system according to claim 1, wherein: The programmable logic chip is further used for: Obtaining a target low-level duration and a preset cycle duration of the dimming control protocol waveform; Detecting duty cycle information according to the target low level duration and the preset cycle duration; A target pulse width modulation waveform corresponding to the dimming control protocol waveform is generated according to the duty cycle information.

3. The system according to claim 1, wherein: The processor is further configured to: Determining, according to the dimming instruction, a first quantity of low-level information to be written to a corresponding programmable logic chip; A low-level duration corresponding to the first number is generated according to the first number, and a dimming control protocol waveform matching the dimming instruction is generated according to the low-level duration.

4. The system according to claim 3, characterized in that The processor is further configured to: Obtaining a mapping relationship between the amount of preset low-level information and the brightness adjustment parameter; A target adjustment brightness parameter of the device is acquired from the dimming instruction, and a first quantity of low-level information matching the target adjustment brightness parameter is detected according to the mapping relationship.

5. The system according to claim 1, wherein: The processor is further configured to: Before sending the dimming control protocol waveform to the programmable logic chip, a preset second amount of low-level information and a preset third amount of high-level information are sent to the programmable logic chip 106, so that the programmable logic chip enters a detection state of the control protocol waveform.

6. The system according to claim 1, wherein: The system further comprises: A processor interface is connected to the programmable logic chip and the processor respectively, and the processor interface is used to send the dimming control protocol waveform generated by the processor to the programmable logic chip.

7. A device dimming method, characterized in that: Applied to the device dimming system according to any one of claims 1 to 6, the method comprising: Get the device's dimming instructions; Processing the dimming instruction to obtain a dimming control protocol waveform matching the dimming instruction; Converting the dimming control protocol waveform into a target pulse width modulation waveform; The device is dimmed according to the target pulse width modulation waveform.

8. A device dimming device, characterized in that: The device comprises: The instruction acquisition module is used to obtain the dimming instruction of the device; The instruction processing module is used to process the dimming instruction and obtain a dimming control protocol waveform that matches the dimming instruction; A waveform conversion module, used to convert the dimming control protocol waveform into a target pulse width modulation waveform; The device dimming module is used to dim the device according to the target pulse width modulation waveform.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to claim 7 are implemented.

10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to claim 7 are implemented.