Method and device for adjusting brightness of USB keyboard based on domestic platform, computer

By setting up the connection between the MCU and CPU on a domestic platform, and using the bridge chip and HT bus for interconnection, the brightness adjustment of the external USB keyboard is realized by monitoring and parsing the USB shortcut key values. This solves the problem that the brightness of the external keyboard cannot be adjusted on the domestic platform and improves the ease of use.

CN116564238BActive Publication Date: 2026-02-03西安超越申泰信息科技有限公司
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310530867.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-11
Publication Date
2026-02-03
Estimated Expiration
2043-05-11

AI Technical Summary

Technical Problem

In computers using domestically developed platforms, the brightness of external USB keyboards cannot be adjusted via shortcut keys, causing inconvenience.

Method used

By configuring the MCU and CPU connection, and interconnecting them using a bridge chip and HT bus, the CPU monitors USB events and parses shortcut key values. The MCU outputs a PWM wave to adjust the brightness, defining Ctrl+F6 as increasing brightness and Ctrl+F7 as decreasing brightness. The CPU and MCU transmit instructions through a serial communication protocol.

Benefits of technology

It enables quick brightness adjustment for any external USB keyboard on a domestic platform, improving ease of use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116564238B_ABST
    Figure CN116564238B_ABST
Patent Text Reader

Abstract

The application relates to the computer technical field and discloses a method for adjusting the brightness of a USB keyboard based on a domestic platform, which comprises the following steps: setting an MCU, the MCU is connected with a CPU, the CPU is interconnected with a bridge through an HT bus, and the bridge is connected with the keyboard through a USB interface; the CPU monitors a USB event through a USB protocol, acquires a USB shortcut key value and carries out analysis, and determines whether to increase the brightness or reduce the brightness; the MCU receives the USB shortcut key value analyzed into a serial port protocol by the CPU; and the MCU outputs a PWM wave to adjust the brightness of a liquid crystal screen. According to the method, most of the computers using the USB external keyboard can acquire and analyze the shortcut key value sent by the keyboard through the bridge by using the CPU of the domestic platform, the MCU is sent with an instruction after the analysis, the brightness of the liquid crystal screen is adjusted by the MCU according to the instruction through the output PWM wave, so that the brightness of any external USB keyboard can be quickly adjusted, and the convenience of use is improved. The application further discloses a device for adjusting the brightness of a USB keyboard based on a domestic platform and a computer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, specifically to a method, apparatus, and computer for adjusting the brightness of a USB keyboard based on a domestically developed platform. Background Technology

[0002] Nowadays, laptops, all-in-one computers, and other computers come with keyboards that have shortcut keys for brightness adjustment. However, when the computer uses an external USB interface to connect the keyboard, the brightness cannot usually be adjusted in the same way due to different settings. Computers using domestic platforms also have this problem, making them inconvenient to use. Summary of the Invention

[0003] To provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. This summary is not intended as a general commentary, nor is it intended to identify key / important components or describe the scope of protection of these embodiments, but rather as a prelude to the detailed description that follows.

[0004] This disclosure provides a method, apparatus, and computer for adjusting the brightness of a USB keyboard based on a domestically developed platform.

[0005] In some embodiments, the method includes: setting up an MCU, the MCU being connected to a CPU, the CPU being interconnected with a bridge chip via an HT bus, and the bridge chip being connected to a keyboard via a USB interface; the CPU monitoring USB events via the USB protocol, obtaining and parsing USB shortcut key values, and determining whether to increase or decrease brightness; the MCU receiving the USB shortcut key values ​​parsed by the CPU as serial port protocol; and the MCU outputting a PWM wave to adjust the brightness of the LCD screen.

[0006] Optionally, the CPU monitors USB events via the USB protocol, obtains and parses USB shortcut key values, and determines whether to increase or decrease brightness, including: defining the Ctrl+F6 key combination as increasing brightness and defining the Ctrl+F7 key combination as decreasing brightness; when the CPU detects a USB event as the Ctrl+F6 key combination via the USB protocol, it transmits the brightness increase instruction to the MCU; or, when the CPU detects a USB event as the Ctrl+F7 key combination via the USB protocol, it transmits the brightness decrease instruction to the MCU.

[0007] Optionally, the CPU defines the system and the underlying serial port communication protocol. When the shortcut key value is to increase the brightness, it sends 0x01 to the MCU, and when the shortcut key value is to decrease the brightness, it sends 0x02 to the MCU.

[0008] Optionally, when the MCU adjusts the brightness of the LCD screen using PWM waves, the brightness of the display screen is increased or decreased by 10% each time.

[0009] Optionally, the MCU is a GD32F303 microcontroller.

[0010] Optionally, the CPU is a Loongson 3A3000.

[0011] Optionally, the bridge plate is 7A1000.

[0012] Optionally, the MCU connects to the CPU via a TTL serial port.

[0013] In some embodiments, the apparatus includes a processor and a memory storing program instructions, the processor being configured to, when executing the program instructions, perform the aforementioned method for adjusting the brightness of a USB keyboard based on a domestic platform.

[0014] In some embodiments, the computer includes a product body and a device for adjusting the brightness of a USB keyboard based on a domestic platform, as described above, which is installed on the product body.

[0015] The method, apparatus, and computer for adjusting USB keyboard brightness based on a domestic platform provided in this disclosure can achieve the following technical effects:

[0016] Using the method disclosed herein, most computers employing external USB keyboards, even those with CPUs based on domestic platforms, can acquire and parse the shortcut key values ​​emitted by the keyboard using a bridge chip. After parsing, the CPU sends instructions to the MCU, which then adjusts the brightness of the LCD screen by outputting a PWM wave. This enables quick brightness adjustment for any external USB keyboard, improving ease of use. This application also discloses a device and computer for adjusting the brightness of a USB keyboard based on a domestic platform.

[0017] The above general description and the description below are exemplary and illustrative only and are not intended to limit this application. Attached Figure Description

[0018] One or more embodiments are illustrated by way of example with reference to the accompanying drawings. These illustrations and drawings do not constitute a limitation on the embodiments. Elements having the same reference numerals in the drawings are shown as similar elements. The drawings are not to be scaled. And wherein:

[0019] Figure 1 This is a hardware structure diagram provided in an embodiment of the present disclosure;

[0020] Figure 2 A flowchart illustrating a method for adjusting the brightness of a USB keyboard based on a domestic platform, as provided in this embodiment of the disclosure;

[0021] Figure 3 This is a schematic diagram of a device for adjusting the brightness of a USB keyboard based on a domestic platform, provided in an embodiment of this disclosure. Detailed Implementation

[0022] To provide a more detailed understanding of the features and technical content of the embodiments of this disclosure, the implementation of the embodiments of this disclosure will be described in detail below with reference to the accompanying drawings. The accompanying drawings are for illustrative purposes only and are not intended to limit the embodiments of this disclosure. In the following technical description, for ease of explanation, several details are used to provide a full understanding of the disclosed embodiments. However, one or more embodiments may still be implemented without these details. In other cases, well-known structures and devices may be simplified in their depiction to simplify the drawings.

[0023] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this disclosure described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion.

[0024] Unless otherwise stated, the term "multiple" means two or more.

[0025] In this embodiment of the disclosure, the character " / " indicates that the objects before and after it are in an "or" relationship. For example, A / B means: A or B.

[0026] The term "and / or" describes an association between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or A and B.

[0027] The term "correspondence" can refer to an association or binding relationship. The correspondence between A and B means that there is an association or binding relationship between A and B.

[0028] like Figure 1 , 2 As shown, a method for adjusting the brightness of a USB keyboard based on a domestically developed platform includes:

[0029] Configure the MCU, connect the MCU to the CPU, interconnect the CPU and the bridge chip via the HT bus, and connect the bridge chip to the keyboard via a USB interface.

[0030] The CPU monitors USB events via the USB protocol, obtains and parses USB shortcut key values, and determines whether to increase or decrease brightness.

[0031] The MCU receives USB shortcut key values ​​that the CPU interprets as serial port protocol; the MCU outputs PWM waves to adjust the brightness of the LCD screen.

[0032] Using the method disclosed herein, most computers employing external USB keyboards, even those with CPUs based on domestic platforms, can acquire and parse the shortcut key values ​​emitted by the keyboard using a bridge chip. After parsing, the CPU sends instructions to the MCU, which then adjusts the brightness of the LCD screen by outputting a PWM wave. This enables quick brightness adjustment for any external USB keyboard, improving ease of use. This application also discloses a device and computer for adjusting the brightness of a USB keyboard based on a domestic platform.

[0033] In one embodiment of the present invention, the MCU is connected to the CPU via a TTL serial port. Specifically, the Ctrl+F6 key combination is defined as increasing brightness, and the Ctrl+F7 key combination is defined as decreasing brightness. When the CPU detects a USB event of Ctrl+F6 via the USB protocol, it transmits a brightness increase instruction to the MCU; when the CPU detects a USB event of Ctrl+F7 via the USB protocol, it transmits a brightness decrease instruction to the MCU. The CPU defines the system's serial communication protocol with the underlying system. If the shortcut key value is to increase brightness, it transmits 0x01 to the MCU; if the shortcut key value is to decrease brightness, it transmits 0x02 to the MCU.

[0034] Furthermore, when the MCU adjusts the brightness of the LCD screen using PWM waves, the brightness is increased or decreased by 10% each time, thus achieving a predetermined adjustment range.

[0035] In one embodiment of the present invention, the MCU is a GD32F303 microcontroller. The Loongson 3A3000+7A1000 platform is used, meaning the CPU is a Loongson 3A3000 and the bridge chip is a 7A1000.

[0036] In one embodiment of the present invention, the MCU is connected to the CPU via a TTL serial port. Specifically, the Ctrl+F6 key combination is defined as increasing brightness, and the Ctrl+F7 key combination is defined as decreasing brightness. When the CPU detects a USB event of Ctrl+F6 via the USB protocol, it transmits a brightness increase instruction to the MCU; when the CPU detects a USB event of Ctrl+F7 via the USB protocol, it transmits a brightness decrease instruction to the MCU. The CPU defines the system's serial communication protocol with the underlying system. If the shortcut key value is to increase brightness, it transmits 0x01 to the MCU; if the shortcut key value is to decrease brightness, it transmits 0x02 to the MCU.

[0037] Combination Figure 3As shown, this disclosure provides a device 300 for adjusting the brightness of a USB keyboard based on a domestic platform, including a processor 304 and a memory 301. Optionally, the device may further include a communication interface 302 and a bus 303. The processor 304, communication interface 302, and memory 301 can communicate with each other via the bus 303. The communication interface 302 can be used for information transmission. The processor 304 can call logical instructions in the memory 301 to execute the method for adjusting the brightness of a USB keyboard based on a domestic platform as described in the above embodiment.

[0038] Furthermore, the logic instructions in the aforementioned memory 301 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.

[0039] The memory 301, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the methods in the embodiments of this disclosure. The processor 304 executes functional applications and data processing by running the program instructions / modules stored in the memory 301, that is, it implements the methods used for… in the above embodiments.

[0040] The memory 301 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the terminal device. Furthermore, the memory 301 may include high-speed random access memory and may also include non-volatile memory.

[0041] This disclosure also provides a computer, including: a product body, and the aforementioned device for adjusting the brightness of a USB keyboard based on a domestic platform. The device for adjusting the brightness of a USB keyboard based on a domestic platform is installed in the product body. The installation relationship described herein is not limited to placement inside the product, but also includes installation and connection with other components of the product, including but not limited to physical connections, electrical connections, or signal transmission connections. Those skilled in the art will understand that the device for adjusting the brightness of a USB keyboard based on a domestic platform can be adapted to feasible product bodies, thereby realizing other feasible embodiments.

[0042] This disclosure provides a computer-readable storage medium storing computer-executable instructions configured to execute the aforementioned method for adjusting the brightness of a USB keyboard based on a domestic platform.

[0043] The aforementioned computer-readable storage medium may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.

[0044] The technical solutions of this disclosure can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes one or more instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in this disclosure. The aforementioned storage medium can be a non-transitory storage medium, including: a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and other media capable of storing program code; it can also be a transient storage medium.

[0045] The foregoing description and accompanying drawings fully illustrate embodiments of this disclosure to enable those skilled in the art to practice them. Other embodiments may include structural, logical, electrical, procedural, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the order of operation may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the terminology used in this application is for describing embodiments only and is not intended to limit the claims. As used in the description of embodiments and claims, the singular forms “a,” “an,” and “the” are intended to equally include the plural forms unless the context clearly indicates otherwise. Similarly, the term “and / or” as used in this application means including one or more of the associated listed items and all possible combinations thereof. Additionally, when used in this application, the term "comprise" and its variations "comprises" and / or "comprising" refer to the presence of stated features, integrals, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof. Without further limitations, an element defined by the phrase "comprises a..." does not exclude the presence of other identical elements in the process, method, or apparatus that includes said element. In this document, each embodiment may focus on the differences from other embodiments, and similar or identical parts between embodiments can be referred to mutually. For methods, products, etc., disclosed in the embodiments, if they correspond to the method section disclosed in the embodiments, the relevant parts can be referred to the description of the method section.

[0046] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this disclosure. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0047] The methods and products (including but not limited to devices and equipment) disclosed in the embodiments herein can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For instance, the division of units may be merely a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the coupling or direct coupling or communication connection shown or discussed between each other may be through some interfaces, and the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to implement this embodiment according to actual needs. In addition, the functional units in the embodiments of this disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0048] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than that shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different blocks may also occur in a different order than disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. Each block in a block diagram and / or flowchart, and combinations of blocks in a block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

Claims

1. A method for adjusting the brightness of a USB keyboard based on a domestically developed platform, characterized in that, The method includes: Configure the MCU, which is connected to the CPU via a TTL serial port. The CPU and the bridge chip are interconnected via an HT bus. The bridge chip is connected to the keyboard via a USB interface. The CPU monitors USB events via the USB protocol, obtains and parses USB shortcut key values, and determines whether to increase or decrease brightness. Specifically, this monitoring includes defining the Ctrl+F6 key combination for increasing brightness and the Ctrl+F7 key combination for decreasing brightness. When the CPU detects a Ctrl+F6 key combination, it transmits the brightness increase instruction to the MCU; or, when the CPU detects a Ctrl+F7 key combination, it transmits the brightness decrease instruction to the MCU. The MCU receives the USB shortcut key value parsed by the CPU as a serial port protocol. The CPU defines the system's communication protocol with the underlying serial port. When the shortcut key value is to increase the brightness, it sends 0x01 to the MCU, and when the shortcut key value is to decrease the brightness, it sends 0x02 to the MCU. The MCU outputs a PWM wave to adjust the brightness of the LCD screen, increasing or decreasing the brightness by 10% each time.

2. The method according to claim 1, characterized in that, The MCU is a GD32F303 microcontroller.

3. The method according to claim 1, characterized in that, The CPU is a Loongson 3A3000.

4. The method according to claim 1, characterized in that, The bridge plate is 7A1000.

5. A device for adjusting the brightness of a USB keyboard based on a domestically developed platform, comprising a processor and a memory storing program instructions, characterized in that, The processor is configured to, when running the program instructions, execute the method for adjusting the brightness of a USB keyboard based on a domestic platform as described in any one of claims 1 to 4.

6. A computer, characterized in that, include: Product itself; The device for adjusting the brightness of a USB keyboard based on a domestic platform as described in claim 5 is installed on the product body.

Citation Information

Patent Citations

  • Single-board computer

    CN101840262A

  • Computer power management system and method and terminal

    CN109992085A

  • Method and device for adjusting backlight brightness of display screen, storage medium and processor

    CN110503925A

  • Electronic equipment and display parameter control method

    CN113064574A

  • Screen brightness adjusting method based on Feiteng processor

    CN115662364A