Display screen control method and device, equipment, medium and product

By obtaining the brightness value and preset brightness count value to determine the pulse bandwidth modulation parameters, the problem of uneven brightness adjustment of the LED display screen and easy loss of the remote control is solved, and the uniform adjustment of the display screen brightness and visual experience are achieved.

CN120388530APending Publication Date: 2025-07-29SHENZHEN HUIDU TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510723095.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-30
Publication Date
2025-07-29

AI Technical Summary

Technical Problem

The existing LED display brightness adjustment method has the problem of high cost and easy loss when paired with a remote control, as well as the problem of single dimming function through the switch segmentation and uneven brightness adjustment.

Method used

The pulse bandwidth modulation duty cycle is determined by obtaining the brightness value and the preset brightness count value, the duty cycle count value is determined by combining the preset pulse bandwidth modulation timer resolution, and the pulse bandwidth modulation width and frequency are determined according to the display parameters when necessary, and sent to the controller for display control.

Benefits of technology

The uniformity of brightness adjustment of display screens of different sizes is achieved, and the user's visual experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120388530A_ABST
    Figure CN120388530A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a display screen control method and device, equipment, a medium and a product, and the method comprises the steps: obtaining a first brightness value, and determining a pulse bandwidth modulation duty ratio according to the first brightness value and a preset brightness count value; determining a duty ratio count value according to the pulse bandwidth modulation duty ratio and a preset pulse bandwidth modulation timer resolution; when the duty ratio count value is greater than a preset brightness count value, determining a pulse bandwidth modulation width according to a pulse bandwidth modulation duty ratio and a pulse bandwidth modulation period; and sending the pulse bandwidth modulation duty ratio, the pulse bandwidth modulation width, the pulse bandwidth modulation period and the pulse bandwidth modulation frequency to a controller of the first display screen, so that the controller performs display control on the first display screen according to the acquired data. According to the technical scheme provided by the embodiment of the invention, the pulse bandwidth modulation parameter is accurately controlled through the controller based on the pulse width modulation, so that the brightness adjustment change of display screens with different sizes is uniform, and the visual experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of electronic technologies, and in particular, to a display screen control method, apparatus, device, medium, and product. Background Art

[0002] With the continuous progress of light-emitting diode (LED) technology, a large number of display screens composed of LEDs have emerged. Adjusting the brightness of an LED display screen can enhance the visual experience and the readability of content.

[0003] Currently, there are mainly the following several ways to adjust the brightness of an LED display screen: dimming through an infrared remote control / radio frequency remote control, dimming through switch segmentation, etc. Dimming through an infrared or radio frequency remote control has the problems of requiring a remote control, high cost, and easy loss of the remote control. With the existing switch segmentation dimming, there are problems of single function, only being able to adjust several brightness levels through the on / off of the switch, and uneven brightness adjustment. Summary of the Invention

[0004] Embodiments of the present disclosure provide a display screen control method, apparatus, device, medium, and product, so as to achieve the effect of making the brightness adjustment changes of display screens of different sizes uniform and enhancing the user's visual experience.

[0005] In a first aspect, embodiments of the present disclosure provide a display screen control method, and the method includes:

[0006] Obtain a first brightness value, and determine a pulse width modulation duty cycle according to the first brightness value and a preset brightness count value;

[0007] Determine a duty cycle count value according to the pulse width modulation duty cycle and a preset pulse width modulation timer resolution;

[0008] In the case where the duty cycle count value is greater than the preset brightness count value, determine a pulse width modulation width according to the pulse width modulation duty cycle and a pulse width modulation period determined in advance based on first display screen parameters;

[0009] Send the pulse width modulation duty cycle, the pulse width modulation width, the pulse width modulation period, and a pulse width modulation frequency determined in advance based on first display screen parameters to a controller of the first display screen, so that the controller performs display control on the first display screen according to the obtained data.

[0010] In a second aspect, embodiments of the present invention also provide a display screen control apparatus, and the apparatus includes:

[0011] A pulse bandwidth modulation duty cycle determination module, configured to obtain a first brightness value and determine a pulse bandwidth modulation duty cycle according to the first brightness value and a preset brightness count value;

[0012] A duty cycle count value determination module, configured to determine a duty cycle count value according to the pulse bandwidth modulation duty cycle and a preset pulse bandwidth modulator resolution;

[0013] A pulse bandwidth modulation width determination module, configured to, when the duty cycle count value is greater than the preset brightness count value, determine a pulse bandwidth modulation width according to the pulse bandwidth modulation duty cycle and a pulse bandwidth modulation period determined in advance based on first display screen parameters;

[0014] A display control module, configured to send the pulse bandwidth modulation duty cycle, the pulse bandwidth modulation width, the pulse bandwidth modulation period, and a pulse bandwidth modulation frequency determined in advance based on first display screen parameters to a controller of the first display screen, so that the controller performs display control on the first display screen according to the obtained data.

[0015] In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:

[0016] One or more processors;

[0017] A storage device, configured to store one or more programs,

[0018] When the one or more programs are executed by the one or more processors, the one or more processors implement the display screen control method according to any one of the embodiments of the present invention.

[0019] In a fourth aspect, an embodiment of the present invention further provides a storage medium including computer-executable instructions, where the computer-executable instructions are used to execute the display screen control method according to any one of the embodiments of the present invention when executed by a computer processor.

[0020] In a fifth aspect, an embodiment of the present invention further provides a computer program product, including a computer program, characterized in that the computer program implements the display screen control method according to any one of the embodiments of the present invention when executed by a processor.

[0021] The technical solution of the disclosed embodiment obtains a first brightness value and determines a pulse width modulation (PWM) duty cycle based on the first brightness value and a preset brightness count value. Then, a duty cycle count value is determined based on the PWM duty cycle and a preset PWM timer resolution. Furthermore, if the duty cycle count value is greater than the preset brightness count value, a PWM width is determined based on the PWM duty cycle and a PWM period predetermined based on parameters of the first display screen. Finally, the PWM duty cycle, PWM width, PWM period, and PWM frequency predetermined based on the first display screen parameters are transmitted to a controller of the first display screen, so that the controller controls the display of the first display screen based on the acquired data. This solution addresses the problems of infrared or wireless RF remote control dimming, which requires a remote control, resulting in high costs and easy loss of the remote control, as well as the problems of existing switch-based dimming, which suffers from limited functionality, limited brightness adjustment to a few levels by turning the switch on and off, and uneven brightness adjustment. The present embodiment uses PWM and precisely controls the PWM parameters through a controller, ensuring uniform brightness adjustment for displays of different sizes, thereby enhancing the user's visual experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] To more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings introduced here only illustrate some of the embodiments to be described by the present invention, and are not exhaustive. A person skilled in the art can derive other drawings based on these drawings without inventive effort.

[0023] Figure 1 This is a flow chart of a display screen control method provided by an embodiment of the present disclosure;

[0024] Figure 2 is a schematic diagram of the data clock frequency of the controller provided by an embodiment of the present invention;

[0025] Figure 3 is a schematic diagram of the pulse width modulation frequency provided by an embodiment of the present invention;

[0026] Figure 4 This is a structural diagram of a display screen control device provided by an embodiment of the present invention;

[0027] Figure 5 It is a structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0028] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only for explaining the present invention, rather than limiting the present invention. Additionally, it should be noted that for the convenience of description, only the parts related to the present invention rather than all the structures are shown in the drawings.

[0029] Before introducing the technical solutions provided by the embodiments of the present disclosure, an exemplary description of the application scenario can be given first. The technical solutions provided by the embodiments of the present disclosure can be applied to the scenario of uniformly adjusting the brightness of an LED display screen of any size.

[0030] It should be noted that a controller is an electronic device or system that is responsible for receiving input signals and adjusting output signals according to preset algorithms or logics. In the brightness control of an LED display screen in the embodiments of the present invention, the controller usually receives instructions from users or sensors and adjusts the output signals according to these instructions, thereby controlling the brightness of the LED display screen. The controller can be a microcontroller (MCU), a digital signal processor (DSP), or other types of integrated circuits. Through programming control, the controller can implement complex adjustment and feedback mechanisms to ensure that the LED display screen can maintain the required brightness under different conditions. The output signal of the controller can be a pulse width modulation (PWM, Pulse Width Modulation) signal. The internal timing and output control capabilities of the controller can generate a PWM signal with a specific pulse bandwidth modulation duty cycle, pulse bandwidth modulation width, pulse bandwidth modulation period, and pulse bandwidth modulation frequency according to preset algorithms or sensor inputs.

[0031] It should be noted that the data clock frequency of the controller refers to the clock signal frequency used for synchronizing data transmission or processing in the controller. The data clock frequency of the controller determines the transmission rate or processing speed of data between hardware modules such as buses, peripheral interfaces, display driver chips, etc., and is usually expressed in hertz (Hz). In the application of LED displays, the data clock frequency of the controller can affect the display refresh rate. A higher data clock frequency can support a higher refresh rate, such as 60Hz or 120Hz, thereby reducing screen flicker. The data clock frequency of the controller can affect the data transmission bandwidth. The higher the data clock frequency, the greater the amount of data transmitted per unit time, and it can support displays with higher resolutions or color depths. The data clock frequency of the controller can also affect system stability. The clock frequency needs to match the hardware capabilities. Excessive frequency may cause signal distortion or electromagnetic interference. When setting the data clock frequency, factors such as the maximum supported frequency of the chip, the complexity of the display content of the LED display, the interface protocol, and the transmission method need to be considered comprehensively. The LED display driver chip or controller has a maximum clock frequency limit. The data clock frequency of the controller should not exceed the maximum clock frequency, otherwise it may cause data errors, chip overheating, or damage. The more complex the display content of the LED display, the higher the required data clock frequency of the controller. For example, a higher color depth will increase the amount of data per pixel, thus requiring a higher data clock frequency of the controller. In the SPI serial interface, the data clock frequency of the controller can reach dozens of MHz, such as 50MHz), but the line length and signal integrity need to be considered. The parallel interface can transmit multiple bits of data simultaneously, but requires more pins, and the data clock frequency of the controller can be appropriately reduced. By reasonably setting the data clock frequency, high performance, low power consumption, and stable operation of the LED display can be achieved.

[0032] It should also be noted that PWM is a technology that controls power output by adjusting the pulse width of a signal. The working principle of PWM is to quickly switch the power supply of the LED. Since the human eye is not sensitive to rapidly flashing light sources, although the LED operates in a flashing manner within a cycle, the human eye perceives a constant brightness. The PWM signal is usually a square wave signal with a constant frequency, and the duration of the high level of the pulse, that is, the pulse bandwidth modulation width, can be adjusted. The duty cycle of the pulse bandwidth modulation of the PWM signal refers to the proportion of the high-level part within one cycle, usually expressed as a percentage. When the duty cycle increases, the time for the LED display to be lit relatively increases, resulting in an increase in the average current of the LED display, thereby increasing the brightness of the LED display; conversely, when the duty cycle decreases, the time for the LED display to be lit decreases, the average current decreases, and the brightness of the LED display also decreases accordingly. The pulse bandwidth modulation width refers to the duration of the high level, or the effective signal, within one PWM cycle. The pulse bandwidth modulation width is equal to the product of the pulse bandwidth modulation duty cycle and the pulse bandwidth modulation cycle. When the pulse bandwidth modulation is 1 ms (the pulse bandwidth modulation frequency is 1 kHz) and the pulse bandwidth modulation duty cycle is 30%, the pulse bandwidth modulation width is 0.3 ms. The pulse bandwidth modulation cycle refers to the time required for a complete PWM signal from start to end. The pulse bandwidth modulation cycle determines the update rate of the PWM signal. The shorter the pulse bandwidth modulation cycle, the higher the pulse bandwidth modulation frequency, and the faster the PWM signal is updated. The pulse bandwidth modulation frequency refers to the number of pulse bandwidth modulation cycles of the PWM signal per unit time. The pulse bandwidth modulation frequency determines the switching speed of the PWM signal. The higher the pulse bandwidth modulation frequency, the faster the PWM signal switches, but it may increase electromagnetic interference and power consumption. By reasonably adjusting these parameters, precise PWM signal modulation can be achieved. The controller realizes precise control of the brightness of the LED display by generating and adjusting the PWM signal. Based on the technical solution of the embodiments of the present disclosure, based on pulse width modulation, by precisely controlling the pulse bandwidth modulation parameters through the controller, the brightness adjustment changes of different-sized displays are uniform, achieving the effect of enhancing the user's visual experience.

[0033] Embodiment 1

[0034] Figure 1 It is a schematic flowchart of a display screen control method provided by the embodiments of the present disclosure. The embodiments of the present disclosure are applicable to the situation of uniformly adjusting the brightness of LED display screens of any size. This method can be executed by a display screen control device, which can be implemented in the form of software and / or hardware. The hardware can be an electronic device on a mobile terminal, and this electronic device can execute the display screen control method provided by this technical solution.

[0035] As Figure 1 shown, the method includes:

[0036] S110. Obtain the first brightness value and determine the pulse-width modulation duty cycle based on the first brightness value and the preset brightness meter value.

[0037] Among them, the first brightness value can be an adjustable value, specifically depending on the system design. The user can set the first brightness value by adjusting the knob, slider or software interface. If the brightness control range of the system is from 0 to 100, then the first brightness value can vary within this range, where 0 represents completely off, that is, no brightness, and 100 represents the maximum brightness. For example, if the brightness value of the LED display supports manual adjustment, the user may set the first brightness value to 80 through the interface. The preset brightness meter value is a target brightness value set internally in the system, and the preset brightness meter value is used to calculate with the first brightness value to determine the required PWM duty cycle. The preset brightness meter value is usually set during system initialization and can be adjusted according to user needs or application scenarios.

[0038] In this embodiment, the preset brightness meter value is the count value of 2 to the power of 7. This means that the value range of the preset brightness meter value can be from 0 to 127, that is, 0 to 2^7 - 1. The selection of the value range of the preset brightness meter value is usually related to the resolution of the system. The higher the resolution, the more brightness levels can be represented.

[0039] It should be noted that the pulse-width modulation duty cycle refers to the proportion of the high-level time of the PWM signal in one cycle, and the pulse-width modulation duty cycle can be expressed as a percentage.

[0040] Exemplarily, the calculation formula of the pulse-width modulation duty cycle can be:

[0041]

[0042] Among them, 127 is the preset maximum brightness meter value, representing the maximum brightness that the system can represent. 127 is used to normalize the first brightness value to the range of the pulse-width modulation duty cycle. When the first brightness value is 0, the calculation result of the pulse-width modulation duty cycle is 0%, indicating that the LED display is completely off. The first brightness value varies between 0% and 100%, adjusting the pulse-width modulation duty cycle, thereby adjusting the brightness of the LED display.

[0043] Specifically, after obtaining the first brightness value determined according to the demand, the pulse-width modulation duty cycle can be determined based on the first brightness value and the preset brightness meter value, and then the brightness of the LED display can be adjusted.

[0044] Exemplarily, when the obtained first brightness value is 63, according to the calculation formula, the pulse-width modulation duty cycle obtained based on the first brightness value and the preset brightness meter value is 49.61%.

[0045] S120. Determine the duty cycle count value according to the pulse bandwidth modulation duty cycle and the preset pulse bandwidth modulation timer resolution.

[0046] Among them, the pulse bandwidth modulation timer resolution refers to the smallest time unit that the controller can distinguish when generating the PWM signal. The pulse bandwidth modulation timer resolution affects the fineness of the PWM signal. The higher the pulse bandwidth modulation timer resolution, the finer the duty cycle adjustment of the PWM signal. The main frequency is one of the key factors affecting the PWM timer resolution. For example, taking TI's 28069 as an example, the main frequency is 90M. For applications involving motor control, generally, the interrupt frequency and switching frequency configuration rarely exceed 20k. At this time, the period counter load value = 90M / 20k = 4500, and the corresponding PWM timer resolution = 1 / 4500 = 0.022%, which means that the smallest range that the duty cycle of the PWM wave can move is 0.022%; if the switching frequency is increased to 2M, the value of the period counter = 90M / 2M = 45, and at this time the PWM timer resolution = 1 / 45 = 2.2%, which means that the smallest range that the duty cycle of the PWM wave can move is 2.2%. Different models of timer peripherals have different characteristics and limitations, which will affect the preset value of the PWM timer resolution. For example, some timers may be 16-bit. When the switching frequency is too low, the performance of doubling the frequency of the HRPWM peripheral to 5.6G may not be fully utilized. When setting the pulse bandwidth modulation timer resolution, the appropriate resolution can be determined by combining the specific application requirements and the performance of the hardware, such as the number of bits of the timer and the main frequency of the peripheral.

[0047] It should be noted that the duty cycle count value refers to the count value used to represent the duty cycle within a given pulse bandwidth modulation period. The duty cycle count value is realized by converting the PWM duty cycle into a timer count value and is used to indicate the high-level duration of the PWM signal.

[0048] Optionally, determine the count value of the pulse bandwidth modulation timer resolution according to the data clock frequency of the controller and the preset pulse bandwidth modulation timer resolution; determine the duty cycle count value according to the pulse bandwidth modulation duty cycle and the count value of the pulse bandwidth modulation timer resolution.

[0049] Among them, the count value of the pulse bandwidth modulation timer resolution refers to the total number of times that the timer can count within a PWM cycle. The count value of the pulse bandwidth modulation timer resolution is related to the data clock frequency of the controller and the preset pulse bandwidth modulation timer resolution. The count value of the pulse bandwidth modulation timer resolution determines the generation accuracy of the PWM signal and the duty cycle adjustment ability.

[0050] Exemplarily, the calculation formula for the count value of the pulse bandwidth modulation timer resolution can be:

[0051]

[0052] Specifically, divide the data clock frequency of the controller by the preset pulse bandwidth modulation timer resolution to the power of 2 to obtain the total number of counts that can be performed within one PWM period.

[0053] Exemplarily, assume that the data clock frequency of the controller is 16 MHz (16000000 Hz), and the preset pulse bandwidth modulation timer resolution is 8 (i.e., 2^8 = 256). Then, the count value of the pulse bandwidth modulation timer resolution at this time is 62500, which means that within one PWM period, the timer can perform 62500 counts. See Figure 2 , the data clock frequency of the controller is 20 MHz, the data clock width of the controller is 27.5 ns, the data clock period of the controller is 50 ns, and the data clock duty cycle of the controller is 55%.

[0054] It should be noted that the duty cycle count value refers to the actual count value calculated by the controller according to the set pulse width modulation duty cycle within a given pulse width modulation period. The duty cycle count value represents the count of the high-level duration and is usually used to control the output of the PWM signal.

[0055] Exemplarily, the calculation formula for the duty cycle count value can be:

[0056] Duty cycle count value = Pulse bandwidth modulation duty cycle * Count value of the pulse bandwidth modulation timer resolution;

[0057] Specifically, multiply the pulse bandwidth modulation duty cycle and the count value of the pulse bandwidth modulation timer resolution to obtain the duty cycle count value.

[0058] Exemplarily, assume that the data clock frequency of the controller is 16 MHz (16000000 Hz), the preset pulse bandwidth modulation timer resolution is 8 (i.e., 2^8 = 256), and when the pulse bandwidth modulation duty cycle is 75%, the count value of the pulse bandwidth modulation timer resolution is 62500, and the duty cycle count value is 46875.

[0059] S130. In the case where the duty cycle count value is greater than the preset brightness count value, determine the pulse bandwidth modulation width according to the pulse bandwidth modulation duty cycle and the pulse bandwidth modulation period determined in advance based on the first display screen parameters.

[0060] It should be noted that the duty cycle count value being greater than the preset brightness count value can serve as a protection mechanism to prevent malfunctions or instability in the LED display at low brightness levels. The design choice of having the duty cycle count value greater than the preset brightness count value can enhance the flexibility and responsiveness of the system, better adapt to dynamic environments, user requirements, and the characteristics of visual perception, and thus help achieve smoother control effects and higher system reliability.

[0061] It should also be noted that the first display refers to the LED display whose brightness is currently being adjusted. Multiplying the pulse bandwidth modulation duty cycle by the predetermined pulse bandwidth modulation period can determine the pulse bandwidth modulation width.

[0062] Optionally, based on the data clock frequency of the controller of the first display and the preset data volume of the display data packet, determine the transmission duration for sending one display data packet; use the transmission duration as the pulse bandwidth modulation period and determine the pulse bandwidth modulation frequency based on the pulse bandwidth modulation period.

[0063] Among them, the preset data volume of the display data packet refers to the amount of data contained in each data packet that is preset according to certain standards or designs when transmitting display data. This data volume is usually related to parameters such as the resolution, color depth, and update frequency of the display, and determines the number of pixel data to be sent in one data transmission.

[0064] It should be noted that in digital communication, a data packet refers to the basic data unit transmitted in a network or system. A data packet usually contains necessary information such as the destination address, source address, and data content. For a display, the data packet contains the image information that needs to be updated or displayed. The preset data volume is usually designed according to the characteristics and application requirements of the display. To improve the efficiency of data transmission and reduce latency, the display data may be split into multiple data packets for transmission. For example, the data can be organized by rows (transmitted row by row) or columns (transmitted column by column) to gradually update the display content. If the size of the data packet is set to 1024 bytes, then when transmitting the data of the entire display, based on organizing the data by rows (transmitted row by row) or columns (transmitted column by column), the row data or column data is further divided into multiple data packets for sending. When the resolution of the first display is 10240*6120, first organize the data by rows or columns, and then organize the data according to the preset data volume of the display data packet. At this time, if organizing the data by rows and the size of the data packet is set to 1024 bytes, then the number of data packets for one row of data is 6.

[0065] Exemplarily, the calculation formula for the transmission duration of the display data packet can be:

[0066] The transmission duration of the display data packet = the data clock frequency of the controller * the preset data volume of the display data packet;

[0067] Specifically, multiply the data clock frequency of the controller of the first display screen by the preset data volume of the display data packet to determine the transmission duration of sending a display data packet.

[0068] It should be noted that the transmission duration can be directly used as the pulse width modulation period. Calculate the reciprocal of the pulse width modulation period to obtain the pulse width modulation frequency.

[0069] It should also be noted that when the data volume of the display data packet is less than the preset data volume, the hardware timer of the controller can be used to calculate the remaining data volume that needs to be filled. After triggering the hardware timer, through the hardware timer interrupt, and then continue to send the next display data packet.

[0070] Exemplarily, when the resolution of the first display screen is 10240 * 6120, if the data is organized by rows at this time, the size of the data packet is set to 1024 bytes, then the number of data packets in one row is 6, and the data volume of the last data packet is 1000. At this time, the data volume of the last data packet is less than the preset data volume of the display data packet. The hardware timer of the controller can be used to calculate that the remaining data volume to be filled is 24 bytes, and the interrupt time of triggering the hardware timer is the product of the data clock frequency of the controller and the filled data volume. After triggering the hardware timer, through the hardware timer interrupt, after the interrupt time ends, continue to send the next display data packet.

[0071] In this embodiment, one Nth of the transmission duration is used as the pulse width modulation period; where N is a natural number that can evenly divide the transmission duration. By using one Nth of the transmission duration as the pulse width modulation period, higher adjustment accuracy can be achieved. A shorter pulse width modulation period makes the adjustment of the pulse width modulation duty cycle more delicate, so that the brightness, color or other output characteristics can be controlled more precisely. This method provides flexibility and adjustability, enabling the system to adapt to different application scenarios and requirements.

[0072] Optionally, set the preset pin of the controller to the pulse width modulation mode; correspondingly, the method further includes: setting the preset pin to the invalid mode during the gap between the transmission of two consecutive display data packets.

[0073] It should be noted that pulse width modulation (PWM) mode refers to the LED display brightness control pins, meaning that the controller pins use PWM mode. Inactive mode refers to a state where the controller pins are set to not generate a valid output signal. In inactive mode, the pins may be low, floating, or in a high-impedance state, without affecting the external LED display. In PWM mode, the controller precisely controls the PWM frequency and duty cycle of the output PWM signal, enabling precise adjustment of display brightness. Using PWM during the packet transmission phase ensures the validity and stability of the PWM signal. Setting the pins to inactive mode between packet transmissions avoids unnecessary interference or noise during data transmission, ensuring the accuracy and integrity of data transmission. Setting the pins to inactive mode during periods when valid signal output is not required also saves power and improves overall system efficiency. Setting PWM and inactive modes simplifies control logic, making the system more efficient when processing packets and reducing design complexity.

[0074] Specifically, a count value of a pulse width modulation timer resolution is determined according to a data clock frequency of the controller and a preset pulse width modulation timer resolution, and a duty cycle count value is further determined according to a pulse width modulation duty cycle and a count value of the pulse width modulation timer resolution. When the duty cycle count value is greater than a preset brightness count value, the pulse width modulation duty cycle is multiplied by a pulse width modulation period predetermined based on the first display screen parameter to determine a pulse width modulation width.

[0075] S140: Send the pulse width modulation duty cycle, pulse width modulation width, pulse width modulation period, and pulse width modulation frequency predetermined based on the first display screen parameters to the controller of the first display screen, so that the controller controls the display of the first display screen according to the acquired data.

[0076] Specifically, the PWM duty cycle, PWM width, PWM period, and a PWM frequency predetermined based on the first display screen parameters are transmitted to the controller of the first display screen, allowing the controller to adjust the brightness of the display screen based on this data. With this data, the controller can achieve more precise display control, ensuring the accuracy and consistency of displayed content. The controller can better manage the displayed content, thereby improving the overall user experience.

[0077] For example, see Figure 3 , the pulse bandwidth modulation frequency of 69.81KHz, the pulse bandwidth modulation width of 7.1625μs, the pulse bandwidth modulation period of 14.325μs, and the pulse bandwidth modulation duty cycle of 50% can be sent to the controller of the first display screen, allowing the controller to adjust the brightness of the display screen according to these data.

[0078] The technical solution of the disclosed embodiment obtains a first brightness value and determines a pulse width modulation (PWM) duty cycle based on the first brightness value and a preset brightness count value. Then, a duty cycle count value is determined based on the PWM duty cycle and a preset PWM timer resolution. Furthermore, if the duty cycle count value is greater than the preset brightness count value, a PWM width is determined based on the PWM duty cycle and a PWM period predetermined based on parameters of the first display screen. Finally, the PWM duty cycle, PWM width, PWM period, and PWM frequency predetermined based on the first display screen parameters are transmitted to a controller of the first display screen, so that the controller controls the display of the first display screen based on the acquired data. This solution addresses the problems of infrared or wireless RF remote control dimming, which requires a remote control, resulting in high costs and easy loss of the remote control, as well as the problems of existing switch-based dimming, which suffers from limited functionality, limited brightness adjustment to a few levels by turning the switch on and off, and uneven brightness adjustment. The present embodiment uses PWM and precisely controls the PWM parameters through a controller, ensuring uniform brightness adjustment for displays of different sizes, thereby enhancing the user's visual experience.

[0079] Embodiment 2

[0080] Figure 4 is a structural diagram of a display screen control device provided by an embodiment of the present disclosure, such as Figure 4 As shown, the apparatus includes: a pulse width modulation duty cycle determining module 210 , a duty cycle count value determining module 220 , a pulse width modulation width determining module 230 and a display control module 240 .

[0081] a pulse width modulation duty cycle determination module for acquiring a first brightness value and determining a pulse width modulation duty cycle based on the first brightness value and a preset brightness count value; a duty cycle count value determination module for determining a duty cycle count value based on the pulse width modulation duty cycle and a preset pulse width modulation resolution; a pulse width modulation width determination module for determining a pulse width modulation width based on the pulse width modulation duty cycle and a pulse width modulation period predetermined based on first display screen parameters when the duty cycle count value is greater than the preset brightness count value; and a display control module for transmitting the pulse width modulation duty cycle, pulse width modulation width, pulse width modulation period, and a pulse width modulation frequency predetermined based on the first display screen parameters to a controller of the first display screen, so that the controller performs display control on the first display screen according to the acquired data.

[0082] In the technical solution of the embodiment of the present disclosure, a first brightness value is obtained, and a pulse width modulation duty cycle is determined according to the first brightness value and a preset brightness meter value. Then, a duty cycle count value is determined according to the pulse width modulation duty cycle and a preset pulse width modulation timer resolution. Further, in the case where the duty cycle count value is greater than the preset brightness meter value, a pulse width modulation width is determined according to the pulse width modulation duty cycle and a pulse width modulation period pre-determined based on the first display parameter. Finally, the pulse width modulation duty cycle, the pulse width modulation width, the pulse width modulation period, and a pulse width modulation frequency pre-determined based on the first display parameter are sent to the controller of the first display, so that the controller performs display control on the first display according to the obtained data. This solves the problems that infrared or radio frequency remote control dimming requires a remote control, has a high cost, and the remote control is easy to lose, and that the existing switch segmented dimming has a single function, can only adjust several brightness levels through the on / off of the switch, and the brightness adjustment is uneven. The embodiment of the present invention is based on pulse width modulation, and precisely controls the pulse width modulation parameters through the controller, so that the brightness adjustment of different sizes of displays changes evenly, achieving the effect of improving the user's visual experience.

[0083] On the basis of the above technical solutions, the device further includes: a transmission duration determination module and a pulse width modulation frequency determination module.

[0084] The transmission duration determination module is configured to determine a transmission duration for sending a display data packet according to the data clock frequency of the controller of the first display and a preset data volume of the display data packet; the pulse width modulation frequency determination module is configured to use the transmission duration as the pulse width modulation period and determine the pulse width modulation frequency according to the pulse width modulation period.

[0085] On the basis of the above technical solutions, the pulse width modulation frequency determination module is further configured to use one Nth of the transmission duration as the pulse width modulation period; where N is a natural number that can evenly divide the transmission duration.

[0086] On the basis of the above technical solutions, the device further includes: a pin setting module, configured to set a preset pin of the controller to a pulse width modulation mode; and set the preset pin to an invalid mode during the gap between the transmission of two consecutive display data packets.

[0087] On the basis of the above technical solutions, the duty cycle count value determination module 220 further includes: a pulse width modulation timer resolution count value determination sub-module and a duty cycle count value determination sub-module.

[0088] A count value determination sub-module for the resolution of the pulse bandwidth modulator, which is used to determine the count value of the resolution of the pulse bandwidth modulation timer according to the data clock frequency of the controller and the preset resolution of the pulse bandwidth modulator;

[0089] A duty cycle count value determination sub-module, which is used to determine the duty cycle count value according to the pulse bandwidth modulation duty cycle and the count value of the resolution of the pulse bandwidth modulation timer.

[0090] On the basis of the above technical solutions, the preset brightness count value is the count value of 2 to the 7th power.

[0091] The display control device provided by the embodiments of the present disclosure can execute the display control method provided by any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects for executing the method.

[0092] It should be noted that the various units and modules included in the above device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are only for the convenience of mutual distinction and do not limit the protection scope of the embodiments of the present disclosure.

[0093] Embodiment III

[0094] Figure 5 It is a schematic structural diagram of an electronic device provided by the embodiments of the present disclosure. The following refers to Figure 5 , which shows a schematic structural diagram of an electronic device 500 suitable for implementing the embodiments of the present disclosure (such as Figure 5 the terminal device or server in). The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablet Computers), PMPs (Portable Multimedia Players), in-vehicle terminals (such as in-vehicle navigation terminals), and the like. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and usage scope of the embodiments of the present disclosure.

[0095] As Figure 5 shown, the electronic device 500 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage device 508 into the random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. The editing / output (I / O) interface 505 is also connected to the bus 504.

[0096] Typically, the following devices can be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 can allow the electronic device 500 to communicate with other devices wirelessly or wiredly to exchange data. Although Figure 5 the electronic device 500 with various devices is shown, it should be understood that it is not required to implement or have all the shown devices. More or fewer devices can be alternatively implemented or had.

[0097] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes program codes for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above functions defined in the method of the embodiment of the present disclosure are executed.

[0098] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes and are not used to limit the scope of these messages or information.

[0099] The electronic device provided by the embodiment of the present disclosure and the display screen control method provided by the above embodiment belong to the same inventive concept. The technical details not described in detail in this embodiment can be seen in the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0100] Embodiment Four

[0101] The embodiment of the present disclosure provides a computer storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements the display screen control method provided by the above embodiment.

[0102] It should be noted that the above-mentioned computer-readable medium in the present disclosure can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, and this computer-readable signal medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0103] In some embodiments, the server can communicate using any currently known or future-developed network protocol such as HTTP (HyperText Transfer Protocol), and can be interconnected with digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed networks.

[0104] The above-mentioned computer-readable medium can be included in the above-mentioned electronic device; it can also exist separately without being assembled into the electronic device.

[0105] The above-mentioned computer-readable medium carries one or more programs, and when the above one or more programs are executed by the electronic device, the electronic device is caused to:

[0106] Acquire a first brightness value, and determine a pulse width modulation duty cycle according to the first brightness value and a preset brightness count value;

[0107] determining a duty cycle count value according to the pulse width modulation duty cycle and a preset pulse width modulation timer resolution;

[0108] When the duty cycle count value is greater than the preset brightness count value, determining a pulse width modulation width according to the pulse width modulation duty cycle and a pulse width modulation period predetermined based on a first display screen parameter;

[0109] The pulse width modulation duty cycle, the pulse width modulation width, the pulse width modulation period, and the pulse width modulation frequency predetermined based on the first display screen parameters are sent to the controller of the first display screen, so that the controller controls the display of the first display screen according to the acquired data.

[0110] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0111] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0112] The units involved in the embodiments described in this disclosure can be implemented in software or in hardware. In some cases, the name of a unit does not constitute a limitation on the unit itself.

[0113] The functions described above herein can be performed, at least in part, by one or more hardware logic components. By way of example, and without limitation, exemplary types of hardware logic components that can be used include: Field Programmable Gate Arrays (FPGA), Application Specific Integrated Circuits (ASIC), Application Specific Standard Products (ASSP), System on a Chip (SOC), Complex Programmable Logic Devices (CPLD), and the like.

[0114] In the context of this disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM or Flash Memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0115] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles applied. Those skilled in the art should understand that the scope of the disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, a technical solution formed by mutually replacing the above features with technical features (but not limited to) having similar functions disclosed in the present disclosure.

[0116] Moreover, although the operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although several specific implementation details are included in the foregoing discussion, these should not be construed as limitations on the scope of the present disclosure. Certain features that are described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment may also be implemented separately or in any suitable subcombination in multiple embodiments.

[0117] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A display screen control method, characterized in that, The method includes: Obtaining a first luminance value, and determining a pulse-width modulation duty cycle according to the first luminance value and a preset luminance counter value; Determining a duty cycle counter value according to the pulse-width modulation duty cycle and a preset pulse-width modulation timer resolution; When the duty cycle counter value is greater than the preset luminance counter value, determining a pulse-width modulation width according to the pulse-width modulation duty cycle and a pulse-width modulation period determined in advance based on first display screen parameters; Sending the pulse-width modulation duty cycle, the pulse-width modulation width, the pulse-width modulation period, and a pulse-width modulation frequency determined in advance based on first display screen parameters to a controller of the first display screen, so that the controller performs display control on the first display screen according to the obtained data.

2. The method according to claim 1, wherein The process of determining the pulse-width modulation frequency and the pulse-width modulation period includes: Determining a transmission duration for transmitting one display data packet according to a data clock frequency of the controller of the first display screen and a preset data amount of the display data packet; Taking the transmission duration as the pulse-width modulation period, and determining the pulse-width modulation frequency according to the pulse-width modulation period.

3. The method according to claim 2, wherein The process of determining the pulse-width modulation frequency and the pulse-width modulation period further includes: Taking one Nth of the transmission duration as the pulse-width modulation period; where N is a natural number that can evenly divide the transmission duration.

4. The method according to claim 1, characterized in that, Before obtaining the first luminance value, the method further includes: Setting a preset pin of the controller to a pulse-width modulation mode; correspondingly, the method further includes: Setting the preset pin to an invalid mode during a gap between transmissions of two consecutive display data packets.

5. The method according to claim 1, wherein The determining the duty cycle counter value according to the pulse-width modulation duty cycle and a preset pulse-width modulation timer resolution includes: Determining a count value of the pulse-width modulation timer resolution according to the data clock frequency of the controller and the preset pulse-width modulation timer resolution; Determining the duty cycle counter value according to the pulse-width modulation duty cycle and the count value of the count value of the pulse-width modulation timer resolution.

6. According to the method described in any one of claims 1-5, characterized in that, The preset luminance counter value is a count value of 2 to the power of 7.

7. A display control device, characterized in that, It includes: A pulse-width modulation duty cycle determining module, configured to obtain a first luminance value, and determine a pulse-width modulation duty cycle according to the first luminance value and a preset luminance counter value; A duty cycle counter value determining module, configured to determine a duty cycle counter value according to the pulse-width modulation duty cycle and a preset pulse-width modulation timer resolution; A pulse-width modulation width determining module, configured to, when the duty cycle counter value is greater than the preset luminance counter value, determine a pulse-width modulation width according to the pulse-width modulation duty cycle and a pulse-width modulation period determined in advance based on first display screen parameters; A display control module, configured to send the pulse width modulation duty cycle, the pulse width modulation width, the pulse width modulation period, and a pulse width modulation frequency pre-determined based on first display screen parameters to a controller of the first display screen, so that the controller performs display control on the first display screen according to the acquired data.

8. An electronic device, characterized in that, The electronic device includes: One or more processors; A storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the display screen control method according to any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the display screen control method according to any one of claims 1-6 when executed by a processor.

10. A computer program product, characterized in that, The computer program product includes a computer program, and the computer program implements the display screen control method according to any one of claims 1-6 when executed by a processor.