Smart home function page through method and system and storage medium
The smart home system obtains user input instructions and authentication tokens, performs intent recognition and mapping table query, generates encrypted deep links and verifies them, which solves the problem of cumbersome operations in existing technologies, enables users to directly reach the target function page, improves convenience and intelligence, and enhances the scalability and security of the system.
Patent Information
- Application Number
- CN202510796406.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-16
- Publication Date
- 2025-10-10
AI Technical Summary
The existing method of directly accessing the function page of the smart home system is cumbersome and difficult to adapt to the dynamic changes of functions, resulting in a poor user experience.
By obtaining user input instructions and authentication tokens, performing intent recognition and mapping table query, generating encrypted deep links, parsing and verifying them, and directly mapping them to the corresponding page controller to render the target function page.
It enables users to directly enter the target function page by inputting commands, improves convenience and intelligence, enhances the scalability and security of the system, and ensures user privacy and system security.
Smart Images

Figure CN120763199A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of smart home, and in particular to a smart home function page direct method, system and storage medium. BACKGROUND
[0002] Users have higher and higher requirements for the convenience and intelligence of smart home systems. However, the existing smart home systems have many problems in the aspect of function entry access.
[0003] The existing smart home function page direct method usually requires the user to manually search or perform multiple continuous operations through a fixed menu navigation to jump to the smart home function entry, which is cumbersome. SUMMARY
[0004] The main purpose of the present application is to provide a smart home function page direct method, system and storage medium, which aims to solve the technical problems of the existing smart home function page direct method being cumbersome to operate and difficult to adapt to dynamic changes in functions.
[0005] To achieve the above purpose, the present application provides a smart home function page direct method, which comprises the following steps: Obtaining a user input instruction and user information, the user information at least including a user authentication token; Intention recognition is performed on the user input instruction to obtain a standard function description; Based on the standard function description, the corresponding function entry identifier is obtained in the preset mapping table; According to the user information and the function entry identifier, an encrypted deep link is generated; The encrypted deep link is parsed and verified; if the verification is passed, the function entry identifier is mapped to the corresponding page controller, and the target function page is rendered.
[0006] Preferably, the intention recognition of the user input instruction obtains a standard function description, which at least includes the following steps: The user input instruction is preprocessed to obtain an input text; Based on the preset prompt construction and LLM model, the input text is intention-recognized to generate an intention description; The intention description is converted into a standard function description, which at least includes one of intention, device, behavior, area and value.
[0007] Preferably, based on the standard function description, the corresponding function entry identifier is obtained in the preset mapping table, specifically: Based on the standard function description, the corresponding function entry identifier is queried in the mapping table; If the corresponding function entry identifier is queried, the corresponding function entry identifier is directly returned; if the corresponding function entry identifier is not queried, a new function entry identifier is created and the corresponding standard function description is updated, the preset mapping table is updated, and the corresponding function entry identifier is returned.
[0008] Preferably, the method further comprises: after the target function page is rendered or the user instruction is executed, obtaining an execution result state and feeding back the execution result state.
[0009] Preferably, the execution result state is execution success or execution failure. The step of obtaining the execution result state and feeding back the execution result state comprises the following steps: Obtaining the execution result state and prompting. If the execution result state is execution failure, the execution result state is recorded and the mapping table is optimized.
[0010] Preferably, the encrypted deep link is generated according to the user identity information and the function entry identifier, and the method comprises the following steps: The function entry identifier is encrypted by an encryption algorithm to obtain an encrypted function entry identifier. Based on the function entry identifier and the user authentication token, a digital signature is calculated and generated by a signature algorithm. The encrypted function entry identifier, the user authentication token and the digital signature are taken as encrypted deep link parameters, and are spliced according to a preset format to generate an encrypted deep link.
[0011] Preferably, the encryption algorithm is AES-GCM algorithm.
[0012] Preferably, the encrypted deep link is parsed and verified, and the method comprises the following steps: The encrypted deep link is parsed by the smart home management system to obtain encrypted deep link parameters. Based on the user authentication token, the validity of the user authentication token is verified; if the user authentication token is invalid, the jump request is refused; if the user authentication token is valid, it is verified whether the digital signature is correct. If the digital signature is incorrect, the jump request is refused; if the digital signature is correct, the verification is passed, the encrypted function entry identifier is decrypted to obtain the function entry identifier. The function entry identifier is mapped to the page controller by searching the internal routing table for the page controller corresponding to the function entry identifier, and the target function page is rendered.
[0013] Corresponding to the smart home function page direct method, the application provides a smart home function page direct system, which comprises: A data acquisition module is configured to acquire user input instructions and user information, and the user information at least comprises a user authentication token. an intention analysis module, configured to perform intention recognition on the user input instruction to obtain a standard function description; a dynamic mapping module, configured to obtain a corresponding function entry identifier in a preset mapping table based on the standard function description; a jump link generation module, configured to generate an encrypted deep link according to the user information and the function entry identifier and deliver the encrypted deep link to a page rendering module; the page rendering module, configured to parse and verify the encrypted deep link; if the verification is passed, the function entry identifier is mapped to a corresponding page controller, and a target function page is rendered; if the verification is not passed, the jump request is rejected.
[0014] In addition, to achieve the above object, the application further provides a computer readable storage medium, wherein the computer readable storage medium stores an intelligent home function page direct program, and the intelligent home function page direct program, when executed by a processor, implements the steps of the intelligent home function page direct method as described above.
[0015] The application has the following beneficial effects: (1) Compared with the prior art, the application obtains user input instruction and user information (including authentication token), combines intention recognition and mapping table query, generates an encrypted deep link, parses and verifies the encrypted deep link, maps the function entry identifier to the corresponding page controller after the verification is passed, and renders the target function page. The application solves the problem of complicated operation in the prior art, realizes direct jump to the target function page through the user input instruction, and significantly improves the convenience and intelligent degree.
[0016] (2) Compared with the prior art, the application pre-processes the user input instruction, performs intention recognition based on a preset prompt structure and an LLM model, and converts the intention description into a standard function description, so that the intention recognition is more accurate, the user can accurately express the demand through the natural language instruction, the system quickly understands and responds, and the user experience is further improved.
[0017] (3) Compared with the prior art, the application queries the corresponding function entry identifier in the preset mapping table, creates a new function entry identifier and updates the mapping table if the corresponding function entry identifier is not queried, so that the system can dynamically adapt to the addition or update of the intelligent home platform function, ensures that the user can always quickly locate the target function entry, and enhances the expansibility and adaptability of the system. Moreover, when the intelligent home platform adds a function or updates an existing function, the mapping table only needs to be updated, so that the user can directly jump to the corresponding page according to the user instruction.
[0018] (4) Compared with the existing technology, the present invention obtains the execution result status and provides feedback after the target function page is rendered or the user instruction is executed, so that the user can understand the operation results in time, and at the same time provides data support for system optimization, thereby further improving the intelligence level of the system.
[0019] (5) Compared with the existing technology, the present invention records the status and optimizes the mapping table when the execution fails, which helps the system to adjust in time, improves the accuracy and success rate of subsequent operations, and further enhances user satisfaction.
[0020] (6) Compared with the prior art, the present invention encrypts the function entry identifier through an encryption algorithm, generates a digital signature based on the function entry identifier and the user authentication token, and splices the encrypted function entry identifier, user authentication token and digital signature as parameters into an encrypted deep link for distribution, thereby ensuring the security and integrity of the encrypted deep link, preventing information leakage and tampering, and protecting user privacy and system security.
[0021] (7) Compared with the existing technology, the present invention adopts the AES-GCM algorithm to encrypt the function entry identifier, which has the dual advantages of confidentiality and integrity, effectively prevents information leakage and tampering, ensures the security and reliability of the encrypted deep link during transmission, and further enhances the security of the system.
[0022] (8) Compared with the existing technology, the present invention parses and verifies the encrypted deep link, first verifying the validity of the user authentication token, and then verifying the correctness of the digital signature, to ensure that the jump request comes from a legitimate user and has not been tampered with. After the verification is passed, the function entry identifier is decrypted and mapped to the page controller to render the page, forming a complete security protection mechanism that effectively prevents illegal access and malicious tampering. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings: Figure 1 This is a simplified flowchart of an embodiment of a method for directly accessing a smart home function page according to the present invention; Figure 2 This is a framework diagram of an embodiment of a system for directly accessing smart home function pages according to the present invention. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0025] like Figure 1 As shown, a method for directly accessing a smart home function page of the present invention includes the following steps: Obtaining user input instructions and user information, where the user information at least includes a user authentication token; Recognize the user input command intent and obtain the standard function description (FnDesc); Based on the standard function description, obtain the corresponding function entry identifier (EntryID) in the preset mapping table; Generate an encrypted deep link based on user information and function entry identifier; Parse and verify the encrypted deep link; if the verification passes, map the function entry identifier to the corresponding page controller and render the target function page.
[0026] Preferably, the user input instruction is a natural language instruction input by voice or text, for example: "Turn on the bedroom air conditioner and set it to 24 degrees."
[0027] This invention generates an encrypted deep link by acquiring user input commands and user information (including an authentication token), combining intent recognition with a mapping table query. The smart home management system then parses and verifies the link. Upon successful verification, it maps the function entry identifier to the corresponding page controller and renders the target function page. This invention solves the cumbersome operation problem of the existing technology by enabling direct access to the target function page through user input commands, significantly improving convenience and intelligence.
[0028] In this embodiment, performing intent recognition on a user input instruction to obtain a standard function description includes at least the following steps: Preprocess the user input command to obtain the input text; for example: "Turn on the bedroom air conditioner to 24 degrees"; Preferably, the preprocessing includes at least one of data cleaning, formatting, removing irrelevant words, and speech-to-text conversion; Based on the preset prompt structure and LLM model, the intent of the input text is identified and the intent description is generated; Convert the intent description into a standard function description. A standard function description includes at least one of intent, device, behavior, region, and value; for example: {"intent":"control","device":"air_conditioner","location":"bedroom","action":"set_temperature","value":24}.
[0029] It should be noted that the implementation of the intent recognition function of the LLM model can refer to the existing technology and will not be described in detail here.
[0030] The present invention makes intent recognition more accurate by preprocessing user input instructions, identifying intent based on preset prompt structure and LLM model, and converting intent description into standard function description. Users can accurately express their needs through natural language instructions, and the system can quickly understand and respond, further improving the user experience.
[0031] In this embodiment, based on the standard function description, the corresponding function entry identifier is obtained in the preset mapping table, specifically: Based on the standard function description, the corresponding function entry identifier is searched in the mapping table; If the corresponding function entry identifier is found, the corresponding function entry identifier is directly returned; if the corresponding function entry identifier is not found, a new function entry identifier and the corresponding standard function description are created, the preset mapping table is updated, and the corresponding function entry identifier is returned.
[0032] When a new device type or new natural language expression causes FnDesc to not match the existing EntryID, the cloud management platform can create a new function entry identifier and corresponding standard function description, and update the preset mapping table. This allows users to jump directly to the corresponding page according to the user's instructions.
[0033] The present invention queries the corresponding function entry identifier in the preset mapping table. If no function entry identifier is found, a new function entry identifier is created and the mapping table is updated, so that the system can dynamically adapt to the addition or update of smart home platform functions, ensuring that users can always quickly locate the target function entry, thereby enhancing the scalability and adaptability of the system.
[0034] In this embodiment, the method for directly accessing the smart home function page further includes: after the target function page is rendered or the user instruction is executed, obtaining the execution result status and providing feedback.
[0035] The present invention obtains the execution result status and provides feedback after the target function page is rendered or the user instruction is executed, so that the user can understand the operation results in time, and at the same time provides data support for system optimization, thereby further improving the intelligence level of the system.
[0036] In the embodiment, the execution result state is specifically execution success or execution failure; for example, a successful execution result state code: code=0 is returned, and an error code is returned for failure; The execution result state is obtained and fed back, and at least the following steps are included: The execution result state is obtained and prompted; If the execution result state is execution failure, the execution result state is recorded and the mapping table is optimized.
[0037] The application records the state when the execution fails and optimizes the mapping table, which helps the system to adjust in time, improves the accuracy and success rate of subsequent operations, and further enhances user satisfaction.
[0038] In the embodiment, the encrypted deep link is generated according to the user identity information and the function entry identifier, and at least the following steps are included: The function entry identifier is encrypted by an encryption algorithm to obtain an encrypted function entry identifier; Based on the function entry identifier and the user authentication token, a digital signature is calculated and generated by a signature algorithm; The encrypted function entry identifier, the user authentication token and the digital signature are taken as encrypted deep link parameters, and are spliced according to a preset format to generate an encrypted deep link.
[0039] Preferably, the digital signature is calculated and generated by a signature algorithm, specifically, a message authentication code is calculated by an HMAC algorithm using a pre-set key on parameters including the encrypted function entry identifier, the user authentication token, a timestamp, etc., as the digital signature and attached in the encrypted deep link.
[0040] The application encrypts the function entry identifier by an encryption algorithm, generates a digital signature based on the function entry identifier and the user authentication token, and splices the encrypted function entry identifier, the user authentication token and the digital signature as parameters to generate an encrypted deep link for issuing, so as to ensure the security and integrity of the encrypted deep link, prevent information leakage and tampering, and protect user privacy and system security.
[0041] In the embodiment, the encryption algorithm is specifically an AES-GCM algorithm. The application uses the AES-GCM algorithm to encrypt the function entry identifier, has the dual advantages of confidentiality and integrity, effectively prevents information leakage and tampering, ensures the security and reliability of the encrypted deep link in the transmission process, and further enhances the system security.
[0042] In the embodiment, the encrypted deep link is parsed and verified, and at least the following steps are included: The smart home management system parses the encrypted deep link to obtain encrypted deep link parameters; Based on the user authentication token, the validity of the user authentication token is checked; if the user authentication token is invalid, the jump request is rejected; if the user authentication token is valid, it is verified whether the digital signature is correct; If the digital signature is incorrect, the jump request is rejected; if the digital signature is correct, the check is passed, the encrypted function entry identifier is decrypted to obtain the function entry identifier; The corresponding page controller of the function entry identifier is found through the internal routing table, and the function entry identifier is mapped to the page controller, and the target function page is rendered.
[0043] For the iOS platform, the smart home management system can be called through the OpenURL interface and the encrypted deep link parameter is transmitted; for the Android platform, the target page of the smart home management system is started through the Intent mechanism; for the Web end, the general link or protocol of the browser triggers the page jump; it can be ensured that no matter what terminal is used by the user, the encrypted deep link can be uniformly responded and the corresponding page can be opened.
[0044] Preferably, whether the digital signature is correct is verified, specifically by recalculating the HMAC and comparing it with the digital signature in the encrypted deep link. Only when the user identity token is valid and the signature verification is passed, the corresponding page controller of the function entry identifier is found through the internal routing table, and the function entry identifier is mapped to the page controller, and the target function page is rendered, otherwise the request will be rejected.
[0045] The application analyzes and verifies the encrypted deep link, first verifies the validity of the user authentication token, and then verifies the correctness of the digital signature, to ensure that the jump request comes from a legal user and has not been tampered with. After the verification is passed, the function entry identifier is decrypted and mapped to the page controller to render the page, forming a complete security protection mechanism, effectively preventing illegal access and malicious tampering.
[0046] As shown in Figure 2 The application also provides a smart home function page direct system, which comprises: A data acquisition module 10 is used for acquiring user input instructions and user information, and the user information at least includes a user authentication token; An intent analysis module 20 is used for performing intent recognition on the user input instructions to obtain a standard function description; A dynamic mapping module 30 is used for acquiring a corresponding function entry identifier in a preset mapping table based on the standard function description; A jump link generation module 40 is used for generating an encrypted deep link according to the user information and the function entry identifier and delivering it to a page rendering module; The page rendering module 50 is configured to parse and verify the encrypted deep link, and if the verification is passed, map the function entry identifier to the corresponding page controller, and render the target function page; if the verification is not passed, reject the jump request.
[0047] Preferably, the page rendering module 50 can be independently arranged in the corresponding management system of the smart home, or embedded in the smart home function page direct system.
[0048] The embodiment of the present application also provides a computer readable storage medium, which can be the computer readable storage medium contained in the memory in the above-mentioned embodiment, or can exist independently and not be assembled into the device. The computer readable storage medium stores at least one instruction, which is loaded and executed by the processor to realize the smart home function page direct method shown in the embodiment of the present application. Figure 1 The computer readable storage medium can be a read-only memory, a disk or an optical disk, etc.
[0049] It should be noted that each embodiment in the present specification adopts a progressive manner for description, and each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. For the system embodiment and the storage medium embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant part can be referred to the part of the method embodiment.
[0050] In addition, in the present document, the term "comprising" or "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0051] The above description shows and describes the preferred embodiments of the present application, and it should be understood that the present application is not limited to the forms disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified by the above-mentioned teaching or related art or knowledge within the scope of the present application. The modification and change made by the person skilled in the art without departing from the spirit and scope of the present application shall be within the protection scope of the claims of the present application.
Claims
1. A method for directly accessing a smart home function page, characterized in that: The following steps are involved: Obtain user input instructions and user information, where the user information at least includes a user authentication token; Recognize the user's input intent and obtain a standard function description; Based on the standard function description, obtain the corresponding function entry identifier in the preset mapping table; Generate an encrypted deep link based on user information and function entry identifier; Parse and verify encrypted deep links; If the verification passes, the function entry identifier is mapped to the corresponding page controller and the target function page is rendered.
2. The method for directly accessing the smart home function page according to claim 1, characterized in that: Recognizing the user's input intent and obtaining a standard function description includes at least the following steps: Preprocess the user input command to obtain the input text; Based on the preset prompt structure and LLM model, the intent of the input text is identified and the intent description is generated; Convert the intent description into a standard function description, which includes at least one of intent, device, behavior, area, and value.
3. The method for directly accessing the smart home function page according to claim 1, characterized in that: Based on the standard function description, obtain the corresponding function entry identifier in the preset mapping table, specifically: Based on the standard function description, the corresponding function entry identifier is searched in the mapping table; If the corresponding function entry identifier is found, the corresponding function entry identifier is directly returned; if the corresponding function entry identifier is not found, a new function entry identifier and the corresponding standard function description are created, the preset mapping table is updated, and the corresponding function entry identifier is returned.
4. The method for directly accessing a smart home function page according to claim 1, characterized in that: Also includes: After the target function page is rendered or the user instruction is executed, the execution result status is obtained and feedback is given.
5. The method for directly accessing the smart home function page according to claim 4, characterized in that: The execution result status is specifically execution success or execution failure; Obtaining the execution result status and providing feedback includes at least the following steps: Get the execution result status and prompt; If the execution result status is execution failure, the execution result status is recorded and the mapping table is optimized.
6. The method for directly accessing the smart home function page according to claim 1, characterized in that: Generate an encrypted deep link based on the user identity information and the function entry identifier, which includes at least the following steps: Encrypt the function entry identifier using an encryption algorithm to obtain an encrypted function entry identifier; Based on the function entry identifier and user authentication token, a digital signature is generated through signature algorithm calculation; The encryption function entry identifier, user authentication token and digital signature are used as encrypted deep link parameters, spliced according to the preset format, and an encrypted deep link is generated.
7. The method for directly accessing the smart home function page according to claim 6, characterized in that: The encryption algorithm is specifically the AES-GCM algorithm.
8. The method for directly accessing a smart home function page according to claim 6, characterized in that: Parsing and verifying an encrypted deep link includes at least the following steps: The smart home management system parses the encrypted deep link and obtains the encrypted deep link parameters; Based on the user authentication token, verify the validity of the user authentication token; if the user authentication token is invalid, reject the jump request; if the user authentication token is valid, verify whether the digital signature is correct; If the digital signature is wrong, the jump request is rejected; if the digital signature is correct, the verification is passed, the encrypted function entry identifier is decrypted, and the function entry identifier is obtained; The page controller corresponding to the function entry identifier is searched through the internal routing table, and the function entry identifier is mapped to the page controller to render the target function page.
9. A system for directly accessing smart home function pages, characterized in that: include: A data acquisition module is used to obtain user input instructions and user information, where the user information at least includes a user authentication token; The intent parsing module is used to identify the intent of user input commands and obtain standard function descriptions; A dynamic mapping module is used to obtain the corresponding function entry identifier in the preset mapping table based on the standard function description; The jump link generation module is used to generate an encrypted deep link based on user information and function entry identifiers and send it to the page rendering module; Page rendering module, used to parse and verify encrypted deep links; If the verification passes, the function entry identifier is mapped to the corresponding page controller and the target function page is rendered.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a smart home function page direct access program, and when the smart home function page direct access program is executed by the processor, the steps of the smart home function page direct access method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Page jumping method and device, equipment and storage medium
CN114065084A
Indexing application actions for voice-based execution
CN116508096A
AI voice processing method and system based on intelligent device
CN119920256A