Control method, control system, device, and medium for electronic device

CN123013070APending Publication Date: 2026-10-30LCFC HEFEI ELECTRONICS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611218987.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-12
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

但当前多数电子设备的硬件控制方式操作繁琐,需要用户具备一定的专业知识才能在相关系统配置界面完成复杂的硬件参数调整,处理效率较低且普适性差

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123013070A_ABST
    Figure CN123013070A_ABST
Patent Text Reader

Abstract

The application provides a control method, a control system, a device and a medium of an electronic device, which can be applied to the technical field of computers. The method comprises the following steps: in response to receiving a setting request for a hardware component of an electronic device, determining a target control function from a plurality of hardware control functions based on semantic information of the setting request and application environment information applicable to each of the plurality of hardware control functions, wherein each hardware control function is obtained by calling an initial calling interface deployed in the electronic device; calling the target control function by using a target calling interface in the plurality of initial calling interfaces to perform a control operation on the hardware component of the electronic device; and the target calling interface is obtained by the following method: obtaining first verification information stored in the electronic device by using the plurality of initial calling interfaces, matching the first verification information with second verification information, and obtaining a target calling interface that passes the verification in the case where the first verification information matches the second verification information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and more specifically to a control method, control system, device, and medium for an electronic device. Background Technology

[0002] With the development of computer technology, the functions of electronic devices are becoming increasingly complex, and users' personalized needs for electronic devices are becoming more diverse. However, the hardware control methods of most current electronic devices are cumbersome to operate, requiring users to have certain professional knowledge to complete complex hardware parameter adjustments in the relevant system configuration interface, resulting in low processing efficiency and poor universality. Summary of the Invention

[0003] In view of the above problems, this application provides a control method, control system, device and medium for an electronic device.

[0004] According to a first aspect of this application, a control method for an electronic device is provided, comprising: responding to receiving a user input request for setting a hardware component of the electronic device; determining a target control function from a plurality of hardware control functions based on semantic information of the setting request and application environment information applicable to each of a plurality of hardware control functions, wherein each hardware control function is obtained by invoking an initial invoking interface deployed in the electronic device, and the plurality of initial invoking interfaces are obtained based on hardware control information of the electronic device; invoking the target control function using a target invoking interface among the plurality of initial invoking interfaces to perform control operations on the hardware component of the electronic device; wherein the target invoking interface is obtained by: obtaining first verification information stored in the electronic device using the plurality of initial invoking interfaces, matching the first verification information with second verification information, and obtaining a verified target invoking interface when the first verification information matches the second verification information, wherein the second verification information is obtained from the plurality of hardware control functions and functional description information of each hardware control function.

[0005] According to an embodiment of this application, the control method for an electronic device further includes: generating function interface information for calling based on the calling commands and calling parameters of each hardware control function, wherein each function interface information has a function identifier corresponding to each hardware control function; and deploying an initial calling interface in the electronic device based on the function interface information and the function identifier.

[0006] According to an embodiment of this application, a first verification information stored in an electronic device is obtained using multiple initial call interfaces, and the first verification information is matched with second verification information. If the first verification information matches the second verification information, a target call interface that has passed verification is obtained. This includes: reading the first verification information from the memory of the electronic device using the initial call interfaces, wherein the first verification information is a hash signature obtained based on multiple hardware control functions, functional description information, and scenario description information; obtaining the second verification information based on the hardware control functions and functional description information of the initial call interfaces; and obtaining the target call interface if the first verification information matches the second verification information.

[0007] According to an embodiment of this application, the control method for an electronic device further includes: determining an initial hash signature value for a start control function and its initial functional description information among a plurality of hardware control functions; combining the initial hash signature value, intermediate hardware control functions, and their intermediate functional description information to obtain an intermediate hash signature value; and, if the number of intermediate hash signature values ​​is greater than or equal to a preset threshold, combining the intermediate hash signature value and the scenario description information of the intermediate hardware control function call scenario to obtain a target hash signature value, and using the target hash signature value as the first verification information.

[0008] According to an embodiment of this application, in response to receiving a user-inputted setting request for hardware components of an electronic device, a target control function is determined from multiple hardware control functions based on the semantic information of the setting request and the application environment or system operating status information applicable to each of the multiple hardware control functions. This includes: obtaining target scene information corresponding to the setting request when the intent information and condition information of the setting request match the application environment information; and determining at least one hardware control function associated with the target scene information in the scene description information as the target control function.

[0009] According to an embodiment of this application, the control method for an electronic device further includes: using a basic input / output system to sequentially encapsulate multiple hardware control functions and their functional description information into a control information file of an operating system configuration interface file, thereby obtaining hardware control information containing the complete hardware control interface definition of the electronic device; wherein, the control information file includes a signature field, a length field, multiple function information fields, and a system description information field, and each function information field is used to store the function name, calling command, calling parameters, and functional description text of the hardware control function.

[0010] According to embodiments of this application, the control operation includes dynamically adjusting at least one of the following: heat dissipation strategy, performance mode, and fan noise of the electronic device.

[0011] The second aspect of this application provides a control system for an electronic device, comprising: a basic input / output system configured to obtain hardware control information based on multiple hardware control functions of the electronic device, scenario description information of each hardware control function call scenario, and functional description information indicating the call method and call parameters of each hardware control function; and a control agent configured to execute the control method of the electronic device as described above.

[0012] A third aspect of this application provides a control device for an electronic device, comprising: an interface deployment module, configured to deploy initial calling interfaces for calling multiple hardware control functions in the operating environment of the electronic device based on hardware control information of the electronic device; an interface verification module, configured to send verification requests to the multiple initial calling interfaces, and obtain a verified target calling interface if a first verification information stored in the electronic device is matched with second verification information obtained from the multiple hardware control functions and the functional description information of each hardware control function; and a component control module, configured to, in response to receiving a setting request for a hardware component of the electronic device, determine a target control function from the multiple hardware control functions based on the semantic information of the setting request and the scenario description information of the calling scenario of each hardware control function, and use the target calling interface to call the target control function to perform control operations on the hardware component of the electronic device.

[0013] A fourth aspect of this application provides an electronic device comprising: one or more processors; and a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the method described above.

[0014] A fifth aspect of this application also provides a computer-readable storage medium having a computer program or instructions stored thereon, which, when executed by a processor, implement the steps of the above-described method.

[0015] A sixth aspect of this application also provides a computer program product, including a computer program or instructions that, when executed by a processor, implement the steps of the above-described method. Attached Figure Description

[0016] The above-mentioned contents, other objects, features and advantages of this application will become clearer from the following description of embodiments with reference to the accompanying drawings, in which:

[0017] Figure 1 This illustration schematically depicts an application scenario of a control method, hardware control system, device, and medium for an electronic device according to embodiments of this application.

[0018] Figure 2A flowchart illustrating a control method for an electronic device according to an embodiment of this application is shown schematically.

[0019] Figure 3 The process of generating first verification information according to an embodiment of this application is illustrated schematically;

[0020] Figure 4 A flowchart illustrating the deployment initial call interface according to an embodiment of this application is shown schematically;

[0021] Figure 5 A flowchart illustrating the determination of a target invocation interface according to an embodiment of this application is shown schematically;

[0022] Figure 6 This schematically illustrates an interaction architecture diagram for implementing a control method for an electronic device according to an embodiment of this application;

[0023] Figure 7 This schematically illustrates a structural block diagram of a control system for an electronic device according to an embodiment of the present application;

[0024] Figure 8 This schematically illustrates a structural block diagram of a control device for an electronic device according to an embodiment of the present application; and

[0025] Figure 9 A block diagram of an electronic device suitable for implementing a control method for an electronic device according to an embodiment of this application is shown schematically. Detailed Implementation

[0026] The embodiments of this application will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of this application. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of this application for ease of explanation. However, it will be apparent that one or more embodiments may be implemented without these specific details. Furthermore, descriptions of well-known structures and technologies are omitted in the following description to avoid unnecessarily obscuring the concepts of this application.

[0027] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of this application. The terms “comprising,” “including,” etc., as used herein indicate the presence of the stated features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0028] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.

[0029] When using expressions such as "at least one of A, B and C", they should generally be interpreted in accordance with the meaning that is commonly understood by those skilled in the art (e.g., "a system having at least one of A, B and C" should include, but is not limited to, a system having A alone, a system having B alone, a system having C alone, a system having A and B, a system having A and C, a system having B and C, and / or a system having A, B and C, etc.).

[0030] In the technical solution of this application, the user information (including but not limited to user personal information, user image information, user device information, such as location information) and data (including but not limited to data used for analysis, stored data, and displayed data) involved are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of related data all comply with relevant laws, regulations, and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entry points for users to choose to authorize or refuse.

[0031] In scenarios involving automated decision-making using personal information, the methods, devices, and systems provided in this application all offer users corresponding entry points for choosing to agree to or reject the automated decision-making results. If the user chooses to reject, the process proceeds to the expert decision-making stage. Here, "automated decision-making" refers to the activity of automatically analyzing and evaluating an individual's behavioral habits, interests, or economic, health, and credit status through computer programs, and then making a decision. Here, "expert decision-making" refers to the activity of making decisions by personnel who specialize in a particular field, possess specialized experience, knowledge, and skills, and have reached a certain level of professional expertise.

[0032] While traditional devices have built-in smart chips, they primarily offer basic text, voice, and image generation and data search functions. In actual use, even with electronic devices equipped with built-in smart chips, users often find it difficult to intuitively perceive the device's intelligent control capabilities. Furthermore, it's challenging to customize the operating system and hardware functions of these devices based on individual user environments and specific needs.

[0033] In view of this, embodiments of this application provide a control method for an electronic device, comprising: responding to receiving a user input of a setting request for hardware components of the electronic device; determining a target control function from multiple hardware control functions based on semantic information of the setting request and application environment information applicable to each of multiple hardware control functions, wherein each hardware control function is obtained by calling an initial calling interface deployed in the electronic device, and the multiple initial calling interfaces are obtained based on hardware control information of the electronic device; and calling the target control function using a target calling interface among the multiple initial calling interfaces to perform control operations on the hardware components of the electronic device; wherein the target calling interface is obtained by: obtaining first verification information stored in the electronic device using the multiple initial calling interfaces, matching the first verification information with second verification information, and obtaining a verified target calling interface when the first verification information matches the second verification information, wherein the second verification information is obtained from the multiple hardware control functions and the functional description information of each hardware control function.

[0034] According to embodiments of this application, by deploying an initial call interface in the operating environment based on hardware control information, a strong connection between the intelligent collaborative control system and the hardware components of electronic devices is achieved. By sending a verification request to the initial call interface and performing information matching, the integrity and reliability of the call interface are ensured. Then, based on the semantic information and scene description information of the user's natural language setting request, the target control function is determined and called, enabling the user to customize the hardware functions and performance according to actual needs through natural language interaction, thereby improving device control efficiency and user experience.

[0035] Figure 1 The illustration shows an application scenario diagram of the control method for an electronic device according to an embodiment of this application.

[0036] like Figure 1 As shown, the application scenario 100 according to this embodiment may include an electronic device 101, and the electronic device 101 may include a control system 102.

[0037] Electronic device 101 can be any electronic device with a display screen and support for web browsing, including but not limited to laptops, desktops, all-in-ones, servers, and other devices with hardware control requirements.

[0038] Various communication client applications can be installed on electronic device 101, such as knowledge reading applications, web browser applications, search applications, instant messaging tools, email clients and / or social platform software, etc. (for example only).

[0039] The control system 102 may be a control module integrated within the electronic device 101. It should be noted that the control method of the electronic device provided in this application embodiment can generally be executed by the control system 102 of the electronic device.

[0040] For example, during the operation of electronic device 101, users can input setting requests through voice input, graphical interface operation, shortcut key triggering, etc. The control system 102 in electronic device 101 performs control operations on hardware components by executing the control method of electronic device according to the embodiment of this application.

[0041] The following will be based on Figure 1 The described scene, through Figures 2-6 The control method of the electronic device according to the embodiments of the application will be described in detail.

[0042] Figure 2 A flowchart illustrating a control method for an electronic device according to an embodiment of this application is shown schematically.

[0043] like Figure 2 As shown, the control method of the electronic device in this embodiment includes operations S210 to S220.

[0044] In operation S210, in response to receiving a user input request for setting hardware components of the electronic device, a target control function is determined from multiple hardware control functions based on the semantic information of the setting request and the application environment information applicable to each of the multiple hardware control functions. Each hardware control function is obtained by calling an initial call interface deployed in the electronic device, and the multiple initial call interfaces are obtained based on the hardware control information of the electronic device.

[0045] In operation S220, the target control function is invoked using the target call interface among multiple initial call interfaces to perform control operations on the hardware components of the electronic device.

[0046] Preferably, the target calling interface is obtained by: using multiple initial calling interfaces to obtain first verification information stored in the electronic device, and matching the first verification information with second verification information. If the first verification information matches the second verification information, a verified target calling interface is obtained. The second verification information is obtained from multiple hardware control functions and the functional description information of each hardware control function.

[0047] In the embodiments of this application, the control method for the electronic device can be executed by an Artificial Intelligence (AI) collaborative control system. Specifically, the AI ​​collaborative control system may include an AI Agent and an AI Server. The AI ​​Server can provide services such as large language models located in the cloud or a remote data center. The initial call interface can be implemented based on the Model Context Protocol (MCP). Through interface deployment, the connection between the AI ​​collaborative control system and hardware components can be achieved, facilitating the use of the AI ​​collaborative control system to perform control operations on the hardware components.

[0048] The hardware control information of an electronic device can include relevant information required for hardware control, such as hardware control functions and related information. The intelligent agent can deploy the initial calling interface after the electronic device powers on and enters the operating system. Functional description information can include the call entry point for each hardware control function, the definition of required parameters, and the expected execution effect.

[0049] For example, based on the hardware control information of the electronic device, multiple initial call interfaces can be deployed in the electronic device to call multiple hardware control functions.

[0050] During deployment, the agent can parse the function identifier, calling command and parameter rules of each hardware control function from the hardware control information, and then generate a corresponding initial calling interface for each hardware control function in the operating system runtime environment.

[0051] After the initial API call deployment is completed, the agent can trigger the API verification process. First, it reads the pre-stored first verification information from the electronic device by calling each initial API call. Then, it reads the hardware control functions and their functional descriptions, and calculates the second verification information. Since both the first and second verification information are based on the hardware control functions and their functional descriptions, they can be compared. If they match, the hardware control information is confirmed to be tamper-proof, the verification is successful, and the verified initial API call is designated as the target API call for subsequent control operations on the electronic device's hardware components.

[0052] After the API call is deployed and verified, users can issue configuration requests for hardware components of the electronic device during its operation. Configuration requests can be described in natural language or spoken language, such as conversational expressions like "I want to put my computer into silent office mode," or they can be generated through visual operations such as selecting options and sliding adjustment bars in the system settings interface.

[0053] Upon receiving a setup request, the agent can provide the setup request and scenario descriptions of the various hardware deployment function call scenarios to an AI service such as a large language model. The large language model can perform semantic parsing on the setup request, extracting semantic information, such as parsing "silent office mode" to extract the semantic information as "adjust fan noise and performance mode". The scenario descriptions of the various hardware control function call scenarios will cover feature definitions of multiple scenarios such as "silent office", "high-performance gaming", and "energy saving and low power consumption".

[0054] After obtaining semantic information, the large language model can match the semantic information with the scene description information of each hardware control function call scenario. After matching the corresponding target scene information, it can be associated with at least one preset hardware control function in that scenario. For example, the "office silent" scenario will be associated with the "adjust fan speed" function, which will be identified as the target control function and returned to the agent.

[0055] After receiving the target control function, the intelligent agent can call the target control function through the previously verified target call interface to reduce the fan speed, thereby achieving the quiet office operation state required by the user.

[0056] According to embodiments of this application, by deploying an initial call interface in the operating environment based on hardware control information, a strong connection between the AI ​​collaborative control system and the hardware components of electronic devices is achieved. By sending a verification request to the initial call interface and performing information matching, the integrity and reliability of the call interface are ensured. Then, based on the semantic information and scene description information of the user's natural language setting request, the target control function is determined and called, enabling the user to customize the hardware functions and performance according to actual needs through natural language interaction, thereby improving device control efficiency and user experience.

[0057] According to an embodiment of this application, the control method for an electronic device further includes: using a basic input / output system to sequentially encapsulate multiple hardware control functions and the functional description information of each hardware control function into a control information file of an operating system configuration interface file, thereby obtaining hardware control information containing the complete hardware control interface definition of the electronic device.

[0058] In the embodiments of this application, hardware control information can be generated by the basic input / output system of the electronic device and provided to the AI ​​collaborative control system. During the power-on self-test (POST) phase of the electronic device, the basic input / output system (BIOS) identifies all hardware components and extracts the corresponding hardware control function for each component. Simultaneously, the BIOS generates standardized functional description information for each hardware control function.

[0059] After collecting the hardware control functions and their corresponding function descriptions, the BIOS encapsulates this information into a control information file. This file contains a signature field, a length field, multiple function information fields, and a system description field. Each function information field stores the function name, calling command, calling parameters, and function description text of the hardware control function.

[0060] In some embodiments, the encapsulation process can be implemented based on the Advanced Configuration and Power Interface (ACPI). The operating system configuration interface file can be an ACPI file (ACPI Table), and the control information file can be a BMCP file (BMCP Table) in the ACPI Table. Each driver in the BIOS can directly copy and register the hardware control functions and their functional descriptions that need to be provided to the AI ​​collaborative control system into the BMCP Table of the ACPI Table. This allows the AI ​​collaborative control system to obtain hardware control information from the control information file and deploy the MCP service (MCP Server), i.e., the initial call interface deployment.

[0061] Near the end of the boot process, the last BIOS driver will register the scenario description information of each hardware control function call scenario and the functional description information of each hardware control function to the BMCP Table, thus obtaining the system description information field. This allows the AI ​​Server to understand which hardware control functions can be called when the AI ​​Agent provides hardware control information to the AI ​​Server.

[0062] According to embodiments of this application, by utilizing the basic input / output system in an electronic device to encapsulate and store hardware control functions and functional description information, the completeness and accuracy of hardware control information can be ensured by leveraging the basic input / output system's comprehensive hardware identification capability during the power-on phase. This provides a reliable data foundation for the subsequent interface deployment and function calls of the AI ​​collaborative control system.

[0063] According to an embodiment of this application, the control method for an electronic device further includes: determining an initial hash signature value for a start control function and its initial functional description information among a plurality of hardware control functions; combining the initial hash signature value, intermediate hardware control functions, and their intermediate functional description information to obtain an intermediate hash signature value; and, if the number of intermediate hash signature values ​​is greater than or equal to a preset threshold, combining the intermediate hash signature value and the scenario description information of the intermediate hardware control function call scenario to obtain a target hash signature value, and using the target hash signature value as the first verification information.

[0064] In the embodiments of this application, the generation of the first verification information adopts a chained hash signature mechanism, which can maximize the integrity and immutability of hardware control information. Specifically, firstly, the starting control function is selected from the hardware control function list, and the starting control function is concatenated with the initial function description information. The initial hash signature value is then calculated using a hash algorithm. Subsequently, intermediate hardware control functions are processed sequentially. For each intermediate hardware control function processed, the current intermediate hash signature value (which is the initial hash signature value during the first processing) is concatenated with the code and intermediate function description information of the intermediate hardware control function, and the hash value is calculated again to obtain a new intermediate hash signature value, thereby forming a chained hash verification link.

[0065] When the number of intermediate hardware control functions processed reaches a preset threshold (e.g., 10), the latest intermediate hash signature value is concatenated with the call scenario description information corresponding to the group of hardware control functions (including the starting control function and multiple intermediate hardware control functions) to calculate the target hash signature value, which is the first verification information. If the total number of hardware control functions is large, multiple target hash signature values ​​can be generated in groups. Finally, all target hash signature values ​​are integrated into a complete first verification information and stored in the secure storage area of ​​the electronic device.

[0066] When registering new hardware control functions and their functional descriptions, the target hash signature value stored after the previous successful registration is merged with the updated hardware control functions and their functional descriptions before the updated target hash signature value is calculated, thus updating the first verification information.

[0067] According to the embodiments of this application, the chain hash signature mechanism determines that if any hardware control function or its corresponding function description information or scene description information of the first verification information is tampered with, the subsequent hash signature value will change. When comparing with the second verification information during the verification stage, the tampering behavior can be quickly identified, effectively preventing the security risks caused by malicious tampering of hardware control information and providing reliable security for the hardware operation of the AI ​​collaborative control system.

[0068] Figure 3 The process of generating first verification information according to an embodiment of this application is illustrated schematically.

[0069] like Figure 3 As shown, a hash calculation is performed on the initial control function 311 and the initial functional description information 312 of the initial control function to obtain the initial hash signature value 313.

[0070] Hash calculations are performed on the intermediate hardware control function 321, the intermediate function description information 322 of the intermediate control function, and the initial hash signature value 313 to obtain the intermediate hash signature value 323.

[0071] Hash calculation is performed on the intermediate hash signature value 320 and the scenario description information 331 of the intermediate hardware control function call scenario to obtain the target hash signature value 332, and the target hash signature value 332 is used as the first verification information 333.

[0072] Figure 4 A flowchart illustrating the deployment initial call interface according to an embodiment of this application is shown.

[0073] like Figure 4 As shown, the initial deployment call interface includes operations S401 to S409.

[0074] Operating S401, begin.

[0075] In operation S402, determine whether the basic input / output system provides updated hardware control functions and their functional descriptions. If the basic input / output system provides updated hardware control functions and their functional descriptions, execute operation S403; otherwise, execute operation S409.

[0076] In operation S403, determine whether hardware control information already exists in the control information file. If hardware control information already exists in the control information file, execute operation S404; otherwise, execute operation S405.

[0077] In operation S404, the current target hash signature value is read from memory.

[0078] In operation S405, the current target hash signature value, the updated hardware control function and its functional description information are combined to obtain the updated target hash signature value.

[0079] If hardware control information is not present in the control information file, the current target hash signature value is empty.

[0080] In operation S406, the updated target hash signature value is stored in memory.

[0081] When operating S407, update the hardware control functions and their function description information to the control information file.

[0082] When operating S408, hardware control information is obtained from the control information file, and the initial call interface is deployed based on the hardware control information.

[0083] Operation S409, end.

[0084] According to an embodiment of this application, based on the hardware control information of an electronic device, an initial calling interface for calling multiple hardware control functions is deployed in the operating environment of the electronic device, including: generating function interface information for calling based on the calling commands and calling parameters of each hardware control function; and deploying the initial calling interface in the operating environment based on the function interface information and function identifier.

[0085] In the embodiments of this application, the intelligent agent can obtain hardware control information from the control information file, including the calling commands and parameters of each hardware control function. Subsequently, the intelligent agent generates corresponding function interface information according to the syntax rules of these calling commands, the type and value range of the parameters. Each function interface information contains a unique corresponding function identifier, which is mapped one-to-one with the original identifier of the hardware control function to ensure accurate binding between the interface and the function.

[0086] After generating the function interface information, the agent deploys the initial call interface in the operating system environment of the electronic device based on the function interface information and function identifier, so that the initial call interface has the ability to call hardware control functions.

[0087] According to embodiments of this application, by generating precisely matched function interface information based on the calling commands and parameters of each hardware control function, and then combining this with a unique function identifier to complete the initial deployment of the calling interface, it is possible to ensure that each calling interface can accurately correspond to a specific hardware control function, avoiding the mismatch problem between interface and function. This refined deployment method lays a reliable foundation for subsequent interface verification and function calling, enabling the AI ​​collaborative control system to accurately transmit and execute control commands to hardware components, further improving the stability and accuracy of the entire control process.

[0088] According to an embodiment of this application, a first verification information stored in an electronic device is obtained using multiple initial call interfaces, and the first verification information is matched with second verification information. If the first verification information matches the second verification information, a target call interface that has passed verification is obtained. This includes: reading the first verification information from the memory of the electronic device using the initial call interface; obtaining the second verification information based on the hardware control function and functional description information of the initial call interface; and obtaining the target call interface if the first verification information matches the second verification information.

[0089] In the embodiments of this application, after the intelligent agent completes the initial call interface deployment, it triggers an interface verification process. First, the intelligent agent accesses the electronic device's memory through each initial call interface and reads the pre-stored first verification information generated using a chained hash signature mechanism, which includes a complete verification chain of hardware control functions, functional description information, and scene description information. In some embodiments, the memory can be non-volatile memory.

[0090] Subsequently, the agent extracts the corresponding hardware control function code and function description text from the hardware control information associated with the initial call interface. Simultaneously, it retrieves the call scenario description information corresponding to this group of functions. Following the same chained hash algorithm used to generate the first verification information, it sequentially calculates the initial hash signature value and the intermediate hash signature value, ultimately obtaining the second verification information. The calculation process strictly adheres to the grouping rules and preset thresholds used in the generation of the first verification information to ensure the consistency of the verification logic.

[0091] After calculating the second verification information, the agent compares the first verification information with the second verification information bit by bit. If the target hash signature values ​​of all groups match completely, it is determined that the hardware control information corresponding to the initial call interface has not been tampered with, the interface verification is passed, and the initial call interface is marked as the target call interface, which is then opened to subsequent hardware control instruction calls. If any set of hash signature values ​​does not match, a security warning can be triggered, the initial call interface can be disabled, and an exception notification can be generated.

[0092] According to the embodiments of this application, this verification process can effectively intercept tampered hardware control interfaces, prevent the execution of malicious or erroneous hardware control instructions, ensure that every hardware control function called by the AI ​​collaborative control system is authentic, reliable, and functionally accurate, and improve security.

[0093] Figure 5 A flowchart illustrating the determination of a target invocation interface according to an embodiment of this application is shown.

[0094] like Figure 5 As shown, determining the target call interface includes operations S501 to S507.

[0095] Start operating S501.

[0096] When operating S502, the initial call interface is deployed based on the hardware control information of the electronic device.

[0097] When operating S503, the first verification information is obtained from memory by calling the initial call interface.

[0098] During operation of S504, a hash calculation is performed on the hardware control function and functional description information of the initial call interface to obtain the second verification information.

[0099] In operation S505, it is determined whether the first verification information and the second verification information match. If the first verification information and the second verification information match, operation S506 is executed; otherwise, operation S507 is executed.

[0100] When operating S506, the verified initial call interface is determined as the target call interface.

[0101] Operation S507, end.

[0102] According to an embodiment of this application, in response to receiving a user input request for setting hardware components of an electronic device, a target control function is determined from multiple hardware control functions based on the semantic information of the setting request and the application environment information applicable to each of the multiple hardware control functions. This includes: obtaining target scene information corresponding to the setting request if the intent information and condition information of the setting request match the application environment information; and determining at least one hardware control function associated with the target scene information in the scene description information as the target control function.

[0103] In the embodiments of this application, semantic information may include intent information and conditional information. For example, the intent information parsed from "silent office mode" is "adjust fan noise and performance mode," and the conditional information is "silent requirements in office scenarios." The application environment information of each hardware control function is the scenario description information of the calling scenario, which can cover the feature definitions of various scenarios or application environments such as "silent office," "high-performance gaming," and "energy saving and low power consumption," including details such as the corresponding noise threshold, performance level, and heat dissipation strategy.

[0104] Subsequently, the agent performs multi-dimensional matching between the extracted intent and condition information and the scene description information, covering dimensions such as usage scenario, load requirements, and environmental limitations. When the condition information in the semantic information is detected to match features such as "low load operation, low noise, and nighttime" in the "quiet office" scene description, the scene can be identified as the target scene information.

[0105] After determining the target scenario information, the agent will call the pre-associated hardware control functions in that scenario, such as "lowering the processor base frequency", "fixing the fan speed to level 1", and "turning off the power supply to the discrete graphics card". These hardware control functions will be integrated to determine the target control function corresponding to this setting request, ensuring that the call can meet the user's need for silence while maintaining the basic performance required for document processing.

[0106] According to embodiments of this application, by decomposing user natural language requests into precise intent information and condition information, and then matching them with preset scene description information, a precise mapping from user needs to hardware control functions is achieved, improving the convenience and intelligence of user interaction with electronic devices.

[0107] Figure 6 The diagram illustrates the interactive architecture of a control method for implementing an electronic device according to an embodiment of this application.

[0108] like Figure 6 As shown, the architecture for implementing the control method of the electronic device includes a basic input / output system 61, a calling interface 62, a client interface 63, an intelligent agent 64, an artificial intelligence server 65, and a non-volatile random access memory 66.

[0109] When controlling electronic devices, the basic input / output system 61 collects and establishes hardware control information in the control information file during the power-on process. The intelligent agent 64 obtains the control information file from the operating system configuration interface file, uses the hardware control information in the control information file to establish the call interface 62, and submits a deployment request.

[0110] After receiving the deployment request, the calling interface 62 reads the first verification information stored in the non-volatile random access memory 66, calculates the hardware control function of the calling interface 62 and the functional description information of each hardware control function to generate the second verification information, and confirms whether the first verification information and the second verification information match. If they match, the verification is successfully sent back to the intelligent agent 64.

[0111] Users can submit configuration requests for hardware components of electronic devices using natural language in the interactive interface. The client interface 63 forwards the user's configuration requests and scene description information of each hardware control function call scenario to the artificial intelligence server 65.

[0112] The AI ​​server 65 understands the setting request and determines the target control function to be called based on the scene description information of the various hardware control function call scenarios. Then, it sends the target control function to be called and its parameters back to the client interface 63.

[0113] After receiving the target control function and parameters to be invoked, client interface 63 forwards the request to call interface 62 to invoke the target control function. Call interface 62 invokes the target control function and parameters through the interface and services provided by basic input / output system 61. Basic input / output system 61 returns the call result to call interface 62, which then returns the result to client interface 63, which in turn returns the result to artificial intelligence server 65.

[0114] The AI ​​server 65 determines how to send back a natural language description to the client interface 63 based on the returned result. After receiving the natural language description sent back by the AI ​​server 65, the client interface 63 displays it to the user through an interactive interface, allowing the user to understand whether the current hardware components and performance meet the user's request.

[0115] According to embodiments of this application, the control operation includes dynamically adjusting at least one of the following: heat dissipation strategy, performance mode, and fan noise of the electronic device.

[0116] Taking high-performance game scene adjustment as an example, when a user inputs the request "I want to start playing a large-scale 3D game," semantic parsing reveals the intent information as "improve device performance" and the condition information as "high-load scene of a large-scale 3D game." After matching the scene description information, the target scene is determined to be "high-performance game mode." The corresponding target control functions include "unlocking the processor turbo boost to 4.5GHz," "adjusting the fan speed to automatic full-load mode," "switching to full power consumption operation of the discrete graphics card," and "turning on the cooling pad for power supply." After executing the control, the processor and graphics card performance of the electronic device are adjusted to the highest level, the fan speed is dynamically adjusted according to the temperature, and the cooling pad assists in heat dissipation, ensuring stable game operation and meeting the performance requirements of large-scale 3D games.

[0117] According to embodiments of this application, by dynamically adjusting heat dissipation strategies, performance modes, and fan noise, the hardware state of electronic devices can be precisely adapted to user needs in different scenarios. This scenario-based dynamic adjustment mechanism breaks through the limitations of the fixed modes of traditional electronic devices. Through an AI collaborative control system, it transforms the user's natural language requirements into precise hardware control commands, achieving fine-grained scheduling of hardware resources and improving the user experience.

[0118] Based on the control method for the aforementioned electronic device, this application also provides a control system for the electronic device. The following will be combined with... Figure 7 The control system is described in detail.

[0119] Figure 7 A schematic block diagram of the control system of an electronic device according to an embodiment of the present application is shown.

[0120] like Figure 7As shown, the control system 700 of the electronic device in this embodiment includes a basic input / output system 710 and a control agent 720.

[0121] The basic input / output system 710 is configured to obtain hardware control information based on multiple hardware control functions of electronic devices, scenario description information of each hardware control function call scenario, and functional description information indicating the call method and call parameters of each hardware control function.

[0122] The control agent 720 is configured to execute the control method of the electronic device described above. The control agent can also be referred to as a control device.

[0123] Based on the control method for the aforementioned electronic device, this application also provides a control device for an electronic device. The following will be combined with... Figure 8 The device is described in detail.

[0124] Figure 8 A schematic block diagram of a control device for an electronic device according to an embodiment of this application is shown.

[0125] like Figure 8 As shown, the control device 800 of the electronic device in this embodiment includes a function determination module 810, an interface verification module 820, and a component control module 830.

[0126] The function determination module 810 is configured to, in response to receiving a user-inputted setting request for a hardware component of an electronic device, determine a target control function from the plurality of hardware control functions based on the semantic information of the setting request and the application environment information applicable to each of the plurality of hardware control functions. Each hardware control function is obtained by invoking an initial calling interface deployed in the electronic device, and the plurality of initial calling interfaces are obtained based on the hardware control information of the electronic device. In one embodiment, the interface deployment module 810 may be used to perform the operation S210 described above, which will not be repeated here.

[0127] The calling module 820 is used to call the target control function using the target calling interface among multiple initial calling interfaces to perform control operations on the hardware components of the electronic device. In one embodiment, the calling module 820 can be used to execute the operation S220 described above, which will not be repeated here.

[0128] Preferably, the target calling interface is obtained by: using multiple initial calling interfaces to obtain first verification information stored in the electronic device, and matching the first verification information with second verification information. If the first verification information matches the second verification information, a verified target calling interface is obtained. The second verification information is obtained from multiple hardware control functions and the functional description information of each hardware control function.

[0129] According to embodiments of this application, the above-described apparatus further includes an information generation submodule and an interface deployment submodule. The information generation submodule generates function interface information for invocation based on the invocation commands and parameters of each hardware control function, wherein each function interface information has a function identifier corresponding to each hardware control function. The interface deployment submodule deploys the initial invocation interface in the electronic device based on the function interface information and the function identifier.

[0130] According to an embodiment of this application, the calling module 820 includes a verification reading submodule, a verification sub-generation module, and a target determination submodule.

[0131] The verification reading submodule reads first verification information from the electronic device's memory using the initial call interface. This first verification information is a hash signature obtained based on multiple hardware control functions, functional description information, and scenario description information. The verification generation submodule generates second verification information based on the hardware control functions and functional description information from the initial call interface. The target determination submodule determines the target call interface if the first and second verification information match.

[0132] According to embodiments of this application, the control device 800 further includes an initial hash determination module, an intermediate hash determination module, and a target hash determination module. The initial hash determination module determines an initial hash signature value based on the starting control function and its initial functional description information among multiple hardware control functions. The intermediate hash determination module combines the initial hash signature value, intermediate hardware control functions, and their intermediate functional description information to obtain an intermediate hash signature value. The target hash determination module, when the number of intermediate hash signature values ​​is greater than or equal to a preset threshold, combines the intermediate hash signature values ​​and the scenario description information of the intermediate hardware control function call scenario to obtain a target hash signature value, and uses the target hash signature value as the first verification information.

[0133] According to an embodiment of this application, the component control module 820 includes a scene determination submodule and a function determination submodule. The scene determination submodule is used to obtain target scene information corresponding to the setting request when the intent information and condition information of the setting request match the application environment information. The function determination submodule is used to determine at least one hardware control function associated with the target scene information in the scene description information as the target control function.

[0134] According to an embodiment of this application, the control device 800 further includes a hardware information generation module. The hardware information generation module is used to encapsulate multiple hardware control functions and their functional descriptions into a control information file within the operating system configuration interface file using a basic input / output system, thereby obtaining hardware control information containing the complete hardware control interface definition of the electronic device. The control information file includes a signature field, a length field, multiple function information fields, and a system description information field. Each function information field stores the function name, calling command, calling parameters, and functional description text of the hardware control function.

[0135] According to embodiments of this application, the control operation includes dynamically adjusting at least one of the following: heat dissipation strategy, performance mode, and fan noise of the electronic device.

[0136] According to embodiments of this application, any plurality of modules among the interface deployment module 810, interface verification module 820, and component control module 830 can be merged into one module, or any one of these modules can be split into multiple modules. Alternatively, at least part of the functionality of one or more of these modules can be combined with at least part of the functionality of other modules and implemented in one module. According to embodiments of this application, at least one of the interface deployment module 810, interface verification module 820, and component control module 830 can be at least partially implemented as hardware circuitry, such as a field-programmable gate array (FPGA), a programmable logic array (PLA), a system-on-a-chip, a system-on-a-substrate, a system-on-package, an application-specific integrated circuit (ASIC), or any other reasonable means of integrating or packaging circuitry, or implemented in software, hardware, or firmware, or in any appropriate combination of any of these three implementation methods. Alternatively, at least one of the interface deployment module 810, interface verification module 820, and component control module 830 can be at least partially implemented as a computer program module, which, when run, can perform corresponding functions.

[0137] Figure 9 A block diagram of an electronic device suitable for implementing a control method for an electronic device according to an embodiment of this application is shown schematically.

[0138] like Figure 9As shown, an electronic device 900 according to an embodiment of this application includes a processor 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage portion 908 into a random access memory (RAM) 903. The processor 901 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor, and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 901 may also include onboard memory for caching purposes. The processor 901 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of this application.

[0139] RAM 903 stores various programs and data required for the operation of electronic device 900. Processor 901, ROM 902, and RAM 903 are interconnected via bus 904. Processor 901 executes various operations of the method flow according to embodiments of this application by executing programs in ROM 902 and / or RAM 903. It should be noted that the programs may also be stored in one or more memories other than ROM 902 and RAM 903. Processor 901 may also execute various operations of the method flow according to embodiments of this application by executing programs stored in said one or more memories.

[0140] According to embodiments of this application, the electronic device 900 may further include an input / output (I / O) interface 905, which is also connected to a bus 904. The electronic device 900 may also include one or more of the following components connected to the input / output (I / O) interface 905: an input section 906 including a keyboard, mouse, etc.; an output section 907 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the input / output (I / O) interface 905 as needed. A removable medium 911, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 910 as needed so that computer programs read from it can be installed into the storage section 908 as needed.

[0141] This application also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or it may exist independently and not assembled into the device / apparatus / system. The computer-readable storage medium carries one or more programs, which, when executed, implement the method according to the embodiments of this application.

[0142] According to embodiments of this application, the computer-readable storage medium can be a non-volatile computer-readable storage medium, such as including but not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this application, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, according to embodiments of this application, the computer-readable storage medium may include ROM 902 and / or RAM 903 and / or one or more memories other than ROM 902 and RAM 903 described above.

[0143] Embodiments of this application also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowchart. When the computer program product is run on a computer system, the program code is used to cause the computer system to implement the methods provided in the embodiments of this application.

[0144] When the computer program is executed by the processor 901, it performs the functions defined in the system / apparatus of this application embodiment. According to the embodiments of this application, the systems, apparatuses, modules, units, etc., described above can be implemented by computer program modules.

[0145] In one embodiment, the computer program may rely on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may also be transmitted and distributed in the form of signals over a network medium, and downloaded and installed via the communication section 909, and / or installed from a removable medium 911. The program code contained in the computer program can be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination thereof.

[0146] In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 909, and / or installed from the removable medium 911. When the computer program is executed by the processor 901, it performs the functions defined in the system of this application embodiment. According to the embodiments of this application, the systems, devices, apparatuses, modules, units, etc., described above can be implemented by computer program modules.

[0147] According to embodiments of this application, program code for executing the computer programs provided in the embodiments of this application can be written in any combination of one or more programming languages. Specifically, these computational programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, languages ​​such as Java, C++, Python, "C", or similar programming languages. The program code can be executed entirely on the user's computing device, partially on the user's device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0148] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0149] Those skilled in the art will understand that the features described in the various embodiments of this application can be combined and / or combined in various ways, even if such combinations or combinations are not explicitly described in this application. In particular, the features described in the various embodiments of this application can be combined and / or combined in various ways without departing from the spirit and teachings of this application. All such combinations and / or combinations fall within the scope of this application.

[0150] The embodiments of this application have been described above. However, these embodiments are merely illustrative and not intended to limit the scope of this application. Although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. Without departing from the scope of this application, those skilled in the art can make various substitutions and modifications, all of which should fall within the scope of this application.

Claims

1. A control method for an electronic device, characterized in that, The method includes: In response to receiving a user input request for setting hardware components of an electronic device, based on the semantic information of the setting request and the application environment information applicable to each of the multiple hardware control functions, a target control function is determined from the multiple hardware control functions. Each hardware control function is obtained by calling an initial calling interface deployed in the electronic device, and the multiple initial calling interfaces are obtained based on the hardware control information of the electronic device. The target control function is invoked using the target invocation interface among multiple initial invocation interfaces to perform control operations on the hardware components of the electronic device; The target API call interface is obtained in the following way: The first verification information stored in the electronic device is obtained by using the multiple initial call interfaces, and the first verification information is matched with the second verification information. If the first verification information matches the second verification information, the target call interface that has passed the verification is obtained. The second verification information is obtained by multiple hardware control functions and the functional description information of each hardware control function.

2. The method according to claim 1, characterized in that, The method further includes: Based on the calling commands and calling parameters of each hardware control function, function interface information for calling is generated, and each function interface information has a function identifier corresponding to each hardware control function; Based on the function interface information and the function identifier, the initial call interface is deployed in the electronic device.

3. The method according to claim 1, characterized in that, The method involves using the multiple initial call interfaces to obtain first verification information stored in the electronic device, matching the first verification information with second verification information, and obtaining a verified target call interface when the first verification information matches the second verification information. The first verification information is read from the memory of the electronic device using the initial call interface. The first verification information is a hash signature obtained based on multiple hardware control functions, the function description information, and the scenario description information. Based on the hardware control function and functional description information, the second verification information is obtained; If the first verification information is consistent with the second verification information, the target calling interface is obtained.

4. The method according to claim 1, characterized in that, The method further includes: For the starting control function and the initial functional description information of the starting control function among the multiple hardware control functions, determine the initial hash signature value; The intermediate hash signature value is obtained by combining the initial hash signature value, the intermediate hardware control function, and the intermediate function description information of the intermediate hardware control function. If the number of intermediate hash signature values ​​is greater than or equal to a preset threshold, the intermediate hash signature values ​​and the scenario description information of the intermediate hardware control function call scenario are combined to obtain the target hash signature value, and the target hash signature value is used as the first verification information.

5. The method according to claim 1, characterized in that, In response to receiving a user-input request for setting hardware components of the electronic device, based on the semantic information of the setting request and the application environment information applicable to each of the multiple hardware control functions, a target control function is determined from the multiple hardware control functions, including: If the intent and condition information of the setting request match the application environment information, the target scene information corresponding to the setting request is obtained. The target control function is determined by identifying at least one hardware control function associated with the target scene information in the scene description information.

6. The method according to claim 1, characterized in that, The method further includes: The basic input / output system is used to encapsulate multiple hardware control functions and their functional descriptions into the control information file of the operating system configuration interface file, thereby obtaining hardware control information containing the complete hardware control interface definition of the electronic device. The control information file includes a signature field, a length field, multiple function information fields, and a system description information field. Each function information field is used to store the function name, calling command, calling parameters, and function description text of the hardware control function.

7. The method according to claim 1, characterized in that, The control operation includes dynamically adjusting at least one of the following: the heat dissipation strategy, performance mode, and fan noise of the electronic device.

8. A control system for an electronic device, characterized in that, The system includes: The basic input / output system is configured to obtain hardware control information based on multiple hardware control functions of electronic devices, scenario description information of each hardware control function call scenario, and functional description information indicating the calling method and calling parameters of each hardware control function. A control agent is configured to perform a control method for an electronic device according to any one of claims 1 to 7.

9. An electronic device, comprising: One or more processors; Memory, used to store one or more computer programs. The characteristic feature is that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program or instructions stored thereon, characterized in that, When the computer program or instructions are executed by a processor, they implement the steps of the method according to any one of claims 1 to 7.