Intelligent device control method, product application, and storage medium

By receiving general instructions from smart devices and generating standardized control instructions using a pre-configured database, the problem of long development cycles and cumbersome user operations for smart device apps is solved, achieving simplified device control and efficient multi-device collaboration.

CN123185232APending Publication Date: 2026-11-27ZHEJIANG SHAOXING SUPOR DOMESTIC ELECTRICAL APPLIANCE CO LTD
View PDF 0 Cites -1 Cited by

Patent Information

Application Number
CN202610296396.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-03-11
Publication Date
2026-11-27

Smart Images

  • Figure CN123185232A_ABST
    Figure CN123185232A_ABST
Patent Text Reader

Abstract

The application provides a smart device control method, product application and storage medium. The method comprises the following steps: receiving a general instruction sent by a smart device; the general instruction comprises a function control item and a device identifier of the smart device; based on the function control item and the device identifier of the general instruction, it is inquired from a pre-configured database whether there is a standardized control instruction adapted to the device identifier; according to the inquiry result, the standardized control instruction is formatted into a control instruction executable by the smart device; and the control instruction is issued to the smart device, so that the smart device executes the control instruction. In this way, the safety of data transmission is improved, and the risk of control failure caused by network delay or server failure is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent device technology, and in particular to an intelligent device control method, product application, and storage medium. Background Technology

[0002] With the development of IoT technology, various smart devices such as rice cookers, electric steamers, and ovens have been widely adopted in homes. However, different brands and models of smart devices often use different communication protocols and proprietary control commands to control them.

[0003] In a current method for controlling smart devices, the App (Application) needs to be developed separately to adapt to the communication protocol of each type of device, and store the exclusive instruction set of each type of device. This results in a long App development cycle, high maintenance costs, and users need to switch between different control interfaces or applications when controlling different devices, making the operation cumbersome. Summary of the Invention

[0004] To address the aforementioned technical problems, this specification provides the following technical solutions: Firstly, a method for controlling an intelligent device is provided, comprising: Receive a general instruction sent by a smart device; the general instruction includes a function control item and the device identifier of the smart device; Based on the function control items of the general instructions and the device identifier, query from the pre-configured database whether there are standardized control instructions adapted to the device identifier; Based on the query results, the standardized control instructions are formatted into control instructions executable by the smart device; The control command is sent to the smart device so that the smart device executes the control command.

[0005] In the above scheme, general instructions, including those for functional control items, are sent via the smart device. The smart agent then queries a pre-configured database to determine if standardized control instructions compatible with the device identifier exist, thus deciding whether they can be executed and converting them into control instructions executable by the smart device. This eliminates the need for redeveloping application clients, avoiding long development cycles and high maintenance costs. Furthermore, it eliminates the need to switch between different control interfaces or applications when controlling different devices; control of different smart devices can be achieved through general instructions, simplifying operation.

[0006] In some embodiments, receiving a general instruction sent by a smart device includes: Receive a first general instruction sent by a first smart device and a second general instruction sent by a second smart device; both the first general instruction and the second general instruction contain the same function control item, and the first general instruction contains a first device identifier of the first smart device, and the second general instruction contains a second device identifier of the second smart device; The standardized control instructions for the first device identifier include the unique instruction words and content of the first device; the standardized control instructions for the second device identifier include the unique instruction words and content of the second device; the unique instruction words and content of the first device and the unique instruction words and content of the second device are different.

[0007] In the above scheme, smart devices of the same type but with different device identifiers can use a general command to retrieve their respective device identifiers. This allows the intelligent agent to accurately query the standardized control commands corresponding to each device identifier from a pre-configured database, effectively avoiding the problem of command confusion between different smart devices and improving control accuracy and system stability. Thus, by combining the specific commands for each device with the general command, scenarios enabling multi-device collaborative work can be achieved.

[0008] In some embodiments, the instruction content includes default instruction content; Sending the control command to the smart device includes: The control command to the smart device includes a default instruction content and a unique instruction word, so that the smart device executes the default instruction content and the unique instruction word; if the smart device receives an instruction to modify the default instruction content, then the smart device executes the modified instruction and the unique instruction word.

[0009] In the above solution, direct matching of smart devices can be achieved through default command content. If it is necessary to modify the default command content, it can be directly modified on the smart device, causing the smart device to execute the modified command and exclusive command words. This not only simplifies the initial configuration process of smart devices but also allows for more flexible control. With the preset default command content, the device can be put into use without additional settings, and the addition of exclusive command words further enhances the precision of control. If the user finds that the default commands cannot fully meet their needs during actual use, adjustments can be made at any time according to the specific scenario. This ensures that the smart device can adapt to diverse operating environments while avoiding the limitations caused by fixed commands.

[0010] In some embodiments, a pre-configured database is obtained in the following manner: Import the device information to be updated; Receive the communication protocol type and instruction rules input for the device information to be updated; According to the communication protocol type and instruction rules, generate the profile information of the smart device to be controlled; the instruction rules include general instructions and their corresponding specific control information.

[0011] In the above solution, information about the devices to be updated is automatically imported, along with manually entered communication protocol types and command rules, automatically generating profile information. This semi-manual, semi-automated approach yields higher efficiency compared to the entirely manual methods used in related technologies. Furthermore, when adding new smart devices or functions, seamless integration is achieved simply by adding the corresponding standardized control commands to the pre-configured database, without requiring large-scale modifications to the existing system architecture. This enhances the adaptability and long-term availability of the pre-configured database. Moreover, when adding a new device to be updated, only the device's profile information and specific command rules need to be added to the pre-configured database; the core logic of the App and the smart agent does not need to be modified, achieving plug-and-play scalability and thus improving device compatibility.

[0012] In some embodiments, prior to receiving the general instruction sent by the smart device, the method further includes: The application client receives function control items and / or recipe-type instructions from the device list to select smart devices, generates general instructions, encapsulates the general instructions into MQTT messages, generates MQTT topics, and publishes the MQTT topics to the MQTT server. When a smart device publishes an MQTT topic containing the device identifier of the smart device on the MQTT server, it receives the subscribed MQTT message corresponding to the MQTT topic corresponding to its own device identifier, parses it to obtain the general instruction, and forwards the general instruction to the smart agent. The receiving of general instructions sent by the smart device includes: Receive general instructions forwarded by smart devices.

[0013] In the above scheme, the logic for controlling specific smart devices by the application client is decoupled from the application client. Only general commands are initiated by the application client, thus decoupling the application client from the specific smart devices. This allows the application client to remotely control the smart devices via an intelligent agent after connecting to the network. Furthermore, upon receiving the general command, the intelligent agent performs intelligent analysis based on the device identifier and functional control items to accurately retrieve standardized control commands from a pre-configured database that match the device identifier, ensuring the accuracy and security of the commands. Moreover, the lightweight and targeted message sending capabilities of the MQTT protocol improve the accuracy and real-time performance of command transmission, while also reducing network resource consumption. Furthermore, the application client does not need to adapt to the communication protocols and proprietary commands of different devices; it only needs to send general commands in a unified format and the device identifier, significantly simplifying the development and maintenance costs of the app, reducing the frequency of version updates, and achieving universal control of the app.

[0014] In some embodiments, an application client receives function control items and / or recipe-type instructions for selecting a smart device from a device list, generates a general instruction, and sends the general instruction to the smart device that has been paired with Bluetooth in advance, or sends the general instruction to the smart device via NFC.

[0015] In the above solution, after the application client establishes a connection with the smart device via Bluetooth, it can directly send general commands without relying on a network environment or a cloud server, enabling more convenient device control. This not only improves control efficiency but also provides a reliable backup solution when network conditions are poor.

[0016] or, In the above solution, users only need to touch their NFC-enabled smart devices with the application client to quickly send commands and control the devices. This not only simplifies operation but also enables efficient device interaction even without a network or with limited Bluetooth connectivity, further expanding the application scenarios for smart devices. Simultaneously, it eliminates the need for data exchange through cloud servers, improving data security and preventing unauthorized access or tampering.

[0017] In some embodiments, before receiving the general instruction sent by the smart device, the method further includes: receiving a general instruction directly initiated by the smart device to the smart agent; receiving the general instruction sent by the smart device includes: receiving a general instruction directly initiated by the smart device.

[0018] In the above scheme, intelligent devices can proactively send general commands to intelligent agents without relying on application client intervention. This allows direct communication between the intelligent device and the intelligent agent, avoiding cloud processing and improving data security. Standardized control commands adapted to the device identifier are obtained from a pre-configured database, reducing the development workload of the application client and enhancing system scalability. When a new device or function is added, only a configuration update in the intelligent agent's database is required, without any modification to the application client. Furthermore, by empowering intelligent devices to proactively initiate commands, the system's intelligence level and response efficiency are further improved. Simultaneously, reducing reliance on user operation enables intelligent devices to achieve fully automated operation under specific conditions.

[0019] And / or, In some embodiments, the pre-configured database contains smart devices of the same type but with different device identifiers, and the smart devices of the same type but with different device identifiers have different standardized control instructions configured for the same functional control item.

[0020] In the above scheme, smart devices of the same type but with different device identifiers are configured with standardized control commands in a differentiated manner to avoid confusion in the control of different smart devices and to make the control of each smart device more independent. At the same time, by matching device identifiers with standardized control commands, it is ensured that the smart device can be accurately parsed by the smart agent to obtain the corresponding standardized control commands, further improving the reliability and efficiency of control.

[0021] In some embodiments, the pre-configured database is integrated into the agent's database.

[0022] And / or, the pre-configured database is an independent database, separate from the agent's database.

[0023] In the above solution, the pre-configured database is integrated into the intelligent agent and / or exists as an independent database. It does not require updating the data on the application client, nor does it require updating the control interfaces and core control logic of different devices on the application client. This eliminates the need to modify the core logic of the application client and the intelligent agent, achieving plug-and-play scalability.

[0024] In a second aspect, a product application is provided for implementing the intelligent device control method as described in any of the first aspects above.

[0025] Thirdly, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, performs the intelligent device control method as described in any of the first aspects above.

[0026] Fourthly, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor performs the intelligent device control method as described in any of the first aspects above.

[0027] Fifthly, a computer program product is provided, including a computer program / instructions that, when executed by a processor, implement the method as described in any of the first aspects above.

[0028] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this specification. Attached Figure Description

[0029] To more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of this specification. For those skilled in the art, other drawings can be obtained based on these drawings.

[0030] Figure 1 The diagram shown is an application structure schematic of the intelligent device control method according to an embodiment of this application; Figure 2 The diagram shown is a flowchart illustrating the intelligent device control method according to an embodiment of this application. Figure 3 As shown Figure 2 The interactive flowchart of the intelligent device control method is shown. Figure 4 The diagram shown is a schematic representation of a computer-readable storage medium provided in an embodiment of this application; Figure 5 The diagram shown is a structural schematic of a computing device provided in an embodiment of this application. Detailed Implementation

[0031] This specification describes several technical solutions with different concepts. Each technical solution has one or more embodiments, and different technical solutions can be combined to form more embodiments. After reading this specification, those skilled in the art can combine different technical solutions to obtain new technical solutions, and these new technical solutions should also fall within the scope of this specification.

[0032] The technical solutions of these different concepts will be introduced in turn below. Some terms and concepts may appear in multiple technical solutions of different concepts. These terms and concepts will be explained when they first appear in this article and will not be repeated thereafter.

[0033] Figure 1 The diagram shown is a schematic representation of the application structure of the intelligent device control method according to an embodiment of this application.

[0034] like Figure 1 As shown, the intelligent device control method of this application embodiment is applied to an intelligent device control system. This intelligent device control system may include, but is not limited to, user terminals, intelligent devices, and intelligent agents.

[0035] The user terminal in this specification may include, but is not limited to, at least one of a PC (Personal Computer) device and a mobile device. The PC device may include, but is not limited to, a desktop computer, tablet computer, or laptop computer. The mobile terminal may include, but is not limited to, a smartphone, a smart handheld terminal, or a smartwatch.

[0036] Next, the term "smart device" in this specification generally refers to a terminal device that can connect to the internet and communicate over short distances. In some examples, this terminal device may be a device that interacts with an Internet of Things (IoT) platform, generally referring to electrical appliances used in various environments (such as office buildings) for various purposes, specifically cooking appliances / home appliances with a certain cooking function. Examples of cooking appliances include electric pressure cookers, electric frying pans, blenders, juicers, and stir-fry machines. Furthermore, cooking appliances can also be multi-functional cooking appliances with various cooking functions. Other examples of home appliances include washing machines, air conditioners, televisions, air purifiers, automatic massage chairs, treadmills, etc. Of course, in other examples, this terminal device may include, but is not limited to, at least one of a PC (Personal Computer) terminal device and a mobile device. The PC terminal device may include, but is not limited to, desktop computers, tablets, or laptops. The mobile terminal may include, but is not limited to, smartphones, smart handheld terminals, or smartwatches.

[0037] The smart devices described in this manual have the conventional structure and functions of smart devices currently on the market (such as product casing, power interface, basic device functions, etc.), which will not be described in detail here.

[0038] In this manual, "product application" refers to an application developed by the manufacturer of the smart device, deployed on the aforementioned user terminal, used for interaction between the user terminal and the smart device, and also to provide users with control-related services. Product applications are typically installed in the smart device's operating system. A product application can be a client program, such as an application client (Application) installed on a mobile phone. This APP is the control function app equipped on the smart device. A product application can also be a lightweight application, such as a web application or an Android quick app. A lightweight application can be understood as a lightweight program that does not require downloading a client.

[0039] As an example, users can manually use the product application within the smart device's operating system. Specifically, if the smart device has the product client program installed, the user typically opens the product client program manually. If the product application is not installed, the user can choose to manually download and install the product client program, or manually open the product mini-app.

[0040] In this specification, an intelligent agent refers to a digital software program created using artificial intelligence technology that possesses autonomous learning, decision-making, and execution capabilities. Intelligent agents can be created within a background intelligent agent platform, where different intelligent agents provide different functions.

[0041] The aforementioned intelligent agent may or may not be provided by the same manufacturer as the aforementioned intelligent device. This intelligent agent can be developed by the manufacturer of the intelligent agent and used to provide users with services related to the control of intelligent devices on the intelligent platform side. Of course, the intelligent agent can also be integrated into the intelligent device to improve its level of intelligence.

[0042] Furthermore, the aforementioned smart devices and user terminals serve as carriers for product applications. Product applications act as interfaces for interacting with users by providing user commands and outputting execution results based on these user commands.

[0043] The above-described product applications can invoke intelligent agents through smart devices. In some examples, the smart device in this specification may be a single smart device. In other examples, the smart device in this specification may include multiple smart devices.

[0044] In related technologies, application clients need to be developed separately to adapt to the communication protocols of each type of device. At the same time, the database of the application client stores the exclusive instruction sets of various devices. When a new device or different control is needed, the database of the application client and the control interface of the application client for different devices need to be updated. This results in a long development cycle and high maintenance cost for the application client. In addition, users need to switch between different control interfaces or applications when controlling different devices, which is cumbersome.

[0045] To address the technical problems in the aforementioned related technologies, where adding new devices and different control interfaces requires updating both the application client's database and the control interfaces for different devices, leading to long application client development cycles, high maintenance costs, and cumbersome operation as users need to switch between different control interfaces or applications to control different devices, this application provides a smart device control method. This method involves sending general instructions for functional control items through the smart device. The smart agent then queries a pre-configured database to determine if standardized control instructions matching the device identifier exist, thereby determining whether they can be executed and converting them into control instructions executable by the smart device. This eliminates the need to redevelop the application client, avoiding long development cycles and high maintenance costs. Furthermore, it eliminates the need to switch between different control interfaces or applications when controlling different devices; control of different smart devices can be achieved through general instructions, simplifying operation.

[0046] Furthermore, users can input function control items and / or recipe-type instructions into the control interface of the application client to generate general instructions. The application client only sends general instructions in the application client interface. Whether or not the instructions can be executed is not the concern or processing of the application client, and there is no need to develop corresponding application clients separately for different smart devices.

[0047] Furthermore, by not updating the database on the application client, but instead using a separate database or integrating it into the smart agent's database, the control interfaces of different devices on the application client do not need to be updated. Additionally, in one method for controlling smart devices in related technologies, a smart speaker can control user devices via voice commands. The specific implementation process is as follows: the user issues a specific control command for device A, the smart speaker's backend server analyzes this command, and then locates and controls device A. However, in the aforementioned related technologies, the data analysis by the backend server is vulnerable to attack, and the data is easily leaked.

[0048] To address the technical problem of data leakage due to attacks on backend servers in the aforementioned related technologies, this application provides a smart device control method. The smart device initiates a general command to a smart agent, which formats standardized control commands from a pre-configured database into executable control commands for the smart device; the smart agent then sends the control commands to the smart device. In this way, the smart device can, without relying on a backend server, match the standardized control commands from the pre-configured database through the smart agent to complete the parsing and execution of the commands. This not only improves data transmission security but also reduces the risk of control failure due to network latency or server malfunction. See below for details.

[0049] Figure 2 The diagram shown is a flowchart illustrating the intelligent device control method according to an embodiment of this application.

[0050] like Figure 2 As shown, the intelligent device control method may include, but is not limited to, the following steps 110 to 140: Step 110: Receive a general instruction sent by the smart device; the general instruction includes function control items and the device identifier of the smart device.

[0051] The aforementioned smart device sends a general command to the smart agent, indicating that the smart device is online and establishing a communication connection with the smart agent. This allows the smart agent to directly connect and control the smart device without going through a backend cloud server. This avoids the involvement of a backend server in control and eliminates the need for backend server data transmission, thereby improving data security.

[0052] The connection methods between smart devices and smart agents can include, but are not limited to, Bluetooth, NFC (Near Field Communication), and designated transmission. The smart device is the device to be controlled, which is also the smart device selected by the user, and can also be referred to as the target smart device.

[0053] It should also be noted that the aforementioned general instructions are used to instruct smart devices to perform specific functions or operations. General instructions only include the instruction type and the smart device's unique identifier (such as device ID, Identity, or identity identifier), and do not need to include specific device terminal information such as the smart device's communication protocol or proprietary instructions. Thus, smart devices can only execute standardized control instructions that at least include the device's unique identifier, communication protocol type (such as WiFi, Bluetooth, NFC), and proprietary instruction rules. These general instructions do not contain specific content such as execution time or execution temperature for proprietary instructions, and therefore cannot execute general instructions. The standardized control instructions may also include the device type. Device types may include, but are not limited to, at least one of the following: rice cooker, electric steamer, and smart oven.

[0054] In addition, the aforementioned general instructions simplify the interaction process between product applications and various smart devices, enabling smart devices of different brands or models to achieve interconnection and interoperability within the same framework.

[0055] Step 120: Based on the function control items and device identifiers of the general instructions, query the pre-configured database to see if there are standardized control instructions that are compatible with the device identifiers.

[0056] In step 120, the general instructions are parsed to obtain the functional control items and device identifiers. Through this parsing process, the agent can clearly identify the intelligent devices that need to be controlled and their corresponding functional requirements. Thus, the identification of the device identifier and the correct interpretation of the functional control items can be achieved by querying a pre-configured database to determine if standardized control instructions compatible with the device identifier exist.

[0057] It should be noted that the pre-configured database described above is independent of the backend server corresponding to the application client, and is also independent of the application client's database. In this way, the pre-configured database is separated from the application client's database, enabling the intelligent agent to process data locally, improving query efficiency, reducing dependence on external networks, and making the entire control process more efficient and reliable.

[0058] In practical applications, if the query results show that there are suitable standardized control commands, the next step is taken; if the query results show that no matching results are found, the intelligent agent can complete the task through other means, such as prompting the user to update the database or providing manual configuration options, to ensure that the functions of the intelligent device are implemented normally.

[0059] Step 130: Based on the query results, format the standardized control commands into control commands that can be executed by the smart device.

[0060] The pre-configured database stores the mapping relationship between standardized control commands and device identifiers of smart devices, ensuring a match between different device identifiers and their corresponding standardized control commands, thus obtaining the matching standardized control commands. Therefore, when adding a new smart device, only a unique device identifier needs to be assigned and its type defined, without changing existing communication protocols or command rules, making the operation simple. See below for detailed explanation.

[0061] In step 130, based on the query results, the corresponding standardized control commands are sent to the smart device to enable functional control. This allows the intelligent agent to flexibly adapt to smart devices of different brands or models, thereby improving system compatibility and scalability. Furthermore, standardized control commands are generated based on the parsing results to determine the functional scope and operating permissions of the smart device, ensuring that the intelligent agent can only send matching standardized control commands to smart devices with the corresponding device identifier. Thus, upon receiving a general command, the intelligent agent can parse the command according to its internal preset logic and generate specific operation commands adapted to the smart device, all completed locally. This avoids control failures caused by network latency or server malfunctions, ensuring the real-time performance and stability of the smart device's response.

[0062] Furthermore, in step 130 above, the intelligent agent formats the queried standardized control instructions into specific executable instructions for this intelligent device: when a matching standardized control instruction is found, the intelligent agent converts the general instruction into a specific executable instruction based on specific information such as the device type, communication protocol type, and specific instruction rules of the standardized control instruction. For example, if the intelligent device is a rice cooker, the generated instruction may include detailed parameters such as heating mode and cooking time. Finally, the standardized control instruction is transmitted to the intelligent device through the selected connection method described above, completing the entire control process.

[0063] If the agent cannot find a matching standardized control command, it will directly return an invalid command exception to the smart device.

[0064] It's worth noting that the above process minimizes the complexity of user operations. Whether it's device deployment, command parsing, or final execution, users only need to focus on the functional requirements themselves, without needing to delve into the underlying technical details. This not only improves the user experience but also facilitates the integration of more types of smart devices in the future.

[0065] To further improve control efficiency, the above instruction types specify the specific functions or operation categories that the smart device needs to perform, such as general operation types like heat preservation, heating, and baking, without carrying specific executable information. The smart device's device ID is used to uniquely identify the device receiving the instruction, ensuring that the instruction can be accurately delivered to the corresponding smart device.

[0066] In addition, the function control items of the aforementioned general commands are used to instruct the smart device to perform specific functions, such as switching on / off, mode switching, or parameter adjustment. The aforementioned device identifier is used to uniquely identify the smart device sending the general commands, ensuring that the control commands can accurately adapt to the smart device. If a standardized control command matching the device identifier exists in the pre-configured database, the process proceeds to the next step; otherwise, an exception handling process may be triggered or the user may be prompted to perform manual configuration.

[0067] Step 140: Send control commands to the smart device so that the smart device can execute the control commands.

[0068] Since the connection between intelligent agents and intelligent devices is based on localized communication protocols, faster response and a more stable interactive experience can be achieved.

[0069] In this embodiment, the smart device sends a general command to the smart agent, which formats the standardized control commands from a pre-configured database into control commands executable by the smart device; the smart agent then sends the control commands to the smart device. In this way, the smart device can complete the parsing and execution of commands without relying on a backend server, which not only improves the security of data transmission but also reduces the risk of control failure due to network latency or server malfunction.

[0070] Combination Figure 2 As shown, in some embodiments, the pre-configured database described above is integrated into the agent's database. And / or, the pre-configured database described above is an independent database, separate from the agent's database.

[0071] In this specification, the pre-configured database is integrated into the intelligent agent and / or exists as a separate database. It does not require updating the data on the application client, nor does it require updating the control interfaces and core control logic of different devices using the application client. This eliminates the need to modify the core logic of the application client and the intelligent agent, enabling plug-and-play scalability.

[0072] In one optional embodiment of this application, the pre-configured database contains smart devices of the same type but with different device identifiers. These smart devices, with different device identifiers, configure different standardized control instructions for the same functional control item. This differentiated configuration of standardized control instructions for smart devices of the same type but with different device identifiers avoids confusion in the control of each smart device, making the control of each smart device more independent. Simultaneously, by matching device identifiers with standardized control instructions, it ensures that the smart device can be accurately parsed by the intelligent agent to obtain the corresponding standardized control instructions, further improving the reliability and efficiency of control.

[0073] Combination Figure 1 and Figure 2 As shown, step 120 above can be implemented in at least one of the following optional embodiments: based on the function control item of the general instruction and the device identifier, query from a pre-configured database whether there is a standardized control instruction adapted to the device identifier: In a first optional embodiment, step 1211 involves determining the multi-level target class of the smart device based on the function control items of the general instruction and the device identifier; the multi-level target class includes a first-level classification and a second-level classification.

[0074] This application determines the multi-level target class of intelligent devices based on the functional control items of the general instructions and the device identifier in a multi-level classification of intelligent devices. Specifically, each level of classification corresponds to a specific functional module or device type, ensuring that the query process has a clear logical structure.

[0075] Step 1212: Find the first-level category of the smart device from the first-level categories of the pre-configured database.

[0076] Step 1213: Find the secondary category of the smart device from the secondary categories corresponding to the primary category of the smart device.

[0077] Step 1214: Continue searching from the secondary category of the smart device to the next lower category until a standardized control command that matches the device identifier is found.

[0078] In this embodiment of the application, by searching down to the next level in each level of the multi-level classification, the standardized control commands of the device identifier can be adapted, the query range can be gradually narrowed, and the efficiency and accuracy of command matching can be improved.

[0079] In a second optional embodiment, step 1211 involves determining the target category and target sub-function classification of the smart device's scenario application based on the function control items of the general instruction and the device identifier.

[0080] The major categories of scenario applications include the target categories of smart device scenario applications. These categories represent the types of functional scenarios, such as including at least one of the following: home appliances and kitchen appliances.

[0081] The device functional categorization for scenario applications can include the target functional categorization mentioned above. These categorizations represent specific functional modules or operational requirements. For example, in the home appliance category, this might include specific functions such as lighting equipment, temperature control equipment, or cleaning equipment. In the kitchen appliance category, it might involve functional categories such as cooking equipment, refrigeration equipment, or water dispensing equipment. This hierarchical classification allows for more precise identification of the actual application scenarios of smart devices, facilitating subsequent command matching and function control.

[0082] All of the above classes are pre-configured in the database.

[0083] Step 1222: Search for the target category from the categories in the pre-configured database.

[0084] Step 1223: Find the target sub-function category from the sub-function categories of the equipment corresponding to the major category.

[0085] Step 1224: Search for the standardized control command corresponding to the device identifier of the smart device from the device identifiers corresponding to the target sub-functional categories.

[0086] In this embodiment, the target broad category and target sub-functional categories for the application scenarios of smart devices are determined by classifying the target broad category and the target sub-functional categories. This continuously narrows the search scope for standardized control commands corresponding to the device identifier of the smart device, helping to improve query efficiency and enhancing the accuracy of device identifier parsing, ensuring that the final generated control commands meet actual needs. Thus, without modifying the core logic of the application client and the smart agent, plug-and-play scalability is achieved.

[0087] When adding new smart devices, existing technologies require app updates to adapt to the new devices' communication protocols and command formats, resulting in poor compatibility and severely hindering the expansion of the smart device ecosystem. Therefore, this application provides a smart device control method that only adds standardized control commands, such as communication protocol types and command rules for new devices, to a pre-configured database. This eliminates the need for app adaptation to device communication protocols and enables universal control across multiple devices, thus addressing the technical pain points of complex protocol adaptation and inconsistent commands in existing smart device control systems. Detailed solutions are described below.

[0088] In an optional embodiment of this application, a pre-configured database can be obtained by using the following steps 210 to 230: Step 210: Import the device information to be updated.

[0089] The "Device to be Updated" section describes the details of the devices that need updating, including basic device information, functional categories, and corresponding control commands. Devices to be updated refer to newly added smart devices.

[0090] Step 220: Receive the communication protocol type and instruction rules input for the device information to be updated.

[0091] When new devices are added to the system, they can be seamlessly integrated into the existing control system simply by configuring them with a unique device identifier and a dedicated instruction set, without requiring large-scale adjustments to the overall architecture.

[0092] Step 230: Generate the profile information of the smart device to be controlled according to the communication protocol type and instruction rules; the instruction rules include general instructions and their corresponding specific control information.

[0093] In this embodiment, the information of the device to be updated is automatically imported, along with the communication protocol type and instruction rules manually entered, to automatically generate profile information. This semi-manual, semi-automated approach yields higher generation efficiency compared to the entirely manual methods used in related technologies. Furthermore, when adding a new smart device or function, seamless integration can be achieved simply by adding the corresponding standardized control instructions to the pre-configured database, without requiring large-scale modifications to the existing system architecture. This enhances the adaptability and long-term availability of the pre-configured database. Moreover, when adding a new device to be updated, only the device's profile information and specific instruction rules need to be added to the pre-configured database; the core logic of the App and the smart agent does not need to be modified, achieving plug-and-play scalability and thus improving device compatibility.

[0094] In related technologies, application clients need to be developed separately to adapt to the communication protocols of each type of device. At the same time, the database of the application client stores the exclusive instruction sets of various devices. When a new device or different control is needed, the database of the application client and the control interface of the application client for different devices need to be updated. This results in a long development cycle and high maintenance cost for the application client. In addition, users need to switch between different control interfaces or applications when controlling different devices, which is cumbersome.

[0095] To address the aforementioned technical issues—namely, the need to update both the application client's database and the control interfaces for different devices when adding new devices or implementing different controls, leading to long development cycles, high maintenance costs, and cumbersome user operations requiring switching between different control interfaces or applications—this embodiment of the application client avoids updating its own database. Instead, a separate database is set up or integrated into the agent's database, eliminating the need to update the control interfaces for different devices. The application client only sends function control items; whether these items can be executed is not the application client's concern. General commands are sent through the smart device, and the agent queries a pre-configured database to determine if standardized control commands matching the device identifier exist, thus deciding whether execution is possible. This eliminates the need for redeveloping the application client, avoiding long development cycles and high maintenance costs. Users only need to input function control items or user commands generated from recipes on the control interface, without needing to switch between different control interfaces or applications when controlling different devices, simplifying the operation. See below for detailed explanation.

[0096] Combination Figure 1 and Figure 2 As shown, step 110 above can receive a general instruction sent by a smart device in at least one of the following ways: In the first alternative approach, the application client receives function control items and / or recipe-type instructions for selecting smart devices from the device list, generates general instructions, encapsulates the general instructions into MQTT messages, generates MQTT topics, and publishes the MQTT topics to the MQTT server.

[0097] When a smart device publishes an MQTT topic containing the smart device's device identifier on an MQTT server, it receives subscribed MQTT messages corresponding to the MQTT topic with its own device identifier, parses them to obtain the general instructions, and forwards the general instructions to the smart agent. In this way, the smart device can forward the general instructions published by the MQTT server to the smart agent.

[0098] Correspondingly, it receives general commands issued by the MQTT server and forwarded by the smart device.

[0099] In practical applications, users can input user commands through an application client. These user commands can include, but are not limited to, selecting function controls or recipe-like instructions from a device list within the application client. These user commands are then standardized into universal commands and sent to the smart terminal. Conversely, the smart device receives the universal commands and forwards them to the smart agent.

[0100] In this way, the intelligent agent receives general instructions forwarded by intelligent devices and can quickly obtain adapted standardized control instructions, thereby achieving precise control of the intelligent devices. This not only improves the intelligence level of the system but also reduces the cost of manual intervention.

[0101] In this embodiment, the logic for controlling specific smart devices from the application client is separated from the application client. Only general commands are initiated by the application client, thus decoupling the application client from the specific smart device. This allows the application client to remotely control the smart device via an intelligent agent after connecting to the network. Furthermore, upon receiving the general command, the intelligent agent performs intelligent analysis based on the device identifier and functional control items to accurately retrieve standardized control commands from a pre-configured database that match the device identifier, thereby ensuring the accuracy and security of the commands.

[0102] Furthermore, direct communication between smart devices and intelligent agents avoids cloud processing, improving data security. Standardized control commands adapted to the device identifier are obtained from a pre-configured database, reducing the development workload of application clients and enhancing system scalability. When a new device or function is added, only configuration updates are needed in the intelligent agent's database, without requiring any modifications to the application client.

[0103] Furthermore, the lightweight and targeted message sending capabilities of the MQTT protocol improve the accuracy and real-time performance of command transmission. Simultaneously, the lightweight nature of the MQTT protocol reduces network resource consumption. Moreover, application clients do not need to adapt to the communication protocols and proprietary commands of different devices; they only need to send universal commands in a standardized format and device identifiers. This significantly simplifies app development and maintenance costs, reduces version update frequency, and enables universal app control.

[0104] Furthermore, upon receiving a general command, the intelligent agent can perform intelligent analysis based on the device identifier and functional control items to ensure the accuracy and security of the command. If the query results show that no suitable standardized control command exists, the intelligent agent will return the corresponding error message to the application client to avoid device malfunctions caused by command mismatch.

[0105] Combination Figure 2 As shown, as an optional embodiment of this application, before step 110 above, the above method may also include, but is not limited to: receiving, through the application client, the function control items and / or recipe-type instructions for selecting a smart device in the device list, generating a general instruction, and sending the general instruction to the smart device that has been paired with Bluetooth in advance, or sending the general instruction to the smart device through NFC.

[0106] In the above solution, after the application client establishes a connection with the smart device via Bluetooth, it can directly send general commands without relying on a network environment or a cloud server, enabling more convenient device control. This not only improves control efficiency but also provides a reliable backup solution when network conditions are poor.

[0107] or, In the above solution, users only need to touch their NFC-enabled smart devices with the application client to quickly send commands and control the devices. This not only simplifies operation but also enables efficient device interaction even without a network or with limited Bluetooth connectivity, further expanding the application scenarios for smart devices. Simultaneously, it eliminates the need for data exchange through cloud servers, improving data security and preventing unauthorized access or tampering.

[0108] Figure 3 As shown Figure 2 The diagram shows the interactive flowchart of the intelligent device control method.

[0109] like Figure 3As shown, firstly, pre-configuration is required: All smart device profiles to be controlled are pre-entered into the pre-configured database. For example, the profile for a rice cooker with device ID ID001 is entered: unique device identifier ID001, device type is rice cooker, communication protocol type is WiFi, and the exclusive command rules are: general command keepwarm → keep warm + fixed duration; general command heat → heat + temperature + duration. The profile for an electric steamer with device ID ID002 is entered: unique device identifier ID002, device type is electric steamer, communication protocol type is Bluetooth, and the exclusive command rules are: general command keepwarm → keep warm + fixed duration + keep warm temperature; general command heat → heat + steam volume + temperature + duration. The step-by-step execution logic for the recipes of both devices is also entered to complete all pre-configuration work.

[0110] Then, 1. The user selects a smart device in the device list, selects a function control item, and initiates a control command: The user opens the control app, selects a smart device (device ID: ID001, rice cooker) in the device list, selects a function control item, and initiates a user command, such as clicking the "keep warm" function control item on the interface to initiate a keep warm user command.

[0111] 2. The App standardizes user commands into general commands, and then encapsulates these general commands into messages to be sent, such as MQTT messages with a preset topic: The App standardizes the "keepwarm" user command into a general command, which is keepwarm+ID001, and then encapsulates this general command into an MQTT message, which is published to the MQTT server with the preset topic device / ID001 / control. After receiving the MQTT message, the MQTT server returns an ACK indicating successful message publication to the App. After receiving the ACK, the App confirms that the message has entered the transmission link.

[0112] 3. Smart devices continuously subscribe to a topic with the smart device ID. The MQTT server pushes MQTT messages containing the smart device ID to the topic. For example, a rice cooker with device ID ID001 continuously subscribes to the topic device / ID001 / control, retrieves the MQTT message from the MQTT server, and parses it to obtain the general command keepwarm+ID001. If the user selects an electric steamer with device ID ID002, the App can directly send the general command keepwarm+ID002 to the electric steamer via Bluetooth.

[0113] 4. Smart device forwards general instructions to smart agent: The rice cooker converts the parsed general instructions into forwarding general instructions containing device ID (ID001), instruction type (keepwarm), and original parameters (no additional parameters), and sends them to the smart agent. After receiving the forwarding general instructions, the smart agent returns a signal to the rice cooker confirming successful instruction reception. 5. The agent queries a pre-configured database for standardized instructions matching the smart device. It then formats these standardized control instructions into executable commands for the smart device and sends them to the device. Based on the instruction type (e.g., keepwarm) and device ID (e.g., ID001), the agent queries the pre-configured database for standardized control instructions compatible with the rice cooker. The database pre-stores the rice cooker's specific instruction rules: keepwarm corresponds to keep warm + time. Therefore, the agent finds the corresponding standardized control instruction as keep warm + 30 minutes. If the user is controlling an electric steamer with device ID ID002, the standardized control instruction found by the agent would be keep warm + 30 minutes + 65℃.

[0114] 6. The smart device executes the control command, obtains the execution result, and feeds the result back to the App via the MQTT server: The smart agent formats the queried standardized control command, "Keep Warm + 30 Minutes," into a set of commands that the rice cooker can directly execute, and sends it to the rice cooker; After receiving the command set, the rice cooker immediately executes the keep warm operation. After the operation starts, it feeds back the execution result, "Execution successful, the current device is in keep warm state, remaining keep warm time 29 minutes," to the App via the MQTT server. The App displays the execution result on the operation interface in real time for the user to view.

[0115] Additionally, if the intelligent agent cannot find a matching standardized control command based on the current command type and device ID, such as issuing a general command like "steam sterilization" to a rice cooker, and there is no corresponding mapping rule in the database, it will directly return an "invalid command" error message to the intelligent device. The intelligent device will then send this error message back to the App, and the App will pop up a message to the user: "The current command is invalid. This device does not support this function. Please select again."

[0116] In a second alternative approach, before receiving the general instruction forwarded by the smart device, the method further includes: receiving a general instruction directly initiated by the smart device to the smart agent; and receiving the general instruction directly initiated by the smart device.

[0117] In this specification, the smart device can proactively send general commands to the smart agent without relying on the intervention of the application client. This allows for direct communication between the smart device and the smart agent, avoiding cloud processing and improving data security. Standardized control commands adapted to the device identifier are obtained from a pre-configured database, reducing the development workload of the application client and enhancing the system's scalability. When a new device or function is added, only a configuration update is needed in the smart agent's database, without requiring any modifications to the application client.

[0118] In this way, by giving smart devices the ability to proactively initiate commands, the system's intelligence level and response efficiency are further improved. At the same time, reducing reliance on user operation enables smart devices to achieve fully automated operation under specific conditions.

[0119] For example, when a smart device detects an abnormal state, it can proactively send diagnostic requests or maintenance commands to the intelligent agent, thereby achieving self-management and fault prevention. Furthermore, upon receiving a proactively initiated general command, the intelligent agent will analyze it based on the device identifier and command type, and query a pre-configured database for suitable standardized control commands to ensure the accuracy and security of command execution. If no matching command rule is found, the intelligent agent will return the corresponding error message to avoid device malfunctions caused by command mismatches. This not only enhances the system's robustness but also allows for application in more complex future scenarios.

[0120] In a third alternative approach, a first general instruction sent by a first smart device and a second general instruction sent by a second smart device are received; both the first general instruction and the second general instruction contain the same function control item, and the first general instruction contains a first device identifier of the first smart device, and the second general instruction contains a second device identifier of the second smart device.

[0121] The "first" in the first smart device and the "second" in the second smart device are used to distinguish between two different smart devices and do not imply any order of precedence.

[0122] Accordingly, the standardized control instructions for the first device identifier include the unique instruction words and content of the first device; the standardized control instructions for the second device identifier include the unique instruction words and content of the second device; the unique instruction words and content of the first device and the unique instruction words and content of the second device are different.

[0123] By distinguishing between different device-specific command terms and content, the intelligent agent can accurately identify the needs of each device, thereby avoiding operational errors caused by command confusion.

[0124] For example, in a smart home environment, when the first smart device detects that the indoor temperature is too high, it can send a general command related to cooling; simultaneously, when the second smart device detects a decline in air quality, it can also send a general command related to air purification. Upon receiving these commands, the smart entity can parse the device identifier and function control items respectively, and generate corresponding standardized control commands to ensure that the functions of the two devices can operate in coordination without conflicts or resource contention. This not only improves the efficiency of multi-device collaboration but also enhances intelligence and the user experience.

[0125] In this embodiment, by receiving general instructions from multiple smart devices, even if the specific function control items to be executed are the same, the specific content of the standardized control instructions of different smart devices is different and has the uniqueness of each smart device. Thus, smart devices of the same type but with different device identifiers can use the general instructions to their respective device identifiers, enabling the intelligent agent to accurately query the standardized control instructions corresponding to each device identifier from a pre-configured database. This effectively avoids the problem of instruction confusion between different smart devices, improving control accuracy and system stability. In this way, by combining the specific instructions of each device with the general instructions, scenarios of multi-device collaborative work can be realized.

[0126] Combination Figure 1 and Figure 2 As shown, the instruction content includes default instruction content. Step 140 above may include sending the default instruction content and specific instruction words contained in the control instruction to the smart device, so that the smart device executes the default instruction content and specific instruction words; if the smart device receives an instruction to modify the default instruction content, then the smart device executes the modified instruction and specific instruction words.

[0127] In this embodiment, default command content enables direct matching with smart devices. If modification of the default command content is required, it can be done directly on the smart device, causing it to execute the modified command and its unique command words. This simplifies the initial configuration process for smart devices and allows for more flexible control. With preset default command content, the device can be put into use without additional setup, and the addition of unique command words further enhances control precision. If users find that the default commands do not fully meet their needs during actual use, they can adjust them according to the specific scenario. This ensures that the smart device can adapt to diverse operating environments while avoiding limitations caused by fixed commands.

[0128] Examples of the intelligent device control method applied to the embodiments of this application are as follows: It should be noted that the steps for pre-configuring the database are as follows: Enter the profile information of all smart devices to be controlled into the pre-configured database, clearly defining the mapping relationship between general commands and the specific commands of each smart device (including differences in command terms). The specific entry process is as follows: Enter the rice cooker profile with device ID ID001: Device unique identifier ID001, device type is rice cooker, communication protocol type is WiFi, and the exclusive command rule is general command keepwarm → exclusive command warm + keep-warm time (the command word is warm, which is different from the general command keepwarm). Enter the profile of the electric steamer with device ID ID002: unique device identifier ID002, device type is electric steamer, communication protocol type is Bluetooth, and the exclusive command rule is general command keepwarm → exclusive command Keepwarm + keep warm duration + keep warm temperature (the command word is Keepwarm, with the first letter capitalized, which is different from the general command keepwarm and the rice cooker exclusive command warm). Simultaneously, the recipes for both devices are entered and executed step-by-step to complete all preset tasks, ensuring that the intelligent agent can query the exclusive command words and corresponding parameter requirements of different devices.

[0129] 2. The user selects a smart device from the device list, selects a function control item, and initiates a control command: The user opens the control app, selects two smart devices from the device list, and initiates a keep-warm control command sequentially: First, selects the rice cooker with device ID ID001 and clicks the "keep-warm" function control item on the interface; second, selects the electric steamer with device ID ID002 and similarly clicks the "keep-warm" function control item; the user operations in both instances are identical, and the general commands generated by the app are also exactly the same. The selected smart device is the target smart device, which is also the device to be controlled in this application, and is also referred to as a smart device.

[0130] 2. The App standardizes user commands into general commands, and then encapsulates the general commands into messages to be sent, such as MQTT messages with preset topics: For two keep-warm commands, the App standardizes them into the same general command: keepwarm + corresponding device ID. Specifically: when controlling a rice cooker, the general command is keepwarm + ID001; when controlling an electric steamer, the general command is keepwarm + ID002.

[0131] The App encapsulates the two general commands into MQTT messages and publishes them to the MQTT server according to the corresponding preset topics (controlling the rice cooker: device / ID001 / control; controlling the electric steamer: device / ID002 / control). After receiving each MQTT message, the MQTT server returns an ACK to the App indicating that the message has been successfully published. Upon receiving the ACK, the App confirms that both messages have entered the transmission link.

[0132] 3. Smart devices continuously subscribe to the topic of smart device ID, and the MQTT server pushes MQTT messages containing the smart device ID of the topic: The rice cooker with device ID ID001 continuously subscribes to the topic of device / ID001 / control, obtains the corresponding MQTT message from the MQTT server, and parses it to get the general command keepwarm+ID001; The electric steamer with device ID ID002 continuously subscribes to the topic device / ID002 / control, obtains the corresponding MQTT message from the MQTT server, and parses it to get the general command keepwarm+ID002. Since the communication protocol of the electric steamer is Bluetooth, the App can also directly send the general command keepwarm+ID002 to the electric steamer via Bluetooth. The two transmission methods can be flexibly switched.

[0133] 4. Smart device forwards general instructions to smart agent: The rice cooker will parse the general instruction as keepwarm+ID001, convert it into a forwarding instruction containing device ID (ID001), instruction type (keepwarm), and original parameters (no additional parameters), and send it to the smart agent. After receiving it, the smart agent will return a confirmation signal that the instruction was successfully received. The electric steamer will parse the general command, keepwarm+ID002, into a forwarding command containing the device ID (ID002), command type (keepwarm), and original parameters (no additional parameters), and send it to the intelligent agent. After receiving the command, the intelligent agent will also return a confirmation signal that the command was successfully received.

[0134] 5. The agent queries the pre-configured database for standardized instructions matching the smart device, formats the standardized control instructions into control instructions executable by the smart device, and sends the control instructions to the smart device: For two forwarding instructions, the agent queries the pre-configured database for adapted standardized control instructions based on the instruction type "keepwarm" and the corresponding device ID (the core difference is reflected in the instruction words): 1. For device ID001 (rice cooker): The unique instruction rule found is keepwarm → warm + keep-warm time. Therefore, the standardized control instruction is warm + 30 minutes. The keep-warm time is a default value stored in the database, but can also be set by the user in the app.

[0135] 2. For device ID002 (electric steamer): The unique instruction rule found is keepwarm → Keepwarm + keep-warm duration + keep-warm temperature. Therefore, the standardized control instruction is Keepwarm + 30 minutes + 65℃. The duration and temperature are pre-configured default values ​​stored in the database, which can be customized by the user.

[0136] As can be seen, the same general command is keepwarm. However, due to different devices, the specific command terms (warm vs Keepwarm) and the command content (whether or not there is a temperature parameter) found are different. All of these are completed by the intelligent agent to perform accurate matching queries.

[0137] 6. The smart device executes the control command, obtains the execution result, and sends the result back to the App via the MQTT server: The smart agent formats the two standardized control commands it retrieves into instruction sets that the corresponding device can directly execute, and sends them to the smart device: 1. Send a command set to the rice cooker containing "warm + 30 minutes". After receiving the command, the rice cooker will immediately execute the keep-warm operation. After the operation is started, the execution result "Execution successful, the current device is in keep-warm state, the exclusive execution command is "warm", and the remaining keep-warm time is 29 minutes" will be fed back to the App via the MQTT server. 2. Send the instruction set "Keepwarm +30 minutes +65℃" to the electric steamer. After receiving the instruction, the electric steamer will immediately execute the keep-warm operation. After the operation is started, the execution result "Execution successful, the current device is in keep-warm state, the exclusive execution instruction is Keepwarm, the keep-warm temperature is 65℃, and the remaining keep-warm time is 29 minutes" will be fed back to the App via MQTT server (or Bluetooth).

[0138] Based on the same inventive concept as the above method, combined with Figure 1 and Figure 3 As shown in the figure, this application provides an intelligent device control system, including the following intelligent device and intelligent agent: A smart device for sending general instructions; the general instructions include function control items and the device identifier of the smart device. An intelligent agent is used to implement the intelligent device control method described above.

[0139] continue Figure 1 and Figure 3As shown, the intelligent device control system may also include, but is not limited to: an application client, used to receive function control items and / or recipe-type instructions for selecting intelligent devices from a device list, and generate general instructions; the general instructions include the device identifier of the intelligent device and the instruction type; encapsulate the general instructions into an MQTT message and generate an MQTT topic; the MQTT topic format includes the device identifier of the intelligent device and the instruction type; publish the MQTT topic to the MQTT server, so that the MQTT server returns a message publication success confirmation signal to the application client after receiving the MQTT message; The smart device is further configured to receive, and parse the MQTT message corresponding to the MQTT topic corresponding to its own device ID, when the MQTT server publishes an MQTT topic containing the smart device's ID, to obtain the general instruction.

[0140] In this embodiment, the smart device subscribes to an MQTT topic corresponding to its own device ID, obtains the MQTT message corresponding to the MQTT topic containing its own device ID from the MQTT server, and parses it to obtain the general instruction. In this embodiment, by leveraging the lightweight and targeted message sending capabilities of the MQTT protocol, the accuracy and real-time performance of instruction transmission can be improved. Simultaneously, the lightweight nature of the MQTT protocol reduces network resource consumption. Furthermore, the application client (App) does not need to adapt to the communication protocols and proprietary instructions of different devices; it only needs to send a unified format of general instructions and device ID, significantly simplifying the development and maintenance costs of the App, reducing the frequency of version updates, and achieving universal control of the App.

[0141] In an optional embodiment of this application, the application client is used to send general commands to smart devices that have been pre-paired via Bluetooth. Thus, after establishing a connection with the smart device via Bluetooth, the application client can directly send general commands without relying on a network environment or a cloud server, enabling more convenient device control. This not only improves control efficiency but also provides a reliable backup solution when network conditions are poor.

[0142] In one optional embodiment of this application, the application client is used to send general commands to the smart device via NFC. Thus, users only need to touch the NFC-enabled smart device with the application client to quickly send commands and control the device. This not only simplifies operation but also enables efficient device interaction even without a network or with limited Bluetooth connectivity, further expanding the usage scenarios of smart devices. Simultaneously, it eliminates the need for data exchange through a cloud server, improving data security and preventing unauthorized access or tampering.

[0143] This application provides a product application for implementing any of the above-mentioned intelligent device control methods.

[0144] Figure 4 The diagram shown is a schematic diagram of a computer-readable storage medium provided in an embodiment of this application. The medium 140 stores a computer program, which, when executed by a processor, implements the method of any embodiment of this specification.

[0145] This specification also provides a computing device, including a memory and a processor; the memory is used to store computer instructions that can be executed on the processor, and the processor is used to implement the methods of any embodiment of this specification when executing the computer instructions.

[0146] Figure 5 The diagram shown is a structural schematic of a computing device provided in an embodiment of this application. Figure 5 As shown, the computing device 15 may include, but is not limited to: a processor 151, a memory 152, and a bus 153 connecting different system components (including the memory 152 and the processor 151).

[0147] The memory 152 stores computer instructions that can be executed by the processor 151, enabling the processor 151 to perform the training method of the aesthetic image generation model according to any embodiment of this specification. The memory 152 may include a random access memory unit (RAM) 1521, a cache memory unit (Cache) 1522, and / or a read-only memory unit (ROM) 1523. The memory 152 may also include a program tool 1525 having a set of program modules 1524, including but not limited to: an operating system, one or more application programs, other program modules, and program data. One or more combinations of these program modules may include an implementation of a network environment.

[0148] Bus 153 may include, for example, a data bus, an address bus, and a control bus. The computing device 15 can also communicate with external devices 155 via I / O interface 154, such as a keyboard or a Bluetooth device. The computing device 15 can also communicate with one or more networks via network adapter 156, such as a local area network (LAN), a wide area network (WAN), or a public network. As shown in the figure, the network adapter 156 can also communicate with other modules of the computing device 15 via bus 153.

[0149] Furthermore, although the operations of the methods described in this specification are depicted in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in that specific order, or that all of the operations shown must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps.

[0150] While the spirit and principles of this specification have been described with reference to several specific embodiments, it should be understood that this specification is not limited to the disclosed specific embodiments, and the division of aspects does not imply that features in these aspects cannot be combined for benefit; such division is merely for convenience of expression. This specification is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims

1. A method for controlling an intelligent device, characterized in that, include: Receive a general instruction sent by a smart device; the general instruction includes a function control item and the device identifier of the smart device; Based on the function control items of the general instructions and the device identifier, query from the pre-configured database whether there are standardized control instructions adapted to the device identifier; Based on the query results, the standardized control instructions are formatted into control instructions executable by the smart device; The control command is sent to the smart device so that the smart device executes the control command.

2. The intelligent device control method as described in claim 1, characterized in that, The receiving of general instructions sent by the smart device includes: Receive a first general instruction sent by a first smart device and a second general instruction sent by a second smart device; both the first general instruction and the second general instruction contain the same function control item, and the first general instruction contains a first device identifier of the first smart device, and the second general instruction contains a second device identifier of the second smart device; The standardized control instructions for the first device identifier include the unique instruction words and content of the first device; the standardized control instructions for the second device identifier include the unique instruction words and content of the second device; the unique instruction words and content of the first device and the unique instruction words and content of the second device are different.

3. The intelligent device control method as described in claim 2, characterized in that, The instruction content includes the default instruction content; Sending the control command to the smart device includes: The control command to the smart device includes a default instruction content and a unique instruction word, so that the smart device executes the default instruction content and the unique instruction word; if the smart device receives an instruction to modify the default instruction content, then the smart device executes the modified instruction and the unique instruction word.

4. The intelligent device control method as described in claim 1, characterized in that, The pre-configured database can be obtained using the following method: Import the device information to be updated; Receive the communication protocol type and instruction rules input for the device information to be updated; According to the communication protocol type and instruction rules, generate the profile information of the smart device to be controlled; the instruction rules include general instructions and their corresponding specific control information.

5. The intelligent device control method according to any one of claims 1 to 4, characterized in that, Prior to receiving the general instructions sent by the smart device, the method further includes: The application client receives function control items and / or recipe-type instructions from the device list to select smart devices, generates general instructions, encapsulates the general instructions into MQTT messages, generates MQTT topics, and publishes the MQTT topics to the MQTT server. When a smart device publishes an MQTT topic containing the device identifier of the smart device on the MQTT server, it receives the subscribed MQTT message corresponding to the MQTT topic corresponding to its own device identifier, parses it to obtain the general instruction, and forwards the general instruction to the smart agent. The receiving of general instructions sent by the smart device includes: Receive general instructions issued by the MQTT server and forwarded by the smart device.

6. The intelligent device control method according to any one of claims 1 to 4, characterized in that, Prior to receiving the general instructions sent by the smart device, the method further includes: The application client receives function control items and / or recipe-type instructions from the device list of smart devices, generates general instructions, and sends the general instructions to the smart devices that have been paired with Bluetooth in advance, or sends the general instructions to the smart devices via NFC.

7. The intelligent device control method according to any one of claims 1 to 4, characterized in that, Before receiving a general instruction sent by a smart device, the method further includes: receiving a general instruction directly initiated by the smart device to the smart agent; receiving the general instruction sent by the smart device includes: receiving a general instruction directly initiated by the smart device. And / or, The pre-configured database contains smart devices of the same type but with different device identifiers, and the standardized control instructions configured for the same functional control item by the smart devices of the same type but with different device identifiers are different.

8. The intelligent device control method according to any one of claims 1 to 4, characterized in that, The pre-configured database is integrated into the agent's database; And / or, the pre-configured database is an independent database, separate from the agent's database.

9. A product application, characterized in that, Used to implement the intelligent device control method as described in any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that, It stores a computer program, which, when executed by a processor, performs the intelligent device control method according to any one of claims 1 to 8.