CN114217695A - Standard keyboard adjusts luminance - Google Patents

Standard keyboard adjusts luminance Download PDF

Info

Publication number
CN114217695A
CN114217695A CN202111308123.8A CN202111308123A CN114217695A CN 114217695 A CN114217695 A CN 114217695A CN 202111308123 A CN202111308123 A CN 202111308123A CN 114217695 A CN114217695 A CN 114217695A
Authority
CN
China
Prior art keywords
keyboard
communication module
dimming
hid
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202111308123.8A
Other languages
Chinese (zh)
Inventor
吕妙芳
李超
周岩
乔晓辉
王志刚
李志亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hebei Hanguang Heavy Industry Ltd
Original Assignee
Hebei Hanguang Heavy Industry Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hebei Hanguang Heavy Industry Ltd filed Critical Hebei Hanguang Heavy Industry Ltd
Priority to CN202111308123.8A priority Critical patent/CN114217695A/en
Publication of CN114217695A publication Critical patent/CN114217695A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/0202Constructional details or processes of manufacture of the input device
    • G06F3/021Arrangements integrating additional peripherals in a keyboard, e.g. card or barcode reader, optical scanner
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/0202Constructional details or processes of manufacture of the input device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/50Transmitters
    • H04B10/516Details of coding or modulation
    • H04B10/524Pulse modulation
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/175Controlling the light source by remote control

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The invention discloses a standard keyboard of adjusting luminance, including: the device comprises a main control circuit, a USB interface circuit, a key input circuit and a backlight circuit; the main control circuit adopts a singlechip GD32, the singlechip GD32 is provided with an HID communication module and a keyboard communication module, the HID communication module has a dimming function, the keyboard communication module has a keyboard function, and the HID communication module and the keyboard communication module are both communicated with an external host through a USB interface circuit; the key input circuit is connected with keys on the dimming standard keyboard; a backlight lamp is arranged on the backlight circuit; the host sends a dimming instruction to the HID communication module of the main control circuit through the USB interface circuit; and after receiving the dimming instruction, the HID communication module of the main control circuit adjusts the charging current of the backlight circuit, so that the brightness of the backlight lamp is adjusted, and the dimming of the dimming standard keyboard is realized. The user can adjust the keyboard backlight according to the ambient light intensity and the color temperature and the personal use habit so as to relieve the visual fatigue of the user in the use process.

Description

Standard keyboard adjusts luminance
Technical Field
The invention belongs to the technical field of display and control consoles, and particularly relates to a standard dimming keyboard.
Background
The keyboard is one of the main embedded platform modules of the naval display and control platform, is an instruction and data input device for operating equipment, and can input English letters, numbers, punctuations and the like into a computer through the keyboard so as to send commands, input data and the like to the computer.
For guaranteeing the normal use under the dark environment of night and specific cabin light, can increase the function in a poor light on the platform module of inlaying of display and control platform, the keyboard of being shaded in the area can satisfy the user demand in the relatively poor cabin of some light, because of its be shaded and have fixed luminous intensity, to some cabins of driver's cabin and aviation system, fixed backlight intensity can't satisfy the demand, the user of display and control platform needs one kind can carry out the keyboard of adjustting of the lighteness according to the service environment.
Disclosure of Invention
In view of the above, the present invention provides a standard dimming keyboard, which allows a user to adjust the backlight of the keyboard according to the ambient light intensity and color temperature and the personal use habit, so as to relieve the visual fatigue of the user during the use process.
The invention is realized by the following technical scheme:
a dimming qwerty keypad comprising: the device comprises a main control circuit, a USB interface circuit, a key input circuit and a backlight circuit;
the main control circuit adopts a singlechip GD32, the singlechip GD32 is provided with an HID communication module and a keyboard communication module, the HID communication module has a dimming function, the keyboard communication module has a keyboard function, and the HID communication module and the keyboard communication module both adopt a USB communication protocol to communicate with an external host;
the key input circuit is connected with keys on the dimming standard keyboard, and when the keys are pressed down, the key input circuit is triggered and sends IO signals to the main control circuit; after the keyboard communication module of the main control circuit receives the IO signal, the keyboard communication module automatically identifies the pressed key according to the keyboard coding key value and sends the key to an external host computer through a USB interface circuit for displaying;
the backlight circuit is provided with a backlight lamp, and the dimming of the dimming standard keyboard can be realized by adjusting the brightness of the backlight lamp; when the dimming standard keyboard is dimmed, the host sends a dimming instruction to an HID communication module of the main control circuit through the USB interface circuit; and after receiving the dimming instruction, the HID communication module of the main control circuit adjusts the charging current of the backlight circuit, so that the brightness of the backlight lamp is adjusted, and the dimming of the dimming standard keyboard is realized.
Further, the dimming instruction is light intensity information, and the HID communication module of the main control circuit can communicate the light intensity information between the host and the main control circuit in a message form.
Further, the HID communication module of the main control circuit adjusts the charging current of the backlight circuit by a PWM pulse width modulation method, which specifically includes: and on the premise of not changing the PWM square wave period, the duty ratio of PWM is adjusted by programming a PWM control register of the singlechip GD32 through a PWM port of the singlechip GD32, so that the charging current of the backlight circuit is controlled.
Further, the main control circuit is provided with an HID communication module and a keyboard communication module, and needs to program and modify an HID standard library file carried by the singlechip GD32, and the programming and modifying method is as follows: by modifying the HID standard library, the number of the interfaces is increased to 2, the first interface is a keyboard communication module interface, and the second interface is an HID communication module interface; wherein, the interface of the keyboard communication module is provided with an endpoint, namely, the keyboard communication module can only send the endpoint to the host computer; the HID communication module interface is a custom interface for transmitting data, namely, the HID communication module interface is provided with two endpoints, and the two-way transmission between the HID communication module and a host can be realized; and respectively adding report descriptors of the HID communication module and the keyboard communication module, and modifying the contents of the report descriptors to conform to a keyboard protocol and a custom interface protocol.
Further, the first interface and the second interface are both USB2.0 interfaces.
Further, when the dimming standard keyboard is connected with the host, the dimming standard keyboard can be identified as two devices, namely a keyboard device and a dimming device, under the device manager of the host, that is, the keyboard communication module is identified as the keyboard device, and the HID communication module is identified as the dimming device.
Further, an OTG _ FS controller On The single-chip microcomputer GD32 is used for communication between The dimming standard keyboard and a host, and The controller completely conforms to an On-The-Go Supplement to The USB2.0 specification.
Has the advantages that:
(1) the invention provides a keyboard with adjustable backlight, which can be adjusted by a user according to the light intensity and the color temperature of the surrounding environment and the personal use habit so as to relieve the visual fatigue of the user in the use process, and can be set according to the preference or the specific requirement of the user so as to adjust the keyboard to be more suitable for the user and more comfortable impression for different users.
(2) The main control circuit reads the key value of the pressed key through the key input circuit and communicates with the host through the USB2.0 interface on the main control circuit to realize the function of a common keyboard; the host computer inputs the duty ratio adjusting value of the PWM through a specified USB protocol, and after the main control circuit receives the duty ratio adjusting value of the PWM, the duty ratio of the PWM is adjusted through programming and adjusting a PWM control register of the main control circuit, so that the charging current of the backlight circuit is controlled, and the backlight brightness of the host computer is adjusted.
(3) The main control circuit of the invention adopts the singlechip GD32, and the singlechip GD32 has the user-defined HID function, so that according to the user-defined HID function in the singlechip GD32, the function of 107 key values (namely the function of a standard keyboard digital input area) in the invention can be realized, and the definition of any key values of the keyboard can be realized by referring to a keyboard coding protocol, thereby greatly increasing the self-definition of the keyboard.
Drawings
FIG. 1 is a schematic composition diagram of the present invention;
FIG. 2 is a flow chart of the operation of the present invention;
FIG. 3 is a top view of the keyboard;
fig. 4 is a front view of the keyboard.
Detailed Description
The invention is described in detail below by way of example with reference to the accompanying drawings.
The embodiment provides a standard dimming keyboard, which is a set of a plurality of keys and is a common convenient input device for a display and control console, and is shown in fig. 3-4; an operator can input data and commands through the dimming standard keyboard to realize man-machine communication; the dimming standard keyboard of the embodiment is provided with 107 keys, and the keys are arranged in a row-column (matrix) manner due to the large number of keys;
referring to fig. 1, the dimming qwerty keypad includes: the device comprises a main control circuit, a USB interface circuit, a key input circuit and a backlight circuit;
the USB interface circuit, the key input circuit and the backlight circuit are electrically connected with the main control circuit; the USB interface circuit is electrically connected with an external host through a USB, so that the communication between the main control circuit and the external host is realized;
the main control circuit adopts a singlechip GD32, the singlechip GD32 is provided with an HID communication module and a keyboard communication module, the HID communication module has a dimming function, the keyboard communication module has a keyboard function, and the HID communication module and the keyboard communication module both adopt a USB communication protocol to communicate with an external host;
the key input circuit is connected with keys on the dimming standard keyboard, and when the keys are pressed down, the key input circuit is triggered and sends IO signals to the main control circuit; after the keyboard communication module of the main control circuit receives the IO signal, because the keyboard communication module adopts a standard keyboard coding key value, the keyboard communication module can automatically identify the pressed key according to the keyboard coding key value and send the key to an external host computer through a USB interface circuit for displaying;
the backlight circuit is provided with a backlight lamp, and the dimming of the dimming standard keyboard can be realized by adjusting the brightness of the backlight lamp; when the dimming standard keyboard is dimmed, the host sends a dimming instruction to an HID communication module of the main control circuit through the USB interface circuit, wherein the dimming instruction is light intensity information; and after receiving the dimming instruction, the HID communication module of the main control circuit adjusts the charging current of the backlight circuit, so that the brightness of the backlight lamp is adjusted, and the dimming of the dimming standard keyboard is realized.
The HID communication module of the main control circuit can communicate the light intensity information between the host and the main control circuit in a message form;
the HID communication module of the main control circuit adjusts the charging current of the backlight circuit by adopting a PWM (pulse width modulation) method, and the method specifically comprises the following steps: and on the premise of not changing the PWM square wave period, the duty ratio of PWM is adjusted by programming a PWM control register of the singlechip GD32 through a PWM port of the singlechip GD32, so that the charging current of the backlight circuit is controlled.
The main control circuit is provided with an HID communication module and a keyboard communication module, and needs to program and modify an HID standard library file carried by the singlechip GD32, and the programming modification method comprises the following steps: by modifying the HID standard library, the number of the interfaces is increased to 2, the first interface is a keyboard communication module interface, and the second interface is an HID communication module interface; wherein, the interface of the keyboard communication module is provided with an endpoint, namely, the keyboard communication module can only send the endpoint to the host computer; the HID communication module interface is a custom interface for transmitting data, namely, the HID communication module interface is provided with two endpoints, and the two-way transmission between the HID communication module and a host can be realized; respectively adding report descriptors of an HID communication module and a keyboard communication module, and modifying the contents of the report descriptors to make the report descriptors conform to a keyboard protocol and a custom interface protocol; the first interface and the second interface are both USB2.0 interfaces;
when the dimming standard keyboard is connected with the host, the dimming standard keyboard can be identified as two devices under a device manager of the host, namely a keyboard device and a dimming device, namely a keyboard communication module is identified as the keyboard device, and an HID communication module is identified as the dimming device;
because the main control circuit adopts the single-chip microcomputer GD32, the embedded operating system integrating the Keil overview 5 and the ARMCortex-m3 kernel is adopted to carry out operation control on the single-chip microcomputer GD32, and the operating system has the advantages of high cutting, priority preemption support, high real-time performance and the like.
In The embodiment, an OTG _ FS controller On a singlechip GD32 is used for communication between The dimming standard keyboard and a host, and The controller completely conforms to an On-The-Go Supplement to The USB2.0 specification; meanwhile, the controller can also be configured as a controller which only supports the functions of a host end or an equipment end and conforms to the USB2.0 specification; in the device mode, the controller supports full speed (FS,12Mbits/s) communications;
the file structure of the single chip microcomputer GD32 of the standard dimming keyboard is shown in the following table:
Figure BDA0003340969500000041
Figure BDA0003340969500000051
referring to fig. 2, the working flow of the dimming qwerty keypad is as follows:
the standard dimming keyboard is connected with the host, namely after the standard dimming keyboard is powered on, a main control circuit of the standard dimming keyboard is initialized, wherein the initialization comprises clock starting, IO (input/output) initialization and configuration interruption; after the initialization is finished, the main control circuit enters a main cycle, including a keyboard scanning task, a backlight lamp task and a watchdog monitoring task; the keyboard scanning task of the main control circuit adopts an array scanning technology, 107 keys of the keyboard are scanned through 28 pins of the single chip microcomputer GD32, the single chip microcomputer GD32 reads key values of pressed keys through a key input circuit, and the single chip microcomputer GD32 communicates with a host through a first interface on the single chip microcomputer GD32 to achieve the function of a common keyboard; the backlight task of the main control circuit is communicated with the host through a second interface to obtain a dimming instruction sent by the host, the dimming instruction is that the host adjusts the duty ratio of PWM through a specified USB protocol, and after the single chip microcomputer GD32 receives the dimming instruction, the duty ratio of PWM is adjusted through programming the PWM control register of the single chip microcomputer GD32, so that the charging current of the backlight circuit is controlled, and the backlight brightness of the backlight circuit is adjusted; the watchdog task is to prevent the program from running away, thereby ensuring the keyboard to work normally.
In summary, the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (7)

1. A dimming qwerty keypad, comprising: the device comprises a main control circuit, a USB interface circuit, a key input circuit and a backlight circuit;
the main control circuit adopts a singlechip GD32, the singlechip GD32 is provided with an HID communication module and a keyboard communication module, the HID communication module has a dimming function, the keyboard communication module has a keyboard function, and the HID communication module and the keyboard communication module both adopt a USB communication protocol to communicate with an external host;
the key input circuit is connected with keys on the dimming standard keyboard, and when the keys are pressed down, the key input circuit is triggered and sends IO signals to the main control circuit; after the keyboard communication module of the main control circuit receives the IO signal, the keyboard communication module automatically identifies the pressed key according to the keyboard coding key value and sends the key to an external host computer through a USB interface circuit for displaying;
the backlight circuit is provided with a backlight lamp, and the dimming of the dimming standard keyboard can be realized by adjusting the brightness of the backlight lamp; when the dimming standard keyboard is dimmed, the host sends a dimming instruction to an HID communication module of the main control circuit through the USB interface circuit; and after receiving the dimming instruction, the HID communication module of the main control circuit adjusts the charging current of the backlight circuit, so that the brightness of the backlight lamp is adjusted, and the dimming of the dimming standard keyboard is realized.
2. The dimming qwerty keyboard of claim 1, wherein the dimming command is light intensity information, and the HID communication module of the main control circuit is capable of communicating the light intensity information between the host and the main control circuit in a message form.
3. A dimming qwerty keyboard according to claim 1, wherein the HID communication module of the main control circuit adjusts the charging current of the backlight circuit by PWM pulse width modulation, specifically: and on the premise of not changing the PWM square wave period, the duty ratio of PWM is adjusted by programming a PWM control register of the singlechip GD32 through a PWM port of the singlechip GD32, so that the charging current of the backlight circuit is controlled.
4. A dimming standard keyboard as claimed in any one of claims 1 to 3, wherein the main control circuit having the HID communication module and the keyboard communication module needs to perform programming modification on the HID standard library file carried by the single-chip microcomputer GD32, and the programming modification method is as follows: by modifying the HID standard library, the number of the interfaces is increased to 2, the first interface is a keyboard communication module interface, and the second interface is an HID communication module interface; wherein, the interface of the keyboard communication module is provided with an endpoint, namely, the keyboard communication module can only send the endpoint to the host computer; the HID communication module interface is a custom interface for transmitting data, namely, the HID communication module interface is provided with two endpoints, and the two-way transmission between the HID communication module and a host can be realized; and respectively adding report descriptors of the HID communication module and the keyboard communication module, and modifying the contents of the report descriptors to conform to a keyboard protocol and a custom interface protocol.
5. The dimming standard keyboard of claim 4, wherein the first interface and the second interface are both USB2.0 interfaces.
6. A dimming standard keyboard as claimed in any one of claims 1 to 3, wherein the dimming standard keyboard is identifiable as two devices under the device manager of the host, namely a keyboard device and a dimming device, when connected, i.e. the keyboard communication module is identified as a keyboard device and the HID communication module is identified as a dimming device.
7. A standard keypad for dimming as claimed in any one of claims 1 to 3, wherein an OTG _ FS controller On a single chip microcomputer GD32 is used for communication between The standard keypad for dimming and a host computer, The controller being fully compliant with The On-The-Go Supplement to The USB2.0 specification.
CN202111308123.8A 2021-11-05 2021-11-05 Standard keyboard adjusts luminance Withdrawn CN114217695A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111308123.8A CN114217695A (en) 2021-11-05 2021-11-05 Standard keyboard adjusts luminance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111308123.8A CN114217695A (en) 2021-11-05 2021-11-05 Standard keyboard adjusts luminance

Publications (1)

Publication Number Publication Date
CN114217695A true CN114217695A (en) 2022-03-22

Family

ID=80696546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111308123.8A Withdrawn CN114217695A (en) 2021-11-05 2021-11-05 Standard keyboard adjusts luminance

Country Status (1)

Country Link
CN (1) CN114217695A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156084A (en) * 2014-08-15 2014-11-19 深圳市康特电子有限公司 Ergonomic input device with backlight capable of being customized and control method and system
CN106933371A (en) * 2015-12-29 2017-07-07 哈尔滨恒誉名翔科技有限公司 A kind of keyboard equipment of USB-HID agreements
CN109032367A (en) * 2018-05-29 2018-12-18 中船航海科技有限责任公司 A kind of integrated key mouse panel peculiar to vessel

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156084A (en) * 2014-08-15 2014-11-19 深圳市康特电子有限公司 Ergonomic input device with backlight capable of being customized and control method and system
CN106933371A (en) * 2015-12-29 2017-07-07 哈尔滨恒誉名翔科技有限公司 A kind of keyboard equipment of USB-HID agreements
CN109032367A (en) * 2018-05-29 2018-12-18 中船航海科技有限责任公司 A kind of integrated key mouse panel peculiar to vessel

Similar Documents

Publication Publication Date Title
CN101520745B (en) Data processing equipment and status switching method thereof
CN101916959A (en) Laser switching-off device and switching-off method thereof
CN104785922B (en) Realize the laser cutting machine system and method for double-type control
CN210129219U (en) Multi-functional USB Type-C interface circuit of FPGA accelerator card
CN114217695A (en) Standard keyboard adjusts luminance
CN103488598A (en) Multi-mode terminal and method for realizing USB (universal serial bus) sharing
CN208298167U (en) A kind of RS-422 bus test device based on embedded system
CN107678725A (en) A kind of method and device that matrix form KVM is realized based on FPGA
CN214255821U (en) Multi-channel power supply management module with state display function
CN109032367A (en) A kind of integrated key mouse panel peculiar to vessel
CN208140919U (en) Marine navigation radar night flight light pollution controlling device
CN1610417A (en) Information processing apparatus
CN203799367U (en) Virtual terminal control system
CN103577135A (en) Computer control system
CN103677964A (en) Virtual machine control system
CN208459976U (en) The keyboard of light-operated automatic adjustment backlight
CN203590305U (en) Meeting place control host
CN207115918U (en) Split screen device, combination of liquid crystals display screen under single-chip microcomputer control
CN213906992U (en) Communication control module capable of adjusting light
CN206224391U (en) A kind of special energy-saving keyboard of information transfer
CN215494932U (en) Split assembled keyboard
CN210377621U (en) Wireless voting controller
CN116528430A (en) Universal auxiliary control module with adjustable backlight
CN202728137U (en) Wireless remote control light emitting diode (LED) display device provided with controller area network (CAN) transceiver and used for cars
CN204926075U (en) Serial communication control board

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20220322