CN116301286A - Control method of input device and electronic device - Google Patents

Control method of input device and electronic device Download PDF

Info

Publication number
CN116301286A
CN116301286A CN202310161716.9A CN202310161716A CN116301286A CN 116301286 A CN116301286 A CN 116301286A CN 202310161716 A CN202310161716 A CN 202310161716A CN 116301286 A CN116301286 A CN 116301286A
Authority
CN
China
Prior art keywords
electronic device
determining
chip
electronic equipment
input device
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.)
Pending
Application number
CN202310161716.9A
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202310161716.9A priority Critical patent/CN116301286A/en
Publication of CN116301286A publication Critical patent/CN116301286A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • 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/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses electronic equipment, the equipment includes: the electronic equipment comprises a first chip and a controller, wherein the first chip is connected with at least one component in the electronic equipment; the first chip at least comprises a receiving module and a processing module, wherein the receiving module is used for receiving the parameter information of the operation of the electronic equipment; the parameter information is used for representing the running state of components in the electronic equipment; the processing module is used for determining a control instruction of an input device of the electronic device based on the parameter information of the operation of the electronic device; the controller is used for controlling the display effect of the input device based on the control instruction. The embodiment of the application also provides a control method of the input device.

Description

Control method of input device and electronic device
Technical Field
The present disclosure relates to the technical field of electronic devices, and in particular, but not limited to a control method of an input device and an electronic device.
Background
In the related art, a central processing unit (Central Processing Unit, CPU) chip of an electronic device, or a graphics processor (Graphics Processing Unit, abbreviated as GPU) chip is used to determine a control instruction for controlling an input device of the electronic device, and the CPU chip or resources of the GPU chip need to be occupied in the process of generating the control instruction, which causes a decrease in system performance and affects user experience.
Disclosure of Invention
The embodiment of the application provides control of an input device and an electronic device.
The technical scheme of the embodiment of the application is realized as follows:
an embodiment of the present application provides an electronic device, including: the electronic equipment comprises a first chip and a controller, wherein the first chip is connected with at least one component in the electronic equipment; the first chip at least comprises a receiving module and a processing module, wherein the receiving module is used for receiving the parameter information of the operation of the electronic equipment; the parameter information is used for representing the running state of components in the electronic equipment; the processing module is used for determining a control instruction of an input device of the electronic device based on the parameter information of the operation of the electronic device; the controller is used for controlling the display effect of the input device based on the control instruction.
The embodiment of the application provides a control method of an input device, which is applied to electronic equipment and comprises the following steps: receiving parameter information of the operation of the electronic equipment, wherein the parameter information is used for representing the operation state of components in the electronic equipment; determining a control instruction of an input device of the electronic device based on the parameter information of the operation of the electronic device; and controlling the display effect of the input device based on the control instruction.
An embodiment of the present application provides a control apparatus for an input device, including: the receiving module is used for receiving the parameter information of the operation of the electronic equipment, wherein the parameter information is used for representing the operation state of components in the electronic equipment; the determining module is used for determining control instructions of input equipment of the electronic equipment based on the parameter information of the operation of the electronic equipment; and the control module is used for controlling the display effect of the input equipment based on the control instruction.
The present embodiments provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above method.
The beneficial effects that technical scheme that this application embodiment provided include at least:
in this embodiment of the present application, the first chip is different from the CPU, or other chips such as the GPU, and the first chip is connected to at least one component in the electronic device, so that parameter information of the electronic device may be obtained in real time. And the receiving module is used for receiving the parameter information of the operation of the electronic equipment, wherein the parameter information is used for representing the operation state of components in the electronic equipment. In this way, the receiving module in the first chip can determine available resources according to the acquired power mode; and determining the current required resources of the electronic equipment according to the power consumption of at least one component. And the processing module is used for determining the control instruction of the input device of the electronic device based on the parameter information of the operation of the electronic device. In this way, the processing module in the first chip generates the control instruction based on the available resources and the required resources obtained by the parameter information. And the controller is used for controlling the display effect of the input device based on the control instruction, so that the display effect of the input device is regulated by executing the control instruction through the controller, the proportion of the display effect of the input device occupying the CPU or other chip resources such as the GPU is reduced, the performance loss of the electronic device is reduced, and the user experience is improved.
Drawings
For a clearer description of the technical solutions in the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art, wherein:
fig. 1 is a schematic diagram of a composition structure of an electronic device according to an embodiment of the present application;
fig. 2 is a schematic diagram of a composition structure of an electronic device according to an embodiment of the present application;
fig. 3 is a schematic diagram of a composition structure of an electronic device according to an embodiment of the present application;
fig. 4 is a flow chart of a control method of an input device according to an embodiment of the present application;
fig. 5 is a flowchart of a method for determining a sampling frequency according to an embodiment of the present application;
fig. 6 is a flowchart of a control method of an input device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a control device of an input device according to an embodiment of the present application;
fig. 8 is a schematic diagram of a hardware entity of an electronic device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. The following examples are illustrative of the present application, but are not intended to limit the scope of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is to be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with one another without conflict.
It should be noted that the term "first\second\third" in relation to the embodiments of the present application is merely to distinguish similar objects and does not represent a specific ordering for the objects, it being understood that the "first\second\third" may be interchanged in a specific order or sequence, where allowed, to enable the embodiments of the present application described herein to be practiced in an order other than that illustrated or described herein.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which embodiments of this application belong unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
In order to help understand the technical solutions of the embodiments of the present application, concepts related to the embodiments of the present application are described below:
1. chromaticity space of picture:
in the related art, the commonly used chromaticity space is divided into two types: an application-oriented chromaticity space and a hardware-oriented chromaticity space, wherein the application-oriented chromaticity space can adopt a chromaticity model for displaying color animation; the hardware-oriented chromaticity space may employ chromaticity models that are transmitted to color displays, color printers, and keyboards with color lighting effects, e.g., color displays and keyboards with color lighting effects may use red, green, blue (Red, green, blue, RGB) chromaticity models, and color printers may use Cyan, magenta, yellow (CMY) chromaticity models and Cyan, magenta, yellow, blacK (Cyan, magenta, yellow, blank, CMYK) chromaticity models.
2. Color code of picture
In the related art, different color codes are used for different chromaticity models, for example, for RGB chromaticity models, the adopted color code is hexadecimal color code. For hexadecimal color codes, the intensities of the three primary colors R/G/B, i.e., red/green/blue, can be represented using six hexadecimal numbers, typically providing that each color has a minimum of 0 and a maximum of 255, and is typically represented by a 16-ary value, then 255 corresponds to hexadecimal, i.e., FF, and the three values are juxtaposed in sequence, beginning with #. For example, the color value "# FF0000" is red, the red value reaches the highest value FF, namely 255 in decimal, and the green and blue intensities are 0. For another example, "# FFFF00" indicates yellow, which is indicated because red and green are both maximum and blue is 0.
3. Color code and keyboard light effects
In a screen light synchronous application scene of screen pictures and keyboard light, the light colors of corresponding areas in the keyboard are controlled according to the color codes of the different areas in the screen pictures, so that screen light synchronization is realized, and the effects that the pictures of application programs in the screen are changed and the color of the keyboard is also changed are realized.
For example, dividing a screen picture of an electronic device into several regions, for example, into 24 regions; mapping to 24 areas on the keyboard; assuming that the color of any one of the areas is red, the color of the light mapped to the corresponding area in the keyboard is red.
Fig. 1 is a schematic diagram of a composition structure of an electronic device according to an embodiment of the present application, as shown in fig. 1, where, the electronic device 100 includes at least a first chip 101 and a controller 102, where:
the first chip 101 is connected with at least one component in the electronic device 100;
here, the first chip 101 may be a low power consumption processor chip other than a CPU and a GPU, and may include: a circuit board, buses arranged on the circuit board, functional modules of hardware and the like. The first chip is connected with at least one component through a bus to acquire the power consumption parameter of the at least one component; the hardware functional module in the first chip is used for realizing functions such as image processing, operation scenes of the electronic equipment and the like.
Here, the at least one component may be a CPU, a GPU, a memory, or the like.
The first chip 101 at least comprises a receiving module 1011 and a processing module 1012, wherein the receiving module 1011 is used for receiving parameter information of the operation of the electronic device 100; the parameter information is used for indicating the operation state of components in the electronic device 100; the processing module 1012 is configured to determine a control instruction of the input device 103 of the electronic device 100 based on the parameter information of the operation of the electronic device 100;
Here, the power mode may be an alternating current power (Alternating Current, AC) mode, for example, a connection power adapter. A Direct Current (DC) mode may also be used, for example, with a battery connected. In the AC mode, the power supply of the electronic device 100 is stable, and can support the operation requirement of at least one component included in the electronic device 100; in the DC mode, the electronic device 100 has a limited total amount of power, and needs to meet the operation requirements of the main components.
Here, the power consumption of the at least one component may be a current or a voltage of the component. Such as the current or voltage of a central processing unit, memory, image processor. The operation state of the device, such as the occupancy rate of the display card and the occupancy rate of the central processing unit, may also be used.
Here, the first chip 101 may also be used to implement the following functions: connected to the controller 102, the display effect of the input device 103 is controlled by the controller 102.
Here, the input device 103 may be a device included in the electronic device 100, for example, a keyboard of a notebook, or a touch pad; or may be an external device to the electronic device 100, such as an external keyboard to a desktop computer, or a mouse, joystick, etc.
Illustratively, the power mode is an AC mode, the power consumption of at least one component is the current or voltage of the CPU, and the processing module 1012 detects that the power of the electronic device 100 is stable, so that different operation requirements of the input device 103 can be met while supporting high-speed operation of the CPU, and the processing module 1012 can generate control instructions according to the continuously changing operation requirements to control the input device 103 to change according to the operation requirements.
Illustratively, the power mode is a DC mode, the power consumption of at least one component is the current or voltage of the CPU, and the processing module 1012 detects that the total amount of power of the electronic device 100 is limited, so that the high-speed operation of the CPU needs to be preferentially satisfied, and the processing module 1012 may select a portion of the operation requirements satisfying the preset condition from multiple operation requirements of the input device 103, generate a control instruction, and control the input device 103.
The controller 102 is configured to control a display effect of the input device 103 based on the control instruction.
Here, the display effect of the input device 103 may be a display effect of a light emitting diode, that is, a light color of the input device 103. Here, the control instruction may include an instruction to control a light color of the input device 103, for example, a color code, and may further include an instruction to control a frequency of a light color change of the input device 103.
In the above embodiment, the first chip is different from the CPU, or other chips such as the GPU, and the first chip is connected to at least one component in the electronic device, so that parameter information of the electronic device can be obtained in real time. And the receiving module is used for receiving the parameter information of the operation of the electronic equipment, wherein the parameter information is used for representing the operation state of components in the electronic equipment. In this way, the receiving module in the first chip can determine available resources according to the acquired power mode; and determining the current required resources of the electronic equipment according to the power consumption of at least one component. And the processing module is used for determining the control instruction of the input device of the electronic device based on the parameter information of the operation of the electronic device. In this way, the processing module in the first chip generates the control instruction based on the available resources and the required resources obtained by the parameter information. And the controller is used for controlling the display effect of the input device based on the control instruction, so that the display effect of the input device is regulated by executing the control instruction through the controller, the proportion of the display effect of the input device occupying the CPU or other chip resources such as the GPU is reduced, the performance loss of the electronic device is reduced, and the user experience is improved.
Fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application, as shown in fig. 2, where the electronic device 200 includes at least a first chip 21 and a controller 22, where:
the first chip 21 is connected with at least one component in the electronic device 200;
the first chip 21 at least comprises a receiving module 211 and a processing module 212, wherein the receiving module 211 is used for receiving parameter information of the operation of the electronic device 200; wherein, the parameter information is used to represent the operation state of the components in the electronic device 200; the processing module 212 is configured to determine a control instruction of the input device 23 of the electronic device 200 based on the parameter information of the operation of the electronic device 200; the processing module 212 includes: a scene recognition submodule 2121 and a processing submodule 2122, wherein the scene recognition submodule 2121 is configured to determine an operation scene of the electronic equipment 200 based on parameter information of the at least one component; the processing sub-module 2122 is configured to: based on the operation scenario, control instructions of the input device 23 of the electronic device 200 are determined.
Here, the scene recognition submodule 2121 may be a separate chip in the processing module 212, including: a circuit board and a bus arranged on the circuit board; wherein, the bus is used for realizing the function of connecting the first chip 21 with at least one component; the circuit board is configured to determine an operation scenario of the electronic device 200 based on parameter information of at least one component.
Here, the operation scene may include: game scenes, text editing scenes, video playing scenes, etc. Here, the at least one component may be a graphics card, and the parameter information of the at least one component may be an occupancy rate of the graphics card. The scene recognition submodule 2121 can determine a usage scene of the notebook according to the occupancy rate of the display card in the notebook, and when the occupancy rate of the display card is (10%, 30%), the notebook operates in a video playing scene; when the occupancy rate of the display card exceeds 80%, the notebook operates in a game scene.
Here, the control instruction may correspond to a screen image in an operation scene of the electronic device. For example, if the notebook computer runs in the game scene, the light effect in the keyboard or the mouse of the notebook computer synchronously changes along with the screen images in the game scene, and a control instruction of the light effect is generated for each screen image. Here, a control instruction of a light effect can be generated for different image areas in the screen image in the process of displaying each screen image by the notebook computer, so that the light effect of the keyboard area corresponding to the image area is controlled.
For example, if the notebook runs in the text editing scene, the frequency of the change of the screen image of the notebook is smaller than the frequency of the change in the game scene, so that when the screen image such as page turning or illustration changes in the text editing scene, a control instruction of the light effect of the keyboard or the mouse can be generated.
For example, if the notebook computer runs in the video playing scene, the change frequency of the screen image of the notebook computer is smaller than that of the game scene and larger than that of the text editing scene, so that a control instruction of a keyboard or a mouse light effect can be generated in the video playing scene in the process of editing the bullet screen.
The scene recognition sub-module 2121 is here connected to the processing sub-module 2122 via a bus on the circuit board for transmitting the determined operating scene to the processing sub-module 2122 for analysis.
Here, the processing sub-module 2122 may be another independent chip in the processing module 212, and the processing sub-module 2122 may include at least one hardware functional module for: performing image processing on images in the operation scene; control instructions of the input device 23 of the electronic device 200 are generated from the result of the image processing.
The controller 22 is configured to control a display effect of the input device 23 based on the control instruction.
In one implementation, the electronic device 200 further includes: a second chip 24; the second chip 24 is configured to capture at least one output image based on the sampling frequency transmitted by the first chip 21;
here, the second chip 24 may be a CPU, or a processor chip including an operator such as a GPU. Here, the second chip 24 is connected to the first chip 21 to obtain the sampling frequency transmitted by the first chip 21, and meanwhile, the second chip 24 is connected to the display of the electronic device 200 to capture the output image of the display according to the sampling frequency.
In one implementation manner, an application program, for example, a Smart Engine application program (Smart Engine), is executed in the second chip 24, and is configured to receive the sampling frequency transmitted by the first chip 21, control the frequency of capturing the output image according to the sampling frequency, adjust the power consumption of the electronic device for capturing the output image, and implement automatic switching between cruising and performance of the electronic device.
In one possible implementation, the second chip 24 is connected to the first chip 21 via a universal serial bus; wherein the universal serial bus is used for transmitting at least one output image captured by the second chip 24 to the first chip 21; the first chip 21 is connected with the controller 22 through an I2C serial bus; wherein the I2C serial bus is used to transmit control instructions in the processing module 212 to the controller 22.
In one embodiment, after the second chip 24 obtains the output image of the current display, the output image is compressed into a low resolution image, for example, a screen image with a resolution of 240 pixels per inch, and the compressed low resolution image is batch-transferred to the first chip 21 through a Universal Serial Bus (USB) interface. In the above process, the transmission speed and efficiency of the image can be improved by transmitting the compressed low resolution image.
Here, the control command is transmitted between the processing module 212 and the controller 22 through the I2C serial bus, so that the second chip 24 is not required to cooperate with a processor such as a CPU, and the second chip 24 is not required to be in a wake-up state all the time, so that the performance of the second chip 24 is not affected, and the power consumption in the operation process of the electronic device is saved.
The processing sub-module 2122 includes an image processing unit 21221 and an instruction unit 21222, where the image processing unit 21221 is configured to determine a sampling frequency of an output image of the electronic device based on the operation scene; an instruction unit 21222 for determining a control instruction of the input device 23 based on the at least one output image.
Here, the image processing unit 21221 is connected to the scene recognition sub-module 2121, and receives the operation scene determined by the scene recognition sub-module 2121. Here, the image processing unit 21221 analyzes the output image of the display in the operation scene, resulting in the sampling frequency of the output image. Here, the image processing unit 21221 and the image processing unit 21221 are connected to the second chip 24, and the obtained sampling frequency is transmitted to the second chip 24.
Here, the instruction unit 2122 and the second chip 24 may be connected through a USB that transfers the output image grasped in the second chip to the instruction unit 2122; the command unit 2122 is connected to the controller 22, and transmits a control command to the controller 22 to control the display effect of the input device 23 of the electronic device 200.
Illustratively, the first Chip is an intelligent Chip (AI Chip), the second Chip is a CPU, and at least one component is: the parameter information of the GPU, the high-speed memory and at least one component is as follows: the electronic device is illustrated by taking the power mode of the power module of the electronic device 300, which is the power adapter connected mode, the input device is the keyboard, and the controller is used to control the light emitting diode of the keyboard, as an example. Fig. 3 is a schematic diagram of a composition structure of an electronic device according to an embodiment of the present application, and as shown in fig. 3, an electronic device 300 includes: a smart chip 301, a cpu302, a controller 303 and a keyboard 304 and a power module 307 and a display 308, wherein:
the smart chip 301 includes: a receiving module 3011 and a processing module 3012; the processing module 3012 comprises a scene recognition sub-module and a processing sub-module, wherein the processing sub-module comprises an image processing unit and an instruction unit;
The intelligent chip 301 is connected with the high-speed memory 305 and the GPU306 through buses; the intelligent chip 301 and the CPU302 are connected through a Universal Serial Bus (USB); the intelligent chip 301 is connected with the controller 303 through an I2C serial bus to change the light color of the light emitting diode 3041 in the keyboard 304 according to the control command transmitted by the controller 303.
The power mode of the power module 307 is a power Adapter (AC) mode, and during the process of running the application scenario a to the application scenario N of the electronic device 300, the CPU302 or the GPU306 reads data from the high-speed memory 305 through the bus, runs the application scenario, continuously outputs an image on the display 308 of the electronic device 300, grabs the output image on the display 308 according to the sampling frequency determined by the smart chip 301, and transmits the grabbed output image to the smart chip 301 through the USB. The intelligent chip 301 analyzes the output image through the processing module 3012, determines a control instruction, and the controller 303 adjusts the light effect of the light emitting diode 3041 in the keyboard 304 according to the control instruction, so as to realize synchronous conversion between the light emitting diode 3041 in the keyboard 304 and the output image. Further, the synchronous conversion of the light emitting diode 3041 of different keyboard regions in the keyboard 304 and the color of different regions of the output image is realized.
In the above embodiment, based on the operation scene, the sampling frequency of the output image of the electronic device is determined, so that the best selection of power consumption and performance can be achieved.
The application provides a control method of an input device, which is applied to an electronic device, and fig. 4 is a flow chart of the control method of the input device provided in the embodiment of the application, as shown in fig. 4, the method at least includes the following steps:
and S41, receiving parameter information of the operation of the electronic equipment, wherein the parameter information is used for representing the operation state of components in the electronic equipment.
Step S42, based on the parameter information of the operation of the electronic equipment, determining the control instruction of the input equipment of the electronic equipment.
In one implementation manner, the step S42 determines, based on the parameter information of the electronic device operation, a control instruction of an input device of the electronic device, including:
step S421, determining the sampling frequency of the output image of the electronic device based on the power mode in the electronic device.
In one implementation manner, the step S421, based on the power mode of the electronic device, determines the sampling frequency of the output image of the electronic device, includes:
Step S4211, in the power mode of the electronic device, determining an operation scenario of the electronic device based on the power consumption of at least one component in the electronic device.
Here, the power modes include at least one, and the magnitude and direction of the current are different in different power modes. Illustratively, the power modes include at least an alternating current mode (AC) and a direct current mode (DC), and the magnitude and direction of the current varies periodically when the power mode is AC; when the power mode is DC, the current magnitude and direction are not changed.
Here, in different power supply modes, when the same application scenario is operated, the power consumption of the same component in the electronic device is different. Illustratively, the power mode DC and the power mode AC differ in brightness of the display and in magnitude of current voltage of the display when running the video scene. Therefore, it is required to determine the current operation scenario of the electronic device according to the power consumption of at least one component in the electronic device in different power modes.
Step S4212, determining a sampling frequency of the output image of the electronic device based on the operation scene.
Illustratively, as shown in fig. 5, after an application 501 is opened, the CPU/CPU502 supplies power, the CPU invokes the intelligent engine 503 to capture a picture output by the application 501 and transmits the picture to the intelligent chip 504, and the intelligent chip 504 determines a power mode of the electronic device according to parameter information of operation of the electronic device, and determines a sampling frequency of capturing an output picture according to operation in a text editing scene 505, such as office software, a browser, or an integrated development environment, or determines a sampling frequency of capturing an output picture according to operation in a game scene, or a video scene 506, in the case that the power mode is AC, or in the case that the power mode is DC.
In one implementation manner, the step S4212 of determining, based on the operation scenario, a sampling frequency of the output image of the electronic device includes: determining a contrast threshold under the running scene; and determining the sampling frequency of the output image of the electronic equipment based on the contrast difference value of the two frames of output images adjacent in time sequence and the contrast threshold value.
Here, different running scenes correspond to different contrast thresholds, and the larger the contrast threshold is, the richer the colors in the corresponding scenes are; the smaller the contrast threshold, the darker the color in the corresponding scene. For example, under a game scene, the colors in the pictures are rich, and the contrast threshold corresponding to the game scene is large; and under the text editing scene, the color in the picture is dark, and most of the area is black and white, so that the contrast threshold corresponding to the text editing scene is small.
Here, the color change of the output image under different operation scenes can be determined by the contrast difference value of two frames of output images adjacent in time sequence; and determining the frequency of the output image change under different application scenes according to the comparison of the color change and the contrast threshold. For example, in a game scene, two frames of output images adjacent in time sequence may correspond to distinct game scenes in the game, the contrast difference value is large, and when the contrast difference value is larger than a contrast threshold corresponding to the game scene, it is determined that the frequency of change of the output images is large in the game scene. Here, for a scene where the change frequency of the output image is large, the sampling frequency of the output image needs to be increased, so that the display effect of the input device is adjusted according to the output image obtained by sampling, and further, the input device can synchronize the change of high frequency in the scene where the change of the output image is frequent. Illustratively, if the picture changes frequently, such as a game scene or a video scene, a high sampling frequency is set, for example, 20ms, highlighting the effect; if the picture changes infrequently, such as text editing, a low sampling rate is set, such as 500ms, and the system power consumption is saved without affecting the effect.
In another implementation manner, the step S42121 of determining, based on the operation scenario, a sampling frequency of the output image of the electronic device includes: and determining the sampling frequency of the output image of the electronic equipment based on the attribute information of the operation scene.
Here, the attribute information may be a label customized by a user, and for example, the attribute information may be a sample. In the case where the attribute information is a sample (demo), a high sampling frequency is employed, and in the case of a non-sample, the sampling frequency is determined according to whether the variation frequency of the output image is greater than a preset frequency threshold. Illustratively, if demo is viewed, a high sampling frequency is employed to enhance the client (UE) visual experience.
In the implementation process, determining the sampling frequency of the output image of the electronic equipment based on the operation scene is realized through a first chip in the electronic equipment. Therefore, the first chip can automatically adjust the sampling frequency of the output image according to the operation scene used by the user, and the power consumption of the electronic equipment is reduced. The first chip determines a low sampling frequency in an application scene of the user focusing on performance, and the CPU can release part of CPU performance according to the low sampling rate grabbing picture, so that the running efficiency of the electronic equipment is improved.
In the implementation process, the sampling frequency of the electronic equipment output image is determined based on the contrast difference value of the two frames of the time sequence adjacent output images and the contrast threshold value. Therefore, different operation interfaces of the same application program can be matched with different picture sampling rates, and the optimization of system power consumption is realized.
Step S422, determining a control instruction of an input device of the electronic device based on the sampling frequency.
In one implementation manner, the step S422 determines, based on the sampling frequency, a control instruction of an input device of the electronic device, including:
step S4221, capturing at least one output image based on the sampling frequency; step S4222, determining a control instruction of the input device based on the at least one output image.
Here, determining the sampling frequency of the output image of the electronic device is implemented by the first chip, and after the first chip determines the sampling frequency, the sampling frequency is transmitted to an intelligent engine program in the CPU for capturing the image, so as to capture the output image.
In one implementation manner, the step S4222 of determining, based on the at least one output image, a control instruction of the input device includes: dividing each output image into areas to obtain at least one image area; determining an average value of pixel colors of each image area; and determining a color code of each image area based on the average value of the pixel colors, and obtaining a control instruction of the input device.
Here, the control instruction may be used to adjust a light color of the electronic device keyboard. Here, the corresponding relationship between the color code and the light color is: dividing an output image of the display into a number of cells, for example, 24 cells; mapping to the keyboard is also 24 grids; assuming that the color of any one cell in the output image is red, the color mapped into the keyboard is red.
In the process, the effect that the picture of the application program in the screen changes and the color of the keyboard changes, namely the effect of screen light synchronization is realized.
Step S43, based on the control instruction, controlling the display effect of the input device.
In the above embodiment, each output image is subjected to region division to obtain at least one image region; determining an average value of pixel colors of each image area; and determining a color code of each image area based on the average value of the pixel colors, and obtaining a control instruction of the input device. Therefore, the first chip calculates the control instruction through processing the output image, so that the screen light synchronization effect can be realized, the performance of the CPU is not occupied, and the power consumption of the electronic equipment is reduced.
The application provides a control method of an input device, which is applied to an electronic device as shown in fig. 3, and fig. 6 is a flow chart of a control method of an input device as shown in fig. 6, where the method at least includes the following steps:
in step S601, during the running process of the application program, the CPU captures an output image of the display, and compresses the output image.
Illustratively, the output picture is compressed into a low resolution picture of 240p or the like.
In step S602, the CPU transmits the compressed output images to the smart chip in batch through the USB interface.
In step S603, the smart chip determines a color code based on the received output image.
Here, the smart chip divides the output image into a preset number of screen areas; averaging the colors of pixels in each screen area; a color code for each screen region is determined based on an average value for each screen region.
In step S604, the smart chip transmits the color code to the controller through the I2C interface.
Here, the controller may be a keyboard micro control unit (KB MCU).
Here, dividing the keyboard into the preset number of keyboard regions; each keyboard area corresponds to one screen area; and controlling the display effect of the corresponding keyboard area based on the color code of each screen area.
In step S605, the controller generates a control command to set the keyboard led light effect according to the color code.
In the embodiment, the intelligent chip determines the color code based on the received output image, realizes the special effect of screen light synchronization, does not occupy the CPU resource, improves the CPU performance and reduces the power consumption of the electronic equipment.
Based on the foregoing embodiments, the embodiments of the present application further provide a control apparatus for an input device, where the control apparatus includes each module included and may be implemented by a processor in an electronic device; of course, the method can also be realized by a specific logic circuit; in practice, the processor may be a central processing unit (Central Processing Unit, CPU), microprocessor (Micro Processing Unit, MPU), digital signal processor (Digital Signal Processor, DSP) or field programmable gate array (Field Programmable Gate Array, FPGA), etc.
Fig. 7 is a schematic structural diagram of a control apparatus of an input device according to an embodiment of the present application, as shown in fig. 7, where, the apparatus 700 includes a receiving module 701, a determining module 702, and a control module 703, where:
a receiving module 701, configured to receive parameter information of the operation of the electronic device, where the parameter information is used to represent an operation state of a component in the electronic device;
A determining module 702, configured to determine a control instruction of an input device of the electronic device based on parameter information of operation of the electronic device;
and a control module 703, configured to control a display effect of the input device based on the control instruction.
In one implementation, the parameter information includes: a power mode of the electronic device; the determining module 702 is further configured to: determining a sampling frequency of an output image of the electronic device based on a power mode of the electronic device; based on the sampling frequency, determining a control instruction of an input device of the electronic device.
In one implementation, the parameter information further includes: the power consumption of at least one component in the electronic equipment; the determining module 702 is further configured to: determining an operation scene of the electronic equipment based on the power consumption of at least one component in the electronic equipment in a power supply mode of the electronic equipment; and determining the sampling frequency of the output image of the electronic equipment based on the operation scene.
In one implementation, the determining module 702 is further configured to: capturing at least one output image based on the sampling frequency; control instructions for the input device are determined based on the at least one output image.
In one implementation, the determining module 702 is further configured to: dividing each output image into areas to obtain at least one image area; determining an average value of pixel colors of each image area; and determining a color code of each image area based on the average value of the pixel colors, and obtaining a control instruction of the input device.
In one implementation, the determining module 702 is further configured to: determining a contrast threshold under the running scene; and determining the sampling frequency of the output image of the electronic equipment based on the contrast difference value of the two frames of output images adjacent in time sequence and the contrast threshold value.
It should be noted here that: the description of the apparatus embodiments above is similar to that of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
It should be noted that, in the embodiment of the present application, if the method is implemented in the form of a software functional module, and sold or used as a separate product, the method may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or part contributing to the related art, and the computer software product may be stored in a storage medium, including several instructions for causing an electronic device to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, an optical disk, or other various media capable of storing program codes. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
Accordingly, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any of the methods of the embodiments described above.
Correspondingly, in the embodiment of the application, a chip is also provided, and the chip comprises a programmable logic circuit and/or program instructions, and when the chip runs, the chip is used for realizing the steps in the method in any of the embodiments.
Correspondingly, in an embodiment of the application, there is also provided a computer program product for implementing the steps of the method of any of the above embodiments, when the computer program product is executed by a processor of an electronic device.
Based on the same technical concept, the embodiment of the application provides an electronic device, which is used for implementing the control method of the input device described in the embodiment of the method. Fig. 8 is a schematic diagram of a hardware entity of an electronic device according to an embodiment of the present application, as shown in fig. 8, where the electronic device 800 includes a memory 810 and a processor 820, where the memory 810 stores a computer program that can be run on the processor 820, and the processor 820 implements steps in any of the methods according to the embodiments of the present application when executing the program.
The memory 810 is configured to store instructions and applications executable by the processor 820, and may also cache data (e.g., image data, audio data, voice communication data, and video communication data) to be processed or processed by various modules in the processor 820 and the electronic device, which may be implemented by a FLASH memory (FLASH) or a random access memory (Random Access Memory, RAM).
Processor 820, when executing a program, implements the steps of the method of controlling an input device of any of the above. Processor 820 generally controls the overall operation of electronic device 800.
The processor may be at least one of an application specific integrated circuit (application Application Specific Integrated Circuit, ASIC), a digital signal processor (Digital Signal Processor, DSP), a digital signal processing device (Digital Signal Processing Device, DSPD), a programmable logic device (Programmable Logic Device, PLD), a field programmable gate array (Field Programmable Gate Array, FPGA), a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, and a microprocessor. It will be appreciated that the electronic device implementing the above-mentioned processor function may be other, and embodiments of the present application are not specifically limited.
The computer storage medium/Memory may be a Read Only Memory (ROM), a programmable Read Only Memory (Programmable Read-Only Memory, PROM), an erasable programmable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), an electrically erasable programmable Read Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic random access Memory (Ferromagnetic Random Access Memory, FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Read Only optical disk (Compact Disc Read-Only Memory, CD-ROM); but may be various electronic devices such as mobile phones, computers, tablet devices, personal digital assistants, etc., that include one or any combination of the above-mentioned memories.
It should be noted here that: the description of the storage medium and apparatus embodiments above is similar to that of the method embodiments described above, with similar benefits as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and the apparatus of the present application, please refer to the description of the method embodiments of the present application for understanding.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application. The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units; can be located in one place or distributed to a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purposes of the embodiments of the present application.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Alternatively, the integrated units described above may be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partly contributing to the related art, embodied in the form of a software product stored in a storage medium, including several instructions for causing an apparatus automatic test line to perform all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a removable storage device, a ROM, a magnetic disk, or an optical disk.
The methods disclosed in the several method embodiments provided in the present application may be arbitrarily combined without collision to obtain a new method embodiment.
The features disclosed in the several method or apparatus embodiments provided in the present application may be arbitrarily combined without conflict to obtain new method embodiments or apparatus embodiments.
The foregoing is merely an embodiment of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An electronic device, the device comprising:
the electronic equipment comprises a first chip and a controller, wherein the first chip is connected with at least one component in the electronic equipment;
the first chip at least comprises a receiving module and a processing module, wherein the receiving module is used for receiving the parameter information of the operation of the electronic equipment; the parameter information is used for representing the running state of components in the electronic equipment; the processing module is used for determining a control instruction of an input device of the electronic device based on the parameter information of the operation of the electronic device;
The controller is used for controlling the display effect of the input device based on the control instruction.
2. The apparatus of claim 1, the processing module comprising: the electronic equipment comprises a scene recognition sub-module and a processing sub-module, wherein the scene recognition sub-module is used for determining an operation scene of the electronic equipment based on the parameter information of the at least one component; the processing submodule is used for: and determining control instructions of input equipment of the electronic equipment based on the operation scene.
3. The apparatus of claim 2, the apparatus further comprising: a second chip; the second chip is used for capturing at least one output image based on the sampling frequency transmitted by the first chip;
the processing sub-module comprises an image processing unit and an instruction unit, wherein the image processing unit is used for determining the sampling frequency of the output image of the electronic equipment based on the operation scene; and the instruction unit is used for determining a control instruction of the input device based on the at least one output image.
4. The device of claim 3, the second chip and the first chip being connected by a universal serial bus; the universal serial bus is used for transmitting at least one output image captured by the second chip to the first chip;
The first chip is connected with the controller through an I2C serial bus; the I2C serial bus is used for transmitting control instructions in the processing module to the controller.
5. A control method of an input device, applied to an electronic device, the method comprising:
receiving parameter information of the operation of the electronic equipment, wherein the parameter information is used for representing the operation state of components in the electronic equipment;
determining a control instruction of an input device of the electronic device based on the parameter information of the operation of the electronic device;
and controlling the display effect of the input device based on the control instruction.
6. The method of claim 5, the parameter information comprising: a power mode of the electronic device; the determining the control instruction of the input device of the electronic device based on the parameter information of the operation of the electronic device comprises the following steps:
determining a sampling frequency of an output image of the electronic device based on a power mode of the electronic device;
based on the sampling frequency, determining a control instruction of an input device of the electronic device.
7. The method of claim 5, the parameter information further comprising: the power consumption of at least one component in the electronic equipment; the determining, based on the power mode of the electronic device, a sampling frequency of an output image of the electronic device includes:
Determining an operation scene of the electronic equipment based on the power consumption of at least one component in the electronic equipment in a power supply mode of the electronic equipment;
and determining the sampling frequency of the output image of the electronic equipment based on the operation scene.
8. The method of claim 6, the determining control instructions for an input device of the electronic device based on the sampling frequency, comprising:
capturing at least one output image based on the sampling frequency;
control instructions for the input device are determined based on the at least one output image.
9. The method of claim 8, the determining control instructions for the input device based on the at least one output image, comprising:
dividing each output image into areas to obtain at least one image area;
determining an average value of pixel colors of each image area;
and determining a color code of each image area based on the average value of the pixel colors, and obtaining a control instruction of the input device.
10. The method of claim 7, the determining a sampling frequency for the electronic device output image based on the operational scenario, comprising:
Determining a contrast threshold under the running scene;
and determining the sampling frequency of the output image of the electronic equipment based on the contrast difference value of the two frames of output images adjacent in time sequence and the contrast threshold value.
CN202310161716.9A 2023-02-23 2023-02-23 Control method of input device and electronic device Pending CN116301286A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310161716.9A CN116301286A (en) 2023-02-23 2023-02-23 Control method of input device and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310161716.9A CN116301286A (en) 2023-02-23 2023-02-23 Control method of input device and electronic device

Publications (1)

Publication Number Publication Date
CN116301286A true CN116301286A (en) 2023-06-23

Family

ID=86819768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310161716.9A Pending CN116301286A (en) 2023-02-23 2023-02-23 Control method of input device and electronic device

Country Status (1)

Country Link
CN (1) CN116301286A (en)

Similar Documents

Publication Publication Date Title
CN109783178B (en) Color adjusting method, device, equipment and medium for interface component
CN108600781B (en) Video cover generation method and server
CN113810602B (en) Shooting method and electronic equipment
CN104021760B (en) A kind of control method of the gamma electric voltage for OLED display device
KR101579385B1 (en) Display apparatus and electronic apparatus comprising that
CN110930917A (en) Display screen correction method and display screen correction system
WO2014137732A1 (en) Content adaptive power management of projector systems
CN102088539B (en) Method and system for evaluating pre-shot picture quality
CN1662943A (en) Color adaptation for multimedia devices
CN103680403A (en) Methods and devices for controlling operations of an organic light-emitting diode display
US20180204537A1 (en) Image processing apparatus and program product for calculating luminance and chromaticity related applications
CN112598585A (en) Color image processing method and device, electronic ink screen and storage medium
CN112289278A (en) Screen brightness adjusting method, screen brightness adjusting device and electronic equipment
CN114375083B (en) Light rhythm method, device, terminal equipment and storage medium
CN107734325A (en) A kind of image processing method and its equipment
CN107077824B (en) Image display control apparatus, transmission apparatus, image display control method
CN104284118A (en) Projector and projector control method
US8687091B2 (en) Image capturing systems and methods utilizing customizable look management
CN111901519B (en) Screen light supplement method and device and electronic equipment
CN111107336B (en) Image processing method, image processing device, electronic equipment and storage medium
CN116301286A (en) Control method of input device and electronic device
JP2005345678A (en) Portable display unit
EP3913616B1 (en) Display method and device, computer program, and storage medium
CN112185307B (en) Display apparatus and display control method
CN112866483B (en) Display method of terminal, display control device, terminal and electronic equipment

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