Information query and equipment control method based on AIoT
By analyzing and converting user-input information through the AIoT terminal, the problem of automatic instruction transmission in IoT systems is solved, enabling complex queries and device control through multi-service collaboration, and improving the system's intelligence level.
Patent Information
- Application Number
- CN202511201131.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-26
- Publication Date
- 2025-11-11
AI Technical Summary
Existing IoT systems cannot automatically invoke a device to continue executing instructions based on the results of the previous device until the final task is completed, resulting in a low level of intelligence.
By analyzing and converting user input information through AIoT terminals, matching it with corresponding services, and sending request information sequentially according to the execution order, the system ensures the transmission of query results or control results between services, enabling complex data screening or device control.
It enhances the intelligence of IoT systems, enabling user-inputted queries or control information to complete complex tasks through the collaborative work of multiple services, thereby improving system automation and efficiency.
Smart Images

Figure CN120935220A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of Internet of Things (IoT) technology, and more specifically to an AIoT-based method for information querying and device control. Background Technology
[0002] The Internet of Things (IoT), as a crucial component of next-generation information technology, has found widespread application in fields such as remote control. Traditional IoT platforms comprise a device access layer, a core processing layer, and a service access layer. The device access layer primarily connects user devices to the IoT platform, enabling data interaction between them. The service access layer connects servers to the IoT, facilitating data interaction between the server and the platform. The core processing layer handles core IoT business processes. With the continuous development of AI (Artificial Intelligence) technology, some existing service software combines AI with IoT. It utilizes language models within AI to process natural language commands input by users, translating them into computer language understandable to the computer. This is then used to control the corresponding devices via IoT, allowing users to interact with the software using natural language. With the rapid development of AI, more and more users are accustomed to directly issuing commands to interactive software using natural language to control devices. The integration of AI and IoT to form AIoT (Artificial Intelligence of Things) has become the mainstream development direction for interactive software.
[0003] However, interactive programs based on the AIoT framework essentially use AI for language processing and then deliver the processed commands to the IoT for execution. There is functional overlap in the step of using AI for language processing and then using IoT to select the corresponding object for control. When a user uses multiple interactive software programs, it can easily lead to excessive resource consumption, redundant development and calls, resulting in resource waste. Therefore, existing IoT control often combines IoT systems and AI systems, using AI to analyze the user's command content before further operation through the IoT system. For example, Chinese patent application CN120199241A discloses a control method and device, control equipment and control system for IoT devices. This method first parses the intent of natural language instructions using a large language model, then matches the corresponding target IoT device in the target area according to the intent, and generates the device control instruction corresponding to the target IoT device. However, when the user's intent needs to be realized through multiple interconnected devices, this method cannot automatically convey the execution result of the previous device to the next device and control a device to continue based on the execution result of the previous device, resulting in a low level of intelligence. Summary of the Invention
[0004] The purpose of this invention is to provide an AIoT-based information query and device control method to solve the problem that existing IoT systems cannot automatically call a device to continue executing instructions based on the execution results of the previous device until the final task is completed.
[0005] To address the aforementioned technical problems, this invention provides an AIoT-based information query and device control method, comprising the following steps: The AIoT terminal analyzes the query or control information input by the user and matches it with the registered service information. If there are at least two matched services and there is an execution order among the services, the request information is sent to the corresponding services in the order of execution. After receiving the request information, the service will process it accordingly and return the corresponding query result or control result. If a service needs the query result or control result of another service to process it, the query result or control result of the previous service will be sent to that service along with the request information.
[0006] Furthermore, the request information sent to the service includes user information used to confirm user permissions. Once the service confirms that the user has permission to call the service based on the user information, the service executes query or control functions according to specific parameters; otherwise, the service returns a permission-unauthorized response.
[0007] Furthermore, when the user inputs control information, the AIoT terminal parses it and sends a control request to the corresponding service. The service confirms that the user has the right to call based on the user information in the control request and then sends a control command to the corresponding device through the AIoT terminal. The device sends the execution result to the service through the AIoT terminal. The service converts the execution result into a response result and sends it to the AIoT terminal. The AIoT terminal then converts the response result into natural language and sends it to the user.
[0008] Furthermore, when the user inputs query information, the AIoT terminal sends a query request to the corresponding service. After confirming that the user has the right to access the service based on the user information in the request, the service performs a data query in the corresponding database and sends the query result as a response to the AIoT terminal. The AIoT terminal then converts the response result into natural language and sends it to the user.
[0009] Furthermore, the process of analyzing user input information using the AIoT terminal includes: format conversion and logical sorting of the natural language input by the user, obtaining the functions that need to be implemented from the user information, and matching the functions that need to be implemented with the function information registered by the service to obtain a service that matches the user's instructions; the function information includes a description of the function's purpose, function identifier, function request parameters, corresponding parameters, and parameter meanings.
[0010] Furthermore, the user information is a name or number that can identify the user, and this name and number are associated with services that the user can invoke.
[0011] Furthermore, the service information includes a description of the function's purpose, a function identifier, and function request parameters or response parameters, which are matched to obtain a service that matches the query information or control information.
[0012] The beneficial effects of this invention are as follows: As an improved invention, since in the Internet of Things (IoT), a single service can often only query data based on a single condition or cannot control the device based on the status of the previous device, when the query or control information input by the user requires the use of at least two services, and there is an execution order between the services, request information is sent to the corresponding services in sequence according to the execution order. When a service needs the query or control results of other services to perform corresponding processing, the AIoT terminal sends the query result of the previous service and the request corresponding to the current service to the service corresponding to each step in sequence. This allows the service to perform further queries or further control based on the query result or control result of the previous service, thereby achieving more complex data screening or device control and improving the intelligence level of the IoT system. Attached Figure Description
[0013] Figure 1 This is an example diagram of the request and response program module between the AIoT terminal and the server; Figure 2 This is a service access flowchart; Figure 3 This is a flowchart illustrating the method. Figure 4 This is an information retrieval flowchart; Figure 5 It is a flowchart of equipment control. Detailed Implementation
[0014] The specific embodiments of the present invention will be further described below with reference to the accompanying drawings.
[0015] When the information input by the user requires the use of at least two services and there is an execution order between the services, the present invention sends request information to the corresponding services in the order of execution. When a service needs the query results or control results of other services to perform corresponding processing, the AIoT terminal sends the query results of the previous service and the request corresponding to the current service to the service corresponding to each step in the order of steps, thereby realizing relatively complex data screening or device control.
[0016] Implementation of AIoT-based Information Query and Device Control Method This invention discloses an information query and device control method based on AIoT, which mainly involves the user end, AIoT end and server end.
[0017] The user terminal is primarily used to receive query or control information input from users, both of which are expressed in natural language. Users can input query or control information through an interactive app or program.
[0018] The server is mainly used to connect to various services, such as Figure 2 As shown, when a new service is connected to the server, the first step is to register the service by filling in the service name, identifier, and usage scenario. Then, the functions the service can provide and related information are registered, including a description of the function's purpose, function identifier, function request parameters, response parameters, and the meaning of each parameter. For ease of management and subsequent adaptation, the service needs to be developed according to the unified format provided by the AIoT terminal. After development, it is connected to the AIoT terminal for debugging. Once debugging is complete, the service can be launched for user use. As one example, to improve security, verification steps such as signatures can be added to the server.
[0019] The AIoT terminal primarily matches user-side information with server-side services and generates corresponding requests. Simultaneously, it converts server-side responses into natural language and sends them to the user. In addition to the traditional IoT modules, the AIoT terminal includes semantic analysis, function adaptation, conversion, and communication modules. The semantic analysis module converts user-input natural language (representing queries or control information) into a format suitable for function adaptation. The function adaptation module logically organizes the converted natural language and adapts it to the required functions and services. For example, when a user inputs "open the door" in natural language, the semantic analysis module analyzes it and determines that it should be adapted to the "Opendoor" identifier. It then converts the natural language "open the door" into the computer-understandable identifier "Opendoor," and the function adaptation module adapts the "Opendoor" identifier to the access control service. The conversion module is primarily used to find the registration format corresponding to the adapted function after the function adaptation is completed, and then convert the converted natural language into a request format acceptable to the server based on the registration format. Simultaneously, the query results or command execution results responded by the server are also converted into natural language through the conversion module. The communication module is mainly used for information transmission between the AIoT terminal, the user terminal, and the server.
[0020] The specific steps of the AIoT-based information query and device control method include: 1) Users input natural language commands through the user terminal. like Figure 3 As shown, when a user needs to make a query or control the device, they input a natural language command into the user terminal, which then transmits the command to the AIoT terminal to initiate a request.
[0021] 2) Processing natural language commands using AIoT devices Upon receiving a command from the user, the AIoT device converts the user's natural language input into a format suitable for function adaptation and performs logical processing. Then, based on the natural language logic, the AIoT device searches for a service that matches the command from the services provided by the server. After finding the service the user needs, the AIoT device converts the natural language command according to the request information format registered for that function and adds user information to the converted request information as a basis for verifying user permissions. After completing the processing of the natural language command, the AIoT device sends the processed information to the server.
[0022] The information sent from the AIoT terminal to the server mainly includes several parts: request ID (requestId), message type (msgType), user information (userInfo), function identifier (method), and parameters (param). The request ID (requestId) identifies each request, so each message's request ID is unique. To further standardize the information sent by the AIoT terminal, the request ID should be able to extract time information. The message type (msgType) includes a request and a response. A request is an instruction sent by the user to the server, including data query requests and device control requests; the response is the result returned by the server after completing the data query or device control. User information is used to identify whether a user has the relevant service permissions; this information is generally provided by the user during registration. The function identifier is used to distinguish each service, and each service's function identifier is unique. Parameters refer to the specific request or response parameters included in the information transmitted from the AIoT terminal to the server. Figure 1 The image shows an example of a request-response body (request-response program module) between the AIoT terminal and the server. This program module includes a request ID "68229ff62d209a224ae4946e", a message type "request", user information "2501003011; Zhang Yu", a function identifier "openDoor", and parameters "termName: 5503; delayDuration: 10".
[0023] 3) Execute natural language commands using the server. To ensure the security of server-side devices, users must register before using the AIoT information query and device control system. Their AIoT account must be associated with the corresponding account for each service on the server. The service associated with the user is the one the user is authorized to use. As one example, users must provide identity information such as employee ID, student ID, or national ID number during registration. Simultaneously, the server stores user permission information for each service. When a user logs in and inputs commands through the user terminal, the AIoT device sends the user information to the server to verify whether the user has permission to access the corresponding service.
[0024] When the server receives a user command from the AIoT terminal, it first determines whether the user has permission to call the corresponding service. It compares the user information in the command with the user's required permission information. If the corresponding user information does not exist in the permission information, the server determines that the user does not have the right to call the service and sends a "user does not have permission" response to the AIoT terminal. If the corresponding user information exists in the permission information, the server determines that the user has permission to call the service, executes the command, and sends the execution result to the AIoT terminal.
[0025] When a user inputs query information, the server, after confirming the user's permission to query the data, performs the data query based on the matching service on the AIoT device and returns the query result to the AIoT device. Sometimes, the natural language command input by the user is complex and cannot be obtained from the data stored in only one service. In this case, multiple services need to cooperate. When the AIoT device matches the query information with the registered services, it will match at least two services, and there is an execution order among these services. At this time, the AIoT device will generate a request for the first service according to the execution order and send the request to that service. After that service returns the query result, it will generate a request for the second service and send this request along with the query result from the previous step to the service corresponding to the second step, and so on, until all steps are completed. The AIoT device then converts the final query result into natural language and returns it to the user.
[0026] As one example, such as Figure 4As shown, when a user inputs the natural language command, "Which classrooms in Building 2 are available for self-study?", the AIoT device first performs semantic analysis on the command and then adapts the functionality accordingly. Based on this command, the user needs to find classrooms in Building 2 that have available seats but no scheduled classes for that time period. The analysis suggests first using the academic affairs service to find classrooms without classes, and then using the venue service to filter for available seats among those classrooms without classes. Therefore, the AIoT device will match the academic affairs service (for querying classes) and the venue service (for querying available seats) during function matching. Subsequently, based on the order of the two services, the AIoT device first generates a request to find classrooms without classes in Building 2 and sends it to the academic affairs service. The academic affairs service executes the query request and returns the query results. After the academic affairs service returns the query results, the AIoT device generates a request to filter for available classrooms based on the results returned by the academic affairs service and sends it to the venue service. This request includes the query results returned by the academic affairs service. The venue service filters classrooms with available seats among those without classes based on the request, and returns the filtering results to the AIoT terminal. The AIoT terminal converts the received results into natural language and sends them to the user as the query result.
[0027] When a user inputs control information, the server, after confirming the user's permission to invoke the service, generates request information based on the service matched by the AIoT terminal and the service's registration format. The AIoT terminal sends the request information to the corresponding service to confirm user permission. Once permission is confirmed, the service sends instruction information to the AIoT terminal, which then forwards the instruction to the corresponding device for execution. After the device completes the instruction, it sends the execution result to the AIoT terminal, which then sends the result to the corresponding service. The service returns the result to the AIoT terminal as a response. The AIoT terminal then translates the response into natural language and returns it to the user.
[0028] As one example, such as Figure 5As shown, when a user inputs the command "Open the door to room 503 in Building 3" using natural language, the AIoT terminal receiving the user's information first performs semantic parsing. Based on the parsing result, it adapts the functionality and uses the access control function to complete the door opening action. Subsequently, it converts the natural language command according to the registration format of the adapted access control service to generate request information. The AIoT terminal sends the request information to the access control service on the server. The server determines whether the user has door opening permission based on the user information in the request information. If the user has permission, the server issues a door opening command to the AIoT terminal. After receiving the door opening command, the AIoT terminal issues the command to the corresponding device (in this embodiment, the device that controls the opening of the door to room 503 in Building 3). After completing the door opening command, the device returns a door opening completion message to the AIoT terminal as the processing result. The AIoT terminal returns this processing result to the access control service, which then returns a response result to the AIoT terminal. The AIoT terminal converts the response result into natural language and returns it to the user, indicating that the door opening action has been completed.
[0029] If a user inputs the command "Open the door and light in apartment 503 of building 3" using natural language, the AIoT terminal receiving the user's information first performs semantic analysis. Based on the parsing results, it can match the access control service responsible for opening the door and the smart home service responsible for turning on the light. Subsequently, it converts the natural language command according to the registration format of the matched access control service, generating door opening request information and light turning-on request information. Since there is a specific order between "opening the door" and "turning on the lights," the "turn on the lights" command is meaningless if the door cannot be opened normally to allow the user to enter. Therefore, the AIoT terminal first sends the door opening request information to the access control service on the server. The server determines whether the user has the authority to open the door based on the user information in the request information. If the user has the authority, the server sends the door opening command to the AIoT terminal. After receiving the door opening command, the AIoT terminal sends the command to the corresponding device (i.e., the device that opens the door to room 503 in building 3). After completing the door opening command, the device returns a door opening completion message to the AIoT terminal as the processing result. The AIoT terminal returns the processing result to the access control service, and the access control service then returns a response result to the AIoT terminal. After confirming the door-opening command has been executed, the AIoT device sends the light-on request to the smart home service. Once the smart home service determines the user has permission, it sends the light-on command to the AIoT device. The AIoT device then sends the command to the corresponding device (the light in room 503 that needs to be turned on). After completing the command, the device returns a "light-on complete" message to the AIoT device as the processing result. The AIoT device then returns this result to the smart home service, which in turn returns a response to the AIoT device. The IoT device translates the response into natural language and returns it to the user, indicating that the door-opening and light-on actions have been completed.
[0030] Implementation of AIoT-based Information Query and Device Control System This invention proposes an AIoT-based information query and device control system, including an AIoT terminal for communicating with a user terminal and a server terminal. The AIoT terminal analyzes the query information or control information input by the user terminal and matches it with the services registered by the server terminal. If the matched services include at least two services and there is an execution order among the services, the request information is sent to the corresponding services in the order of execution.
[0031] The AIoT terminal is also used to receive query results or control results sent from the server; the query results or control results are returned by the service after receiving the request information and performing corresponding processing; if a service needs the query results or control results of other services to perform corresponding processing, the AIoT terminal will send the query results or control results of the previous service to the service along with the request information when sending the request information to the service.
[0032] The specific implementation process has been described in detail in the method embodiments, and will not be repeated here.
Claims
1. A method for information query and device control based on AIoT, characterized in that the steps include: include: The AIoT terminal analyzes the query or control information input by the user and matches it with the registered service information. If there are at least two matched services and there is an execution order among the services, the request information is sent to the corresponding services in the order of execution. After receiving the request information, the service processes it accordingly and returns the corresponding query or control results. If a service requires query or control results from other services to perform corresponding processing, then when sending a request to that service, the query or control results from the previous service should also be sent to that service.
2. The information query and device control method based on AIoT according to claim 1, characterized in that, The request information sent to the service includes user information used to confirm user permissions. Once the service confirms that the user has permission to call the service based on the user information, the service will execute the query or control function according to the specific parameters; otherwise, the service will return a permission-not-permit response.
3. The information query and device control method based on AIoT according to claim 2, characterized in that, When the user inputs control information, the AIoT terminal parses it and sends a control request to the corresponding service. The service confirms that the user has the right to call based on the user information in the control request and then sends a control command to the corresponding device through the AIoT terminal. The device sends the execution result to the service through the AIoT terminal. The service converts the execution result into a response result and sends it to the AIoT terminal. The AIoT terminal then converts the response result into natural language and sends it to the user.
4. The AIoT-based information query and device control method according to claim 2, characterized in that, When a user enters query information, the AIoT device sends a query request to the corresponding service. After confirming that the user has the right to access the service based on the user information in the request, the service performs a data query in the corresponding database and sends the query result as a response to the AIoT device. The AIoT device then converts the response result into natural language and sends it to the user.
5. The information query and device control method based on AIoT according to claim 1, characterized in that, The process of analyzing user input information using AIoT terminals includes: format conversion and logical sorting of the natural language input by the user, obtaining the functions that need to be implemented from the user information, and matching the functions that need to be implemented with the function information registered by the service to obtain a service that matches the user's instructions; the function information includes a description of the function's purpose, function identifier, function request parameters, corresponding parameters, and parameter meanings.
6. The AIoT-based information query and device control method according to claim 2, characterized in that, The user information is a name or number that can identify the user, and this name and number are associated with the services that the user can access.
7. The AIoT-based information query and device control method according to claim 1, characterized in that, The service information includes a description of the function's purpose, a function identifier, and function request or response parameters, which are matched to obtain a service that matches the query information or control information.
Citation Information
Patent Citations
Control method, device, equipment and system of Internet of Things equipment
CN120199241A