Equipment configuration method and device, equipment and storage medium
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- QINGDAO HAIER TECH
- Filing Date
- 2025-12-25
- Publication Date
- 2026-05-01
AI Technical Summary
[0003]然而,现有设备的属性配置通常采用静态、预设的方式,用户或运维人员需手动切换模式或参数,导致操作繁琐、误操作率高,且无法适应设备移动或环境突变
[0073] The device configuration method, apparatus, device, and storage medium provided in this application obtain environmental parameters of the target device's environment, determine the target device's functional support status based on these parameters, determine a set of user-available functional options for the target device based on the functional support status, and finally configure the user interface and/or device attributes corresponding to the target device according to the determined set of functional options. This method effectively reduces the risk of misoperation and device damage caused by environmental incompatibility, while significantly simplifying user operation through automated configuration. Furthermore, this method enables the same device to automatically present appropriate functional options based on its environment, solving the problem of needing to customize different hardware and software versions when deploying devices across regions, thereby significantly reducing R&D and maintenance costs and improving the device's versatility, intelligence, and user experience.
Smart Images

Figure CN121967202A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of smart home / intelligent home technology, specifically relating to a device configuration method, apparatus, device, and storage medium. Background Technology
[0002] With the rapid development of IoT technology, the configuration requirements for device functional attributes (such as the "cooling / heating mode" of air conditioners and the "operating parameters" of industrial equipment) in scenarios such as smart homes and industrial IoT devices are becoming increasingly complex and scenario-specific.
[0003] However, existing equipment configurations are typically static and preset, requiring users or maintenance personnel to manually switch modes or parameters. This leads to cumbersome operations, a high rate of error, and an inability to adapt to equipment relocation or sudden environmental changes. Furthermore, in cross-regional deployment scenarios (such as the same model of air conditioner covering tropical, temperate, and frigid markets), static configurations require customized hardware or software versions for different regions, significantly increasing development costs and operational complexity.
[0004] This configuration method severely restricts the intelligence level of the device and the user experience, and there is an urgent need for an intelligent device attribute configuration method to achieve adaptive optimization of device functions. Summary of the Invention
[0005] To address the aforementioned issues, this application provides a device configuration method, apparatus, device, and storage medium.
[0006] In a first aspect, this application provides a device configuration method, the method comprising:
[0007] Obtain environmental parameters of the environment in which the target device is located;
[0008] The functional support status of the target device is determined based on the environmental parameters, and the functional support status is used to indicate the availability of the target device's functions in the environment.
[0009] Based on the function support status, a set of function options corresponding to the target device is determined, and the set of function options is used to indicate the set of target function options that the user is allowed to use;
[0010] Configure the user interface and / or device attributes corresponding to the target device based on the set of function options.
[0011] In one possible implementation, the method further includes:
[0012] In response to a user's request to enable a restricted function outside the set of function options, an authorization request is sent to a user with preset permissions associated with the target device;
[0013] After receiving authorization confirmation from the user with the preset permissions, the restricted function is added to the set of function options that the user is allowed to use.
[0014] In one possible implementation, the method further includes:
[0015] Obtain the user's historical operation data;
[0016] Based on the historical operation data, the user's usage habits are determined. These usage habits are used to indicate the relationship between environmental parameters and specific function options, which are different from the target function option.
[0017] Based on the aforementioned usage habits, determine whether the environmental parameters of the target device's environment match the corresponding specific function option;
[0018] If so, the specific function option will be added to the set of function options.
[0019] In one possible implementation, configuring the user interface and / or device attributes corresponding to the target device includes:
[0020] Based on the full set of function options corresponding to the target device and the set of function options, the disabled function options corresponding to the target device are determined. The full set of function options includes the target function options and the disabled function options.
[0021] The user interface is controlled to dynamically render the corresponding interactive components to display the interactive components corresponding to the target function option and hide the interactive components corresponding to the disabled function option.
[0022] Based on the set of function options, determine the corresponding set of user control instructions;
[0023] The user control command set and the environmental parameters are associated to obtain associated content, which is then used as the device attribute corresponding to the target device.
[0024] In one possible implementation, after configuring the device attributes corresponding to the target device, the method further includes:
[0025] In response to a control command output by the user, if the environmental parameters have not changed, determine whether the control command belongs to the set of user control commands;
[0026] If so, then control the target device to execute the operation corresponding to the control command;
[0027] If not, return an error message to the user.
[0028] In one possible implementation, determining the set of function options corresponding to the target device based on the function support status includes:
[0029] Based on the function support status, determine the candidate function options that the target device can support in the environment;
[0030] Determine whether there is at least one set of mutually exclusive function options among the candidate function options, wherein the mutually exclusive function options are used to indicate function options that the target device cannot run simultaneously;
[0031] If so, then add a collaborative function option corresponding to each group of mutually exclusive function options. The collaborative function option is used to indicate the working mode of automatically selecting one of the function options in the mutually exclusive function options based on environmental parameters.
[0032] The candidate function options and the collaborative function options are used as the target function options to obtain the function option set.
[0033] In one possible implementation, the method further includes:
[0034] Real-time acquisition of environmental parameter change information, the change information including the rate of change and / or acceleration of change of at least one of the environmental parameters;
[0035] Based on the change information, determine whether there are any target parameter items that exceed the corresponding safety threshold;
[0036] If so, the status flag and function option set are updated sequentially according to the updated environmental parameters, and the user interface and / or device attributes are reconfigured based on the updated function option set.
[0037] Secondly, this application provides a device configuration apparatus, the apparatus comprising:
[0038] The acquisition module is used to acquire environmental parameters of the environment in which the target device is located.
[0039] A mapping module is used to determine the functional support status of a target device based on the environmental parameters, wherein the functional support status is used to indicate the functional availability of the target device in the environment.
[0040] The determining module is used to determine the set of function options corresponding to the target device based on the function support status, wherein the set of function options is used to indicate the set of target function options that the user is allowed to use;
[0041] The configuration module is used to configure the user interface and / or device attributes corresponding to the target device according to the set of function options.
[0042] In one possible implementation, the configuration module is also used for:
[0043] In response to a user's request to enable a restricted function outside the set of function options, an authorization request is sent to a user with preset permissions associated with the target device;
[0044] After receiving authorization confirmation from the user with the preset permissions, the restricted function is added to the set of function options that the user is allowed to use.
[0045] In one possible implementation, the determining module is also used for:
[0046] Obtain the user's historical operation data;
[0047] Based on the historical operation data, the user's usage habits are determined. These usage habits are used to indicate the relationship between environmental parameters and specific function options, which are different from the target function option.
[0048] Based on the aforementioned usage habits, determine whether the environmental parameters of the target device's environment match the corresponding specific function option;
[0049] If so, the specific function option will be added to the set of function options.
[0050] In one possible implementation, the configuration module is specifically used for:
[0051] Based on the full set of function options corresponding to the target device and the set of function options, the disabled function options corresponding to the target device are determined. The full set of function options includes the target function options and the disabled function options.
[0052] The user interface is controlled to dynamically render the corresponding interactive components to display the interactive components corresponding to the target function option and hide the interactive components corresponding to the disabled function option.
[0053] Based on the set of function options, determine the corresponding set of user control instructions;
[0054] The user control command set and the environmental parameters are associated to obtain associated content, which is then used as the device attribute corresponding to the target device.
[0055] In one possible implementation, the configuration module is also used for:
[0056] In response to a control command output by the user, if the environmental parameters have not changed, determine whether the control command belongs to the set of user control commands;
[0057] If so, then control the target device to execute the operation corresponding to the control command;
[0058] If not, return an error message to the user.
[0059] In one possible implementation, the mapping module is specifically used for:
[0060] Based on the function support status, determine the candidate function options that the target device can support in the environment;
[0061] Determine whether there is at least one set of mutually exclusive function options among the candidate function options, wherein the mutually exclusive function options are used to indicate function options that the target device cannot run simultaneously;
[0062] If so, then add a collaborative function option corresponding to each group of mutually exclusive function options. The collaborative function option is used to indicate the working mode of automatically selecting one of the function options in the mutually exclusive function options based on environmental parameters.
[0063] The candidate function options and the collaborative function options are used as the target function options to obtain the function option set.
[0064] In one possible implementation, the configuration module is also used for:
[0065] Real-time acquisition of environmental parameter change information, the change information including the rate of change and / or acceleration of change of at least one of the environmental parameters;
[0066] Based on the change information, determine whether there are any target parameter items that exceed the corresponding safety threshold;
[0067] If so, the status flag and function option set are updated sequentially according to the updated environmental parameters, and the user interface and / or device attributes are reconfigured based on the updated function option set.
[0068] Thirdly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of the first aspects.
[0069] Fourthly, this application provides an electronic device, comprising: at least one processor and a memory; wherein,
[0070] The memory stores computer-executed instructions;
[0071] The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the method as described in any of the first aspects.
[0072] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, can implement the steps of the method as described in any of the first aspects.
[0073] The device configuration method, apparatus, device, and storage medium provided in this application obtain environmental parameters of the target device's environment, determine the target device's functional support status based on these parameters, determine a set of user-available functional options for the target device based on the functional support status, and finally configure the user interface and / or device attributes corresponding to the target device according to the determined set of functional options. This method effectively reduces the risk of misoperation and device damage caused by environmental incompatibility, while significantly simplifying user operation through automated configuration. Furthermore, this method enables the same device to automatically present appropriate functional options based on its environment, solving the problem of needing to customize different hardware and software versions when deploying devices across regions, thereby significantly reducing R&D and maintenance costs and improving the device's versatility, intelligence, and user experience. Attached Figure Description
[0074] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0075] Figure 1 The flow of the device configuration method provided in the embodiments of this application Figure 1 ;
[0076] Figure 2 The flow of the device configuration method provided in the embodiments of this application Figure 2 ;
[0077] Figure 3 A device configuration diagram provided for an embodiment of the present invention;
[0078] Figure 4 This is a hardware schematic diagram of an electronic device provided in an embodiment of the present invention.
[0079] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concepts of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0080] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0081] The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented, for example, in orders other than those illustrated or described herein.
[0082] In this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0083] In existing technologies, all supported functional attributes (such as "cooling," "heating," and "automatic") are typically pre-defined on the device at the factory. Users or installers must manually select the appropriate configuration (such as "region" or "mode") in the device or its application. This approach relies on manual operation, making the configuration process cumbersome and prone to errors. Furthermore, once set, the attribute values are fixed and cannot respond to environmental changes. For example, if an air conditioner is moved from the south to the north, the user still needs to manually switch the mode; otherwise, the interface may display invalid options (such as "cooling" in cold regions), resulting in a disjointed user experience.
[0084] Furthermore, some devices achieve regional adaptation of attribute value ranges through preset rules (such as "only heating is supported in the north"), but these rules need to be hardcoded before device deployment and cannot be dynamically adjusted. For example, if an air conditioner only supports "cooling" and "heating" modes, its rule might be "if the region = North, then only display heating." However, if the actual usage environment of the device changes drastically (such as a temporary high temperature in the north), manual intervention is still required, and automatic adaptation cannot be achieved.
[0085] The above methods all have significant drawbacks: First, they lack dynamism and cannot respond to changes in the environment or geographical location in real time; second, they rely on manual configuration, which increases operation and maintenance costs; and third, they cannot cover complex scenarios (such as joint constraints of multiple environmental parameters), resulting in limited device functionality or security risks.
[0086] To address the problems in the prior art, this application provides a device configuration method, which involves obtaining environmental parameters of the environment in which the target device is located, mapping these environmental parameters to at least one Boolean status identifier, which indicates the device's support status for a specific function in the current environment; determining a set of functional options available to the user based on one or more of the aforementioned status identifiers; and finally configuring the user interface and / or device attributes corresponding to the target device according to the determined set of functional options.
[0087] This method effectively reduces the risk of misoperation and equipment damage caused by environmental incompatibility, while significantly simplifying user operation through automated configuration. In addition, this method enables the same device to automatically present appropriate functional options according to its environment, solving the problem of needing to customize different software and hardware versions when deploying devices across regions, thereby greatly reducing R&D and maintenance costs and improving the versatility, intelligence level and user experience of the devices.
[0088] According to one aspect of the embodiments of this application, a device configuration method is provided. This device attribute configuration method is widely used in whole-house intelligent digital control application scenarios such as smart homes, smart home ecosystems, and smart residential ecosystems. The target device in the method of this application is not limited to smart air conditioners, smart range hoods, smart refrigerators, smart ovens, smart stoves, smart washing machines, smart water heaters, smart washing equipment, smart dishwashers, smart projectors, smart TVs, smart clothes racks, smart curtains, smart audio-visual equipment, smart sockets, smart speakers, smart speakers, smart fresh air systems, smart kitchen and bathroom equipment, smart bathroom equipment, smart robot vacuum cleaners, smart window cleaning robots, smart mopping robots, smart air purifiers, smart steam ovens, smart microwave ovens, smart water heaters, smart air purifiers, smart water dispensers, smart door locks, etc.
[0089] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of related data must comply with relevant laws, regulations and standards, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0090] The technical solutions of this application and how they solve the aforementioned technical problems are described in detail below with specific embodiments. These specific embodiments may exist independently or in combination with each other. Identical or similar concepts or processes may not be repeated in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0091] This embodiment provides a device configuration method. Figure 1 The flow of the device configuration method provided in the embodiments of this application Figure 1 The method includes:
[0092] S101. Obtain the environmental parameters of the environment in which the target device is located.
[0093] In this step, environmental parameters refer to the physical or logical quantities of the external environment in which the device is located, including but not limited to geographical location, ambient temperature, ambient humidity, altitude, ambient light intensity, etc.
[0094] For example, physical analog signals can be continuously or on-demand collected by integrating sensors (such as temperature sensors, humidity sensors, and positioning modules) into the target device, and then converted into digital signals using an analog-to-digital converter. Alternatively, the target device can send a query request to a remote server. The server could be a weather data service provider, a geographic information service system, or an environmental monitoring platform. For instance, the device sends a rough location, resolved from its IP address (Internet Protocol Address), to the cloud, which queries a climate zoning database for that region and returns the logical environmental parameter "tropical climate."
[0095] It's important to note that the environmental parameters acquired are closely related to the core functions of the target device. What needs to be perceived are precisely those environmental factors that decisively impact the device's operating efficiency, safety, or user experience. Take an air conditioner as an example: its core function is to regulate temperature and humidity. Therefore, relevant environmental parameters include ambient temperature, relative humidity, and geographical location (used to infer climate type). These parameters directly determine the authenticity of status indicators such as "cooling support" or "heating support." On the other hand, a smart washing machine prioritizes washing performance and garment protection. Therefore, the environmental parameters it cares about are quite different, potentially including water hardness (high-hardness water requires initiating a soft water wash program and adjusting detergent dosage) and ambient humidity (in high-humidity areas, an anti-mold ventilation mode is automatically activated). These parameters will be mapped to status indicators such as "soft water wash support" or "deep anti-mold support," thereby dynamically adjusting its available washing programs.
[0096] It should be noted that the environmental parameter acquisition process can be initiated immediately to address new situations, such as during the initial self-test after the target device completes its cold start, when a sensor detects a sudden change in a parameter (e.g., the temperature rises by more than 5°C within 1 minute), or when the target device determines that it has entered a new geofenced area through location. Alternatively, environmental parameter acquisition can be performed automatically at a fixed time interval (e.g., every 5 minutes), which is suitable for scenarios that require continuous environmental monitoring and need to maintain state awareness even without significant changes, such as data recording or trend analysis. In addition, environmental parameter acquisition can also be triggered when the user actively opens the target device's configuration interface or manually clicks relevant control buttons, ensuring that the options presented to the user are based on the latest environmental status, thereby improving the accuracy of the interaction.
[0097] S102. Determine the functional support status of the target device based on environmental parameters. The functional support status is used to indicate the functional availability of the target device in the environment.
[0098] In this step, for example, a dynamic decision-making model can be formed by training or online learning using machine learning algorithms (such as classification models, decision trees, etc.) based on environmental parameters, and even relevant equipment operating status, user operation feedback, knowledge base, etc. When new environmental parameters are input, the model will combine historical patterns with the current situation to reason, predict and output the optimal or safest support state for each function in the current environment.
[0099] For example, the function support status is used to indicate at least one Boolean status identifier, and the function support status of the target device is determined based on environmental parameters, including:
[0100] According to a preset mapping rule, environmental parameters are mapped to at least one Boolean status identifier; wherein, the mapping rule is used to indicate the correspondence between at least one environmental parameter and at least one Boolean status identifier.
[0101] A Boolean status flag is the output of the mapping process; it is a logical variable that takes the value of true or false. It functions like a function enable / disable switch, such as enabling cooling, enabling high-speed operation, or enabling outdoor mode.
[0102] For example, an acquired environmental parameter can be compared with one or more preset, static thresholds, and a status flag can be directly set based on the comparison result. For example, for air conditioning, the rule could be defined as: if the ambient temperature is >28℃, then cooling permission = True; otherwise, False. Alternatively, multiple environmental parameters can be considered simultaneously and comprehensively evaluated using a weighted algorithm or fuzzy logic to ultimately arrive at a status flag. For example, the rule might be defined as: Outdoor mode support = (ambient light intensity >2000 Lux) AND (ambient humidity <80%) AND (wind speed <5).
[0103] This example effectively decouples the environmental perception logic from the core control logic of the device by introducing explicit and configurable mapping rules, giving the system great flexibility and maintainability.
[0104] S103. Based on the function support status, determine the set of function options corresponding to the target device. The set of function options is used to indicate the set of target function options that the user is allowed to use.
[0105] In this step, the set of function options refers to the list of device functions that are allowed to be activated in the current environment. It defines the safe and effective scope of operation for users or upper-level systems; for example, for an air conditioner, it may include cooling and ventilation function options.
[0106] For example, a truth table or mapping dictionary can be maintained in advance in memory or storage. The keys of this table are all possible combinations of state identifiers (e.g., cooling permission = True, heating permission = False), and the values are the corresponding set of function options (e.g., cooling). At runtime, the result can be obtained instantly by performing a single table lookup operation using all current state identifier combinations as keys.
[0107] Alternatively, a lightweight, configurable rule interpreter or rule engine can be introduced. Rules can be predefined and stored independently in a high-level configuration language such as JSON, XML, or DSL. For example, a rule might be: IF Cooling Permission AND Heating Permission THEN Available Mode SET (Cooling, Heating, Auto). At runtime, the engine loads these rules, injects the current state identifier as facts, and infers the set of feature options.
[0108] S104. Configure the user interface and / or device attributes corresponding to the target device according to the set of function options.
[0109] In this step, user interface configuration refers to dynamically changing the visual presentation and interaction logic of the operating interface at the level of human-device interaction to guide users to perform correct operations. Device attribute configuration refers to setting and restricting the actual operating parameters or modes of the target device at the device system level.
[0110] For example, during the configuration of the user interface, the relevant UI components (UserInterface Module) can be re-rendered immediately. For items within the set of function options, they can be set to a clickable and highlighted normal state; for items outside the set, dynamic prompts can be attached to them. When the user hovers over or long-presses the corresponding disabled component, a prompt message will pop up (e.g., "This function is not supported in the current region"). This effectively guides the user and prevents accidental operation while avoiding drastic changes to the interface layout.
[0111] During device attribute configuration, a persistent configuration management service can monitor changes to the set of feature options and use this as the sole verification list. Any request attempting to set device attributes (whether from the UI, cloud commands, or scheduled tasks) must pass this service's verification; invalid values will be rejected. Furthermore, the service can proactively determine the target device's current operating mode. If the current mode is found to be no longer in the new set of feature options (e.g., a sudden environmental change causes the current mode to become invalid), the target device will be immediately and forcibly switched to a predefined security mode without user confirmation.
[0112] It's important to note that user interface configuration is essentially a soft boot, preventing accidental operations by hiding or disabling options. However, this defense can be bypassed. For example, the target device might receive instructions from third-party applications or automated scripts that bypass the standard user interface. Directly configuring device properties means forcibly locking the acceptable value range at the device's firmware or driver level. Regardless of the source of the instruction, if the attempted property value is outside the permitted range, it will be rejected.
[0113] Therefore, the two methods of configuring the user interface corresponding to the target device and configuring the device attributes can be chosen arbitrarily according to the actual scenario, or both methods can be executed simultaneously, without any restrictions.
[0114] For example, configuring the user interface corresponding to the target device includes:
[0115] Based on the full set of function options and the set of function options corresponding to the target device, determine the disabled function options corresponding to the target device. The full set of function options includes the target function options and the disabled function options.
[0116] Control the dynamic rendering of the corresponding interactive components in the user interface to display the interactive components corresponding to the target function option and hide the interactive components corresponding to the disabled function option.
[0117] In this example, the full set of feature options refers to the complete set of all feature options that the target device can be configured with in terms of design or hardware. Disabled feature options refer to the set of feature options that are deemed unavailable according to rules in the current specific environment. This is obtained by calculating the difference between the full set of feature options and the current set of feature options (i.e., the set of available options).
[0118] For example, a full list of function options can be obtained from the preset information of the target device, and then compared with the set of function options (i.e., available options) dynamically calculated in step S103. The list of disabled function options can be quickly obtained through set operations. Subsequently, interactive controls (such as buttons and menu items) are created or maintained for each option in the set of function options. At the same time, for each item in the list of disabled function options, the corresponding control is hidden or removed from the DOM (Document Object Model).
[0119] This example provides users with a clear, concise, and highly context-sensitive operating environment. Users do not need to painstakingly search for currently available functions among numerous invalid options, which significantly reduces the cognitive load and operation time of users and improves the user experience.
[0120] For example, configuring the device attributes corresponding to the target device includes:
[0121] Based on the set of function options, determine the corresponding set of user control commands;
[0122] The user control command set and environmental parameters are associated to obtain the associated content, which is then used as the device attribute corresponding to the target device.
[0123] In this example, the user control instruction set refers to a finite set of specific operation instructions that the target device can recognize and execute. For example, the corresponding underlying device control parameters can be pre-configured for each function option to form a user control instruction set. After determining the set of currently available function options based on environmental parameters, the control instructions corresponding to these options are bound to the specific environmental parameter values that trigger the current decision (such as temperature > 30℃). The environment-instruction association is then saved as a new device attribute in the device configuration file or memory, enabling the target device to automatically execute the corresponding control instructions directly based on this association in subsequent operation without having to repeatedly perform environmental judgment and decision calculation.
[0124] This example reduces computational overhead. Under unchanged environmental conditions, the target device does not need to repeat complex decision-making processes. It can simply execute the associated control commands directly, which significantly improves response speed and processing efficiency.
[0125] For example, after configuring the device attributes corresponding to the target device, it also includes:
[0126] In response to user-output control commands, and assuming no change in environmental parameters, determine whether the control command belongs to the user's control command set.
[0127] If so, then control the target device to execute the operation corresponding to the control command;
[0128] If not, return an error message to the user.
[0129] In this example, upon receiving any user control command, the system first checks whether environmental parameters have remained stable since the last decision. Assuming the environment has not changed, the command is matched against a pre-defined set of user control commands. If the command exists in the set, it is allowed to execute; otherwise, it is immediately intercepted, and an explanatory error message is generated and pushed (e.g., "This function is unavailable at the current ambient temperature"). This example ensures the stable operation of the target device in complex usage scenarios, preventing device damage or performance abnormalities. Furthermore, the clear error message effectively guides users to understand the device's behavior, enhancing product credibility and user experience.
[0130] For example, the method also includes:
[0131] Real-time acquisition of environmental parameter change information, including the rate of change and / or acceleration of change of at least one parameter in the environmental parameters;
[0132] Based on the change information, determine whether there are any target parameter items that exceed the corresponding safety threshold;
[0133] If so, the status flag and function option set are updated sequentially according to the updated environmental parameters, and the user interface and / or device attributes are reconfigured based on the updated function option set.
[0134] In this example, the rate of change and acceleration of change are quantitative descriptions of the dynamic characteristics of environmental parameters. The rate of change refers to the amount of change of a parameter per unit time (e.g., the temperature rises by 5°C per minute), reflecting the speed of the change trend; the acceleration of change refers to the rate of change itself (e.g., the rate of temperature increase accelerates from 1°C per minute to 5°C per minute), reflecting the severity of the change trend. The safety threshold is a preset critical value used to determine whether the severity of environmental change constitutes a sudden change; it can be a threshold based on its dynamic change characteristics (e.g., rate of change > 3°C / minute).
[0135] For example, by continuously monitoring the flow of environmental parameters, the rate of change and acceleration of change of each parameter can be calculated in real time and compared with a preset safety threshold. Once the change characteristics of any parameter are found to exceed the threshold, it is immediately marked as a target parameter item and a full-link update mechanism is triggered: first, the latest environmental parameter snapshot is obtained, all status identifiers are recalculated, and then a new set of functional options is derived. Finally, based on this, the user interface display and device attribute configuration are updated synchronously, thereby achieving a rapid and proactive response to environmental changes.
[0136] For example, the method also includes:
[0137] In response to a user's request to enable a restricted function outside the set of function options, an authorization request is sent to the user with preset permissions associated with the target device;
[0138] After receiving authorization confirmation from a user with preset permissions, the restricted function will be added to the set of function options that the user is allowed to use.
[0139] This example avoids the user experience problem that may result from completely locking down the function by delegating the decision-making power to a pre-defined high-privilege user (such as a family administrator), and also prevents the security risks or device misuse that may be caused by the arbitrary activation of the function, which is conducive to the safe, compliant and orderly use of the device.
[0140] For example, the method also includes:
[0141] Obtain the user's historical operation data;
[0142] Based on historical operation data, user habits are determined. These habits are used to indicate the relationship between environmental parameters and specific function options, which differ from the target function options.
[0143] Based on usage habits, determine whether the environmental parameters of the target device's environment match the corresponding specific function options;
[0144] If so, the specific function option will be added to the function option set.
[0145] In this example, the system continuously records and analyzes users' historical operation records under different environmental parameters in the background. Using data mining or pattern recognition techniques, it summarizes unique user-specific functional usage patterns that may deviate from conventional configuration logic, forming a personalized mapping rule base of environmental parameters and specific functional options. When the device runs again and detects the current environmental parameters, it matches these real-time parameters against the rule base. If a matching rule is found from the user's history, the corresponding functional option is automatically added to the current set of available options, thus enabling the configuration to proactively adapt to the user's implicit habits.
[0146] This example not only improves the ease of use of the device and reduces the burden on users who need to manually adjust or apply for authorization each time, but more importantly, it can capture and adapt to those "unconventional" but actually reflect users' real preferences (such as the preference for high water temperature in summer). Thus, while ensuring the basic applicability and safety of the device, it significantly improves the user experience satisfaction and personalization level.
[0147] The device configuration method provided in this application involves obtaining environmental parameters of the target device's environment, determining the target device's functional support status based on these parameters, determining a set of user-available functional options for the target device based on the functional support status, and finally configuring the user interface and / or device attributes corresponding to the target device based on the determined set of functional options. This method effectively reduces the risk of misoperation and device damage caused by environmental incompatibility, while significantly simplifying user operations through automated configuration. Furthermore, this method enables the same device to automatically present appropriate functional options based on its environment, solving the problem of needing to customize different software and hardware versions when deploying devices across regions, thereby significantly reducing R&D and maintenance costs and improving the device's versatility, intelligence level, and user experience.
[0148] This embodiment provides a device configuration method. Figure 2 The flow of the device configuration method provided in the embodiments of this application Figure 2 .like Figure 2 As shown, in this embodiment... Figure 1 Based on the embodiments, the process of determining the set of functional options corresponding to the target device is described in detail. This method includes:
[0149] S201. Obtain the environmental parameters of the environment in which the target device is located, and map the environmental parameters to at least one Boolean status identifier. The status identifier is used to indicate the functional support status of the target device in the environment.
[0150] This step is the same as S101 and S102, and will not be repeated here.
[0151] S202. Based on at least one Boolean status identifier, determine the candidate function options that the target device can support in the environment.
[0152] In this step, candidate function options refer to the set of function options initially filtered based on Boolean status indicators. It includes all available function options. For example, based on "cooling support = True" and "heating support = True", two candidate function options, cooling and heating, are initially obtained.
[0153] For example, a simple mapping table of "status identifier - function option" can be pre-defined. Each status identifier directly corresponds to one or more basic function options. Iterate through all status identifiers that are True, and merge their corresponding basic function options to form an initial candidate set.
[0154] S203. Determine whether there is at least one set of mutually exclusive function options among the candidate function options. Mutually exclusive function options are used to indicate function options that the target device cannot operate simultaneously.
[0155] In this step, mutually exclusive function options refer to two or more function options that cannot operate simultaneously due to differences in physical principles, hardware resources, or safety regulations. For example, for the same air conditioning unit, cooling and heating are typical mutually exclusive options because their physical operating principles are opposite.
[0156] For example, a predefined mutual exclusion rule table can be maintained, explicitly listing all mutually exclusive function option groups, such as (cooling, heating), (high speed, silent). The current set of candidate function options is compared with this table to check if it contains any complete mutual exclusion group. Alternatively, each function option can be labeled with its required resources (e.g., occupying the compressor, occupying the heating element, occupying the high-speed motor). The resource requirements declared by all options in the candidate function options are checked, and if two options are found to request the same exclusive resource, they are determined to be mutually exclusive options.
[0157] S204. If not, then the candidate function options are taken as the target function options to obtain the function option set.
[0158] S205. If so, add a cooperative function option corresponding to each group of mutually exclusive function options. The cooperative function option is used to indicate the working mode of automatically selecting one of the function options from the mutually exclusive function options based on environmental parameters.
[0159] S206. Take the candidate function options and collaborative function options as the target function options to obtain the function option set.
[0160] S207. Configure the user interface and / or device attributes corresponding to the target device according to the set of function options.
[0161] It's important to note that the collaborative function option is essentially a meta-pattern or decision pattern. When selected, it grants the target device or the server controlling it permission to automatically choose the most suitable option from a set of mutually exclusive base options based on real-time environmental parameters, when the user selects this collaborative function option. For example, the rule base can explicitly record: mutual exclusion group (cooling, heating) corresponds to automatic temperature control in the collaborative mode. When the existence of this mutual exclusion group is detected, the automatic temperature control option is added.
[0162] The target feature options are the complete and available set of feature options that are ultimately presented to the user or used for device configuration. It includes both all the basic options that can be operated independently and intelligent collaboration options.
[0163] The device configuration method provided in this embodiment transforms the right to choose into the right to make intelligent decisions by introducing collaborative options. This provides users with a complete and conflict-free configuration scheme that can be autonomously optimized in complex environments, greatly improving the intelligence level, decision-making efficiency and reliability of device operation.
[0164] This embodiment also provides a device configuration apparatus. Figure 3 A device configuration diagram is provided for an embodiment of the present invention, such as... Figure 3 As shown, the device configuration apparatus 30 includes:
[0165] The acquisition module 301 is used to acquire environmental parameters of the environment in which the target device is located.
[0166] The mapping module 302 is used to determine the functional support status of the target device based on environmental parameters. The functional support status is used to indicate the functional availability of the target device in the environment.
[0167] The determining module 303 is used to determine the set of function options corresponding to the target device based on the function support status. The set of function options is used to indicate the set of target function options that the user is allowed to use.
[0168] Configuration module 304 is used to configure the user interface and / or device attributes corresponding to the target device according to the set of function options.
[0169] In one possible implementation, configuration module 304 is also used for:
[0170] In response to a user's request to enable a restricted function outside the set of function options, an authorization request is sent to the user with preset permissions associated with the target device;
[0171] After receiving authorization confirmation from a user with preset permissions, the restricted function will be added to the set of function options that the user is allowed to use.
[0172] In one possible implementation, the determining module 303 is further configured to:
[0173] Obtain the user's historical operation data;
[0174] Based on historical operation data, user habits are determined. These habits are used to indicate the relationship between environmental parameters and specific function options, which differ from the target function options.
[0175] Based on usage habits, determine whether the environmental parameters of the target device's environment match the corresponding specific function options;
[0176] If so, the specific function option will be added to the function option set.
[0177] In one possible implementation, configuration module 304 is specifically used for:
[0178] Based on the full set of function options and the set of function options corresponding to the target device, determine the disabled function options corresponding to the target device. The full set of function options includes the target function options and the disabled function options.
[0179] Control the dynamic rendering of the corresponding interactive components in the user interface to display the interactive components corresponding to the target function option and hide the interactive components corresponding to the disabled function option.
[0180] Based on the set of function options, determine the corresponding set of user control commands;
[0181] The user control command set and environmental parameters are associated to obtain the associated content, which is then used as the device attribute corresponding to the target device.
[0182] In one possible implementation, configuration module 304 is also used for:
[0183] In response to user-output control commands, and assuming no change in environmental parameters, determine whether the control command belongs to the user's control command set.
[0184] If so, then control the target device to execute the operation corresponding to the control command;
[0185] If not, return an error message to the user.
[0186] In one possible implementation, the mapping module 302 is specifically used for:
[0187] Based on the functional support status, determine the candidate functional options that the target device can support in the environment;
[0188] Determine whether there is at least one set of mutually exclusive function options among the candidate function options. Mutually exclusive function options are used to indicate function options that the target device cannot run simultaneously.
[0189] If so, add a cooperating function option corresponding to each group of mutually exclusive function options. The cooperating function option is used to indicate the working mode of automatically selecting one of the function options in the mutually exclusive function options based on environmental parameters.
[0190] The candidate function options and collaborative function options are used as the target function options to obtain the function option set.
[0191] In one possible implementation, configuration module 304 is also used for:
[0192] Real-time acquisition of environmental parameter change information, including the rate of change and / or acceleration of change of at least one parameter in the environmental parameters;
[0193] Based on the change information, determine whether there are any target parameter items that exceed the corresponding safety threshold;
[0194] If so, the status flag and function option set are updated sequentially according to the updated environmental parameters, and the user interface and / or device attributes are reconfigured based on the updated function option set.
[0195] This embodiment provides a device configuration apparatus that can execute the device configuration method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0196] Figure 4 This is a hardware schematic diagram of an electronic device provided in an embodiment of the present invention. For example... Figure 4 As shown, the electronic device 40 provided in this embodiment includes at least one processor 401 and a memory 402. The device 40 also includes a communication component 403. The processor 401, memory 402, and communication component 403 are connected via a bus 404.
[0197] In the specific implementation process, at least one processor 401 executes computer execution instructions stored in memory 402, causing at least one processor 401 to perform the above method.
[0198] The specific implementation process of processor 401 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.
[0199] In the above Figure 4 In the illustrated embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0200] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0201] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0202] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the method described above.
[0203] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0204] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.
[0205] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0206] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0207] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0208] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0209] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0210] The technical solutions of this application have been described above with reference to the preferred embodiments shown in the accompanying drawings. However, it is readily understood by those skilled in the art that the scope of protection of this application is obviously not limited to these specific embodiments. The above embodiments are only used to illustrate the technical solutions of this application and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. These modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A method for configuring a device, characterized in that, The method includes: Obtain environmental parameters of the environment in which the target device is located; The functional support status of the target device is determined based on the environmental parameters, and the functional support status is used to indicate the availability of the target device's functions in the environment. Based on the function support status, a set of function options corresponding to the target device is determined, and the set of function options is used to indicate the set of target function options that the user is allowed to use; Configure the user interface and / or device attributes corresponding to the target device based on the set of function options.
2. The method according to claim 1, characterized in that, The method further includes: In response to a user's request to enable a restricted function outside the set of function options, an authorization request is sent to a user with preset permissions associated with the target device; After receiving authorization confirmation from the user with the preset permissions, the restricted function is added to the set of function options that the user is allowed to use.
3. The method according to claim 1, characterized in that, The method further includes: Obtain the user's historical operation data; Based on the historical operation data, the user's usage habits are determined. These usage habits are used to indicate the relationship between environmental parameters and specific function options, which are different from the target function option. Based on the aforementioned usage habits, determine whether the environmental parameters of the target device's environment match the corresponding specific function option; If so, the specific function option will be added to the function option set.
4. The method according to claim 1, characterized in that, Configuring the user interface and / or device attributes corresponding to the target device includes: Based on the full set of function options corresponding to the target device and the set of function options, the disabled function options corresponding to the target device are determined. The full set of function options includes the target function options and the disabled function options. The user interface is dynamically rendered to display the interactive components corresponding to the target function option and hide the interactive components corresponding to the disabled function option. Based on the set of function options, determine the corresponding set of user control instructions; The user control command set and the environmental parameters are associated to obtain associated content, which is then used as the device attribute corresponding to the target device.
5. The method according to claim 4, characterized in that, After configuring the device attributes corresponding to the target device, the process also includes: In response to a control command output by the user, if the environmental parameters have not changed, determine whether the control command belongs to the set of user control commands; If so, then control the target device to execute the operation corresponding to the control command; If not, return an error message to the user.
6. The method according to claim 1, characterized in that, The step of determining the set of function options corresponding to the target device based on the function support status includes: Based on the function support status, determine the candidate function options that the target device can support in the environment; Determine whether there is at least one set of mutually exclusive function options among the candidate function options, wherein the mutually exclusive function options are used to indicate function options that the target device cannot run simultaneously; If so, then add a collaborative function option corresponding to each group of mutually exclusive function options. The collaborative function option is used to indicate the working mode of automatically selecting one of the function options in the mutually exclusive function options based on environmental parameters. The candidate function options and the collaborative function options are used as the target function options to obtain the function option set.
7. The method according to claim 1, characterized in that, The method further includes: Real-time acquisition of environmental parameter change information, the change information including the rate of change and / or acceleration of change of at least one of the environmental parameters; Based on the change information, determine whether there are any target parameter items that exceed the corresponding safety threshold; If so, the status flag and function option set are updated sequentially according to the updated environmental parameters, and the user interface and / or device attributes are reconfigured based on the updated function option set.
8. A device configuration apparatus, characterized in that, The device includes: The acquisition module is used to acquire environmental parameters of the environment in which the target device is located. A mapping module is used to determine the functional support status of a target device based on the environmental parameters, wherein the functional support status is used to indicate the functional availability of the target device in the environment. The determining module is used to determine the set of function options corresponding to the target device based on the function support status, wherein the set of function options is used to indicate the set of target function options that the user is allowed to use; The configuration module is used to configure the user interface and / or device attributes corresponding to the target device according to the set of function options.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-7.
10. An electronic device, characterized in that, include: At least one processor and memory; wherein, The memory stores computer-executed instructions; The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the method as described in any one of claims 1-7.