Control method and device of electronic equipment

By acquiring and analyzing scene data, the audio and input devices are controlled to continue playing or displaying in a low-power state, which solves the problem of LED effects stopping in the locked state and achieves the continuous display of consistent or extremely similar scene effects in a low-power state, meeting the needs of an immersive atmosphere.

CN120669947APending Publication Date: 2025-09-19LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the prior art, the LED effect of an electronic device automatically stops when the electronic device is in a locked state, which cannot meet the immersive atmosphere requirements of devices that focus on gaming and entertainment experience.

Method used

By acquiring the first scene data and based on the second scene data with a correlation higher than a preset threshold, the audio device and the input device are controlled to continue playing or displaying in a low power consumption state, thereby ensuring the consistency or extreme similarity of the scene effects.

Benefits of technology

In a low-power state, electronic devices can continue to display scene effects that are consistent or extremely similar to those in a high-power state, meeting the needs of an immersive atmosphere while reducing power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120669947A_ABST
    Figure CN120669947A_ABST
Patent Text Reader

Abstract

The invention discloses a control method of electronic equipment, which comprises the following steps: acquiring first scene data, the first scene data being data of the electronic equipment in a first state, the first scene data comprising audio data of an audio device and / or display data of an input device; second scene data is determined based on the first scene data, and the correlation degree of the second scene data and the first scene data is higher than a preset correlation degree threshold value; under the condition that the electronic equipment is in the second state, based on the second scene data, the audio device is controlled to continue audio playing, and / or the input device is controlled to continue displaying, and the power consumption of the electronic equipment in the second state is lower than that in the first state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to control technology, and in particular to a control method and device for electronic equipment. Background Art

[0002] In existing technologies, such as some Microsoft products, when the operating system enters a locked state, the light-emitting diode (LED) keyboard lighting and surrounding light strip effects automatically stop working. However, for devices focused on gaming and entertainment, the continuous display of LED effects is a key element in creating an immersive atmosphere. Therefore, this LED effect deactivation behavior in existing technologies cannot meet the needs of these devices. Summary of the Invention

[0003] The present application provides a method and device for controlling an electronic device.

[0004] The technical solution of this application is achieved as follows:

[0005] In a first aspect, a method for controlling an electronic device is provided, comprising:

[0006] Acquire first scene data, where the first scene data is data of the electronic device in a first state, and the first scene data includes audio data of an audio device and / or display data of an input device;

[0007] Determining second scene data based on the first scene data, where the correlation between the second scene data and the first scene data is higher than a preset correlation threshold;

[0008] When the electronic device is in the second state, based on the second scene data, the audio device is controlled to continue audio playback, and / or the input device is controlled to continue display. The power consumption of the electronic device in the second state is lower than that in the first state.

[0009] In a second aspect, a control device for an electronic device is provided, comprising:

[0010] a processing unit, configured to obtain first scene data, wherein the first scene data is data of the electronic device in a first state, and the first scene data includes audio data of an audio device and / or display data of an input device;

[0011] The processing unit is further configured to determine second scene data based on the first scene data, wherein a correlation between the second scene data and the first scene data is higher than a preset correlation threshold;

[0012] A control unit is used to control the audio device to continue audio playback and / or control the input device to continue display based on the second scene data when the electronic device is in the second state, and the power consumption of the electronic device in the second state is lower than that in the first state.

[0013] According to a third aspect, an electronic device is provided, comprising: a processor and a memory configured to store a computer program that can be run on the processor, wherein the processor is configured to execute the steps of the method according to the first aspect when running the computer program.

[0014] According to a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program implements the steps of the method according to the first aspect when executed by a processor.

[0015] In a fifth aspect, a computer program product is provided, comprising a computer program, wherein the computer program implements the steps of the method of the first aspect when executed by a processor.

[0016] The present application provides a method and device for controlling an electronic device, comprising: obtaining first scene data, the first scene data being data when the electronic device is in a first state, the first scene data including audio data of an audio device and / or display data of an input device; determining second scene data based on the first scene data, wherein the correlation between the second scene data and the first scene data is higher than a preset correlation threshold; when the electronic device is in the second state, controlling the audio device to continue audio playback and / or controlling the input device to continue display based on the second scene data, wherein the power consumption of the electronic device in the second state is lower than that in the first state. In this way, when the electronic device is in the second state, based on the second scene data determined by the first scene data in the first state, the audio device is controlled to continue audio playback and / or the input device is controlled to continue display, so that a scene effect that is consistent with or extremely similar to that in the first state can be continuously displayed. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 This is a flow chart of the control method of the electronic device in the embodiment of the present application. Figure 1 ;

[0018] Figure 2 This is a flow chart of the control method of the electronic device in the embodiment of the present application. Figure 2 ;

[0019] Figure 3 This is a flow chart of the control method of the electronic device in the embodiment of the present application. Figure 3 ;

[0020] Figure 4This is a flow chart of the control method of the electronic device in the embodiment of the present application. Figure 4 ;

[0021] Figure 5 This is a flow chart of the control method of the electronic device in the embodiment of the present application. Figure 5 ;

[0022] Figure 6 This is a schematic diagram of the structure of the control device of the electronic device in the embodiment of the present application. Figure 1 ;

[0023] Figure 7 This is a flow chart of the control method of the electronic device in the embodiment of the present application. Figure 6 ;

[0024] Figure 8 This is a flow chart of the control method of the electronic device in the embodiment of the present application. Figure 7 ;

[0025] Figure 9 This is a schematic diagram of the structure of the control device of the electronic device in the embodiment of the present application. Figure 2 ;

[0026] Figure 10 This is a schematic diagram of the structure of the electronic device in the embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below with reference to the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.

[0028] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing this embodiment only and are not intended to limit this application.

[0029] In the following description, references to “some embodiments,” “this embodiment,” “this embodiment,” and examples, etc., describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.

[0030] If similar descriptions of "first / second" appear in the application documents, the following explanation is added. In the following description, the terms "first\second\third" are merely used to distinguish similar objects and do not represent a specific order of the objects. It can be understood that "first\second\third" can be interchanged with the specific order or sequence where permitted, so that the embodiment described herein can be implemented in an order other than that illustrated or described herein.

[0031] In this embodiment, the term "and / or" is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, object A and / or object B may represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.

[0032] The present invention provides a method for controlling an electronic device. Figure 1 This is a flow chart of the control method of the electronic device in the embodiment of the present application. Figure 1 ,like Figure 1 As shown, the control method of the electronic device includes the following steps:

[0033] S101: Acquire first scene data, where the first scene data is data when the electronic device is in a first state, and the first scene data includes audio data of an audio device and / or display data of an input device.

[0034] In an embodiment of the present application, when a user activates a scene display function, the operating system sends first scene data through an application programming interface (API), so that the electronic device obtains the first scene data.

[0035] The first state may be a high power consumption state, which is a working state.

[0036] Here, the first scene data includes audio data of an audio device and / or display data of an input device, wherein the audio device and / or the input device may be the electronic device itself, or an external device controlled by the electronic device or another interconnected electronic device.

[0037] Exemplarily, when the audio device and / or the input device is the electronic device itself, the audio device may be an independent audio player, and the input device may be a touch pad.

[0038] When the audio device and / or input device is an external device controlled by the electronic device or another interconnected electronic device, the audio device can be an audio player connected to the electronic device by wire or wirelessly, and the input device includes at least one of the following: a keyboard or mouse connected to the electronic device by wire or wirelessly.

[0039] Further, for example, when the electronic device is connected to the keyboard by wire or wirelessly, the scene display function is the dynamic lighting function of the keyboard. The operating system sends the RGB value of each LED light through the API interface, so that the electronic device obtains the RGB value of each LED light, that is, the first scene data, through sampling.

[0040] Exemplarily, when the electronic device includes an audio player or is connected to an audio player, the scene display function is an audio playback function, and the operating system sends an audio signal through an API interface, so that the electronic device obtains the audio signal, namely the first scene data, through sampling.

[0041] S012: Determine second scene data based on the first scene data, where the correlation between the second scene data and the first scene data is higher than a preset correlation threshold.

[0042] In an embodiment of the present application, an effect inference operation is performed based on the first scene data to obtain an effect inference result, namely, the second scene data.

[0043] Exemplarily, the first scene data is used as input to the effect inference model to obtain the second scene data. Alternatively, the first scene data is subjected to effect inference processing using an effect inference algorithm to obtain the second scene data.

[0044] Exemplarily, when the first scene data includes display data of an input device, an effect inference operation is performed on the display data to infer the display effect presented by the display data, namely, the second scene data. The second scene data is consistent with or extremely similar to the display effect presented by the display data. In other words, the correlation between the second scene data and the first scene data is greater than a preset correlation threshold.

[0045] Exemplarily, the first scene data includes RGB values ​​of multiple frames of LED lights, and the effect presented by the LED lights switching between frames is the second scene data. The second scene data includes at least one of the following: a lighting mode, a rotation mode, a flickering frequency, and color information. The lighting mode includes at least one of the following: a spiral rainbow mode, a marquee mode, or a wave mode; the rotation mode includes at least one of the following: forward rotation and reverse rotation; the flickering frequency determines the switching rate between frames; and the color information is the RGB values ​​of the LED lights.

[0046] Exemplarily, when the first scene data includes audio data from an audio device, an effect inference operation is performed on the audio data to infer an audio effect presented by the audio data, namely, the second scene data. The second scene data is consistent with or extremely similar to the audio effect presented by the audio data. In other words, the correlation between the second scene data and the first scene data is greater than a preset correlation threshold.

[0047] For example, the first scene data includes audio data, and the effect presented by the audio data frame by frame is the second scene data. The second scene data includes at least one of the following: audio content and playback frequency. The audio content may include an audio melody (e.g., soothing or fast) and a music title.

[0048] The second scene data, such as the lighting mode, is inferred based on multiple frames of display data of the first scene data, and the second scene data, such as the audio style, is inferred based on multiple segments of audio data of the first scene data. Therefore, the second scene data has a high correlation with the first scene data.

[0049] S103: When the electronic device is in the second state, based on the second scene data, controlling the audio device to continue audio playback and / or controlling the input device to continue display.

[0050] The second state may be a low power consumption state, and the low power consumption state includes at least one of the following: a locked state, a dormant state, a sleeping state, and a standby state.

[0051] In an embodiment of the present application, based on the second scene data, the audio device is controlled to continue to play audio that is consistent with or extremely similar to the electronic device in the first state, and / or the input device is controlled to continue to display that is consistent with or extremely similar to the electronic device in the first state.

[0052] In some embodiments, if the first scene data is not acquired within a preset time period, it is determined that the electronic device is in the second state.

[0053] It should be noted that if the electronic device is able to obtain the first scene data when in the first state, and if the first scene data is not obtained within the preset time period, it indicates that the electronic device has switched from the first state to the second state, and therefore, it is determined that the electronic device is in the second state. The preset time period can be set based on experiments or experience.

[0054] The power consumption of the electronic device in the second state is lower than that in the first state, that is, the first state may be a high power consumption state and the second state may be a low power consumption state. For example, the low power consumption state includes at least one of the following: a locked state, a dormant state, a sleeping state, and a standby state.

[0055] In an embodiment of the present application, when the electronic device is in the second state, based on the second scene data corresponding to the first scene data when the electronic device is in the first state, the audio device is controlled to continue audio playback, and / or the input device is controlled to continue display, so that the scene effect that is consistent with or extremely similar to that in the first state can be continuously displayed.

[0056] In some embodiments of the present application, the following steps are included:

[0057] S201: Control the first controller to receive first scene data.

[0058] In the embodiment of the present application, the first controller is controlled to repeatedly receive the first scene data according to a preset period, wherein the first scene data received in adjacent periods may be the same or different.

[0059] Exemplarily, the first controller includes an MCU1, and the MCU1 is configured to receive first scene data according to a preset period.

[0060] S202: Control the first controller to transmit the first scene data to the inference module for storage according to a preset format.

[0061] In the embodiment of the present application, as soon as the first controller receives the first scene data, it transmits the first scene data to the inference module for storage in a preset format.

[0062] Exemplarily, MCU1 is further configured to transmit the first scene data to the inference module for storage in a preset format. The inference module may be a Lenovo LA3 chip.

[0063] S203: When the reasoning conditions are met, the control reasoning module performs effect reasoning based on the stored first scene data to determine the second scene data.

[0064] Among them, when the reasoning conditions are met, it means that the effect reasoning operation can be performed.

[0065] In the embodiment of the present application, the inference module has an effect inference model or effect inference algorithm built in. Based on this, the inference module performs effect inference on the stored first scene data based on the effect inference model or effect inference algorithm to determine the second scene data.

[0066] Based on this, it is known that the electronic device includes a first controller and an inference module, which work together to complete the determination process from the first scene data to the second scene data.

[0067] In some embodiments of the present application, the following steps are included:

[0068] S301: Control the first controller to receive first scene data.

[0069] In the embodiment of the present application, the first controller is controlled to repeatedly receive the first scene data according to a preset period, wherein the first scene data received in adjacent periods may be the same or different.

[0070] Exemplarily, the first controller includes an MCU1, and the MCU1 is configured to receive first scene data according to a preset period.

[0071] S302: Control the first controller to store the first scene data according to a preset format.

[0072] In the embodiment of the present application, as long as the first controller receives the first scene data, it stores the first scene data in a preset format.

[0073] Exemplarily, the MCU1 is further configured to store the first scene data in a preset format.

[0074] S303: When the inference condition is met, the first controller is controlled to perform effect inference based on the stored first scene data to determine the second scene data.

[0075] Among them, when the reasoning conditions are met, it means that the effect reasoning operation can be performed.

[0076] In the embodiment of the present application, the first controller has an effect inference model or effect inference algorithm built in. Based on this, the first controller performs effect inference on the stored first scene data based on the effect inference model or effect inference algorithm to determine the second scene data.

[0077] Based on this, it is known that the first controller included in the electronic device independently completes the determination process from the first scene data to the second scene data.

[0078] In some embodiments, the inference condition includes: the electronic device is switched to the second state, the first controller obtains an inference instruction, and the inference instruction is used to respond to an effect inference operation.

[0079] In an embodiment of the present application, when the operating system detects that the electronic device is in the second state, it sends an inference instruction to the first controller. Further, the first controller sends the inference instruction to the inference module, so that the inference module responds to the inference instruction and performs effect inference based on the stored first scenario data to obtain the second scenario data.

[0080] Alternatively, the first controller acquires or generates an inference instruction when detecting that the electronic device is in the second state. Further, the first controller sends the inference instruction to the inference module, so that the inference module responds to the inference instruction and performs effect inference based on the stored first scenario data to obtain the second scenario data.

[0081] Exemplarily, the inference module obtains the first scene data within a recent preset time period to perform effect inference to obtain the second scene data. The preset time period can be set to 10 seconds.

[0082] In some embodiments, if the first controller does not obtain the first scene data within a preset time period, it determines that the electronic device is in the second state.

[0083] It should be noted that if the electronic device can obtain the first scene data when in the first state, and if the first scene data is not obtained within the preset time period, it means that the electronic device has switched from the first state to the second state, and therefore, it is determined that the electronic device is in the second state. The preset time period can be set based on experiments or experience.

[0084] In other embodiments, the inference condition includes: the electronic device is in a first state, and the inference instruction is obtained according to a preset period and / or the amount of the first scenario data.

[0085] In an embodiment of the present application, after receiving the first scenario data, the inference module counts the current time, and when the current time meets a preset period, obtains an inference instruction, and then responds to the inference instruction, performs effect inference based on the stored first scenario data to obtain the second scenario data. Alternatively, after receiving the first scenario data, the inference module counts the number of first scenario data, and when the number of first scenario data meets a preset number, obtains an inference instruction, and then responds to the inference instruction, performs effect inference based on the stored first scenario data to obtain the second scenario data.

[0086] For example, the preset cycle is to infer once every 5 seconds. When the first 5 seconds are met, effect inference is performed based on the first scene data of the previous 5 seconds to obtain the second scene data; when the second 5 seconds are met, effect inference is performed based on the first scene data of the most recent 5 seconds to obtain the second scene data; when the third 5 seconds are met, effect inference is performed based on the first scene data of the most recent 5 seconds to obtain the second scene data; and so on.

[0087] Alternatively, when the first 5 seconds are met, effect inference is performed based on the first scene data of the previous 5 seconds to obtain the second scene data; when the second 5 seconds are met, effect inference is performed based on the first scene data of the previous 10 seconds to obtain the second scene data; when the third 5 seconds are met, effect inference is performed based on the first scene data of the previous 15 seconds to obtain the second scene data; and so on.

[0088] Exemplarily, the preset cycle is to infer once every 10 seconds for the first time, and then once every 1 second. When the first 10 seconds are met, effect inference is performed based on the first scene data of the previous 10 seconds to obtain the second scene data; at the 11th second, effect inference is performed based on the first scene data of the previous 10 seconds, i.e., from the 2nd second to the 11th second, to obtain the second scene data; at the 12th second, effect inference is performed based on the first scene data of the previous 10 seconds, i.e., from the 3rd second to the 12th second, to obtain the second scene data; and so on.

[0089] Alternatively, when the 10 seconds are met for the first time, effect inference is performed based on the first scene data of the previous 10 seconds to obtain the second scene data; at the 11th second, effect inference is performed based on the first scene data of the previous 11 seconds to obtain the second scene data; at the 12th second, effect inference is performed based on the first scene data of the previous 12 seconds to obtain the second scene data; and so on.

[0090] Exemplarily, the preset number is set to 10 frames, then the number of first scene data is counted, and when the number of frames of the first scene data meets 10 frames for the first time, effect inference is performed based on the stored current 10 frames of first scene data to obtain the second scene data; when the number of frames of the first scene data meets 10 frames for the second time, effect inference is performed based on the stored current 10 frames of first scene data to obtain the second scene data; and so on.

[0091] Alternatively, when the number of frames of the first scene data meets 10 frames for the first time, effect inference is performed based on the stored current 10 frames of the first scene data to obtain the second scene data; when the number of frames of the first scene data meets 10 frames for the second time, effect inference is performed based on the stored 20 frames of the first scene data to obtain the second scene data; and so on.

[0092] In some embodiments of the present application, performing effect inference based on the stored first scene data to determine the second scene data includes the following steps:

[0093] Acquire target scene data that meets preset conditions from the first scene data;

[0094] Performing effect reasoning based on the target scene data to obtain the second scene data;

[0095] In an embodiment of the present application, the preset condition may be within the most recent first duration of the current time. Based on this, the first controller is controlled to obtain the first scene data within the most recent first duration from the first scene data as the target scene data. Alternatively, the inference module is controlled to obtain the first scene data within the most recent first duration from the first scene data as the target scene data. Alternatively, the inference module is controlled to obtain a preset number of first scene data from the first scene data as the target scene data.

[0096] Exemplarily, the first controller is controlled to obtain the first scene data of the latest 10 seconds from the first scene data as the target scene data. Alternatively, the inference module is controlled to obtain the first scene data of the latest 10 seconds from the first scene data as the target scene data.

[0097] Furthermore, the target scene data is used as input to the effect inference model to obtain the second scene data. Alternatively, the effect inference algorithm is used to perform effect inference on the target scene data to obtain the second scene data.

[0098] Based on this, the target scene data is subjected to effect inference processing to obtain the second scene data quickly and accurately.

[0099] Alternatively, based on the first scene data, second scene data matching the first scene data is obtained from a plurality of stored second scene data.

[0100] In the embodiment of the present application, an effect inference model or an effect inference algorithm is used to perform effect inference on the first scene data to obtain the corresponding second scene data, i.e., the target scene effect. A matching degree processing model or a matching degree processing algorithm is then used to perform matching degree processing on the second scene data corresponding to the first scene data and the plurality of stored second scene data to obtain the matching degree between the first scene data and the plurality of stored second scene data. The second scene data corresponding to the highest matching degree is used as the second scene data that matches the first scene data.

[0101] Exemplarily, when the first scene data includes display data, the second scene data is a preset display effect. Effect inference is performed on the display data included in the first scene data to obtain a target display effect. Furthermore, a matching process is performed on the target display effect against multiple stored preset display effects to obtain a matching degree between the target display effect and each preset display effect. The preset display effect corresponding to the highest matching degree is determined as the display effect that best matches the target display effect.

[0102] Alternatively, when the first scene data includes audio data, the second scene data is a preset audio effect. Effect inference is performed on the audio data included in the first scene data to obtain a target audio effect. Furthermore, a matching process is performed on the target audio effect against multiple stored preset audio effects to obtain a matching degree between the target audio effect and each preset audio effect. The preset audio effect corresponding to the highest matching degree is determined as the audio effect that best matches the target audio effect.

[0103] Based on this, by calculating the matching degree between the first scene data and the plurality of stored second scene data, the second scene data corresponding to the highest matching degree is used as the second scene data that matches the first scene data. In this way, the accuracy of the second scene data found is guaranteed. The second scene data inferred historically can be stored in an electronic device, and each second scene data has a corresponding feature description, such as a keyword or a feature vector. Based on the analysis of multiple frames or multiple audio segments of the first scene data, keywords (such as content, category), or feature vectors describing the first scene data can be obtained. The second scene data that matches the first scene data is determined by matching based on the similarity of the keywords or feature vectors. For example, by analyzing multiple audio segments to obtain keywords such as quiet classical music, and the second scene data contains a description of a soothing guzheng, it can be considered that the second scene data has a certain matching degree with the first scene data.

[0104] In some embodiments of the present application, the following steps are further included:

[0105] When the electronic device switches from the second state to the first state, new scene data is acquired in the first state, and the previous first scene data is updated.

[0106] In some embodiments, when the electronic device switches from the second state to the first state, the first controller receives new scene data through the API interface, and the first controller sends the new scene data to the reasoning module, so that the reasoning module updates the previous first scene data with the new scene data. When the electronic device is detected to switch from the first state to the second state again, the first controller sends an inference instruction to the reasoning module, so that the reasoning module performs effect inference based on the new scene data.

[0107] Alternatively, when the electronic device switches from the second state to the first state, the first controller receives new scene data through the API interface, and the first controller updates the previous first scene data using the new scene data. When the electronic device is detected to switch from the first state to the second state again, the first controller performs effect inference based on the new scene data.

[0108] In some embodiments of the present application, controlling the audio device to continue audio playback and / or controlling the input device to continue display based on the second scene data includes the following steps:

[0109] S401: Control the first controller to determine target display data corresponding to the second scene data based on the stored correspondence between the second scene data and the display data.

[0110] In some embodiments of the present application, the first controller pre-stores a correspondence between different display effects, ie, second scene data, and corresponding display data. Based on this, the first controller is controlled to determine the target display data corresponding to the current display effect based on the correspondence.

[0111] It should be noted that the target display data can be understood as the complete display data or partial display data of the first display effect. The display data directly obtained by the first controller can be understood as the complete display data or partial display data of the second display effect. The first display effect and the second display effect are consistent, or the first display effect and the second display effect are extremely similar.

[0112] Exemplarily, the display effect includes at least one of the following: a spiral rainbow effect, a rotating rainbow effect, a gradient effect, a wave effect, and a marquee effect. Different display effects correspond to different display data.

[0113] For example, if the display data directly obtained by the first controller is a spiral rainbow effect, and the second scene data determined based on the display data is a rotating rainbow effect, there will be multiple frames of display data corresponding to the rotating rainbow effect. Then, the input device will be controlled to continue displaying based on the display data corresponding to the rotating rainbow effect. In this case, the display effects of the electronic device in the first state and the second state are extremely similar.

[0114] Alternatively, if the display data directly obtained by the first controller is a spiral rainbow effect, and the second scene data determined based on the display data is a spiral rainbow effect, then the input device will be controlled to continue displaying based on the display data corresponding to the spiral rainbow effect. In this case, the display effects of the electronic device in the first state and the second state are consistent.

[0115] S402: Control the first controller to transmit the target display data to the first driving module.

[0116] Exemplarily, the first controller further includes an MCU2, and the MCU2 is configured to transmit the target display data to the first driving module.

[0117] S403: Control the first driving module to control the input device to continue displaying based on the target display data.

[0118] In the embodiment of the present application, the first controller is controlled to transmit the target display data to the at least one first driving module, so that the at least one first driving module controls the input device to continue displaying based on the target display data.

[0119] The following steps are also included:

[0120] S501: Control the first controller to determine target audio data corresponding to the second scene data based on the stored correspondence between the second scene data and the audio data.

[0121] In some embodiments of the present application, the first controller pre-stores the correspondence between different audio effects, ie, second scene data, and corresponding audio data. Based on this, the first controller is controlled to determine the target audio data corresponding to the current audio effect based on the correspondence.

[0122] It should be noted that the target audio data can be understood as the complete audio data or partial audio data of the first audio effect. The audio data directly obtained by the first controller can be understood as the complete audio data or partial audio data of the second audio effect. The first audio effect and the second audio effect are consistent, or the first audio effect and the second audio effect are extremely similar.

[0123] Exemplarily, the audio effect includes at least one of the following: a soothing audio effect, a soft audio effect, and a rapid audio effect. Different audio effects correspond to different audio data.

[0124] For example, if the audio data directly acquired by the first controller is a soothing audio effect, and the second scene data, i.e., the audio effect, determined based on the audio data is a soft audio effect, the audio device will subsequently be controlled to continue displaying based on the audio data corresponding to the soft audio effect. In this case, the audio effects of the electronic device in the first state and the second state are extremely similar.

[0125] Alternatively, if the audio data directly acquired by the first controller is a soothing audio effect, and the second scene data determined based on the audio data is a soothing audio effect, then the audio device will be controlled to continue displaying based on the audio data corresponding to the soothing audio effect. In this case, the audio effects of the electronic device in the first state and the second state are consistent.

[0126] S502: Control the first controller to transmit the target audio data to the second driving module.

[0127] Exemplarily, the first controller further includes an MCU2, and the MCU2 is configured to transmit the target audio data to the second driving module.

[0128] S503: Control the second driving module to control the audio device to continue audio playback based on the target audio data.

[0129] In the embodiment of the present application, the first controller is controlled to transmit the target audio data to the second driving module, so that the second driving module transmits the target audio data to the audio player, so that the audio player continues to play audio.

[0130] Based on the above embodiment, this application specifically illustrates a schematic diagram of the composition structure of an electronic device. Figure 6 Schematic diagram of the electronic device structure in the embodiment of the present application Figure 1 ,like Figure 6 As shown, the electronic device includes MCU1 (61), MCU2 (62), LA (63), LED driver integrated circuit 64 (i.e., driver module) and LED light 65 on the keyboard (i.e., input device); LA is an intelligent chip with the ability to run large models for reasoning.

[0131] Among them, one end of MCU1 is connected to LA, and the other end is connected to MCU2;

[0132] MCU2 is connected to the LED driver integrated circuit;

[0133] The LED driver integrated circuit is connected to the LED light on the keyboard.

[0134] Based on this, the present application specifically provides a control method for an electronic device, such as Figure 7As shown, the control method of the electronic device includes the following steps:

[0135] S701: When the user activates the dynamic lighting effect function of the keyboard, the operating system sends the RGB value of each LED light to MCU1 through the API interface.

[0136] The RGB value of the LED light is the first scene data.

[0137] S702: MCU1 sends the RGB value of each LED light to LA for storage.

[0138] S703: At the 10th second, LA performs effect inference based on the RGB values ​​of the LED lights in the previous 10 seconds to obtain a display effect.

[0139] The display effect, i.e., the second scene data, includes at least one of the following: a lighting mode, a rotation mode, a flickering frequency, and color information. The lighting mode includes at least one of the following: a spiral rainbow mode, a marquee mode, and a wave mode; the rotation mode includes at least one of the following: forward rotation and reverse rotation; the flickering frequency determines the switching rate between frames; and the color information includes the RGB value of the LED light.

[0140] S704: LA sends the display effect to MCU1.

[0141] S705: MCU1 sends the display effect to MCU2.

[0142] S706: Subsequently, LA performs effect inference of the RGB values ​​of the LED lights in the last 10 seconds every one second, and sends the obtained display effect to MCU2 via MCU1.

[0143] That is, at the 11th second, LA again performs effect inference based on the RGB values ​​of the LED lights in the previous 10 seconds to obtain the display effect; at the 12th second, LA again performs effect inference based on the RGB values ​​of the LED lights in the previous 10 seconds to obtain the display effect; and so on.

[0144] S707: When MCU1 fails to receive the RGB value of the LED light, it sends the control instruction to MCU2.

[0145] If MCU1 fails to receive the RGB value of the LED light, it indicates that the electronic device is in a locked state, which is a low power consumption state.

[0146] S708: MCU2 responds to the control instruction, obtains the latest RGB value of the LED light corresponding to the display effect based on the corresponding relationship between the display effect and the RGB value of the LED light, and sends it to the LED driver integrated circuit.

[0147] The number of the LED driver integrated circuit is at least one.

[0148] S709: The LED driver integrated circuit controls the LED lights on the keyboard to continue displaying the lighting effect based on the RGB value of the LED lights corresponding to the latest display effect.

[0149] In an embodiment of the present application, when the electronic device is in a locked state, the keyboard can continue to display a lighting effect that is consistent with or extremely similar to the locked state.

[0150] This application also specifically provides a control method for an electronic device, such as Figure 8 As shown, the control method of the electronic device includes the following steps:

[0151] S801: When the user activates the dynamic lighting effect function of the keyboard, the operating system sends the RGB value of each LED light to MCU1 through the API interface.

[0152] The RGB value of the LED light is the first scene data.

[0153] S802: MCU1 sends the RGB value of each LED light to LA for storage.

[0154] S803: When MCU1 fails to receive the RGB value of the LED light, it sends an inference instruction to LA.

[0155] If MCU1 cannot receive the RGB value of the LED light, it means that the electronic device is in a locked state.

[0156] S804: LA obtains the RGB values ​​of the LED lights received in the last 10 seconds, and performs effect inference to obtain the target display effect.

[0157] The display effect, i.e., the second scene data, includes at least one of the following: a lighting mode, a rotation mode, a flickering frequency, and color information. The lighting mode includes at least one of the following: a spiral rainbow mode, a marquee mode, and a wave mode; the rotation mode includes at least one of the following: forward rotation and reverse rotation; the flickering frequency determines the switching rate between frames; and the color information includes the RGB value of the LED light.

[0158] S805: LA sends the target display effect to MCU1.

[0159] S806: MCU1 sends the target display effect and control instructions to MCU2.

[0160] S807: MCU2 responds to the control instruction, obtains the RGB value of the LED light corresponding to the target display effect based on the correspondence between the display effect and the RGB value of the LED light, and sends it to the LED driver integrated circuit.

[0161] The number of the LED driver integrated circuit is at least one.

[0162] S808: The LED driver integrated circuit controls the LED lights on the keyboard to continue displaying the lighting effect based on the RGB value of the LED lights corresponding to the target display effect.

[0163] In an embodiment of the present application, when the electronic device is in a locked state, the keyboard can continue to display a lighting effect that is consistent with or extremely similar to the locked state.

[0164] To implement the method of the embodiment of the present application, based on the same inventive concept, the embodiment of the present application further provides a control device for an electronic device. Figure 9 This is a schematic diagram of the structure of the control device of the electronic device in the embodiment of the present application. Figure 1 ,like Figure 9 As shown, the control device 90 of the electronic device includes:

[0165] The processing unit 901 is configured to obtain first scene data, where the first scene data is data of the electronic device in a first state, and the first scene data includes audio data of an audio device and / or display data of an input device;

[0166] The processing unit 901 is further configured to determine second scene data based on the first scene data, where the correlation between the second scene data and the first scene data is higher than a preset correlation threshold;

[0167] The control unit 902 is used to control the audio device to continue audio playback and / or control the input device to continue display based on the second scene data when the electronic device is in the second state, and the power consumption of the electronic device in the second state is lower than that in the first state.

[0168] In an embodiment of the present application, when the electronic device is in the second state, the audio device is controlled to continue audio playback and / or the input device is controlled to continue display based on the second scene data determined by the first scene data in the first state, so that the scene effect consistent with or extremely similar to that in the first state can be continuously displayed.

[0169] In some embodiments of the present application, the processing unit 901 is specifically used to control the first controller to receive the first scene data; control the first controller to transmit the first scene data to the inference module for storage in a preset format; and when the inference conditions are met, control the inference module to perform effect inference based on the stored first scene data to determine the second scene data.

[0170] In some embodiments of the present application, the processing unit 901 is specifically used to control the first controller to receive the first scene data; control the first controller to store the first scene data; and when the reasoning conditions are met, control the first controller to perform effect reasoning based on the stored first scene data to determine the second scene data.

[0171] In some embodiments of the present application, the inference condition includes: the electronic device is switched to the second state, the first controller obtains an inference instruction, and the inference instruction is used to respond to an effect inference operation;

[0172] Alternatively, the electronic device is in the first state and obtains the inference instruction according to a preset period and / or the amount of the first scenario data.

[0173] In some embodiments of the present application, the processing unit 901 is further specifically used to obtain target scene data that meets preset conditions from the first scene data; perform effect inference based on the target scene data to obtain the second scene data; or, based on the first scene data, obtain second scene data that matches the first scene data from multiple stored second scene data.

[0174] In some embodiments of the present application, the processing unit 901 is further configured to obtain new scene data in the first state and update the previous first scene data when the electronic device switches from the second state to the first state.

[0175] In some embodiments of the present application, the second scene data includes at least one of the following: audio content, playback frequency, lighting mode, rotation mode, flashing frequency and color information.

[0176] In some embodiments of the present application, the control unit 902 is specifically configured to control the first controller to determine target display data corresponding to the second scene data based on the stored correspondence between the second scene data and the display data; and control the first controller to control the input device to continue displaying based on the target display data;

[0177] And / or, control the first controller to determine target audio data corresponding to the second scene data based on the stored correspondence between the second scene data and the audio data; control the first controller to control the audio device to continue audio playback based on the target audio data.

[0178] In some embodiments of the present application, the control unit 902 specifically controls the first controller to transmit the target display data to the first driver module; controls the first driver module to control the input device to continue displaying based on the target display data;

[0179] Alternatively, the first controller is controlled to transmit the target audio data to the second driving module; and the second driving module is controlled to control the audio device to continue audio playback based on the target audio data.

[0180] The present application also provides another electronic device. Figure 10 This is a schematic diagram of the structure of the electronic device in the embodiment of the present application. Figure 10 As shown, the electronic device 100 includes: a processor 1001 and a memory 1002 configured to store a computer program that can be run on the processor;

[0181] The processor 1001 is configured to execute the method steps in the aforementioned embodiment when running a computer program.

[0182] Of course, in actual application, Figure 10 As shown, the various components in the electronic device 100 are coupled together via a bus system 1003. It is understood that the bus system 1003 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 1003 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 10 Various buses are labeled as bus system 1003.

[0183] In practical applications, the processor may be at least one of an application-specific integrated circuit (ASIC), a digital signal processing device (DSPD), a programmable logic device (PLD), a field-programmable gate array (FPGA), a controller, a microcontroller, and a microprocessor. It is understood that for different devices, the electronic device used to implement the functions of the processor may also be other, and the embodiments of the present application do not specifically limit this.

[0184] The above-mentioned memory can be a volatile memory (volatile memory), such as a random-access memory (RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); or a combination of the above types of memory, and provides instructions and data to the processor.

[0185] In an exemplary embodiment, the present application also provides a computer-readable storage medium for storing a computer program.

[0186] Optionally, the computer-readable storage medium can be applied to any one of the methods in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the processor in each method in the embodiments of the present application. For the sake of brevity, they are not repeated here.

[0187] Illustratively, an embodiment of the present application further provides a computer program product, including a computer program, which can be executed by a processor of an electronic device to complete the steps of any of the aforementioned methods.

[0188] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0189] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0190] In addition, the functional units in the embodiments of the present invention can all be integrated into one processing module, or each unit can be a separate unit, or two or more units can be integrated into one unit; the above-mentioned integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units. It can be understood by those skilled in the art that all or part of the steps of the above-mentioned method embodiments can be completed by hardware related to program instructions, and the above-mentioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiments; and the above-mentioned storage medium includes various media that can store program codes, such as mobile storage devices, read-only memories (ROMs), random access memories (RAMs), magnetic disks or optical disks.

[0191] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0192] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0193] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0194] The above description is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any technician familiar with this technical field can easily think of changes or replacements within the technical scope disclosed by the present invention, which should be covered by the scope of protection of the present invention.

Claims

1. A method for controlling an electronic device, comprising: Acquire first scene data, where the first scene data is data of the electronic device in a first state, and the first scene data includes audio data of an audio device and / or display data of an input device; Determining second scene data based on the first scene data, where the correlation between the second scene data and the first scene data is higher than a preset correlation threshold; When the electronic device is in the second state, based on the second scene data, the audio device is controlled to continue audio playback, and / or the input device is controlled to continue display. The power consumption of the electronic device in the second state is lower than that in the first state.

2. The method according to claim 1, wherein The acquiring of the first scene data includes: Controlling the first controller to receive the first scene data; The determining of second scene data based on the first scene data includes: Controlling the first controller to transmit the first scene data to the inference module for storage according to a preset format; When the reasoning conditions are met, the reasoning module is controlled to perform effect reasoning based on the stored first scene data to determine the second scene data.

3. The method according to claim 1, wherein The acquiring of the first scene data includes: Controlling the first controller to receive the first scene data; The determining the second scene data based on the first scene data includes: controlling the first controller to store the first scene data; When the inference conditions are met, the first controller is controlled to perform effect inference based on the stored first scene data to determine the second scene data.

4. The method according to claim 2 or 3, wherein: The inference condition includes: the electronic device is switched to the second state, the first controller obtains an inference instruction, and the inference instruction is used to respond to the effect inference operation; Alternatively, the electronic device is in the first state and obtains the inference instruction according to a preset period and / or the amount of the first scenario data.

5. The method according to claim 2 or 3, wherein: The performing effect reasoning based on the stored first scene data to determine the second scene data includes: Acquire target scene data that meets preset conditions from the first scene data; Performing effect reasoning based on the target scene data to obtain the second scene data; Alternatively, based on the first scene data, second scene data matching the first scene data is obtained from a plurality of stored second scene data.

6. The method according to claim 2 or 3, wherein: Also includes: When the electronic device switches from the second state to the first state, new scene data is acquired in the first state, and the previous first scene data is updated.

7. The method according to any one of claims 1 to 3, wherein: The second scene data includes at least one of the following: audio content, playback frequency, lighting mode, rotation mode, flashing frequency and color information.

8. The method according to claim 2 or 3, wherein: The controlling the audio device to continue audio playback and / or the controlling the input device to continue display based on the second scene data includes: controlling the first controller to determine target display data corresponding to the second scene data based on the stored correspondence between the second scene data and the display data; and controlling the first controller to control the input device to continue displaying based on the target display data; And / or, control the first controller to determine target audio data corresponding to the second scene data based on the stored correspondence between the second scene data and the audio data; control the first controller to control the audio device to continue audio playback based on the target audio data.

9. The method according to claim 8, wherein The controlling the first controller to control the input device to continue displaying based on the target display data includes: controlling the first controller to transmit the target display data to a first driving module; controlling the first driving module to control the input device to continue displaying based on the target display data; The controlling the first controller to control the audio device to continue audio playback based on the target audio data includes: controlling the first controller to transmit the target audio data to a second driving module; The second driving module is controlled to control the audio device to continue audio playback based on the target audio data.

10. A control device for an electronic device, comprising: a processing unit, configured to obtain first scene data, wherein the first scene data is data of the electronic device in a first state, and the first scene data includes audio data of an audio device and / or display data of an input device; The processing unit is further configured to determine second scene data based on the first scene data, wherein a correlation between the second scene data and the first scene data is higher than a preset correlation threshold; A control unit is used to control the audio device to continue audio playback and / or control the input device to continue display based on the second scene data when the electronic device is in the second state, and the power consumption of the electronic device in the second state is lower than that in the first state.