Internet of things terminal association method and Internet of things terminal association system
By utilizing the authentication token and the issue of authentication to be authenticated by associated IoT terminals, the process of association of IoT terminals is simplified, the problem of cumbersome association steps in the existing technology is solved, the user experience is improved, and the connection security is ensured.
Patent Information
- Application Number
- CN202211714512.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-27
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2042-12-27
AI Technical Summary
The steps to associate newly added IoT terminals in the prior art are cumbersome, reducing the user experience.
Receive association requests through the Internet of Things server, use the authentication token of the associated IoT terminal to be associated with the IoT terminal, and perform further authentication through the issue to be authenticated, thereby simplifying the association process.
The process of simplifying the association of IoT terminals has been realized, improving the user experience, and ensuring the security and legality of the connection between the application terminal and the IoT terminal.
Smart Images

Figure CN116170151B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home / intelligent family technology, and in particular to an Internet of Things terminal association method and an Internet of Things terminal association system. Background Art
[0002] With the development of technology, more and more IoT terminals are used in users' daily lives. In order to facilitate the control of multiple IoT terminals, users can log in to their own accounts through applications to control the IoT terminals associated with the accounts. Among them, the server corresponding to the application is different from the server corresponding to the IoT terminal.
[0003] For example, user account A is an account on application A, and application A corresponds to server A. The user owns IoT terminal B, and IoT terminal B corresponds to server B. After the user associates the account with IoT terminal B, control over IoT terminal B can be achieved. The associated process can be a process based on the RFC6749 (OAuth2.0) standard.
[0004] When an IoT terminal C needs to be associated, the process based on the RFC6749 standard needs to be re-executed to associate the account with the IoT terminal C, where the IoT terminal C corresponds to the server B. It can be seen that in the current method of binding IoT terminals, the steps of associating the newly added IoT terminal are cumbersome, which reduces the user experience. Summary of the invention
[0005] The present application provides an Internet of Things terminal association method and an Internet of Things terminal association system, which are used to solve the defect of complicated steps in the prior art for associating newly added Internet of Things terminals, simplify the process of associating Internet of Things terminals, and improve user experience.
[0006] The present application provides an Internet of Things terminal association method, which is applied to an Internet of Things terminal association system, wherein the Internet of Things terminal association system includes a terminal and a server, wherein the terminal includes an Internet of Things terminal and an application terminal, and the server includes an Internet of Things server and an application server;
[0007] Methods include:
[0008] The Internet of Things server receives an association request, wherein the association request is a request sent by the application terminal, the association request includes an identifier of the Internet of Things terminal to be associated and a current token, and the current token is an authentication token of the associated Internet of Things terminal;
[0009] When it is determined that the current token meets the preset token condition, based on the identifier of the IoT terminal to be associated, information to be authenticated is determined and sent to the terminal, wherein the information to be authenticated includes a question to be authenticated;
[0010] Receiving an authentication request, wherein the authentication request is a request sent by the application terminal, and the authentication request includes an answer to be authenticated obtained based on the question to be authenticated;
[0011] When it is determined that the answer to be authenticated meets the preset authentication condition, the IoT terminal to be associated is associated, and the authentication token of the IoT terminal to be associated is sent to the application server, so that the application server sends the authentication token of the IoT terminal to be associated to the application terminal.
[0012] According to a method for associating an IoT terminal provided by the present application, the step of determining the information to be authenticated and sending it to the terminal based on the identifier of the IoT terminal to be associated includes:
[0013] Based on the identifier of the to-be-associated Internet of Things terminal, determining capability information of the to-be-associated Internet of Things terminal;
[0014] Based on the capability information, information to be authenticated is determined and sent to the terminal.
[0015] According to an IoT terminal association method provided by the present application, the step of determining the information to be authenticated based on the capability information and sending it to the terminal includes:
[0016] When the capability information indicates that the IoT terminal to be associated has display capability, the character string question is used as the authentication question and sent to the application terminal, and the character string to be used is sent to the IoT terminal to be associated, wherein the authentication information includes the character string question and the character string to be used;
[0017] When the capability information indicates that the IoT terminal to be associated does not have display capability, at least one IoT terminal information question is selected as the question to be authenticated and sent to the application terminal, wherein the information to be authenticated includes at least one terminal information question.
[0018] According to a method for associating an Internet of Things terminal provided by the present application, before the step of determining the information to be authenticated based on the identifier of the Internet of Things terminal to be associated and sending it to the terminal, the method further includes:
[0019] Determining whether the current token satisfies the preset token condition;
[0020] In the case where the current token meets the preset token condition, the step of determining the information to be authenticated based on the identifier of the IoT terminal to be associated and sending the information to the terminal is performed;
[0021] In the case that the current token does not satisfy the preset token condition, an association failure message is sent to the application server, so that the application server sends association failure information to the application terminal.
[0022] According to an IoT terminal association method provided by the present application, the association request also includes an account identifier;
[0023] The step of determining whether the current token satisfies the preset token condition comprises:
[0024] Determine whether there is a corresponding relationship between the current token and the account identifier, and determine whether the current token meets a preset time limit condition;
[0025] If there is a corresponding relationship between the current token and the account identifier and the preset time limit condition is met, determining that the current token meets the preset token condition;
[0026] In the case that there is no corresponding relationship between the current token and the account identifier and / or the current token does not satisfy the preset time limit condition, it is determined that the current token does not satisfy the preset token condition.
[0027] According to an Internet of Things terminal association method provided by the present application, the step of associating the Internet of Things terminal to be associated includes:
[0028] The corresponding relationship between the account identifier and the identifier of the IoT terminal to be associated is recorded.
[0029] According to a method for associating an Internet of Things terminal provided by the present application, after the step of sending the authentication token of the Internet of Things terminal to be associated to the application server, the method further includes:
[0030] Receiving a control request, wherein the control request is a request sent by the application terminal, the control request includes an authentication token of the to-be-associated IoT terminal, a control instruction and an identifier of the to-be-controlled IoT terminal, and the to-be-controlled IoT terminal identifier is the to-be-associated IoT terminal identifier and / or an identifier of the associated IoT terminal;
[0031] When it is determined that the control request satisfies the preset control condition, a control instruction is sent to the to-be-controlled Internet of Things terminal corresponding to the to-be-controlled Internet of Things terminal identifier.
[0032] The present application also provides an Internet of Things terminal association system, the Internet of Things terminal association system includes a terminal and a server, wherein the terminal includes an Internet of Things terminal and an application terminal, and the server includes an Internet of Things server and an application server;
[0033] The Internet of Things server is used to receive an association request, wherein the association request is a request sent by the application terminal, and the association request includes an identifier of the Internet of Things terminal to be associated and a current token, and the current token is an authentication token of the associated Internet of Things terminal;
[0034] When it is determined that the current token meets the preset token condition, based on the identifier of the IoT terminal to be associated, information to be authenticated is determined and sent to the terminal, wherein the information to be authenticated includes a question to be authenticated;
[0035] Receiving an authentication request, wherein the authentication request is a request sent by the application terminal, and the authentication request includes an answer to be authenticated obtained based on the question to be authenticated;
[0036] When it is determined that the answer to be authenticated meets the preset authentication condition, the IoT terminal to be associated is associated, and the authentication token of the IoT terminal to be associated is sent to the application server, so that the application server sends the authentication token of the IoT terminal to be associated to the application terminal.
[0037] According to an Internet of Things terminal association system provided by the present application, the Internet of Things terminal is specifically used to determine the capability information of the Internet of Things terminal to be associated based on the Internet of Things terminal identifier to be associated;
[0038] Based on the capability information, information to be authenticated is determined and sent to the terminal.
[0039] According to an IoT terminal association system provided by the present application, the IoT terminal is specifically used to, when the capability information indicates that the IoT terminal to be associated has display capability, send the string question as the question to be authenticated to the application terminal, and send the string to be used to the IoT terminal to be associated, wherein the information to be authenticated includes the string question and the string to be used;
[0040] When the capability information indicates that the IoT terminal to be associated does not have display capability, at least one IoT terminal information question is selected as the question to be authenticated and sent to the application terminal, wherein the information to be authenticated includes at least one terminal information question.
[0041] The present application provides an Internet of Things terminal association method and an Internet of Things terminal association system. The method is applied to the Internet of Things terminal association system. The Internet of Things terminal association system includes a terminal and a server, wherein the terminal includes an Internet of Things terminal and an application terminal, and the server includes an Internet of Things server and an application server. The Internet of Things server receives an association request, wherein the association request is a request sent by the application terminal, and the association request includes an identifier of the Internet of Things terminal to be associated and a current token, and the current token is an authentication token of the associated Internet of Things terminal. When it is determined that the current token meets the preset token condition, based on the identifier of the Internet of Things terminal to be associated, the information to be authenticated is determined and sent to the terminal, wherein the information to be authenticated includes a question to be authenticated, and an authentication request is received, wherein the authentication request is a request sent by the application terminal, and the authentication request includes an answer to be authenticated obtained based on the question to be authenticated. When it is determined that the answer to be authenticated meets the preset authentication condition, the Internet of Things terminal to be associated is associated, and the authentication token of the Internet of Things terminal to be associated is sent to the application server, and the application server sends the authentication token of the Internet of Things terminal to be associated to the application terminal.
[0042] In this way, the authentication token of the associated IoT terminal can be used to assist in the process of associating the IoT terminal to be associated, and further authentication can be performed through the question to be authenticated, so that the application terminal can control the IoT terminal to be associated through the authentication token of the IoT terminal to be associated, which can simplify the process of connecting the application terminal and the IoT terminal through cloud-to-cloud interconnection and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0045] Figure 1 It is a hardware environment schematic diagram of an Internet of Things terminal association method according to an embodiment of the present application;
[0046] Figure 2 This is one of the flow diagrams of the IoT terminal association method provided by this application;
[0047] Figure 3 This is the second flow chart of the method for associating IoT terminals provided by this application;
[0048] Figure 4It is a structural diagram of the Internet of Things terminal association system provided by this application;
[0049] Figure 5 It is a schematic diagram of the structure of the electronic device provided in this application. DETAILED DESCRIPTION
[0050] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0051] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0052] According to one aspect of the embodiment of the present application, a method for associating an Internet of Things terminal is provided. The method for associating an Internet of Things terminal is widely used in smart home (Smart Home), smart home, smart home device ecology, smart residential (Intelligence House) ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the above-mentioned Internet of Things terminal association method can be applied to Figure 1 In the hardware environment composed of the terminal device 102 and the server 104 shown in FIG. Figure 1 As shown, the server 104 is connected to the terminal device 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 104.
[0053] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing device, a smart dishwasher, a smart projection device, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart fresh air device, a smart kitchen and bathroom device, a smart bathroom device, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification device, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.
[0054] In order to improve the efficiency of adding IoT terminals, the present application embodiment provides an IoT terminal association method and an IoT terminal association system. Figure 2 An IoT terminal association method provided in an embodiment of the present application is introduced:
[0055] like Figure 2 As shown, an embodiment of the present application provides an Internet of Things terminal association method, which is applied to an Internet of Things terminal association system. The Internet of Things terminal association system may include a terminal and a server, wherein the terminal includes an Internet of Things terminal and an application terminal, and the server includes an Internet of Things server and an application server.
[0056] There is a corresponding relationship between the IoT server and the IoT terminal, there is a corresponding relationship between the application server and the application terminal, the IoT server and the application server can communicate, and the communication between the IoT server and the application server can be called cloud-to-cloud interconnection. Among them, the IoT server can be an IoT authentication server. The IoT terminal can include multiple IoT terminals, and the IoT terminal can include associated IoT terminals and IoT terminals to be associated. The associated IoT terminal can include multiple IoT terminals.
[0057] Methods include:
[0058] S201, the Internet of Things server receives an association request.
[0059] When the user needs to associate the account with the IoT terminal to be associated after the account and other IoT terminals have been associated, the user can configure the network for the IoT terminal to be associated. After the network configuration is successful, the user can click the association button displayed on the application terminal, and the application terminal can send an association request to the application server. After receiving the association request, the application server can send the association request to the IoT server after verifying that the association request is legal. In this way, the IoT server can receive the association request.
[0060] The association request is a request sent by the application terminal, and the association request may include the identifier of the IoT terminal to be associated and the current token, where the current token is the authentication token of the associated IoT terminal.
[0061] The current token is the credential that the application terminal uses to control the associated IoT terminal through cloud-to-cloud interconnection. That is to say, when the application terminal obtains the control information and the current token for controlling the associated IoT terminal, it needs to send a control request carrying the current token and control instructions to the application server. The application server can send the control request to the IoT server. After verifying that the current token is legal, the IoT server can send the control instruction to the associated IoT terminal. Then, the associated IoT terminal can execute the content corresponding to the control instruction.
[0062] S202: When it is determined that the current token satisfies a preset token condition, based on the identifier of the IoT terminal to be associated, determine information to be authenticated and send the information to the terminal.
[0063] When the IoT server determines that the current token meets the preset token condition, it can determine the information to be authenticated based on the IoT terminal identifier to be associated, and send the information to be authenticated to the terminal. The information to be authenticated can include the question to be authenticated.
[0064] The authentication question is used to authenticate whether the IoT device that the user wants to associate is the IoT terminal to be associated corresponding to the IoT terminal identifier to be associated. There is a corresponding relationship between the authentication question and the capability of the IoT terminal to be associated.
[0065] The question to be authenticated can be a string question and / or an IoT terminal information question. There are three situations in which the information to be authenticated is sent to the terminal:
[0066] In the first case, that is, when the problem to be authenticated is an IoT terminal information problem, the information to be authenticated only includes the problem to be authenticated, and the problem to be authenticated can be sent to the application terminal, that is, the information to be authenticated is sent to the application terminal.
[0067] In the second case, when the question to be authenticated is a string question, the information to be authenticated includes the question to be authenticated and the string to be used. The question to be authenticated can be sent to the application terminal, and the string to be used can be sent to the IoT terminal to be associated. There is a corresponding relationship between the string question and the string to be used.
[0068] In the third case, when the question to be authenticated is a string question and an IoT terminal information question, the information to be authenticated includes the question to be authenticated and the string to be used. The question to be authenticated can be sent to the application terminal, and the string to be used can be sent to the IoT terminal to be associated.
[0069] In the above three cases, the step of sending the authentication question to the application terminal is to send the authentication question to the application server, and the application server sends the authentication question to the application terminal, so that the application terminal can receive the authentication question.
[0070] After the user learns the question to be authenticated, he can input the answer to the question to be authenticated into the application terminal. In this way, the terminal can obtain the answer to be authenticated, and then send an authentication request including the answer to be authenticated to the application server. The application server can send the authentication request to the Internet of Things server.
[0071] S203: Receive an authentication request.
[0072] The authentication request is a request sent by the application terminal, and the authentication request includes an answer to be authenticated obtained based on the question to be authenticated.
[0073] After receiving the authentication request, it can be determined whether the answer to be authenticated meets the preset authentication conditions, that is, whether the answer to be authenticated is the answer to the question to be authenticated. If the answer to be authenticated is not the answer to the question to be authenticated, it means that the answer to be authenticated does not meet the preset authentication conditions. Therefore, the Internet of Things server can send an authentication failure message to the application server, and the application server can send the authentication failure message to the application terminal.
[0074] S204, when it is determined that the answer to be authenticated meets the preset authentication condition, associate the IoT terminal to be associated, and send the authentication token of the IoT terminal to be associated to the application server, so that the application server sends the authentication token of the IoT terminal to be associated to the application terminal.
[0075] When the answer to be authenticated is the answer to the question to be authenticated, it means that the answer to be authenticated meets the preset authentication condition. When the IoT server determines that the answer to be authenticated meets the preset authentication condition, it associates the IoT terminal to be associated, and sends the pre-generated authentication token of the IoT terminal to be associated to the application server, and the application server sends the authentication token of the IoT terminal to be associated to the application terminal.
[0076] It can be seen that in this embodiment, the Internet of Things server can receive a connection request including an authentication token of an associated Internet of Things terminal and an identifier of an Internet of Things terminal to be associated, and then send a question to be authenticated to the terminal. When receiving an authentication request including an answer to be authenticated and determining that the answer to be authenticated meets a preset authentication condition, the authentication token of the Internet of Things terminal to be associated is sent to the terminal. In this way, the application terminal can control the Internet of Things terminal to be associated based on the authentication token of the Internet of Things terminal to be associated. Compared with the association method of the process based on the RFC6749 (OAuth2.0) standard, it can simplify the process of connecting the application terminal and the Internet of Things terminal through cloud-to-cloud interconnection, and can improve the user experience.
[0077] That is to say, an IoT terminal association method provided in an embodiment of the present application can solve the problem of cumbersome procedures when a user needs to associate an account with an IoT terminal to be associated after the account and other IoT terminals have been associated. The authentication token of the associated IoT terminal is used to assist in the process of associating the IoT terminal to be associated, and further security authentication is performed on this basis through the issue to be authenticated, which can ensure the security and legality of the connection between the application terminal and the IoT terminal.
[0078] As an implementation of an embodiment of the present application, the above step of determining the information to be authenticated and sending it to the terminal based on the identifier of the IoT terminal to be associated may include:
[0079] Based on the identifier of the IoT terminal to be associated, the capability information of the IoT terminal to be associated is determined. The IoT server stores the corresponding relationship between the identifier of the IoT terminal to be associated and the capability information of the IoT terminal to be associated. The capability information is information that can indicate whether the IoT terminal to be associated has display capability.
[0080] Based on the capability information, information to be authenticated is determined and sent to the terminal.
[0081] After obtaining the capability information, the information to be authenticated can be obtained based on the capability information and sent to the terminal. The information to be authenticated includes a question to be authenticated, which can be a string question and an IoT terminal information question.
[0082] The IoT terminal information issues are issues related to the IoT terminal information to be associated. The IoT terminal information issues may include multiple issues. The IoT terminal information issues may include IoT terminal model issues, IoT terminal color issues, IoT terminal number issues, etc. These are all reasonable and are not specifically limited here.
[0083] When the capability information indicates that the IoT terminal to be associated has display capability, corresponding to the second case above, that is, when the question to be authenticated is a string question, the string question can be used as the question to be authenticated and sent to the application server, and then the application server sends the string question to the application terminal and the string to be used to the IoT terminal to be associated. The information to be authenticated includes the string question and the string to be used.
[0084] After obtaining the string question, the application terminal can display the string question. After receiving the string to be used, the Internet of Things terminal can display the string to be used. In this way, the user can input the string to be used as the answer to the string question into the application terminal, and the application terminal can obtain the string to be used, and then can send an authentication request to the application server based on the string to be used, and the application server can send an authentication request to the Internet of Things server.
[0085] After receiving the authentication request, the IoT server can obtain the character string carried in the authentication request, and when the character string carried in the authentication request is a character string to be used sent to the IoT terminal to be associated, determine whether the answer to be authenticated meets the preset authentication condition.
[0086] Corresponding to the third case above, that is, when the problem to be authenticated is a string problem and an IoT terminal information problem, the string problem and the IoT terminal information problem can be used as the problem to be authenticated and sent to the application server, and then the application server sends the string problem and the IoT terminal information problem to the application terminal, and sends the string to be used to the IoT terminal to be associated. The information to be authenticated includes the IoT terminal information, the string problem and the string to be used.
[0087] After obtaining the string question and the IoT terminal information question, the application terminal can display the string question and the IoT terminal information question. After receiving the string to be used, the IoT terminal can display the string to be used. In this way, the user can input the string to be used as the answer to the string question into the application terminal, and input the answer corresponding to the IoT terminal information question into the application terminal.
[0088] After obtaining the information answer corresponding to the character string to be used and the IoT terminal information question, the application terminal can send an authentication request to the application server based on the character string to be used and the information answer, and the application server can send an authentication request to the IoT server.
[0089] After receiving the authentication request, the IoT server can obtain the character string carried by the authentication request and the information answer carried by the authentication request. When the character string carried by the authentication request is the character string to be used sent to the IoT terminal to be associated, and the information answer is consistent with the information of the IoT terminal to be associated, it is determined that the answer to be authenticated meets the preset authentication conditions.
[0090] When the capability information indicates that the IoT terminal to be associated does not have display capability, corresponding to the first case above, that is, when the question to be authenticated is an IoT terminal information question, at least one IoT terminal information question is selected as the question to be authenticated and sent to the application server, and then the application server sends the IoT terminal information question to the application terminal. The information to be authenticated includes at least one terminal information question.
[0091] After obtaining the IoT terminal information question, the application terminal can display the IoT terminal information question, so that the user can input the answer corresponding to the IoT terminal information question into the application terminal.
[0092] After obtaining the information answer corresponding to the IoT terminal information question, the application terminal can send an authentication request to the application server based on the information answer, and the application server can send an authentication request to the IoT server.
[0093] After receiving the authentication request, the IoT server can obtain the information answer carried in the authentication request, and when the information answer is consistent with the information of the IoT terminal to be associated, it is determined that the answer to be authenticated meets the preset authentication conditions.
[0094] For example, when the IoT terminal information question is about the IoT terminal model, the information answer is information related to the model. When the model corresponding to the information answer is consistent with the model of the IoT terminal to be associated, it is determined that the answer to be authenticated meets the preset authentication condition.
[0095] When the IoT terminal information question is a question about the color of the IoT terminal, the information answer is information related to color. When the color corresponding to the information answer is consistent with the color of the IoT terminal to be associated, it is determined that the answer to be authenticated meets the preset authentication condition.
[0096] When the IoT terminal information question is an IoT terminal number question, the information answer is information related to the number. When the number corresponding to the information answer is consistent with the number of the IoT terminal to be associated, it is determined that the answer to be authenticated meets the preset authentication condition.
[0097] It can be seen that in this embodiment, according to the information of whether the IoT terminal to be associated has display capability indicated by the capability information, a method of sending the information to be authenticated to the terminal can be executed accordingly, so that the user can be informed of the problem to be authenticated so as to complete the association later.
[0098] As an implementation of an embodiment of the present application, before the step of determining the information to be authenticated based on the identifier of the IoT terminal to be associated and sending it to the terminal, the method may further include:
[0099] Determine whether the current token meets the preset token conditions. If the current token meets the preset token conditions, it means that the current token is available and legal. Therefore, the step of determining the information to be authenticated based on the identifier of the IoT terminal to be associated and sending it to the terminal can be executed.
[0100] When the current token does not meet the preset token condition, it means that the current token may not be available and / or the current token is illegal. Therefore, an association failure message may be sent to the application server, so that the application server sends the association failure information to the application terminal.
[0101] It can be seen that in this embodiment, it is possible to determine whether the current token meets the preset token conditions, thereby executing different steps, thereby further ensuring the legitimacy and security of the associated IoT terminal to be associated.
[0102] As an implementation method of an embodiment of the present application, the above-mentioned association request may also include an account identifier, wherein the account identifier is a unique identifier that identifies the user's account. The account identifier may be an account number, a pre-set unique identifier, or a unique string generated based on the account. All of these are reasonable and are not specifically limited here.
[0103] The above step of determining whether the current token satisfies the preset token condition may include:
[0104] Determine whether there is a corresponding relationship between the current token and the account identifier, and determine whether the current token meets a preset time limit condition. If there is a corresponding relationship between the current token and the account identifier, and the preset time limit condition is met, determine that the current token meets the preset token condition. The preset time limit condition is that the token is the latest token corresponding to the associated IoT terminal.
[0105] In the case that there is no corresponding relationship between the current token and the account identifier and / or the current token does not satisfy the preset time limit condition, it is determined that the current token does not satisfy the preset token condition.
[0106] In one embodiment, when receiving an association request, the application server can determine whether the account identifier is legal. If the account identifier is legal, the association request is sent to the Internet of Things server. If the account identifier is illegal, an association failure message is sent to the application terminal.
[0107] When the application server receives an authentication request, the authentication request may carry an account identifier. The application server may determine whether the account identifier is legal. If the account identifier is legal, the authentication request is sent to the IoT server. If the account identifier is illegal, the authentication failure information is sent to the IoT server and the application terminal.
[0108] When the IoT server sends the authentication question to the application terminal, the authentication question can carry the account ID. The application server can send the authentication question to the application terminal when it determines that the account ID is legal. When it determines that the account ID is illegal, it can return verification failure information to the IoT server and the application terminal.
[0109] After the IoT server sends the authentication token of the IoT terminal to be associated to the application server, the authentication token of the IoT terminal to be associated can carry the account ID. The application server can send the authentication token of the IoT terminal to be associated to the application terminal if it determines that the account ID is legal. If it determines that the account ID is illegal, it can return verification failure information to the IoT server and the application terminal.
[0110] It can be seen that in this embodiment, it is possible to accurately determine whether the current token meets the preset token conditions, and determine whether the account identification is legal through the application server, which can further improve the security and legality in the process of associating the IoT terminal to be associated.
[0111] As an implementation of an embodiment of the present application, the above step of associating the IoT terminal to be associated may include:
[0112] The corresponding relationship between the account identifier and the identifier of the IoT terminal to be associated is recorded.
[0113] In one implementation, the application server may also record the correspondence between the account identifier and the identifier of the IoT terminal to be associated, so that when the application terminal subsequently sends a control instruction, it can verify whether the control instruction is legal, thereby further improving security and legality.
[0114] As an implementation of an embodiment of the present application, after the above step of sending the authentication token of the IoT terminal to be associated to the application server, the above method may further include:
[0115] Receive control requests.
[0116] When the application terminal receives the authentication token of the IoT terminal to be associated, it can send a control request to the application server. After receiving the control request, the application server can send a control request to the IoT server.
[0117] The control request is a request sent by the application terminal, and is used to request control of an associated IoT terminal. The control request includes an authentication token of the IoT terminal to be associated, a control instruction, and an identifier of the IoT terminal to be controlled, where the identifier of the IoT terminal to be controlled is the identifier of the IoT terminal to be associated and / or the identifier of the associated IoT terminal.
[0118] When the application terminal receives the authentication token of the IoT terminal to be associated, the associated IoT terminals include the IoT terminal to be associated and the associated IoT terminal corresponding to the current token. The authentication token of the IoT terminal to be associated is the credential for the application terminal to control the associated IoT terminal through cloud-to-cloud interconnection.
[0119] When it is determined that the control request meets the preset control condition, a control instruction is sent to the to-be-controlled Internet of Things terminal corresponding to the to-be-controlled Internet of Things terminal identifier, and the to-be-controlled Internet of Things terminal corresponding to the to-be-controlled Internet of Things terminal identifier can execute the control instruction.
[0120] When the Internet of Things terminal receives a control request, it can determine whether the control request meets the preset control conditions. When it is determined that there is a corresponding relationship between the authentication token of the Internet of Things terminal to be associated included in the control request and the identifier of the Internet of Things terminal to be controlled, and the authentication token of the Internet of Things terminal to be associated meets the preset period condition, it can be determined that the control request meets the preset control conditions.
[0121] When it is determined that there is no corresponding relationship between the authentication token of the IoT terminal to be associated included in the control request and the identifier of the IoT terminal to be controlled, and / or the authentication token of the IoT terminal to be associated does not meet the preset time limit condition, it is determined that the control request does not meet the preset control condition.
[0122] When it is determined that the control request does not meet the preset control condition, the IoT server may send a control failure message to the application server, and the application server may send the control failure message to the application terminal.
[0123] In one embodiment, the control request includes the authentication token of the IoT terminal to be associated, the control instruction, the IoT terminal identifier to be controlled, and the account identifier. When the application server receives the control request, it can determine whether the account identifier is legal. If the account identifier is legal, the control request is sent to the IoT server. If the account identifier is illegal, the control failure information is sent to the IoT server and the application terminal.
[0124] It can be seen that in this embodiment, the application terminal can control the associated Internet of Things terminals through cloud-to-cloud interconnection.
[0125] In order to more conveniently understand the method for associating an Internet of Things terminal provided in the embodiment of the present application, Figure 3 Taking this as an example, an IoT terminal association method provided in an embodiment of the present application is introduced by way of example.
[0126] S301, the application terminal sends an association request to the application server.
[0127] Among them, the association request includes the current token A, the account identifier and the IoT terminal B identifier (the IoT terminal identifier to be associated), and the current token A is the authentication token of the IoT terminal A (the associated IoT terminal).
[0128] S302: The application server sends an association request to the Internet of Things server.
[0129] S303, the IoT server receives the association request, and when it is determined that there is a corresponding relationship between the current token A and the account identifier and that the preset time limit condition is met, the IoT server determines the string problem and the string to be used as the information to be authenticated based on the IoT terminal B identifier.
[0130] S304, the IoT server sends the character string to be used to IoT terminal B.
[0131] S305, the IoT server sends the string question to the application server.
[0132] S306, the application server sends the character string question to the application terminal.
[0133] S307, IoT terminal B receives the character string to be used and displays it.
[0134] S308, the application terminal receives a character string question and obtains a character string to be used.
[0135] S309, the application terminal sends an authentication request to the application server.
[0136] The authentication request includes the character string to be used and the account ID.
[0137] S310, the application server sends an authentication request to the IoT server.
[0138] S311, the Internet of Things server receives the authentication request, and when determining that the character string included in the authentication request is a character string to be used and sent to the Internet of Things terminal B, records the correspondence between the Internet of Things terminal B identifier and the account identifier.
[0139] S312, the IoT server sends the authentication token B of the IoT terminal B to the application server.
[0140] S313, the application server sends the authentication token B of the IoT terminal B to the application terminal.
[0141] Among them, authentication token B is the credential used by the application terminal to control IoT terminal A and IoT terminal B through cloud-to-cloud interconnection.
[0142] It can be seen that in this embodiment, the application terminal can obtain the authentication token B that can control the Internet of Things terminal A and the Internet of Things terminal B. In the process of obtaining the authentication token B, the current token A can be used to assist in associating the Internet of Things terminal B, and then further security authentication can be performed on this basis through the questions to be authenticated, which can ensure the security and legality of the connection between the application terminal and the Internet of Things terminal B.
[0143] The Internet of Things terminal association system provided by the present application is described below. The Internet of Things terminal association system described below and the Internet of Things terminal association method described above can be referenced to each other.
[0144] like Figure 4 As shown, the embodiment of the present application provides an Internet of Things terminal association system, the Internet of Things terminal association system includes a terminal and a server, wherein the terminal includes an Internet of Things terminal 401 and an application terminal 402, and the server includes an Internet of Things server 403 and an application server 404. The Internet of Things terminal 402 may include multiple Internet of Things terminals, and the Internet of Things terminal 401 may include an associated Internet of Things terminal 410 and an Internet of Things terminal to be associated 420.
[0145] The IoT server 403 receives an association request, wherein the association request is a request sent by the application terminal 402, and the association request includes an identifier of the IoT terminal to be associated and a current token, and the current token is an authentication token of the associated IoT terminal 410;
[0146] When it is determined that the current token meets the preset token condition, based on the identifier of the IoT terminal to be associated, information to be authenticated is determined and sent to the terminal, wherein the information to be authenticated includes a question to be authenticated;
[0147] Receiving an authentication request, wherein the authentication request is a request sent by the application terminal 402, and the authentication request includes an answer to be authenticated obtained based on the question to be authenticated;
[0148] When it is determined that the answer to be authenticated meets the preset authentication conditions, the IoT terminal 420 to be associated is associated, and the authentication token of the IoT terminal 420 to be associated is sent to the application server 404, so that the application server sends the authentication token of the IoT terminal 420 to be associated to the application terminal 402.
[0149] As an implementation of the embodiment of the present application, the above-mentioned Internet of Things server 403 is specifically used to determine the capability information of the Internet of Things terminal 420 to be associated based on the identifier of the Internet of Things terminal to be associated;
[0150] Based on the capability information, information to be authenticated is determined and sent to the terminal.
[0151] As an implementation of an embodiment of the present application, the IoT server 403 is specifically configured to, when the capability information indicates that the IoT terminal 420 to be associated has display capability, use the string question as the question to be authenticated and send it to the application terminal 402, and send the string to be used to the IoT terminal 401 to be associated, wherein the information to be authenticated includes the string question and the string to be used;
[0152] When the capability information indicates that the IoT terminal 420 to be associated does not have display capability, at least one IoT terminal information question is selected as the question to be authenticated and sent to the application terminal 402, wherein the information to be authenticated includes at least one terminal information question.
[0153] As an implementation method of the embodiment of the present application, the above-mentioned Internet of Things server 403 is specifically used to determine whether the current token meets the preset token condition;
[0154] In the case where the current token meets the preset token condition, the step of determining the information to be authenticated based on the identifier of the IoT terminal to be associated and sending the information to the terminal is performed;
[0155] In the case that the current token does not satisfy the preset token condition, an association failure message is sent to the application server 404 , so that the application server 404 sends association failure information to the application terminal 402 .
[0156] As an implementation method of an embodiment of the present application, the above association request also includes an account identifier.
[0157] The IoT server 403 is specifically used to determine whether there is a corresponding relationship between the current token and the account identifier, and to determine whether the current token meets a preset time limit condition;
[0158] If there is a corresponding relationship between the current token and the account identifier and the preset time limit condition is met, determining that the current token meets the preset token condition;
[0159] In the case that there is no corresponding relationship between the current token and the account identifier and / or the current token does not satisfy the preset time limit condition, it is determined that the current token does not satisfy the preset token condition.
[0160] As an implementation of an embodiment of the present application, the above-mentioned Internet of Things server 403 is specifically used to record the corresponding relationship between the account identifier and the Internet of Things terminal identifier to be associated.
[0161] As an implementation method of an embodiment of the present application, the above-mentioned Internet of Things server 403 is specifically used to receive a control request, wherein the control request is a request sent by the application terminal 402, and the control request includes an authentication token of the Internet of Things terminal 420 to be associated, a control instruction and an identifier of the Internet of Things terminal to be controlled, and the identifier of the Internet of Things terminal to be controlled is the identifier of the Internet of Things terminal to be associated and / or the identifier of the associated Internet of Things terminal 410;
[0162] When it is determined that the control request satisfies the preset control condition, a control instruction is sent to the to-be-controlled Internet of Things terminal 420 corresponding to the to-be-controlled Internet of Things terminal identifier.
[0163] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the above-mentioned IoT terminal association method. The electronic device may be one of an IoT terminal, an application terminal, an IoT server and an application server.
[0164] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0165] On the other hand, the present application also provides a computer program product, which includes a computer program. The computer program can be stored on a computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the above-mentioned Internet of Things terminal association method provided by the above-mentioned methods.
[0166] On the other hand, the present application also provides a computer-readable storage medium, which includes a stored program, wherein when the program is run, the above-mentioned Internet of Things terminal association method provided by the above-mentioned methods is executed.
[0167] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0168] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0169] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for associating an Internet of Things terminal, characterized in that: Applicable to an Internet of Things terminal association system, the Internet of Things terminal association system includes a terminal and a server, wherein the terminal includes an Internet of Things terminal and an application terminal, and the server includes an Internet of Things server and an application server; The method comprises: The Internet of Things server receives an association request, wherein the association request is a request sent by the application terminal, the association request includes an identifier of the Internet of Things terminal to be associated and a current token, the current token is an authentication token of the associated Internet of Things terminal, and the current token is a credential for the application terminal to control the associated Internet of Things terminal through a cloud-to-cloud interconnection method; When it is determined that the current token meets the preset token condition, based on the identifier of the IoT terminal to be associated, information to be authenticated is determined and sent to the terminal, wherein the information to be authenticated includes a question to be authenticated; Receiving an authentication request, wherein the authentication request is a request sent by the application terminal, and the authentication request includes an answer to be authenticated obtained based on the question to be authenticated; When it is determined that the answer to be authenticated satisfies a preset authentication condition, associating the IoT terminal to be associated, and sending the authentication token of the IoT terminal to be associated to the application server, so that the application server sends the authentication token of the IoT terminal to be associated to the application terminal; The step of determining the information to be authenticated and sending it to the terminal based on the identifier of the IoT terminal to be associated includes: Based on the identifier of the to-be-associated Internet of Things terminal, determining capability information of the to-be-associated Internet of Things terminal; Based on the capability information, information to be authenticated is determined and sent to the terminal.
2. The method for associating IoT terminals according to claim 1, characterized in that: The step of determining the information to be authenticated based on the capability information and sending the information to the terminal comprises: When the capability information indicates that the IoT terminal to be associated has display capability, the character string question is used as the authentication question and sent to the application terminal, and the character string to be used is sent to the IoT terminal to be associated, wherein the authentication information includes the character string question and the character string to be used; When the capability information indicates that the IoT terminal to be associated does not have display capability, at least one IoT terminal information question is selected as the question to be authenticated and sent to the application terminal, wherein the information to be authenticated includes at least one terminal information question.
3. The method for associating Internet of Things terminals according to claim 1 or 2, characterized in that: Before the step of determining the information to be authenticated based on the identifier of the IoT terminal to be associated and sending the information to the terminal, the method further includes: Determining whether the current token satisfies the preset token condition; In the case where the current token meets the preset token condition, the step of determining the information to be authenticated based on the identifier of the IoT terminal to be associated and sending the information to the terminal is performed; In the case that the current token does not satisfy the preset token condition, an association failure message is sent to the application server, so that the application server sends association failure information to the application terminal.
4. The method for associating IoT terminals according to claim 3, characterized in that: The association request also includes an account identifier; The step of determining whether the current token satisfies the preset token condition comprises: Determine whether there is a corresponding relationship between the current token and the account identifier, and determine whether the current token meets a preset time limit condition; If there is a corresponding relationship between the current token and the account identifier and the preset time limit condition is met, determining that the current token meets the preset token condition; In the case that there is no corresponding relationship between the current token and the account identifier and / or the current token does not satisfy the preset time limit condition, it is determined that the current token does not satisfy the preset token condition.
5. The method for associating IoT terminals according to claim 4, characterized in that: The step of associating the to-be-associated IoT terminal includes: The corresponding relationship between the account identifier and the identifier of the IoT terminal to be associated is recorded.
6. The method for associating Internet of Things terminals according to claim 1 or 2, characterized in that: After the step of sending the authentication token of the to-be-associated IoT terminal to the application server, the method further includes: Receiving a control request, wherein the control request is a request sent by the application terminal, the control request includes an authentication token of the to-be-associated IoT terminal, a control instruction and an identifier of the to-be-controlled IoT terminal, and the to-be-controlled IoT terminal identifier is the to-be-associated IoT terminal identifier and / or an identifier of the associated IoT terminal; When it is determined that the control request satisfies the preset control condition, a control instruction is sent to the to-be-controlled Internet of Things terminal corresponding to the to-be-controlled Internet of Things terminal identifier.
7. An Internet of Things terminal association system, characterized in that: The Internet of Things terminal association system includes a terminal and a server, wherein the terminal includes an Internet of Things terminal and an application terminal, and the server includes an Internet of Things server and an application server; The Internet of Things server is used to receive an association request, wherein the association request is a request sent by the application terminal, the association request includes an identifier of the Internet of Things terminal to be associated and a current token, the current token is an authentication token of the associated Internet of Things terminal, and the current token is a credential for the application terminal to control the associated Internet of Things terminal through cloud-to-cloud interconnection; When it is determined that the current token meets the preset token condition, based on the identifier of the IoT terminal to be associated, information to be authenticated is determined and sent to the terminal, wherein the information to be authenticated includes a question to be authenticated; Receiving an authentication request, wherein the authentication request is a request sent by the application terminal, and the authentication request includes an answer to be authenticated obtained based on the question to be authenticated; When it is determined that the answer to be authenticated satisfies a preset authentication condition, associating the IoT terminal to be associated, and sending the authentication token of the IoT terminal to be associated to the application server, so that the application server sends the authentication token of the IoT terminal to be associated to the application terminal; The IoT terminal is specifically used to determine the capability information of the IoT terminal to be associated based on the IoT terminal identifier to be associated; Based on the capability information, information to be authenticated is determined and sent to the terminal.
8. The Internet of Things terminal association system according to claim 7, characterized in that: The Internet of Things terminal is specifically configured to, when the capability information indicates that the Internet of Things terminal to be associated has display capability, send the string question as the question to be authenticated to the application terminal, and send the string to be used to the Internet of Things terminal to be associated, wherein the information to be authenticated includes the string question and the string to be used; When the capability information indicates that the IoT terminal to be associated does not have display capability, at least one IoT terminal information question is selected as the question to be authenticated and sent to the application terminal, wherein the information to be authenticated includes at least one terminal information question.
Citation Information
Patent Citations
Equipment authentication method, device and system, terminal equipment and storage medium
CN112417425A
Internet of Things equipment binding method, device and system, cloud server and storage medium
CN113746633A
Message pushing method and device, storage medium and electronic device
CN115174512A