CN113721514A - Control method and device - Google Patents

Control method and device Download PDF

Info

Publication number
CN113721514A
CN113721514A CN202111004143.6A CN202111004143A CN113721514A CN 113721514 A CN113721514 A CN 113721514A CN 202111004143 A CN202111004143 A CN 202111004143A CN 113721514 A CN113721514 A CN 113721514A
Authority
CN
China
Prior art keywords
data
output
component
output component
unit
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
CN202111004143.6A
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 CN202111004143.6A priority Critical patent/CN113721514A/en
Publication of CN113721514A publication Critical patent/CN113721514A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • 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
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Landscapes

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

Abstract

The application discloses a control method and a control device, wherein the method comprises the following steps: obtaining first data to be output by a first output component of the electronic equipment; obtaining configuration information of a second output component of the electronic device; processing the first data at least based on the configuration information to obtain second data; giving the second data to the second output component to control the second output component to perform corresponding output according to the control parameters represented by the second data; wherein the second data comprises a control parameter of at least one unit of output time.

Description

Control method and device
Technical Field
The present application relates to the field of hardware control technologies, and in particular, to a control method and apparatus.
Background
With the development of the technology, in order to enrich the user experience of the hardware device, a light dynamic effect of the hardware device, such as a light transformation effect of presenting a specific pattern on a keyboard, is generally provided for the user.
At present, when a dynamic lighting effect of a hardware device is realized, a processor generally sequentially sends dynamic effect data of the hardware device at each output time to the hardware device, and the hardware device respectively processes the dynamic effect data at each output time to realize the dynamic lighting effect in the hardware device.
However, the processor sequentially sends the dynamic data at each output time to the hardware device, which results in a very large amount of data to be transmitted between the processor and the hardware device.
Disclosure of Invention
In view of the above, the present application provides a control method and apparatus, as follows:
a control method, comprising:
obtaining first data to be output by a first output component of the electronic equipment;
obtaining configuration information of a second output component of the electronic device;
processing the first data at least based on the configuration information to obtain second data;
giving the second data to the second output component to control the second output component to perform corresponding output according to the control parameters represented by the second data;
wherein the second data comprises a control parameter of at least one unit of output time.
The method for obtaining the first data to be output by the first output component of the electronic device preferably comprises:
obtaining a first output instruction, and determining all data to be output indicated by the first output instruction as the first data; or the like, or, alternatively,
obtaining a first file to be output by a first output component, and obtaining first data according to the first file, wherein the first data is matched with the first file; or the like, or, alternatively,
input data received by the first output component is obtained, and first data is obtained according to the input data.
The method preferably, wherein the processing the first data based on at least the configuration information to obtain second data includes:
obtaining position information of each sub-component of the second output component;
processing the first data at least based on the position information to obtain a control parameter of a second output component in at least one unit of output time;
and carrying out first processing on the control parameters to obtain the second data.
The method preferably, wherein processing the first data based on at least the position information includes:
determining time information required for outputting the first data;
configuring a first control parameter corresponding to the first data to each sub-component based on the time information and the position information to obtain a second control parameter of each sub-component in at least one unit of output time;
and performing integration processing on the second control parameter to obtain the control parameter of at least one unit output time of the second output component.
The method preferably, wherein the step of supplying the second data to the second output component to control the second output component to perform corresponding output according to the control parameter represented by the second data includes:
sending the second data to the second output component for second processing to obtain a second control parameter of each sub-component in at least one unit output time;
and controlling the second output component to execute corresponding output according to the second control parameter.
The method preferably further includes sending the second data to the second output component for second processing, and includes:
and transmitting the second data to the second output component, so that the firmware layer connected with the second output component performs second processing on the second data to obtain a second control parameter of each sub-component in at least one unit of output time.
In the method, preferably, the first output component is a display screen, the second output component includes a plurality of display components, each display component corresponds to each key in a keyboard, and the keyboard is connected to the display screen.
A control method, comprising:
receiving second data sent by first electronic equipment, wherein the first electronic equipment comprises a first output component, the second data is obtained by processing first data to be output by the first output component at least based on configuration information of a second output component, and the second output component is a component in second electronic equipment;
controlling the second output component to perform corresponding output according to the control parameters represented by the second data;
wherein the second data comprises at least one control parameter per unit of output time.
In the method, preferably, the second electronic device is a keyboard including a plurality of keys, the first output component is a display screen, the second output component includes a plurality of display assemblies, and each display assembly corresponds to each key;
wherein controlling the second output component to perform a corresponding output in accordance with the control parameter represented by the second data comprises:
processing the second data through a firmware layer of the keyboard to obtain second control parameters of each sub-component in the second output component in at least one unit output time;
and controlling the second output component to execute corresponding output according to the second control parameter.
A control device, comprising:
a data obtaining unit for obtaining first data to be output by a first output component in the electronic device;
a configuration obtaining unit configured to obtain configuration information of a second output section in the electronic device:
the data processing unit is used for processing the first data at least based on the configuration information to obtain second data;
the data transmission unit is used for sending the second data to the second output component so as to control the second output component to perform corresponding output according to the control parameters represented by the second data;
wherein the second data comprises a control parameter of at least one unit of output time.
A control device, comprising:
a data receiving unit to: receiving second data sent by first electronic equipment, wherein the first electronic equipment comprises a first output component, the second data is obtained by processing first data to be output by the first output component at least based on configuration information of a second output component, and the second output component is a component in second electronic equipment;
an output control unit for: controlling the second output component to perform corresponding output according to the control parameters represented by the second data;
wherein the second data comprises at least one control parameter per unit of output time.
An electronic device, comprising:
a first output member;
a second output member;
the memory is used for storing the application program and data generated by the running of the application program;
a processor for executing an application to implement: obtaining first data to be output by a first output component; obtaining configuration information of a second output component: processing the first data at least based on the configuration information to obtain second data; giving the second data to the second output component to control the second output component to perform corresponding output according to the control parameters represented by the second data;
wherein the second data comprises a control parameter of at least one unit of output time.
An electronic device, comprising:
an input section;
a second output member; the second output part corresponds to the input part;
the processor is used for receiving second data sent by first electronic equipment, the first electronic equipment comprises a first output component, the second data is obtained by processing first data to be output by the first output component at least based on configuration information of a second output component, and the second output component is a component in the second electronic equipment; controlling the second output component to perform corresponding output according to the control parameters represented by the second data;
wherein the second data comprises at least one control parameter per unit of output time.
A storage medium having stored therein computer-executable instructions that, when loaded and executed by a processor, implement a control method as claimed in any preceding claim.
According to the technical scheme, in the control method and the control device disclosed by the application, the first data to be output by the first output component is processed based on the configuration information of the second output component, the obtained second data is sent to the second output component, the second data at the moment comprises the control parameter of at least one unit output time, and based on the control parameter, the second output component can be controlled to execute corresponding output according to the control parameter represented by the second data. It can be seen that, in the present application, the first data of the first output unit is processed into the second data containing at least one control parameter of unit output time and then sent to the second output unit, so that while the output control of the second output unit is realized, one or more control parameters of unit output time can be packed into the second data for retransmission, thereby achieving the purpose of reducing the data transmission amount between the output units.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart of a control method according to an embodiment of the present application;
FIGS. 2-6 are diagrams illustrating examples of applications in embodiments of the present application, respectively;
fig. 7 is a partial flowchart of a control method according to an embodiment of the present application;
fig. 8 is a flowchart of a control method according to a second embodiment of the present application;
FIG. 9 is a diagram of another exemplary application in an embodiment of the present application;
fig. 10 is a partial flowchart of a control method according to a second embodiment of the present application;
fig. 11 is a schematic structural diagram of a control device according to a third embodiment of the present application;
fig. 12 is a schematic structural diagram of a control device according to a fourth embodiment of the present application;
fig. 13 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present application;
fig. 14 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present application;
fig. 15 is a logic architecture diagram of a scenario in which the present application is applied to a notebook computer, and the dynamic effect of a keyboard of the notebook computer is achieved.
Detailed Description
The technical solutions in 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 obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, a flowchart for implementing a control method provided in an embodiment of the present application is shown, where the method may be applied to an electronic device having a first output component and a second output component, such as a notebook or a computer including a display and a keyboard. The technical scheme in the embodiment is mainly used for reducing the data transmission quantity between the output components while realizing the output control of the second output component.
Specifically, the method in this embodiment may include the following steps:
step 101: first data to be output by the first output means is obtained.
The first data refers to data for controlling the second output component to output, such as dynamic effect data of a greedy snake, dynamic effect data of a rainbow wave, and the like. The first data corresponds to a first control parameter, such as a control parameter for controlling the keyboard lamp to flicker according to the light effect of the greedy snake, and such as a control parameter for controlling the keyboard lamp to flicker according to the light effect of the rainbow wave, and so on.
Specifically, the first data may be obtained in the following ways in this embodiment:
in one implementation manner, the embodiment may determine all data to be output, which is indicated by the first output instruction, as the first data by obtaining the first output instruction.
The first output instruction may be an instruction generated by a user performing a selection operation of the first data on the electronic device. For example, as shown in fig. 2, a user selects a control of the motion effect data "greedy snake" on the notebook through a mouse or a keyboard, at this time, a first output instruction indicating the greedy snake motion effect data is generated on the notebook, and based on this, the motion effect data of the greedy snake indicated by the first output instruction is determined as the first data. For another example, as shown in fig. 3, when the user selects the play control of the "rainbow wave" video through a mouse or a keyboard on the notebook, a first output instruction indicating rainbow wave effect data is generated on the notebook, and based on this, the rainbow wave effect data indicated by the first output instruction is determined as the first data.
In another implementation manner, in this embodiment, the first data may be obtained according to a first file to be output by the first output component.
Wherein the first data is matched to the first file. The first file may be a file corresponding to a corresponding type of light effect, such as a multimedia file of a certain kind of music, video or game, and in this embodiment, corresponding first data indicating data to be output is obtained based on the multimedia file. For example, as shown in fig. 4, the notebook includes a "spiral rainbow" video file to be output, and at this time, the notebook may generate dynamic effect data indicating a spiral rainbow effect according to the video file.
In another implementation manner, in this embodiment, the first data may be obtained by obtaining input data received by the first output component and then obtaining the first data according to the input data.
The input data may be data collected by an input component on the electronic device, such as user voice data collected by a microphone, for example, voice data of "wind-fire wheel effect"; alternatively, the input data may be input data transmitted by the other device that is received by the electronic device over a communication connection with the other device, such as text data transmitted by a chat application, as shown in fig. 5, text data of "greedy snake," or the like. Based on this, in this embodiment, the input data may be analyzed, for example, the speech recognition may be performed on the user speech data, and the keyword extraction may be performed on the obtained text, and then, for example, the keyword extraction may be performed on the received text data, so as to obtain the dynamic effect data indicating the light flicker effect, such as the dynamic effect data indicating the hot wheel or the snaking effect.
Step 102: configuration information of the second output component is obtained.
The configuration information refers to component configuration information of the second output component, and may include sub-component identifiers, a total number, and position information of each sub-component included in the second output component, and the like. For example, in the case where the second output unit is a display unit corresponding to a keyboard, the second output unit includes a plurality of display elements, each display element corresponds to each key in the keyboard, and the keyboard is connected to the display screen, and at this time, the configuration information includes display identifiers of the display elements corresponding to the keys included in the keyboard, the total number of the display elements, and layout position information of the display elements on the keyboard, and so on.
It should be noted that the execution sequence between step 101 and step 102 may be as shown in fig. 1, or step 102 may be executed first and then step 101 is executed, or step 101 and step 102 are executed at the same time. Different technical solutions formed by different execution sequences between the step 101 and the step 102 are within the protection scope of the present application.
Step 103: the first data is processed based on at least the configuration information to obtain second data.
Wherein the second data comprises at least one control parameter per unit of output time. The unit output time herein refers to an output time set in accordance with the output frequency of the second output member, and for example, the keyboard outputs one unit output time in a duration of 10 milliseconds or 40 milliseconds or the like.
Specifically, in this embodiment, according to the configuration information, the first control parameter corresponding to the first data may be split, integrated, and compressed according to the sub-component of the second output component, so as to obtain the second data.
The control parameters at least comprise color data and an operation type, and the operation type represents the operation type between the color data of the second output component on adjacent unit output time. For example, the color data may have color data of red, blue, green, etc., and the operation type may have a constant brightness type, a saturation gradation type, a brightness gradation type, etc., to characterize the change type between the color data of the respective sub-components of the second output part at the adjacent unit output time, such as a light change type of gradation from 5 th unit output time to 9 th unit output time in red and saturation from 100% to 0, or a light change type of gradation from 5 th unit output time to 9 th unit output time in red and brightness from 100% to 0; as another example, the light change pattern is maintained in red from the 5 th unit output time to the 9 th unit output time.
Step 104: the second data is supplied to the second output section to control the second output section to perform the corresponding output in accordance with the control parameter represented by the second data.
In this embodiment, the second data may be provided to the second output unit through the connection interface with the second output unit, so that the second output unit may be controlled to perform output in one or more unit output times according to the control parameter included in the second data. For example, after the second data containing the control parameters for the plurality of unit output times is obtained from the video file of "rainbow waves" on the display screen on the notebook, as shown in fig. 6, the second data is transmitted to the lamp group on the keyboard, thereby controlling the lamp group to perform the light output for the plurality of unit output times according to the control parameters in the second data, and realizing the dynamic effect of rainbow waves.
As can be seen from the foregoing technical solutions, in a control method provided in an embodiment of the present application, first data to be output by a first output component is processed based on configuration information of a second output component, and then obtained second data is sent to the second output component, where the second data includes a control parameter of at least one unit output time, and based on this, the second output component can be controlled to execute corresponding output according to the control parameter represented by the second data. It can be seen that, in the embodiment, the first data of the first output component is processed into the second data containing at least one control parameter of unit output time and then is sent to the second output component, so that while the output control of the second output component is realized, one or more control parameters of unit output time can be packed into the second data for retransmission, and the purpose of reducing the data transmission amount between the output components is achieved.
In one implementation, when the first data is processed based on at least the configuration information in step 103, the following may be implemented, as shown in fig. 7:
step 701: position information of each sub-component of the second output component is obtained.
The positional information of each sub-component is information of the layout position of each sub-component. For example, the setting position information of the display component corresponding to each key on the keyboard, such as coordinate points or coordinate vectors of the keys of the keyboard.
Step 702: the first data is processed based on at least the position information to derive a control parameter for the second output component for at least one unit of output time.
In this embodiment, the first control parameter corresponding to the first data may be split according to the position information, so as to obtain the control parameter of the second output component in at least one unit output time.
Specifically, in this embodiment, time information required for the first data may be first determined, where the time information includes a total output duration corresponding to the first data, such as an effective data output duration, where the output duration includes one or more unit output times; then, configuring a first control parameter corresponding to the first data to each sub-component based on the number and position information of the unit output time in the time information, thereby obtaining a second control parameter of each sub-component at each unit output time, for example, splitting the corresponding control parameter in the dynamic effect data according to the unit output time of the light component and the setting position of the light component, and splitting the control parameter to each light component, thereby obtaining a second control parameter of each light component at each unit output time; and finally, integrating the second control parameters to obtain the control parameters of the second output component in each unit output time, for example, integrating the second control parameters of each light assembly in each unit output time to obtain the control parameters of the light assembly corresponding to the whole keyboard in each unit output time.
Step 703: and carrying out first processing on the control parameters to obtain second data.
Specifically, in this embodiment, the control parameter may be compressed or encoded to obtain the second data. And the data amount of the obtained second data is smaller than that of the first data.
Based on the above implementation, in the present embodiment, after obtaining the second data, when the second data is given to the second output component in step 104 to control the second output component to perform the corresponding output, the following specific implementation may be implemented:
first, the second data is sent to the second output component to perform the second processing to obtain the second control parameter of each sub-component in at least one unit output time, specifically, in this embodiment, after the second data is sent to the second output component, the second data is processed by the firmware layer connected to the second output component, so as to obtain the second control parameter of each sub-component in at least one unit output time. For example, after the second data is transmitted to the display part on the keyboard, the second data is subjected to second processing by the keyboard firmware layer, so that the second control parameters of each light component in each unit output time are obtained.
And then controlling the second output component to execute corresponding output according to the second control parameter. Specifically, in the present embodiment, each sub-component of the second output unit is controlled to perform corresponding output for each unit output time according to the second control parameter. For example, in this embodiment, the light assembly corresponding to each key is controlled to execute corresponding output in each unit output time according to the corresponding second control parameter, so as to achieve a corresponding light flicker effect, such as a greedy snake effect or a rainbow wave effect.
Referring to fig. 8, a flowchart of an implementation of a control method according to the second embodiment of the present disclosure is provided, where the method may be applied to a second electronic device including a second output component, such as a keyboard component, and the second electronic device is connected to a first electronic device, and the first electronic device includes a first output component, such as a display screen. The technical scheme in the embodiment is mainly used for reducing the data transmission quantity between the output components while realizing the output control of the second output component.
Specifically, the method in this embodiment may include the following steps:
step 801: and receiving second data sent by the first electronic equipment.
The second data is obtained by processing the first data to be output by the first output component at least based on the configuration information of the second output component. The specific manner of acquiring the second data can refer to the corresponding contents in the foregoing, and will not be described in detail here.
Step 802: and controlling the second output part to perform corresponding output according to the control parameter represented by the second data.
Wherein the second data comprises at least one control parameter per unit of output time. Based on this, in the present embodiment, the second output section may be controlled to perform output for one or more unit output times in accordance with the control parameter included in the second data. For example, after the second data containing the control parameters for the plurality of unit output times is obtained from the video file of "rainbow waves" on the display screen on the notebook, as shown in fig. 6, the second data is transmitted to the lamp group on the keyboard, thereby controlling the lamp group to perform the light output for the plurality of unit output times according to the control parameters in the second data, and realizing the dynamic effect of rainbow waves.
As can be seen from the foregoing technical solutions, in the control method provided in the second embodiment of the present application, the first data to be output by the first output component is processed based on the configuration information of the second output component, and the obtained second data is sent to the second output component, where the second data includes a control parameter of at least one unit output time, and based on this, the second output component can be controlled to execute corresponding output according to the control parameter represented by the second data. It can be seen that, in the embodiment, the first data of the first output component is processed into the second data containing at least one control parameter of unit output time and then is sent to the second output component, so that while the output control of the second output component is realized, one or more control parameters of unit output time can be packed into the second data for retransmission, and the purpose of reducing the data transmission amount between the output components is achieved.
Specifically, in the present embodiment, the firmware layer connected to the second output component processes the second data, thereby obtaining the second control parameter of each sub-component in at least one unit output time. For example, the second electronic device is a keyboard comprising a plurality of keys, the first output component is a display screen connected to the keyboard, and the second output component comprises a plurality of display elements therein, each display element corresponding to each of said keys, as shown in fig. 9. Based on this, when the second output component is controlled to perform corresponding output according to the control parameter represented by the second data in step 802, the following steps may be specifically included, as shown in fig. 10:
step 1001: and processing the second data through a firmware layer of the keyboard to obtain second control parameters of each sub-component in the second output component in at least one unit output time.
For example, the second data is processed by the keyboard firmware layer to obtain the second control parameter of each light component in each unit output time.
Step 1002: and controlling the second output component to execute corresponding output according to the second control parameter.
Specifically, in the present embodiment, each sub-component of the second output unit is controlled to perform corresponding output for each unit output time according to the second control parameter. For example, in this embodiment, the light assembly corresponding to each key is controlled to execute corresponding output in each unit output time according to the corresponding second control parameter, so as to achieve a corresponding light flicker effect, such as a greedy snake effect or a rainbow wave effect.
Referring to fig. 11, a schematic structural diagram of a control device provided in a third embodiment of the present application, where the control device may be configured in an electronic device having a first output component and a second output component, such as a notebook or a computer including a display and a keyboard. The technical scheme in the embodiment is mainly used for reducing the data transmission quantity between the output components while realizing the output control of the second output component.
Specifically, the apparatus in this embodiment may include the following units:
a data obtaining unit 1101 for obtaining first data to be output by a first output section in the electronic apparatus;
a configuration obtaining unit 1102 configured to obtain configuration information of a second output component in the electronic device:
a data processing unit 1103, configured to process the first data based on at least the configuration information to obtain second data;
a data transmission unit 1104 for giving the second data to the second output part to control the second output part to perform corresponding output according to the control parameter represented by the second data;
wherein the second data comprises a control parameter of at least one unit of output time.
As can be seen from the foregoing technical solutions, in the control device provided in the third embodiment of the present application, the first data to be output by the first output component is processed based on the configuration information of the second output component, and the obtained second data is sent to the second output component, where the second data includes a control parameter of at least one unit output time, and based on this, the second output component can be controlled to execute corresponding output according to the control parameter represented by the second data. It can be seen that, in the embodiment, the first data of the first output component is processed into the second data containing at least one control parameter of unit output time and then is sent to the second output component, so that while the output control of the second output component is realized, one or more control parameters of unit output time can be packed into the second data for retransmission, and the purpose of reducing the data transmission amount between the output components is achieved.
In one implementation, the data obtaining unit 1101 is specifically configured to: obtaining a first output instruction, and determining all data to be output indicated by the first output instruction as the first data; or obtaining a first file to be output by a first output component, and obtaining first data according to the first file, wherein the first data is matched with the first file; or, input data received by the first output component is obtained, and first data is obtained according to the input data.
In one implementation, the data processing unit 1103 is specifically configured to: obtaining position information of each sub-component of the second output component; processing the first data at least based on the position information to obtain a control parameter of a second output component in at least one unit of output time; and carrying out first processing on the control parameters to obtain the second data.
Optionally, when the data processing unit 1103 processes the first data based on at least the position information, it is specifically configured to: determining time information required for outputting the first data; configuring a first control parameter corresponding to the first data to each sub-component based on the time information and the position information to obtain a second control parameter of each sub-component in at least one unit of output time; and performing integration processing on the second control parameter to obtain the control parameter of at least one unit output time of the second output component.
Based on the above implementation, the data transmission unit 1104 is specifically configured to: sending the second data to the second output component for second processing to obtain a second control parameter of each sub-component in at least one unit output time; and controlling the second output component to execute corresponding output according to the second control parameter. For example, the second data is transmitted to the second output component, so that the firmware layer connected to the second output component performs second processing on the second data to obtain a second control parameter of each sub-component in at least one unit of output time.
In one implementation, the first output component is a display screen, the second output component includes a plurality of display components, each display component corresponds to each key of a keyboard, and the keyboard is connected to the display screen.
It should be noted that, for the specific implementation of each unit in the present embodiment, reference may be made to the corresponding content in the foregoing, and details are not described here.
Referring to fig. 12, a schematic structural diagram of a control apparatus according to a fourth embodiment of the present disclosure is provided, where the apparatus may be configured in a second electronic device including a second output component, such as a keyboard component, and the second electronic device is connected to a first electronic device including a first output component, such as a display screen. The technical scheme in the embodiment is mainly used for reducing the data transmission quantity between the output components while realizing the output control of the second output component.
Specifically, the apparatus in this embodiment may include the following units:
a data receiving unit 1201 configured to: receiving second data sent by first electronic equipment, wherein the first electronic equipment comprises a first output component, the second data is obtained by processing first data to be output by the first output component at least based on configuration information of a second output component, and the second output component is a component in second electronic equipment;
an output control unit 1202 for: controlling the second output component to perform corresponding output according to the control parameters represented by the second data;
wherein the second data comprises at least one control parameter per unit of output time.
As can be seen from the foregoing technical solutions, in the control device provided in the fourth embodiment of the present application, the first data to be output by the first output component is processed based on the configuration information of the second output component, and the obtained second data is sent to the second output component, where the second data includes a control parameter of at least one unit output time, and based on this, the second output component can be controlled to execute corresponding output according to the control parameter represented by the second data. It can be seen that, in the embodiment, the first data of the first output component is processed into the second data containing at least one control parameter of unit output time and then is sent to the second output component, so that while the output control of the second output component is realized, one or more control parameters of unit output time can be packed into the second data for retransmission, and the purpose of reducing the data transmission amount between the output components is achieved.
In one implementation, the second electronic device is a keyboard including a plurality of keys, the first output component is a display screen, the second output component includes a plurality of display components, and each display component corresponds to each key;
the output control unit 1202 is specifically configured to: processing the second data through a firmware layer of the keyboard to obtain second control parameters of each sub-component in the second output component in at least one unit output time; and controlling the second output component to execute corresponding output according to the second control parameter.
It should be noted that, for the specific implementation of each unit in the present embodiment, reference may be made to the corresponding content in the foregoing, and details are not described here.
Referring to fig. 13, a schematic structural diagram of an electronic device according to a fifth embodiment of the present disclosure is provided, where the electronic device may be an electronic device having a first output component and a second output component, such as a notebook or a computer including a display and a keyboard. The technical scheme in the embodiment is mainly used for reducing the data transmission quantity between the output components while realizing the output control of the second output component.
Specifically, the electronic device in this embodiment may include the following structure:
a first output section 1301;
a second output member 1302;
a processor 1303 for obtaining first data to be output by the first output component; obtaining configuration information of a second output component: processing the first data at least based on the configuration information to obtain second data; giving the second data to the second output component to control the second output component to perform corresponding output according to the control parameters represented by the second data;
wherein the second data comprises a control parameter of at least one unit of output time.
Of course, the electronic device in this embodiment may further include a memory and an input component such as a mouse and a keyboard. The memory stores an application program and data generated by the application program, so that the processor 1303 executes the application program to implement the above functions.
As can be seen from the foregoing technical solutions, in an electronic device provided in the fifth embodiment of the present application, first data to be output by a first output component is processed based on configuration information of a second output component, and then obtained second data is sent to the second output component, where the second data includes a control parameter of at least one unit output time, and based on this, the second output component can be controlled to execute corresponding output according to the control parameter represented by the second data. It can be seen that, in the embodiment, the first data of the first output component is processed into the second data containing at least one control parameter of unit output time and then is sent to the second output component, so that while the output control of the second output component is realized, one or more control parameters of unit output time can be packed into the second data for retransmission, and the purpose of reducing the data transmission amount between the output components is achieved.
Referring to fig. 14, a schematic structural diagram of an electronic device according to a sixth embodiment of the present disclosure is shown, where the electronic device may be a second electronic device including a second output component, such as a keyboard component, and the second electronic device is connected to a first electronic device, and the first electronic device includes a first output component, such as a display screen. The technical scheme in the embodiment is mainly used for reducing the data transmission quantity between the output components while realizing the output control of the second output component.
Specifically, the second electronic device in this embodiment may include the following structure:
an input section 1401 such as a keyboard section;
a second output component 1402, such as a display component comprising a plurality of display assemblies, such as light assemblies; second output section 1402 corresponds to input section 1401;
a processor 1403, such as a firmware layer of a keyboard, configured to receive second data sent by a first electronic device, where the first electronic device includes a first output component, the second data is obtained by processing first data to be output by the first output component based on at least configuration information of a second output component, and the second output component is a component in a second electronic device; controlling the second output component 1402 to perform a corresponding output according to the control parameter represented by the second data;
wherein the second data comprises at least one control parameter per unit of output time.
In one implementation, the input unit 1401 is a keyboard including a plurality of keys 1411, the first output unit is a display screen, the second output unit 1402 includes a plurality of display components 1421, and each display component 1421 corresponds to each key;
in the embodiment, the second data is processed through a firmware layer of the keyboard to obtain a second control parameter of each sub-component in the second output component in at least one unit output time; and controlling the second output component to execute corresponding output according to the second control parameter.
As can be seen from the foregoing technical solutions, in an electronic device provided in the sixth embodiment of the present application, first data to be output by a first output component is processed based on configuration information of a second output component, and then obtained second data is sent to the second output component, where the second data includes a control parameter of at least one unit output time, and based on this, the second output component can be controlled to execute corresponding output according to the control parameter represented by the second data. It can be seen that, in the embodiment, the first data of the first output component is processed into the second data containing at least one control parameter of unit output time and then is sent to the second output component, so that while the output control of the second output component is realized, one or more control parameters of unit output time can be packed into the second data for retransmission, and the purpose of reducing the data transmission amount between the output components is achieved.
In addition, the present application also provides a storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are loaded and executed by a processor, the control method according to any one of the above embodiments is implemented.
Taking a notebook as an example, the following describes in detail the dynamic effect of the keyboard of the notebook realized by the technical scheme of the present application:
first, in the technical solution of the present application, a dynamic effect type is determined on a user interface UI, such as various dynamic effect schemes in table 1. Then, the software is used for realizing dynamic light effect by algorithm, then the dynamic effect data of the keyboard lamp is coded, the hardware firmware layer decodes the dynamic effect of the keyboard lamp, and then the keyboard lamp is operated. The dynamic effect of the keyboard lamp is that the animation effect can be realized only by using the unified action of all the keys.
The coding scheme in the application is that each key on the keyboard is split according to unit output time and position, each key has different dynamic effect schemes, and light dynamic effect data of each key independently exist. After splitting, only three types are needed for each key, which are defined as a saturation change type, a brightness change type and a normal brightness type, and are respectively called as follows for short: h change type, L change type, and normally bright change type.
In addition, the hardware decoding scheme: for each key, data is received: the control parameters of each key in each unit output time are obtained in three types (H change, L change and normal brightness), and then the current control parameters of all keys are combined into one frame of control parameters of the keyboard.
Specifically, the codec implementation logic architecture diagram is shown in fig. 15:
firstly, on a notebook computer, obtaining the animation dynamic effect data of a keyboard lamp through software, wherein the dynamic effect data of each key coordinate point is independent, and compressing the data into the following format:
the data format is:
{
(x,y),
[{type,color,beign,end},……],
Max
}
{random,[(x,y),……]}
taking the kinetic effect of the greedy snake as an example:
data for "(0, 0), [ { normally bright, red, 0, 3} ], 60" indicates: the key coordinate point (0, 0) continues from frame 0 to frame 3 (unit output time) in a red and normally bright manner, and the total activation time period is 60 frames.
The data volume after coding compression is obviously reduced, and the dynamic and effective schemes are as shown in the following table 1:
TABLE 1 dynamic and effective scheme
Dynamic and effective scheme Encoded data volume/original data volume
Greedy snake 1/60
Clear and clear 1/30
Gradual color change 1/60
Rainbow wave 1/60
Spiral rainbow 1/60
Breathing 1/60
Wind-fire wheel 1/60
Ripples 1/30
Color wave 1/60
Based on the above, the dynamic effect data is sent to the keyboard Firmware layer through software according to the above format, and the Firmware analyzes the data according to the coding format, namely, the data is analyzed according to the positions of the light components corresponding to the keys of the keyboard, so that the Firmware calculates one frame of data every 40ms, and each (x, y) has a variable of a current frame. The method comprises the following specific steps:
1. acquiring current frame interval data:
as in the data of [1, 3, blue ], [5, 9, red ], curFrame ═ 5, the acquired data interval is [5, 9, red ], red is displayed for (x, y), and continues from the 5 th frame to the 9 th frame.
2. The color of each (x, y) is obtained according to the type of variation in the different action scenarios:
1) for H change type, Color denotes the first frame Color, begin and end are used to adjust the velocity, H change is used to get Color (R, G, B) for each data frame;
2) for the L variation type, similar to the H variation.
3) For the normally bright type, the corresponding color is displayed in the (begin, end) section.
To sum up, this scheme of adoption, software can be more quick realization move and imitate, and basic keyboard lamp moves and imitates efficient data compression and can reduce the transmission data volume for move and imitate control efficiency.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A control method, comprising:
obtaining first data to be output by a first output component of the electronic equipment;
obtaining configuration information of a second output component of the electronic device;
processing the first data at least based on the configuration information to obtain second data;
giving the second data to the second output component to control the second output component to perform corresponding output according to the control parameters represented by the second data;
wherein the second data comprises a control parameter of at least one unit of output time.
2. The method of claim 1, obtaining first data to be output by a first output component of an electronic device, comprising:
obtaining a first output instruction, and determining all data to be output indicated by the first output instruction as the first data; or the like, or, alternatively,
obtaining a first file to be output by a first output component, and obtaining first data according to the first file, wherein the first data is matched with the first file; or the like, or, alternatively,
input data received by the first output component is obtained, and first data is obtained according to the input data.
3. The method of claim 1, wherein processing the first data based at least on the configuration information to obtain second data comprises:
obtaining position information of each sub-component of the second output component;
processing the first data at least based on the position information to obtain a control parameter of a second output component in at least one unit of output time;
and carrying out first processing on the control parameters to obtain the second data.
4. The method of claim 3, wherein processing the first data based at least on the location information comprises:
determining time information required for outputting the first data;
configuring a first control parameter corresponding to the first data to each sub-component based on the time information and the position information to obtain a second control parameter of each sub-component in at least one unit of output time;
and performing integration processing on the second control parameter to obtain the control parameter of at least one unit output time of the second output component.
5. The method of claim 4, wherein the presenting the second data to the second output component to control the second output component to perform a corresponding output in accordance with the control parameter characterized by the second data comprises:
sending the second data to the second output component for second processing to obtain a second control parameter of each sub-component in at least one unit output time;
and controlling the second output component to execute corresponding output according to the second control parameter.
6. The method of claim 5, presenting the second data to the second output component for second processing, comprising:
and transmitting the second data to the second output component, so that the firmware layer connected with the second output component performs second processing on the second data to obtain a second control parameter of each sub-component in at least one unit of output time.
7. The method of claim 3, wherein the first output component is a display screen and the second output component comprises a plurality of display elements, each display element corresponding to each key of a keyboard coupled to the display screen.
8. A control method, comprising:
receiving second data sent by first electronic equipment, wherein the first electronic equipment comprises a first output component, the second data is obtained by processing first data to be output by the first output component at least based on configuration information of a second output component, and the second output component is a component in second electronic equipment;
controlling the second output component to perform corresponding output according to the control parameters represented by the second data;
wherein the second data comprises at least one control parameter per unit of output time.
9. The method of claim 7, wherein the second electronic device is a keyboard comprising a plurality of keys, the first output component is a display screen, and the second output component comprises a plurality of display elements, each display element corresponding to each key;
wherein controlling the second output component to perform a corresponding output in accordance with the control parameter represented by the second data comprises:
processing the second data through a firmware layer of the keyboard to obtain second control parameters of each sub-component in the second output component in at least one unit output time;
and controlling the second output component to execute corresponding output according to the second control parameter.
10. A control device, comprising:
a data obtaining unit for obtaining first data to be output by a first output component in the electronic device;
a configuration obtaining unit configured to obtain configuration information of a second output section in the electronic device:
the data processing unit is used for processing the first data at least based on the configuration information to obtain second data;
the data transmission unit is used for sending the second data to the second output component so as to control the second output component to perform corresponding output according to the control parameters represented by the second data;
wherein the second data comprises a control parameter of at least one unit of output time.
CN202111004143.6A 2021-08-30 2021-08-30 Control method and device Pending CN113721514A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111004143.6A CN113721514A (en) 2021-08-30 2021-08-30 Control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111004143.6A CN113721514A (en) 2021-08-30 2021-08-30 Control method and device

Publications (1)

Publication Number Publication Date
CN113721514A true CN113721514A (en) 2021-11-30

Family

ID=78679005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111004143.6A Pending CN113721514A (en) 2021-08-30 2021-08-30 Control method and device

Country Status (1)

Country Link
CN (1) CN113721514A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201027A (en) * 2016-06-30 2016-12-07 联想(北京)有限公司 Display control method and device, input/output control method and device
CN107168543A (en) * 2017-05-25 2017-09-15 北京小米移动软件有限公司 Control method of keyboard and device
WO2018021649A1 (en) * 2016-07-28 2018-02-01 삼성전자주식회사 Electronic device and operating method therefor
CN109799699A (en) * 2019-02-19 2019-05-24 百度在线网络技术(北京)有限公司 A kind of control parameter processing method and its device, equipment, storage medium
CN110597474A (en) * 2019-09-12 2019-12-20 联想(北京)有限公司 Information processing method and electronic equipment
CN111078434A (en) * 2019-12-17 2020-04-28 联想(北京)有限公司 Control method, control device and terminal
CN112925572A (en) * 2021-03-01 2021-06-08 联想(北京)有限公司 Control method and device and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201027A (en) * 2016-06-30 2016-12-07 联想(北京)有限公司 Display control method and device, input/output control method and device
WO2018021649A1 (en) * 2016-07-28 2018-02-01 삼성전자주식회사 Electronic device and operating method therefor
CN107168543A (en) * 2017-05-25 2017-09-15 北京小米移动软件有限公司 Control method of keyboard and device
CN109799699A (en) * 2019-02-19 2019-05-24 百度在线网络技术(北京)有限公司 A kind of control parameter processing method and its device, equipment, storage medium
CN110597474A (en) * 2019-09-12 2019-12-20 联想(北京)有限公司 Information processing method and electronic equipment
CN111078434A (en) * 2019-12-17 2020-04-28 联想(北京)有限公司 Control method, control device and terminal
CN112925572A (en) * 2021-03-01 2021-06-08 联想(北京)有限公司 Control method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN112233210B (en) Method, apparatus, device and computer storage medium for generating virtual character video
CN106375789B (en) Medium living broadcast method and apparatus
CN107172485A (en) A kind of method and apparatus for being used to generate short-sighted frequency
CN104123938A (en) Voice control system, electronic device and voice control method
CN109360558B (en) Voice response method and device
US20240071402A1 (en) Method and apparatus for processing audio data, device, storage medium
US10186246B2 (en) Musical piece reproducing system, data outputting apparatus, and musical piece reproducing method
CN112165623A (en) Soft and hard combined audio and video coding and decoding device
CN113593595A (en) Voice noise reduction method and device based on artificial intelligence and electronic equipment
CN113721514A (en) Control method and device
CN114339069A (en) Video processing method and device, electronic equipment and computer storage medium
CN112565923B (en) Audio and video stream processing method and device, electronic equipment and storage medium
CN113192510B (en) Method, system and medium for realizing voice age and/or sex identification service
CN114255782A (en) Speaker voice enhancement method, electronic device and storage medium
KR20110099414A (en) Apparatus and method for providing animation effect in portable terminal
CN108876866B (en) Media data processing method, device and storage medium
CN111182317B (en) Live broadcast information prompting method and device, electronic equipment and storage medium
US9521729B2 (en) Systems and methods for programming embedded devices using graphical user interface
CN103701982B (en) The method of adjustment of user terminal displays content, device and system
CN110909522B (en) Data processing method and device, electronic equipment and medium
CN108053820A (en) The voice broadcast method and device of air regulator
CN115225962A (en) Video generation method, system, terminal device and medium
CN101656090A (en) Multimedia player, multimedia output method and multimedia system
CN117642768A (en) Display apparatus and method of operating the same
CN104427334A (en) Data processing method, image demonstration method, data processing device and demonstration 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