WO2023030014A1 - Method and system for binding smart device, and related device - Google Patents

Method and system for binding smart device, and related device Download PDF

Info

Publication number
WO2023030014A1
WO2023030014A1 PCT/CN2022/113115 CN2022113115W WO2023030014A1 WO 2023030014 A1 WO2023030014 A1 WO 2023030014A1 CN 2022113115 W CN2022113115 W CN 2022113115W WO 2023030014 A1 WO2023030014 A1 WO 2023030014A1
Authority
WO
WIPO (PCT)
Prior art keywords
cloud platform
smart device
information
access
user account
Prior art date
Application number
PCT/CN2022/113115
Other languages
French (fr)
Chinese (zh)
Inventor
井皓
Original Assignee
青岛海尔科技有限公司
海尔智家股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 青岛海尔科技有限公司, 海尔智家股份有限公司 filed Critical 青岛海尔科技有限公司
Publication of WO2023030014A1 publication Critical patent/WO2023030014A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/068Authentication using credential vaults, e.g. password manager applications or one time password [OTP] applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • H04W12/084Access security using delegated authorisation, e.g. open authorisation [OAuth] protocol
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices

Definitions

  • the present disclosure relates to the technical field of smart home, and in particular, to a method, system and related devices for binding smart devices.
  • the smart home industry has proposed some technologies or standards for unified configuration of smart devices to access the local area network, but it cannot solve the problem of cross-platform binding between user accounts of smart terminals and smart devices.
  • embodiments of the present disclosure provide a smart device binding method, system and related devices, so as to solve the problem of cross-platform binding between a user account of a smart terminal and a smart device in the prior art.
  • the first aspect of the embodiment of the present disclosure discloses a method for binding smart devices, which is applied to the second cloud platform.
  • the method includes: after the application program APP opens the access point in advance and accesses the smart device, receiving The APP sends the user registration information of the smart device on the second cloud platform; generates the second user account and authorization code of the smart device on the second cloud platform according to the user registration information; The second user account is bound to the smart device, and the authorization code is sent to the APP, so that the APP sends the authorization code to the first cloud platform; based on the access pass sent by the first cloud platform Requesting to generate an access pass, binding the access pass to the second user account; sending the access pass to the first cloud platform, and linking the access pass to the first cloud platform created by the smart device on the first cloud platform Binding a user account to enable the smart device to use the access pass to access the second cloud platform through the first cloud platform.
  • the second aspect of the embodiment of the present disclosure discloses a method for binding a smart device, which is applied to an application program APP.
  • the method includes: opening an access point in advance and accessing the smart device;
  • the device sends a request to register a user account of the second cloud platform, receives the user registration link of the second cloud platform sent by the smart device, and generates the user registration link of the second cloud platform based on the user registration link of the second cloud platform.
  • the third aspect of the embodiment of the present disclosure discloses a method for binding smart devices, which is applied to the first cloud platform, and the method includes: receiving the access pass sent by the second cloud platform, and the access pass is connected with the smart device in the The second user account generated by the second cloud platform is bound, and the second user account is sent by the APP after the second cloud platform opens the access point in advance and accesses the smart device by the application program APP.
  • the user registration information of the smart device on the second cloud platform generate the second user account of the smart device on the second cloud platform according to the user registration information; combine the access pass with the smart device on the Binding the first user account created by the first cloud platform; using the access pass to enable the smart device to access the second cloud platform.
  • the fourth aspect of the embodiments of the present disclosure discloses a second cloud platform.
  • the second cloud platform includes: a receiving module configured to receive the The user registration information of the smart device on the second cloud platform sent by the APP; a generating module configured to generate a second user account and authorization of the smart device on the second cloud platform according to the user registration information code; a binding module configured to bind the second user account with the smart device, and send the authorization code to the APP, so that the APP sends the authorization code to the first cloud platform; a processing module, configured to generate an access pass based on the access pass request sent by the first cloud platform, and bind the access pass to the second user account; a sending module, configured to use the access pass sent to the first cloud platform, and bound to the first user account created by the smart device on the first cloud platform, so that the smart device uses the access pass to access all Describe the second cloud platform.
  • the fifth aspect of the embodiment of the present disclosure discloses an application program APP, and the application program APP includes:
  • the access module is configured to pre-open the access point and access the smart device;
  • the first processing module is configured to send a request to register the user account of the second cloud platform to the smart device that has passed the legality verification, and receive The user registration link of the second cloud platform sent by the smart device generates user registration information of the second cloud platform based on the user registration link of the second cloud platform, and sends the user registration information to the The second cloud platform, so that the second cloud platform generates the second user account and authorization code of the smart device on the second cloud platform according to the user registration information, and associates the second user account with the smart device bind, and send the authorization code to the APP;
  • the second processing module is configured to receive the authorization code sent by the second cloud platform, and send the authorization code to the first cloud platform, so that the The first cloud platform sends the authorization code and the access pass request to the second cloud platform, so that the second cloud platform generates an access pass based on the access pass request, and combines the access pass with the second bind the user account, and send the access pass
  • the sixth aspect of the embodiment of the present disclosure discloses a first cloud platform.
  • the first cloud platform includes: a receiving module configured to receive the access pass sent by the second cloud platform, and the access pass is connected with the smart device in the The second user account generated by the second cloud platform is bound, and the second user account is sent by the APP after the second cloud platform opens the access point in advance and accesses the smart device by the application program APP.
  • the second user account of the smart device on the second cloud platform is generated according to the user registration information;
  • the binding module is configured to combine the access pass with the The smart device is bound to the first user account created on the first cloud platform;
  • the processing module is configured to use the access pass to enable the smart device to access the second cloud platform.
  • the seventh aspect of the embodiment of the present disclosure discloses a binding system for smart devices, including: a smart device, an application program APP, a first cloud platform, and a second cloud platform; the smart device is set to enable the network distribution mode, Scanning the access point enabled by the APP to access the APP; the APP is set to pre-open the access point and access the smart device, and receive the authorization code sent by the second cloud platform , and send the authorization code to the first cloud platform; the second cloud platform is configured to verify the legitimacy of the smart device, and send the device legitimacy information of the smart device to the APP receiving the user registration information of the smart device on the second cloud platform sent by the APP, and generating a second user account and authorization code of the smart device on the second cloud platform according to the user registration information, Binding the second user account with the smart device, sending the authorization code to the APP, generating an access pass based on the access pass request sent by the first cloud platform, and combining the access pass with the Bind the second user account, and send the access pass to
  • the eighth aspect of the embodiments of the present disclosure discloses an electronic device, including a memory and a processor, the memory stores a computer program, and the processor is configured to execute the computer program as described in the first embodiment of the present disclosure through the computer program.
  • the smart device binding method described in any one of the aspects, or the smart device binding method described in any of the second aspects of the embodiments of the present disclosure, or the smart device described in the third aspect of the embodiments of the present disclosure The binding method of the device.
  • the ninth aspect of the embodiments of the present disclosure discloses a computer-readable storage medium, the computer-readable storage medium includes a stored program, wherein, when the program runs, it executes any one of the following aspects of the first aspect of the embodiments of the present disclosure.
  • the method includes: after the application APP pre-opens the access point and accesses the smart device, receives the smart device information sent by the APP.
  • User registration information on the second cloud platform ; generate a second user account and authorization code of the smart device on the second cloud platform according to the user registration information; bind the second user account to the smart device, and The authorization code is sent to the APP, so that the APP sends the authorization code to the first cloud platform; an access pass is generated based on the access pass request sent by the first cloud platform, and the access pass is combined with the Binding of the second user account; sending the access pass to the first cloud platform, and binding with the first user account created by the smart device on the first cloud platform, so that the smart device can use the The access pass is used to access the second cloud platform through the first cloud platform.
  • the second user account of the smart device on the second cloud platform is first generated through the user registration information, and the second user account is bound to the smart device.
  • the access pass request sent by the first cloud platform is obtained, based on The access pass request generates an access pass and binds the access pass with the second user account, sends the access pass to the first cloud platform, and binds it with the first user account created by the smart device on the first cloud platform, so that the smart device uses the access pass
  • the passport accesses the second cloud platform through the first cloud platform, realizing the cross-platform binding of the user account of the smart terminal and the smart device.
  • FIG. 1 is a schematic flowchart of a binding method for a smart device provided by an embodiment of the present disclosure
  • FIG. 2 is a schematic flow diagram of verifying the legitimacy of a smart device provided by an embodiment of the present disclosure
  • FIG. 3 is a schematic flowchart of another smart device binding method provided by an embodiment of the present disclosure.
  • FIG. 4 is a schematic flowchart of another smart device binding method provided by an embodiment of the present disclosure.
  • FIG. 5 is a schematic flowchart of another smart device binding method provided by an embodiment of the present disclosure.
  • FIG. 6 is an interactive schematic diagram of a binding method applied to smart devices provided by an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of a second cloud platform provided by an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of another second cloud platform provided by an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of an application program APP provided by an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of another application program APP provided by an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of another application program APP provided by an embodiment of the present disclosure.
  • FIG. 12 is a schematic structural diagram of a first cloud platform provided by an embodiment of the present disclosure.
  • FIG. 13 is a schematic structural diagram of a smart device binding system provided by an embodiment of the present disclosure.
  • FIG. 14 is a schematic structural diagram of an electronic device 140 provided by an embodiment of the present disclosure.
  • the term "comprises”, “comprises” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes none. other elements specifically listed, or also include elements inherent in such a process, method, article, or apparatus.
  • an element defined by the phrase “comprising a " does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
  • embodiments of the present disclosure provide a binding method, system, and related equipment for smart devices.
  • the user account and the smart device when obtaining the access pass request sent by the first cloud platform, generate an access pass based on the access pass request and bind the access pass to the second user account, send the access pass to the first cloud platform, and communicate with
  • the binding of the first user account created by the smart device on the first cloud platform enables the smart device to use the access pass to access the second cloud platform through the first cloud platform, realizing the cross-platform binding of the user account of the smart terminal and the smart device.
  • an embodiment of the present disclosure provides a smart device binding system, which includes: a smart device 1 , an application APP 2 , a first cloud platform 3 and a second cloud platform 4 .
  • the smart device 1 and the second cloud platform 4 belong to the same manufacturer, and APP2 and the first cloud platform 3 belong to the same manufacturer.
  • the first cloud platform 3 and the second cloud platform 4 have realized interconnection.
  • the smart device 1 is connected to the second cloud platform 4 , and the APP2 is connected to the first cloud platform 3 .
  • the smart device 1 may be an air conditioner, or other smart devices such as a refrigerator, which is not limited in the present disclosure.
  • the smart device 1 is set to enable the network distribution mode, scan the access point opened by the APP to access the APP, the smart device 1 creates verification information, and encrypts the information of the smart device in the verification information with a preset key.
  • Device information obtain encrypted information, and receive and send binding information to realize smart devices.
  • the preset key is a preset key.
  • the access point of APP2 can be a wireless access point (Access Point, referred to as AP) hotspot, can also be Bluetooth, and can also be Wireless Fidelity (Wireless Fidelity, referred to as WiFi). Not limited.
  • AP wireless access point
  • WiFi Wireless Fidelity
  • the access point is an access point with a specific name, where the specific name may be a name in a specific format, or a name with specific characters, and the name has been agreed with the smart device manufacturer in advance.
  • the access point is Tenda_100.
  • the smart device 1 accesses the access point
  • the smart device 1 , the smart terminal 2 , the first cloud platform 3 and the second cloud platform 4 can communicate with each other.
  • APP2 is set to pre-open the access point and access the smart device 1, and receive and send the binding information that specifically realizes the smart device.
  • the first cloud platform 3 is configured to receive and forward the binding information that specifically realizes the smart device.
  • the second cloud platform 4 is configured to process related operations of binding of smart devices.
  • APP2 opens an access point with a specific name in advance, the smart device turns on the network configuration mode, and scans the access point with a specific name enabled by APP2 and accesses APP2 through the access point with a specific name. At this time, the smart device 1. APP2, the first cloud platform 3 and the second cloud platform 4 can communicate with each other.
  • the smart device 1 creates verification information, and encrypts the device information of the smart device in the verification information with a preset key to obtain encrypted information, and sends the created verification information and encrypted information to the second cloud platform 3 through APP2 and the first cloud platform 3. cloud platform4.
  • the verification information includes at least device information of the smart device.
  • the device information of the smart device includes, but is not limited to, a device identifier, a device manufacturer, and a device type.
  • the second cloud platform 4 receives the verification information and encrypted information sent by the smart device 1, uses the preset key to decrypt the encrypted information, obtains the device information, and compares the device information with the received verification information. If the comparison is consistent, determine The smart device 1 passes the legitimacy verification, and then sends the device legitimacy information of the smart device 1 passing the legitimacy verification to the first cloud platform 3 .
  • the first cloud platform 3 receives the legal device information of the smart device 1 sent by the second cloud platform 4 , and sends the received device legal information of the smart device 1 to the APP2.
  • APP2 receives the legal device information of the smart device 1 sent by the first cloud platform 3, and sends the distribution network information to the smart device 1.
  • the smart device 1 feeds back the response information of the received distribution network information to the smart terminal 2 .
  • APP2 sends a request to the smart device 1 to register a user account on the second cloud platform.
  • Smart device 1 feeds back the second cloud platform user registration link to APP2.
  • APP2 generates user registration information of the smart device 1 on the second cloud platform 4 based on the user registration link of the second cloud platform, and sends the user registration information to the second cloud platform 4 .
  • the second cloud platform 4 receives the user registration information of the smart device 1 on the second cloud platform sent by APP2, generates a second user account and authorization code of the second cloud platform according to the user registration information, and binds the second user account with the smart device 1 Confirm and send the authorization code to APP2.
  • APP2 sends the authorization code to the first cloud platform 3 .
  • the first cloud platform 3 sends an access pass request to the second cloud platform 4 .
  • the second cloud platform 4 generates an access pass based on the access pass request sent by the first cloud platform 3, binds the access pass to the second user account, sends the access pass to the first cloud platform 3, and communicates with the smart device 1 at the location
  • the first user account created by the first cloud platform 3 is bound, so that the smart device 1 uses the access pass to access the second cloud platform 4 through the first cloud platform 3 .
  • the application program APP pre-opens the access point and accesses the smart device, it receives the user registration information of the smart device on the second cloud platform sent by the APP; according to User registration information generates the second user account and authorization code of the smart device on the second cloud platform; binds the second user account with the smart device, and sends the authorization code to the APP, so that the APP sends the authorization code to the first cloud platform ; Based on the access pass request sent by the first cloud platform, an access pass is generated, and the access pass is bound to the second user account; the access pass is sent to the first cloud platform, and the first user created by the smart device on the first cloud platform Account binding enables the smart device to use the access pass to access the second cloud platform through the first cloud platform.
  • the second user account of the smart device on the second cloud platform is first generated through the user registration information, and the second user account is bound to the smart device.
  • the access pass request sent by the first cloud platform is obtained, based on The access pass request generates an access pass and binds the access pass with the second user account, and sends the access pass to the first cloud platform, and binds the first user account created by the smart device on the first cloud platform, so that the smart device can use
  • the access pass accesses the second cloud platform through the first cloud platform, realizing the cross-platform binding of the user account of the smart terminal and the smart device.
  • FIG. 1 it is a schematic flowchart of a smart device binding method provided by an embodiment of the present disclosure.
  • the second cloud platform is the cloud platform to which the smart device belongs
  • the second cloud platform can be the second cloud platform shown in the above-mentioned smart device binding system
  • the smart device binding method mainly includes the following steps:
  • Step S101 After the application program APP opens the access point in advance and accesses the smart device, receive the user registration information of the smart device on the second cloud platform sent by the APP.
  • step S101 the user registration information of the second cloud platform is obtained by the APP triggering the user registration link of the second cloud platform sent by the smart device that has passed legality verification and inputting the user registration information.
  • the APP may be the APP shown in the above-mentioned binding system of the smart device.
  • the smart device may be the smart device shown in the above smart device binding system.
  • step S101 after the application program APP opens the access point in advance and accesses the smart device, the APP receives the user registration link of the second cloud platform sent by the smart device that has passed the legitimacy verification, and triggers the second The user registration link of the cloud platform enters the user registration information, obtains the user registration information of the smart device on the second cloud platform, and sends the user registration information of the smart device on the second cloud platform to the second cloud platform, and the second cloud platform receives the APP The user registration information of the sent smart device on the second cloud platform.
  • Step S102 Generate a second user account and authorization code of the smart device on the second cloud platform according to the user registration information.
  • the authorization code may be Authcode.
  • the purpose of generating the authorization code is to obtain the access pass of the second cloud platform.
  • the second cloud platform In the process of implementing step S102, the second cloud platform generates a second user account of the smart device on the second cloud platform for the user according to the received user registration information of the smart device on the second cloud platform and can obtain the second user account of the second cloud platform.
  • the authorization code for access rights
  • Step S103 Bind the second user account with the smart device, and send the authorization code to the APP, so that the APP sends the authorization code to the first cloud platform.
  • the first cloud platform is the cloud platform to which the APP belongs.
  • the first cloud platform may be the first cloud platform shown in the above smart device binding system.
  • the second cloud platform binds the generated second user account with the smart device, and sends the generated authorization code to the APP, so that the APP sends the authorization code to the second cloud platform.
  • the second cloud platform binds the generated second user account with the smart device, and sends the generated authorization code to the APP, so that the APP sends the authorization code to the second cloud platform.
  • Step S104 Generate an access pass based on the access pass request sent by the first cloud platform, and bind the access pass to the second user account.
  • the access pass may be an access token, but is not limited thereto.
  • the second cloud platform receives the access pass request sent by the first cloud platform, generates an access pass according to the received access pass request, and combines the generated access pass with the The user account of the second cloud platform generated above is bound.
  • Step S105 Send the access pass to the first cloud platform, and bind it to the first user account created by the smart device on the first cloud platform, so that the smart device uses the access pass to access the second cloud platform through the first cloud platform.
  • the second cloud platform sends the generated access pass to the first cloud platform, and binds it with the first user account created by the smart device on the first cloud platform.
  • the first cloud platform can use the access pass to access the second cloud platform without using the user's second cloud platform user account to access the second cloud platform, avoiding the leakage of the second cloud platform user account Give the first cloud platform, that is to say, make the smart device use the access pass to access the second cloud platform through the first cloud platform.
  • the user registration information of the smart device on the second cloud platform sent by the APP is received; according to User registration information generates the second user account and authorization code of the smart device on the second cloud platform; binds the second user account with the smart device, and sends the authorization code to the APP, so that the APP sends the authorization code to the first cloud platform ;
  • Based on the access pass request sent by the first cloud platform an access pass is generated, and the access pass is bound to the second user account; the access pass is sent to the first cloud platform, and the first user created by the smart device on the first cloud platform Account binding enables the smart device to use the access pass to access the second cloud platform through the first cloud platform.
  • the second user account of the smart device on the second cloud platform is first generated through the user registration information, and the second user account is bound to the smart device.
  • the access pass request sent by the first cloud platform is obtained, based on The access pass request generates an access pass and binds the access pass with the second user account, sends the access pass to the first cloud platform, and binds it with the first user account created by the smart device on the first cloud platform, so that the smart device uses the access pass
  • the passport accesses the second cloud platform through the first cloud platform, realizing the cross-platform binding of the user account of the smart terminal and the smart device.
  • step S201 is performed.
  • the application APP pre-opens the access point and accesses the smart device
  • the smart device receives the APP sent by the second
  • the process of user registration information on the cloud platform is a schematic flow diagram for verifying the legitimacy of a smart device provided by an embodiment of the present disclosure, and mainly includes the following steps:
  • Step S201 Receive verification information and encrypted information sent by the smart device through the APP and the first cloud platform.
  • the verification information includes at least device information of the smart device, and the encrypted information is obtained by encrypting the device information by the smart device using a preset key.
  • the smart device sends the verification information and encryption information created by the smart device to the APP
  • the APP sends the verification information and encryption information created by the smart device to the first cloud platform
  • the first cloud platform sends the verification information and encryption information created by the smart device.
  • the verification information and encrypted information are sent to the second cloud platform.
  • the second cloud platform receives the verification information and encrypted information sent by the smart device through the APP and the first cloud platform.
  • Step S202 Use the preset key to decrypt the encrypted information, and verify the legitimacy of the obtained device information to determine the legitimacy of the smart device.
  • step S202 in the second cloud platform, after receiving the verification information and encrypted information sent by the smart device through the APP and the first cloud platform, the second cloud platform needs to decrypt the encrypted information. Therefore, it can Use the preset key to decrypt the encrypted information to obtain the device information, and verify the legitimacy of the device information to determine the legitimacy of the smart device.
  • step S202 to decrypt the encrypted information with the preset key, and verify the legitimacy of the obtained device information to determine the legitimacy of the smart device.
  • This process mainly includes the following steps:
  • Step S11 Use the preset key to decrypt the encrypted information to obtain the device information.
  • step S11 in the second cloud platform, after receiving the verification information and encryption information sent by the smart device through the APP and the first cloud platform, the second cloud platform needs to use the preset key to perform encryption on the encrypted information. Decryption, therefore, yields device information.
  • Step S12 comparing the device information with the verification information.
  • the second cloud platform compares the device information with the received verification information created by the smart device to verify the legitimacy of the smart device.
  • Step S13 Determine whether the comparison between the device information and the received verification information created by the smart device is consistent, if the comparison is consistent, perform step S14, and if the comparison is not consistent, perform step S15.
  • step S13 it is judged whether the comparison between the device information and the verification information created by the received smart device is consistent. If they are consistent, it means that the encrypted information and the verification information created by the smart device have not been tampered with, and step S15 is executed.
  • Step S14 Determine that the smart device has not passed the legality verification.
  • step S14 if the known device information is inconsistent with the received verification information created by the smart device, it is determined that the smart device has not passed the legality verification.
  • Step S15 Determine that the smart device passes the legality verification.
  • step S15 if the known device information is consistent with the received verification information created by the smart device, it is determined that the smart device has passed the legality verification.
  • step S202 after performing step S202 to determine the legitimacy of the smart device, it also includes:
  • the leakage of user information is avoided by verifying the legitimacy of the smart device, thereby providing a precondition for realizing the cross-platform binding of the user account of the smart terminal and the smart device.
  • FIG. 3 it is a schematic flowchart of another binding method of smart devices provided by the embodiments of the present disclosure.
  • the binding method of smart devices Applied to the second cloud platform, wherein the access pass request includes an access token request, the binding method of the smart device mainly includes the following steps:
  • Step S301 After the application program APP opens the access point in advance and accesses the smart device, receive the user registration information of the smart device on the second cloud platform sent by the APP.
  • Step S302 Generate a second user account and authorization code of the smart device on the second cloud platform according to the user registration information.
  • Step S303 Bind the second user account with the smart device, and send the authorization code to the APP, so that the APP sends the authorization code to the first cloud platform.
  • step S301 to step S303 are the same as the execution principle and process of step S101 to step S103 disclosed in FIG.
  • Step S304 Generate an access token based on the authorization code and the access token request sent by the first cloud platform, and bind the access token to the second user account.
  • the second cloud platform receives the authorization code and the access token request sent by the first cloud platform, generates an access token according to the received access token request, and sends the The generated access token is bound to the aforementioned generated second user account.
  • Step S305 Send the access token to the first cloud platform, and bind it to the first user account created by the smart device on the first cloud platform, so that the smart device uses the access token to access the second cloud platform through the first cloud platform.
  • the second cloud platform sends the generated access token to the first cloud platform, and binds it to the first user account created by the smart device on the first cloud platform.
  • the first cloud platform can use the access token to access the second cloud platform without using the user's second cloud platform user account to access the second cloud platform, preventing the second cloud platform users from The account is leaked to the first cloud platform, that is to say, the smart device uses the access token to access the second cloud platform through the first cloud platform.
  • a smart device Based on a method for binding a smart device provided by an embodiment of the present disclosure, first generate the second user account and authorization code of the smart device on the second cloud platform through the user registration information, and bind the second user account and the smart device, then When the authorization code and access token request sent by the first cloud platform are obtained, an access token is generated based on the access token request, and the access token is bound to the user account of the second cloud platform, and the access token is sent to the first cloud platform , and bind with the first user account created by the smart device on the first cloud platform, so that the smart device uses the access token to access the second cloud platform through the first cloud platform, realizing the cross-platform binding of the user account of the smart terminal and the smart device Certainly.
  • FIG. 4 it is a schematic flowchart of a smart device binding method provided by an embodiment of the present disclosure.
  • a program APP the APP may be the APP shown in the binding system of the above-mentioned smart device, and the binding method of the smart device mainly includes the following steps:
  • Step S401 Turn on the access point in advance and access the smart device.
  • step S401 the application program APP opens the access point in advance, and accesses the smart device through the access point.
  • Step S402 Send a request to register the user account of the second cloud platform to the smart device that has passed the legality verification, receive the user registration link of the second cloud platform sent by the smart device, and generate the second cloud based on the user registration link of the second cloud platform The user registration information of the platform, and send the user registration information to the second cloud platform, so that the second cloud platform generates the second user account and authorization code of the smart device on the second cloud platform according to the user registration information, and combines the second user account with the The smart device is bound and the authorization code is sent to the APP.
  • the second cloud platform is the cloud platform to which the smart device belongs, and the second cloud platform may be the second cloud platform shown in the above-mentioned binding system of the smart device.
  • the smart device may be the smart device shown in the above smart device binding system.
  • the APP sends a request to register the user account of the second cloud platform to the smart device that has passed the legality verification, the smart device sends the user registration link of the second cloud platform to the APP, and the APP triggers the second cloud platform User registration link and input user registration information, get the user registration information of the smart device on the second cloud platform, and send the obtained user registration information to the second cloud platform, so that the second cloud platform generates the smart device on the second cloud platform according to the user registration information
  • the second user account and the authorization code of the second cloud platform bind the second user account with the smart device, and send the authorization code to the APP.
  • Step S403 Receive the authorization code sent by the second cloud platform, and send the authorization code to the first cloud platform, so that the first cloud platform sends the authorization code and the request for the access pass to the second cloud platform, so that the second cloud platform is based on the access
  • the pass request generates an access pass, binds the access pass to the second user account, sends the access pass to the first cloud platform, and binds the first user account created by the smart device on the first cloud platform, so that the smart device can use
  • the access pass accesses the second cloud platform through the first cloud platform.
  • the first cloud platform is the cloud platform to which the APP belongs, and the first cloud platform may be the first cloud platform shown in the above-mentioned smart device binding system.
  • An access pass can be, but is not limited to, an access token.
  • the APP receives the authorization code sent by the second cloud platform, and sends the authorization code to the first cloud platform, and the first cloud platform sends the authorization code and the access pass request to the second cloud platform, and the second cloud platform sends the authorization code to the first cloud platform.
  • the second cloud platform generates an access pass based on the received access pass request, binds the access pass to the user account of the second cloud platform, and sends the access pass to the first cloud platform, and combines it with the smart device created on the first cloud platform The first user account is bound, so that the smart device uses the access pass to access the second cloud platform through the first cloud platform.
  • the user registration information of the second cloud platform is generated through the user registration link of the second cloud platform, so that the second cloud platform generates the smart device on the second cloud platform through the user registration information.
  • the second user account and authorization code of the cloud platform and bind the second user account and the smart device, so that when the second cloud platform obtains the access pass request sent by the first cloud platform, it generates an access pass based on the access pass request and Bind the access pass with the second user account, and send the access pass, and bind it with the first user account created by the smart device on the first cloud platform, so that the smart device uses the access pass to access the second cloud platform through the first cloud platform, realizing
  • the user account of the smart terminal is bound to the cross-platform of the smart device.
  • step S401 before performing step S401 to send a request for registering a user account of the second cloud platform to the smart device that has passed the legality verification, the following steps are further included:
  • Step S21 Receive the device legitimacy information of the smart device that has passed the legitimacy verification sent by the second cloud platform, and send the distribution network information to the smart device.
  • the APP receives the device legality information of the smart device that has passed the legality verification sent by the second cloud platform, and sends the network distribution information to the smart device.
  • Step S22 Receive the response information of the received distribution network information fed back by the smart device.
  • the APP receives the response information of the received distribution network information fed back by the smart device.
  • the user registration link of the second cloud platform sent by the smart device is generated by the smart device in the second
  • the user registration information of the cloud platform enables the second cloud platform to generate the second user account and authorization code of the smart device on the second cloud platform through the user registration information, and bind the second user account and the smart device so that the second cloud platform can
  • the access pass request sent by the first cloud platform is obtained, an access pass is generated based on the access pass request, and the access pass is bound to the second user account, and the access pass is sent to the first cloud platform, and connected with the smart device on the first cloud
  • the binding of the first user account created by the platform enables the smart device to use the access pass to access the second cloud platform through the first cloud platform, realizing the cross-platform binding of the user account of the smart terminal and the smart device.
  • step S21 Before performing step S21 to receive the device legality information of the smart device that has passed the legality verification sent by the second cloud platform, the following steps are also included:
  • Step S31 Receive verification information and encrypted information sent by the smart device.
  • the verification information includes at least device information of the smart device, and the encrypted information is obtained by encrypting the device information by the smart device using a preset key.
  • the APP accesses the smart device through the access point
  • the APP, the smart device, the first cloud platform and the second cloud platform realize mutual communication.
  • step S31 after the APP accesses the smart device, it receives the verification information and encrypted information created by the smart device sent by the smart device.
  • Step S32 Send the verification information and encrypted information to the first cloud platform, and the first cloud platform sends the verification information and encrypted information to the second cloud platform, so that the second cloud platform uses a preset key to decrypt the encrypted information, The legitimacy of the obtained device information is verified to determine the legitimacy of the smart device.
  • the APP sends the received verification information and encryption information to the first cloud platform, and the first cloud platform sends the verification information and encryption information to the second cloud platform, so that the second cloud platform uses The preset key decrypts the encrypted information, obtains the device information, and verifies the legitimacy of the device information to determine the legitimacy of the smart device.
  • the leakage of user information is avoided by verifying the legitimacy of the smart device, thereby providing a precondition for realizing the cross-platform binding of the user account of the smart terminal and the smart device.
  • FIG. 5 it is a schematic flowchart of a smart device binding method provided by an embodiment of the present disclosure.
  • the smart device binding method is applied to the first A cloud platform, the first cloud platform may be the first cloud platform shown in the above-mentioned smart device binding system, and the smart device binding method mainly includes the following steps:
  • Step S501 Receive the access pass sent by the second cloud platform.
  • step S501 the access pass is bound to the second user account generated by the smart device on the second cloud platform, and the second user account is pre-opened by the second cloud platform after the application program APP opens the access point and accesses the smart device.
  • the user registration information of the smart device on the second cloud platform sent by the APP is received, and a second user account of the smart device on the second cloud platform is generated according to the user registration information.
  • the first cloud platform receives the access pass sent by the second cloud platform.
  • Step S502 Bind the access pass with the first user account created by the smart device on the first cloud platform.
  • the first cloud platform binds the access pass with the first user account created by the smart device on the first cloud platform.
  • Step S503 using the access pass to enable the smart device to access the second cloud platform.
  • the first cloud platform enables the smart device to access the second cloud platform by using the access pass.
  • the present disclosure Based on a binding method for smart devices provided by the embodiments of the present disclosure, by binding the received access pass sent by the second cloud platform with the first user account created by the smart device on the first cloud platform, it is possible to use the access
  • the passport allows smart devices to access the second cloud platform, and realizes the cross-platform binding of the user account of the smart terminal and the smart device.
  • the embodiments of the present disclosure also provide an interactive schematic diagram of a binding method applied to smart devices, as shown in FIG. 6 , the method includes:
  • Step S601 The APP opens the access point in advance.
  • Step S602 The smart device accesses the access point activated by the APP, creates verification information, encrypts the verification information with a preset key, obtains the encrypted information, and sends the verification information and the encrypted information to the APP.
  • Step S603 the APP sends verification information and encryption information to the first cloud platform.
  • Step S604 the first cloud platform sends verification information and encryption information to the second cloud platform.
  • Step S605 The second cloud platform uses the preset key to decrypt the encrypted information to obtain the device information, and compares the device information with the verification information. If the comparison is consistent, it is determined that the smart device has passed the legality verification. If the comparison is inconsistent, it is determined that the smart device has not passed the verification. Legitimacy verification, after passing the legality verification, send the device legal information of the smart device to the first cloud platform.
  • Step S606 the first cloud platform sends the device legal information of the smart device to the APP.
  • Step S607 APP sends network distribution information to the smart device.
  • Step S608 The smart device feeds back the response information of the received distribution network information to the APP.
  • Step S609 the APP sends a request to the smart device to register a user account of the second cloud platform.
  • Step S610 the smart device feeds back the user registration link of the second cloud platform to the APP.
  • Step S611 The APP triggers the user registration link of the second cloud platform and inputs and generates user registration information, obtains the user registration information of the smart device on the second cloud platform, and sends the user registration information to the second cloud platform.
  • Step S612 The second cloud platform generates a second user account and authorization code of the smart device on the second cloud platform according to the user registration information, binds the second user account with the smart device, and sends the authorization code to the APP.
  • Step S613 the APP sends an authorization code to the first cloud platform.
  • Step S614 the first cloud platform sends the authorization code and access pass request to the second cloud platform.
  • Step S615 the second cloud platform generates an access pass based on the access pass request, binds the access pass to the second user account, and sends the access pass to the first cloud platform.
  • Step S616 The first cloud platform binds the first user account created by the smart device on the first cloud platform with the access pass, so that the smart device uses the access pass to access the second cloud platform through the first cloud platform.
  • the access pass request sent by the first cloud platform is obtained, the access pass is generated based on the access pass request and the access pass is bound to the second user account, the first cloud platform sends the access pass, and communicates with the smart device at
  • the binding of the first user account created by the first cloud platform enables the smart device to use the access pass to access the second cloud platform through the first cloud platform, realizing the cross-platform binding of the user account of the smart terminal and the smart device.
  • the embodiment of the present disclosure also provides a second cloud platform correspondingly.
  • the second cloud platform includes: A receiving module 71 , a generating module 72 , a binding module 73 , a processing module 74 and a sending module 75 .
  • the receiving module 71 is configured to receive the user registration information of the smart device on the second cloud platform sent by the APP after the application APP pre-opens the access point and accesses the smart device, and the user registration information is triggered by the APP to pass the legality verification The user registration link of the second cloud platform sent by the smart device and input the user registration information are obtained.
  • the generating module 72 is configured to generate a second user account and an authorization code of the smart device on the second cloud platform according to the user registration information.
  • the binding module 73 is configured to bind the second user account with the smart device, and send the authorization code to the APP, so that the APP sends the authorization code to the first cloud platform, and the first cloud platform is the cloud platform to which the APP belongs.
  • the processing module 74 is configured to generate an access pass based on the access pass request sent by the first cloud platform, and bind the access pass to the second user account.
  • the sending module 75 is configured to send the access pass to the first cloud platform, and bind the first user account created by the smart device on the first cloud platform, so that the smart device uses the access pass to access the second cloud through the first cloud platform platform.
  • the application APP pre-opens the access point and accesses the smart device, it receives the user registration information of the smart device on the second cloud platform sent by the APP;
  • the information generates the second user account and authorization code of the smart device on the second cloud platform; binds the second user account with the smart device, and sends the authorization code to the APP, so that the APP sends the authorization code to the first cloud platform;
  • the access pass request sent by the first cloud platform generates an access pass, binds the access pass to the second user account; sends the access pass to the first cloud platform, and binds the first user account created by the smart device on the first cloud platform It is determined that the smart device uses the access pass to access the second cloud platform through the first cloud platform.
  • the second user account of the smart device on the second cloud platform is first generated through the user registration information, and the second user account is bound to the smart device.
  • the access pass request sent by the first cloud platform is obtained, based on The access pass request generates an access pass and binds the access pass with the second user account, sends the access pass to the first cloud platform, and communicates with the first user account created by the smart device on the first cloud platform, so that the smart device uses the access pass to pass
  • the first cloud platform accesses the second cloud platform to realize the cross-platform binding of the user account of the smart terminal and the smart device.
  • the second cloud platform is further provided with a verification module 76 .
  • the verification module 76 is configured to receive verification information and encrypted information sent by the smart device through the APP and the first cloud platform, wherein the verification information includes at least the device information of the smart device, and the encrypted information is encrypted by the smart device using a preset key. Obtained by encryption; use the preset key to decrypt the encrypted information, and verify the legitimacy of the obtained device information to determine the legitimacy of the smart device.
  • the leakage of user information is avoided by verifying the legitimacy of the smart device, thereby providing a precondition for realizing the cross-platform binding of the user account of the smart terminal and the smart device.
  • the sending module 75 is specifically configured to:
  • the device legal information of the smart device that has passed the legality verification to the APP by sending the device legal information of the smart device that has passed the legality verification to the APP, it provides a prerequisite for the subsequent realization of the cross-platform binding of the user account of the smart terminal and the smart device .
  • the access pass request includes an access token request
  • the processing module 74 is specifically configured to:
  • An access token is generated based on the authorization code and the access token request sent by the first cloud platform, and the access token is bound to the second user account.
  • the sending module 75 is specifically configured as:
  • the access token is sent to the first cloud platform, and is bound to the first user account created by the smart device on the first cloud platform, so that the smart device uses the access token to access the second cloud platform through the first cloud platform.
  • first Based on the second cloud platform provided by the embodiments of the present disclosure, first generate the second user account and authorization code of the smart device on the second cloud platform through the user registration information, and bind the second user account and the smart device.
  • the authorization code and access token request sent by the first cloud platform generate an access token based on the access token request and bind the access pass with the second user account, send the access token to the first cloud platform, and communicate with the smart device
  • the first user account created on the first cloud platform is bound to the access token to realize the cross-platform binding of the user account of the smart terminal and the smart device.
  • the embodiment of the present disclosure also provides an application program APP correspondingly.
  • the smart terminal includes: an access module 91 .
  • the access module 91 is configured to pre-open the access point and access the smart device.
  • the first processing module 92 is configured to send a request for registering a user account of the second cloud platform to the smart device that has passed legality verification, and receive the user registration link of the second cloud platform sent by the smart device, based on the user account of the second cloud platform
  • the registration link generates the user registration information of the second cloud platform, and sends the user registration information to the second cloud platform, so that the second cloud platform generates the second user account and authorization code of the smart device on the second cloud platform according to the user registration information, Bind the second user account with the smart device, and send the authorization code to the APP.
  • the second processing module 93 is configured to receive the authorization code sent by the second cloud platform, and send the authorization code to the first cloud platform, so that the first cloud platform sends the authorization code and the access pass request to the second cloud platform, so that The second cloud platform generates an access pass based on the access pass request, binds the access pass to the second user account, sends the access pass to the first cloud platform, and binds the access pass to the first user account created by the smart device on the first cloud platform It is determined that the smart device uses the access pass to access the second cloud platform through the first cloud platform.
  • the user registration information of the second cloud platform is generated through the user registration link of the second cloud platform, so that the second cloud platform can generate a smart device on the second cloud platform of the second cloud platform through the user registration information.
  • User account and authorization code and bind the second user account with the smart device, so that when the second cloud platform obtains the access pass request sent by the first cloud platform, it generates an access pass based on the access pass request and binds the access pass with the The second user account, and send the access pass, and bind it with the first user account created by the smart device on the first cloud platform, so that the smart device can use the access pass to access the second cloud platform through the first cloud platform, and realize the user account of the smart terminal Cross-platform bindings to smart devices.
  • the smart terminal is further provided with a verification module 94 .
  • the verification module 94 is configured to receive verification information and encrypted information sent by the smart device, wherein the verification information includes at least the device information of the smart device, and the encrypted information is obtained by encrypting the device information by the smart device using a preset key; the verification information and encrypted information to the first cloud platform, and the first cloud platform sends the verification information and encrypted information to the second cloud platform, so that the second cloud platform uses the preset secret key to decrypt the encrypted information, and legalizes the obtained device information Security verification to determine the legitimacy of smart devices.
  • the leakage of user information is avoided by verifying the legitimacy of the smart device, thereby providing a prerequisite for realizing the cross-platform binding of the user account of the smart terminal and the smart device.
  • the smart terminal is further provided with a third processing module 95 .
  • the third processing module 95 is configured to receive the device legitimacy information of the smart device that has passed the legality verification sent by the second cloud platform, and send the distribution network information to the smart device; receive the response of the received distribution network information fed back by the smart device information.
  • the user registration information of the second cloud platform is generated through the user registration link of the second cloud platform sent by the smart device, so that The second cloud platform generates the second user account and authorization code of the smart device on the second cloud platform through the user registration information, and binds the second user account and the smart device, so that the second cloud platform can obtain the information sent by the first cloud platform.
  • the embodiment of the present disclosure also provides a corresponding first cloud platform.
  • the first cloud platform includes: A receiving module 121 , a binding module 122 and a processing module 123 .
  • the receiving module 121 is configured to receive the access pass sent by the second cloud platform, the access pass is bound to the second user account generated by the smart device on the second cloud platform, and the second user account is provided by the second cloud platform in the application program
  • the APP opens the access point in advance and accesses the smart device, it receives the user registration information of the smart device on the second cloud platform sent by the APP, and generates the second user account of the smart device on the second cloud platform according to the user registration information.
  • the binding module 122 is configured to bind the access pass with the first user account created by the smart device on the first cloud platform.
  • the processing module 123 is configured to enable the smart device to access the second cloud platform by using the access pass.
  • the access pass can be used to The smart device accesses the second cloud platform to realize the cross-platform binding between the user account of the smart terminal and the smart device.
  • the embodiments of the present disclosure also provide a smart device binding system correspondingly, as shown in FIG. 13 , the smart device binding system includes : smart device 131, application program APP132, first cloud platform 133 and second cloud platform 134.
  • the smart device 131 is set to enable the network distribution mode, and scans the access point enabled by the APP to access the APP.
  • APP132 is configured to pre-open the access point and access the smart device, receive the authorization code sent by the second cloud platform, and send the authorization code to the first cloud platform.
  • the second cloud platform 134 is set to verify the legitimacy of the smart device, and send the device legal information of the smart device to the APP, receive the user registration information of the smart device sent by the APP on the second cloud platform, and generate a smart device according to the user registration information.
  • the second user account and authorization code of the device on the second cloud platform bind the second user account with the smart device, and send the authorization code to the APP, generate an access pass based on the access pass request sent by the first cloud platform, and access The pass is bound to the second user account, and the access pass is sent to the first cloud platform.
  • the first cloud platform 133 is configured to receive the access pass, and bind the access pass to the first user account created by the smart device on the first cloud platform, so that the smart device uses the access pass to access the second cloud platform through the first cloud platform .
  • the application program APP pre-opens the access point and accesses the smart device, it receives the user registration information of the smart device on the second cloud platform sent by the APP; according to User registration information generates the second user account and authorization code of the smart device on the second cloud platform; binds the second user account with the smart device, and sends the authorization code to the APP, so that the APP sends the authorization code to the first cloud platform ; Based on the access pass request sent by the first cloud platform, an access pass is generated, and the access pass is bound to the second user account; the access pass is sent to the first cloud platform, and the first user created by the smart device on the first cloud platform Account binding enables the smart device to use the access pass to access the second cloud platform through the first cloud platform.
  • the second user account of the smart device on the second cloud platform is first generated through the user registration information, and the second user account is bound to the smart device.
  • the access pass request sent by the first cloud platform is obtained, based on The access pass request generates an access pass and binds the access pass with the second user account, and sends the access pass to the first cloud platform, and binds the first user account created by the smart device on the first cloud platform, so that the smart device can use
  • the access pass accesses the second cloud platform through the first cloud platform, realizing the cross-platform binding of the user account of the smart terminal and the smart device.
  • each of the above-mentioned modules may be implemented by a hardware device composed of a processor and a memory. Specifically, each of the above-mentioned modules is stored in the memory as a program unit, and the processor executes the above-mentioned program unit stored in the memory to realize the binding of the smart device.
  • the processor includes a kernel, and the kernel retrieves corresponding program units from the memory.
  • One or more kernels can be set, and the binding of smart devices can be realized by adjusting kernel parameters.
  • An embodiment of the present disclosure provides a computer-readable storage medium, where the computer-readable storage medium includes a stored program, wherein, when the program is running, it executes the binding method of the smart device disclosed in FIG. 1 , or , the binding method of the smart device disclosed in FIG. 4 , and the binding method of the smart device disclosed in FIG. 5 .
  • An embodiment of the present disclosure provides a processor, and the processor is configured to run a program, wherein, when the program is running, the smart device binding method disclosed in FIG. 1 is executed, or the smart device binding method disclosed in FIG. 4 is executed.
  • the binding method of the smart device disclosed in FIG. 5 is a processor, and the processor is configured to run a program, wherein, when the program is running, the smart device binding method disclosed in FIG. 1 is executed, or the smart device binding method disclosed in FIG. 4 is executed.
  • the binding method of the smart device disclosed in FIG. 5 The binding method of the smart device disclosed in FIG. 5 .
  • FIG. 14 is a schematic structural diagram of an electronic device 140 provided by an embodiment of the present disclosure.
  • the electronic device in the embodiments of the present disclosure may be a server, a PC, a PAD, a mobile phone, and the like.
  • the electronic device includes at least one processor 1401 , at least one memory 1402 connected to the processor, and a bus 1403 .
  • the processor 1401 and the memory 1402 communicate with each other through the bus 1403 .
  • the processor 1401 is configured to execute the computer programs stored in the memory 1402 .
  • the memory 1402 is configured to store a computer program, and the computer program is at least configured to: receive the user registration information of the smart device on the second cloud platform sent by the APP after the application program APP pre-opens the access point and accesses the smart device ; Generate the second user account and authorization code of the smart device on the second cloud platform according to the user registration information; bind the second user account with the smart device, and send the authorization code to the APP, so that the APP sends the authorization code to the first cloud platform; Cloud platform; generate an access pass based on the access pass request sent by the first cloud platform, and bind the access pass to the second user account; send the access pass to the first cloud platform, and combine it with the first cloud platform created by the smart device A user account is bound, so that the smart device uses the access pass to access the second cloud platform through the first cloud platform.
  • the present application also provides a computer program product, which, when executed on an electronic device, is suitable for executing a program that is initialized with the following method steps:
  • the application program APP opens the access point in advance and accesses the smart device, it receives the user registration information of the smart device on the second cloud platform sent by the APP; generates the second user account of the smart device on the second cloud platform according to the user registration information and the authorization code; bind the second user account with the smart device, and send the authorization code to the APP, so that the APP sends the authorization code to the first cloud platform; generate an access pass based on the access pass request sent by the first cloud platform, and send The access pass is bound to the second user account; the access pass is sent to the first cloud platform, and is bound to the first user account created by the smart device on the first cloud platform, so that the smart device uses the access pass to access through the first cloud platform Second cloud platform.
  • a device in a typical configuration, includes one or more processors (CPUs), memory and a bus.
  • processors CPUs
  • a device may also include input/output interfaces, network interfaces, and the like.
  • Memory may include non-permanent memory in computer-readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM), and memory includes at least a memory chip.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • memory includes at least a memory chip.
  • the memory is an example of a computer readable medium.
  • Computer-readable media including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information.
  • Information may be computer readable instructions, data structures, modules of a program, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, A magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device, or any other non-transmission medium, configured to store information that can be accessed by a computing device.
  • computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.
  • each embodiment in this specification is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments.
  • the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
  • the systems and system embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is It can be located in one place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to realize the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without creative effort.

Abstract

Provided in the present application are a method and system for binding a smart device, and a related device. The method comprises: according to user registration information, which is sent by an application, generating a second user account of a smart device in a second cloud platform; binding the second user account with the smart device; generating an access pass on the basis of an access pass request that is sent by a first cloud platform, and binding the access pass with the second user account; and sending the access pass to the first cloud platform, and binding the access pass with a first user account, which is created by the smart device in the first cloud platform, so that the smart device uses the access pass to access the second cloud platform by means of the first cloud platform. In the present solution, by means of binding a second user account with a smart device, when an access pass request that is sent by a first cloud platform is acquired, an access pass is generated on the basis of the access pass request and is bound with the second user account, and the access pass is sent and is bound with a first user account, which is created by the smart device in the first cloud platform, thereby realizing cross-platform binding of a user account of a smart terminal with the smart device.

Description

智能设备的绑定方法、系统及相关设备Smart device binding method, system and related devices
本公开要求于2021年08月31日提交中国专利局、申请号为202111013452.X、发明名称“智能设备的绑定方法、系统及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This disclosure claims the priority of the Chinese patent application with the application number 202111013452.X and the invention title "binding method, system and related equipment for smart devices" submitted to the China Patent Office on August 31, 2021, the entire contents of which are incorporated by reference incorporated in this disclosure.
技术领域technical field
本公开涉及智能家居技术领域,尤其涉及一种智能设备的绑定方法、系统及相关设备。The present disclosure relates to the technical field of smart home, and in particular, to a method, system and related devices for binding smart devices.
背景技术Background technique
随着智能家居行业的发展,智能设备(智能家居产品)的出货量也得到了极大提升。但智能设备入户之后的激活率并没有提升。With the development of the smart home industry, the shipments of smart devices (smart home products) have also been greatly improved. However, the activation rate of smart devices has not increased after entering the home.
不同的厂商(模组、设备制造商、解决方案提供商等)采用不同方案解决智能设备入户后的激活率的问题,导致用户需要使用不同的技术方案将智能设备接入无线局域网,此状况直接影响了用户对智能设备以及智能家居应用的体验。Different manufacturers (modules, equipment manufacturers, solution providers, etc.) adopt different solutions to solve the problem of the activation rate of smart devices after entering the home, resulting in users needing to use different technical solutions to connect smart devices to WLANs. It directly affects the user's experience of smart devices and smart home applications.
目前,智能家居行业提出了一些智能设备统一配置设备接入局域网的技术或标准,但是,无法解决智能终端的用户账户与智能设备跨平台绑定的问题。At present, the smart home industry has proposed some technologies or standards for unified configuration of smart devices to access the local area network, but it cannot solve the problem of cross-platform binding between user accounts of smart terminals and smart devices.
发明内容Contents of the invention
有鉴于此,本公开实施例提供一种智能设备的绑定方法、系统及相关设备,以解决现有技术中智能终端的用户账户与智能设备跨平台绑定的问题。In view of this, embodiments of the present disclosure provide a smart device binding method, system and related devices, so as to solve the problem of cross-platform binding between a user account of a smart terminal and a smart device in the prior art.
为实现上述目的,本公开实施例提供如下技术方案:In order to achieve the above purpose, embodiments of the present disclosure provide the following technical solutions:
本公开实施例第一方面公开了一种智能设备的绑定方法,应用于第二云平台,所述方法包括:在应用程序APP预先开启访问接入点并接入智能设备之后,接收所述APP发送的所述智能设备在所述第二云平台的用户注册信息;根据所述用户注册信息生成所述智能设备在所述第二云平台的第二用户账号和授权码;将所述第二用户账号与所述智能设备绑定,并将所述授权码发送至所述APP,使所 述APP将所述授权码发送至第一云平台;基于所述第一云平台发送的访问通行证请求生成访问通行证,将所述访问通行证与所述第二用户账号绑定;将所述访问通行证发送至所述第一云平台,并与所述智能设备在所述第一云平台创建的第一用户账号绑定,使所述智能设备使用所述访问通行证通过所述第一云平台访问所述第二云平台。The first aspect of the embodiment of the present disclosure discloses a method for binding smart devices, which is applied to the second cloud platform. The method includes: after the application program APP opens the access point in advance and accesses the smart device, receiving The APP sends the user registration information of the smart device on the second cloud platform; generates the second user account and authorization code of the smart device on the second cloud platform according to the user registration information; The second user account is bound to the smart device, and the authorization code is sent to the APP, so that the APP sends the authorization code to the first cloud platform; based on the access pass sent by the first cloud platform Requesting to generate an access pass, binding the access pass to the second user account; sending the access pass to the first cloud platform, and linking the access pass to the first cloud platform created by the smart device on the first cloud platform Binding a user account to enable the smart device to use the access pass to access the second cloud platform through the first cloud platform.
本公开实施例第二方面公开了一种智能设备的绑定方法,应用于应用程序APP,所述方法包括:预先开启访问接入点并接入智能设备;向通过合法性验证的所述智能设备发送注册第二云平台的用户账号的请求,接收所述智能设备发送的所述第二云平台的用户注册链接,基于所述第二云平台的用户注册链接生成所述第二云平台的用户注册信息,并将所述用户注册信息发送至第二云平台,使所述第二云平台根据所述用户注册信息生成所述智能设备在第二云平台的第二用户账号和授权码,将所述第二用户账号与所述智能设备绑定,并将所述授权码发送至所述APP;接收所述第二云平台发送的授权码,并将所述授权码发送至第一云平台,使所述第一云平台将所述授权码和访问通行证请求发送至所述第二云平台,使所述第二云平台基于所述访问通行证请求生成访问通行证,将所述访问通行证与所述第二用户账号绑定,并将所述访问通行证发送至所述第一云平台,并与所述智能设备在所述第一云平台创建的第一用户账号绑定,使所述智能设备使用所述访问通行证通过所述第一云平台访问所述第二云平台。The second aspect of the embodiment of the present disclosure discloses a method for binding a smart device, which is applied to an application program APP. The method includes: opening an access point in advance and accessing the smart device; The device sends a request to register a user account of the second cloud platform, receives the user registration link of the second cloud platform sent by the smart device, and generates the user registration link of the second cloud platform based on the user registration link of the second cloud platform. User registration information, and sending the user registration information to the second cloud platform, so that the second cloud platform generates the second user account and authorization code of the smart device on the second cloud platform according to the user registration information, Bind the second user account with the smart device, and send the authorization code to the APP; receive the authorization code sent by the second cloud platform, and send the authorization code to the first cloud platform, causing the first cloud platform to send the authorization code and the access pass request to the second cloud platform, causing the second cloud platform to generate an access pass based on the access pass request, and combining the access pass with the The second user account is bound, and the access pass is sent to the first cloud platform, and bound to the first user account created by the smart device on the first cloud platform, so that the smart The device uses the access pass to access the second cloud platform through the first cloud platform.
本公开实施例第三方面公开了一种智能设备的绑定方法,应用于第一云平台,所述方法包括:接收第二云平台发送的访问通行证,所述访问通行证与智能设备在所述第二云平台生成的第二用户账号绑定,所述第二用户账号由所述第二云平台在应用程序APP预先开启访问接入点并接入所述智能设备之后,接收所述APP发送的所述智能设备在第二云平台的用户注册信息,根据所述用户注册信息生成所述智能设备在第二云平台的第二用户账号;将所述访问通行证与所述智能设备在所述第一云平台创建的第一用户账号绑定;利用所述访问通行证使所述智能设备访问所述第二云平台。The third aspect of the embodiment of the present disclosure discloses a method for binding smart devices, which is applied to the first cloud platform, and the method includes: receiving the access pass sent by the second cloud platform, and the access pass is connected with the smart device in the The second user account generated by the second cloud platform is bound, and the second user account is sent by the APP after the second cloud platform opens the access point in advance and accesses the smart device by the application program APP. The user registration information of the smart device on the second cloud platform, generate the second user account of the smart device on the second cloud platform according to the user registration information; combine the access pass with the smart device on the Binding the first user account created by the first cloud platform; using the access pass to enable the smart device to access the second cloud platform.
本公开实施例第四方面公开了一种第二云平台,所述第二云平台包括:接收模块,被设置为在应用程序APP预先开启访问接入点并接入智能设备之后,接 收所述APP发送的所述智能设备在所述第二云平台的用户注册信息;生成模块,被设置为根据所述用户注册信息生成所述智能设备在所述第二云平台的第二用户账号和授权码;绑定模块,被设置为将所述第二用户账号与所述智能设备绑定,并将所述授权码发送至所述APP,使所述APP将所述授权码发送至第一云平台;处理模块,被设置为基于所述第一云平台发送的访问通行证请求生成访问通行证,将所述访问通行证与所述第二用户账号绑定;发送模块,被设置为将所述访问通行证发送至所述第一云平台,并与所述智能设备在所述第一云平台创建的第一用户账号绑定,使所述智能设备使用所述访问通行证通过所述第一云平台访问所述第二云平台。The fourth aspect of the embodiments of the present disclosure discloses a second cloud platform. The second cloud platform includes: a receiving module configured to receive the The user registration information of the smart device on the second cloud platform sent by the APP; a generating module configured to generate a second user account and authorization of the smart device on the second cloud platform according to the user registration information code; a binding module configured to bind the second user account with the smart device, and send the authorization code to the APP, so that the APP sends the authorization code to the first cloud platform; a processing module, configured to generate an access pass based on the access pass request sent by the first cloud platform, and bind the access pass to the second user account; a sending module, configured to use the access pass sent to the first cloud platform, and bound to the first user account created by the smart device on the first cloud platform, so that the smart device uses the access pass to access all Describe the second cloud platform.
本公开实施例第五方面公开了一种应用程序APP,所述应用程序APP包括:The fifth aspect of the embodiment of the present disclosure discloses an application program APP, and the application program APP includes:
接入模块,被设置为预先开启访问接入点并接入智能设备;第一处理模块,被设置为向通过合法性验证的所述智能设备发送注册第二云平台的用户账号的请求,接收所述智能设备发送的所述第二云平台的用户注册链接,基于所述第二云平台的用户注册链接生成所述第二云平台的用户注册信息,并将所述用户注册信息发送至所述第二云平台,使所述第二云平台根据所述用户注册信息生成所述智能设备在第二云平台的第二用户账号和授权码,将所述第二用户账号与所述智能设备绑定,并将所述授权码发送至所述APP;第二处理模块,被设置为接收所述第二云平台发送的授权码,并将所述授权码发送至第一云平台,使所述第一云平台将所述授权码和访问通行证请求发送至所述第二云平台,使所述第二云平台基于所述访问通行证请求生成访问通行证,将所述访问通行证与所述第二用户账号绑定,并将所述访问通行证发送至所述第一云平台,并与所述智能设备在所述第一云平台创建的第一用户账号绑定,使所述智能设备使用所述访问通行证通过所述第一云平台访问所述第二云平台。The access module is configured to pre-open the access point and access the smart device; the first processing module is configured to send a request to register the user account of the second cloud platform to the smart device that has passed the legality verification, and receive The user registration link of the second cloud platform sent by the smart device generates user registration information of the second cloud platform based on the user registration link of the second cloud platform, and sends the user registration information to the The second cloud platform, so that the second cloud platform generates the second user account and authorization code of the smart device on the second cloud platform according to the user registration information, and associates the second user account with the smart device bind, and send the authorization code to the APP; the second processing module is configured to receive the authorization code sent by the second cloud platform, and send the authorization code to the first cloud platform, so that the The first cloud platform sends the authorization code and the access pass request to the second cloud platform, so that the second cloud platform generates an access pass based on the access pass request, and combines the access pass with the second bind the user account, and send the access pass to the first cloud platform, and bind it with the first user account created by the smart device on the first cloud platform, so that the smart device can use the The access pass accesses the second cloud platform through the first cloud platform.
本公开实施例第六方面公开了一种第一云平台,所述第一云平台包括:接收模块,被设置为接收第二云平台发送的访问通行证,所述访问通行证与智能设备在所述第二云平台生成的第二用户账号绑定,所述第二用户账号由所述第二云平台在应用程序APP预先开启访问接入点并接入所述智能设备之后,接收所述APP发送的所述智能设备在第二云平台的用户注册信息,根据所述用户注册信息生成 所述智能设备在第二云平台的第二用户账号;绑定模块,被设置为将所述访问通行证与所述智能设备在所述第一云平台创建的第一用户账号绑定;处理模块,被设置为利用所述访问通行证使所述智能设备访问所述第二云平台。The sixth aspect of the embodiment of the present disclosure discloses a first cloud platform. The first cloud platform includes: a receiving module configured to receive the access pass sent by the second cloud platform, and the access pass is connected with the smart device in the The second user account generated by the second cloud platform is bound, and the second user account is sent by the APP after the second cloud platform opens the access point in advance and accesses the smart device by the application program APP. According to the user registration information of the smart device on the second cloud platform, the second user account of the smart device on the second cloud platform is generated according to the user registration information; the binding module is configured to combine the access pass with the The smart device is bound to the first user account created on the first cloud platform; the processing module is configured to use the access pass to enable the smart device to access the second cloud platform.
本公开实施例第七方面公开了一种智能设备的绑定系统,包括:智能设备、应用程序APP、第一云平台和第二云平台;所述智能设备,被设置为开启配网模式,扫描所述APP开启的所述访问接入点接入所述APP;所述APP,被设置为预先开启访问接入点并接入所述智能设备,接收所述第二云平台发送的授权码,并将所述授权码发送至所述第一云平台;所述第二云平台,被设置为验证所述智能设备的合法性,并将所述智能设备的设备合法信息发送至所述APP,接收所述APP发送的所述智能设备在所述第二云平台的用户注册信息,根据所述用户注册信息生成所述智能设备在所述第二云平台的第二用户账号和授权码,将所述第二用户账号与所述智能设备绑定,并将所述授权码发送至所述APP,基于所述第一云平台发送的访问通行证请求生成访问通行证,将所述访问通行证与所述第二用户账号绑定,将所述访问通行证发送至所述第一云平台;所述第一云平台,被设置为接收所述访问通行证,并将所述访问通行证与所述智能设备在所述第一云平台创建的第一用户账号绑定,使所述智能设备使用所述访问通行证通过所述第一云平台访问所述第二云平台。The seventh aspect of the embodiment of the present disclosure discloses a binding system for smart devices, including: a smart device, an application program APP, a first cloud platform, and a second cloud platform; the smart device is set to enable the network distribution mode, Scanning the access point enabled by the APP to access the APP; the APP is set to pre-open the access point and access the smart device, and receive the authorization code sent by the second cloud platform , and send the authorization code to the first cloud platform; the second cloud platform is configured to verify the legitimacy of the smart device, and send the device legitimacy information of the smart device to the APP receiving the user registration information of the smart device on the second cloud platform sent by the APP, and generating a second user account and authorization code of the smart device on the second cloud platform according to the user registration information, Binding the second user account with the smart device, sending the authorization code to the APP, generating an access pass based on the access pass request sent by the first cloud platform, and combining the access pass with the Bind the second user account, and send the access pass to the first cloud platform; the first cloud platform is configured to receive the access pass, and combine the access pass with the smart device Binding the first user account created by the first cloud platform enables the smart device to use the access pass to access the second cloud platform through the first cloud platform.
本公开实施例第八方面公开了一种电子设备,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为通过所述计算器程序执行如本公开实施例第一方面中任一所述的智能设备的绑定方法,或者,本公开实施例第二方面中任一所述的智能设备的绑定方法,或者,本公开实施例第三方面中所述的智能设备的绑定方法。The eighth aspect of the embodiments of the present disclosure discloses an electronic device, including a memory and a processor, the memory stores a computer program, and the processor is configured to execute the computer program as described in the first embodiment of the present disclosure through the computer program. The smart device binding method described in any one of the aspects, or the smart device binding method described in any of the second aspects of the embodiments of the present disclosure, or the smart device described in the third aspect of the embodiments of the present disclosure The binding method of the device.
本公开实施例第九方面公开了一种计算机可读的存储介质,所述计算机可读的存储介质包括存储的程序,其中,所述程序运行时执行如本公开实施例第一方面中任一所述的智能设备的绑定方法,或者,本公开实施例第二方面中任一所述的智能设备的绑定方法,或者,本公开实施例第三方面中所述的智能设备的绑定方法。The ninth aspect of the embodiments of the present disclosure discloses a computer-readable storage medium, the computer-readable storage medium includes a stored program, wherein, when the program runs, it executes any one of the following aspects of the first aspect of the embodiments of the present disclosure. The smart device binding method described above, or the smart device binding method described in any one of the second aspects of the embodiments of the present disclosure, or the smart device binding described in the third aspect of the embodiments of the present disclosure method.
基于上述本公开实施例提供的一种智能设备的绑定方法、系统及相关设备, 所述方法包括:在应用程序APP预先开启访问接入点并接入智能设备之后,接收APP发送的智能设备在第二云平台的用户注册信息;根据所述用户注册信息生成智能设备在第二云平台的第二用户账号和授权码;将所述第二用户账号与所述智能设备绑定,并将所述授权码发送至所述APP,使所述APP将所述授权码发送至第一云平台;基于所述第一云平台发送的访问通行证请求生成访问通行证,将所述访问通行证与所述第二用户账号绑定;将所述访问通行证发送至所述第一云平台,并与所述智能设备在所述第一云平台创建的第一用户账号绑定,使所述智能设备使用所述访问通行证通过所述第一云平台访问所述第二云平台。在本方案中,先通过用户注册信息生成智能设备在第二云平台的第二用户账号,并绑定第二用户账号与智能设备,在获取到第一云平台发送的访问通行证请求时,基于该访问通行证请求生成访问通行证并绑定访问通行证与第二用户账号,向第一云平台发送访问通行证,并与智能设备在第一云平台创建的第一用户账号绑定,使智能设备使用访问通行证通过第一云平台访问第二云平台,实现智能终端的用户账户与智能设备的跨平台绑定。Based on the method, system, and related devices for binding smart devices provided by the above-mentioned embodiments of the present disclosure, the method includes: after the application APP pre-opens the access point and accesses the smart device, receives the smart device information sent by the APP. User registration information on the second cloud platform; generate a second user account and authorization code of the smart device on the second cloud platform according to the user registration information; bind the second user account to the smart device, and The authorization code is sent to the APP, so that the APP sends the authorization code to the first cloud platform; an access pass is generated based on the access pass request sent by the first cloud platform, and the access pass is combined with the Binding of the second user account; sending the access pass to the first cloud platform, and binding with the first user account created by the smart device on the first cloud platform, so that the smart device can use the The access pass is used to access the second cloud platform through the first cloud platform. In this solution, the second user account of the smart device on the second cloud platform is first generated through the user registration information, and the second user account is bound to the smart device. When the access pass request sent by the first cloud platform is obtained, based on The access pass request generates an access pass and binds the access pass with the second user account, sends the access pass to the first cloud platform, and binds it with the first user account created by the smart device on the first cloud platform, so that the smart device uses the access pass The passport accesses the second cloud platform through the first cloud platform, realizing the cross-platform binding of the user account of the smart terminal and the smart device.
附图说明Description of drawings
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only It is an embodiment of the present disclosure, and those skilled in the art can also obtain other drawings according to the provided drawings without creative efforts.
图1为本公开实施例提供的一种智能设备的绑定方法的流程示意图;FIG. 1 is a schematic flowchart of a binding method for a smart device provided by an embodiment of the present disclosure;
图2为本公开实施例提供的一种验证智能设备的合法性的流程示意图;FIG. 2 is a schematic flow diagram of verifying the legitimacy of a smart device provided by an embodiment of the present disclosure;
图3为本公开实施例提供的另一种智能设备的绑定方法的流程示意图;FIG. 3 is a schematic flowchart of another smart device binding method provided by an embodiment of the present disclosure;
图4为本公开实施例提供的又一种智能设备的绑定方法的流程示意图;FIG. 4 is a schematic flowchart of another smart device binding method provided by an embodiment of the present disclosure;
图5为本公开实施例提供的再一种智能设备的绑定方法的流程示意图;FIG. 5 is a schematic flowchart of another smart device binding method provided by an embodiment of the present disclosure;
图6为本公开实施例提供的一种应用于智能设备的绑定方法的交互示意图;FIG. 6 is an interactive schematic diagram of a binding method applied to smart devices provided by an embodiment of the present disclosure;
图7为本公开实施例提供的一种第二云平台的结构示意图;FIG. 7 is a schematic structural diagram of a second cloud platform provided by an embodiment of the present disclosure;
图8为本公开实施例提供的另一种第二云平台的结构示意图;FIG. 8 is a schematic structural diagram of another second cloud platform provided by an embodiment of the present disclosure;
图9为本公开实施例提供的一种应用程序APP的结构示意图;FIG. 9 is a schematic structural diagram of an application program APP provided by an embodiment of the present disclosure;
图10为本公开实施例提供的另一种应用程序APP的结构示意图;FIG. 10 is a schematic structural diagram of another application program APP provided by an embodiment of the present disclosure;
图11为本公开实施例提供的又一种应用程序APP的结构示意图;FIG. 11 is a schematic structural diagram of another application program APP provided by an embodiment of the present disclosure;
图12为本公开实施例提供的一种第一云平台的结构示意图;FIG. 12 is a schematic structural diagram of a first cloud platform provided by an embodiment of the present disclosure;
图13为本公开实施例提供的一种智能设备的绑定系统的结构示意图;FIG. 13 is a schematic structural diagram of a smart device binding system provided by an embodiment of the present disclosure;
图14为本公开实施例提供的一种电子设备140的结构示意图。FIG. 14 is a schematic structural diagram of an electronic device 140 provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure. Apparently, the described embodiments are only some of the embodiments of the present disclosure, not all of them. Based on the embodiments in the present disclosure, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present disclosure.
在本申请中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。In this application, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes none. other elements specifically listed, or also include elements inherent in such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
由背景技术可知,智能家居行业提出了一些智能设备统一配置设备接入局域网的技术或标准,但是,无法解决智能终端的用户账户与智能设备跨平台绑定的问题。It can be seen from the background technology that the smart home industry has proposed some technologies or standards for unified configuration of smart devices to access the local area network. However, it cannot solve the problem of cross-platform binding between the user account of the smart terminal and the smart device.
因此,本公开实施例提供一种智能设备的绑定方法、系统及相关设备,在本方案中,先通过用户注册信息生成智能设备在第二云平台的第二用户账号,并绑 定第二用户账号与智能设备,在获取到第一云平台发送的访问通行证请求时,基于该访问通行证请求生成访问通行证并绑定访问通行证与第二用户账号,向第一云平台发送访问通行证,并与智能设备在第一云平台创建的第一用户账号绑定,使智能设备使用访问通行证通过第一云平台访问第二云平台,实现智能终端的用户账户与智能设备的跨平台绑定。Therefore, embodiments of the present disclosure provide a binding method, system, and related equipment for smart devices. The user account and the smart device, when obtaining the access pass request sent by the first cloud platform, generate an access pass based on the access pass request and bind the access pass to the second user account, send the access pass to the first cloud platform, and communicate with The binding of the first user account created by the smart device on the first cloud platform enables the smart device to use the access pass to access the second cloud platform through the first cloud platform, realizing the cross-platform binding of the user account of the smart terminal and the smart device.
首先,本公开实施例提供一种智能设备的绑定系统,该智能设备的绑定系统包括:智能设备1、应用程序APP2、第一云平台3和第二云平台4。Firstly, an embodiment of the present disclosure provides a smart device binding system, which includes: a smart device 1 , an application APP 2 , a first cloud platform 3 and a second cloud platform 4 .
其中,智能设备1与第二云平台4属于同一产商,APP2与第一云平台3属于同一产商。Among them, the smart device 1 and the second cloud platform 4 belong to the same manufacturer, and APP2 and the first cloud platform 3 belong to the same manufacturer.
第一云平台3与第二云平台4已实现互联互通。The first cloud platform 3 and the second cloud platform 4 have realized interconnection.
智能设备1接入第二云平台4,APP2接入第一云平台3。The smart device 1 is connected to the second cloud platform 4 , and the APP2 is connected to the first cloud platform 3 .
智能设备1可以为空调,也可以为冰箱等其他智能设备,本公开不作限定。The smart device 1 may be an air conditioner, or other smart devices such as a refrigerator, which is not limited in the present disclosure.
智能设备1被设置为开启配网模式,扫描所述APP开启的所述访问接入点接入所述APP,智能设备1创建验证信息,并利用预置密钥加密验证信息中的智能设备的设备信息,得到加密信息,以及接收和发送实现智能设备的绑定信息。The smart device 1 is set to enable the network distribution mode, scan the access point opened by the APP to access the APP, the smart device 1 creates verification information, and encrypts the information of the smart device in the verification information with a preset key. Device information, obtain encrypted information, and receive and send binding information to realize smart devices.
需要说明的是,预置密钥为预先设置的密钥。It should be noted that the preset key is a preset key.
需要说明的是,APP2的访问接入点可以为无线访问接入点(Access Point,简称为AP)热点,也可以为蓝牙,还可以为无线保真(Wireless Fidelity,简称为WiFi),本公开不作限定。It should be noted that the access point of APP2 can be a wireless access point (Access Point, referred to as AP) hotspot, can also be Bluetooth, and can also be Wireless Fidelity (Wireless Fidelity, referred to as WiFi). Not limited.
在本公开实施例中,访问接入点为特定名称的访问接入点,其中,特定名称可以为特定格式的名称,或者,特定字符的名称,该名称事先已与智能设备产商约定好。In the embodiment of the present disclosure, the access point is an access point with a specific name, where the specific name may be a name in a specific format, or a name with specific characters, and the name has been agreed with the smart device manufacturer in advance.
例如,访问接入点为Tenda_100。For example, the access point is Tenda_100.
当智能设备1接入访问接入点时,智能设备1、智能终端2、第一云平台3以及第二云平台4能够互相通讯。When the smart device 1 accesses the access point, the smart device 1 , the smart terminal 2 , the first cloud platform 3 and the second cloud platform 4 can communicate with each other.
APP2被设置为预先开启访问接入点并接入智能设备1,以及接收和发送具体实现智能设备的绑定信息。APP2 is set to pre-open the access point and access the smart device 1, and receive and send the binding information that specifically realizes the smart device.
第一云平台3被设置为接收和转发具体实现智能设备的绑定信息。The first cloud platform 3 is configured to receive and forward the binding information that specifically realizes the smart device.
第二云平台4被设置为处理智能设备的绑定的相关操作。The second cloud platform 4 is configured to process related operations of binding of smart devices.
基于上述公开的智能设备的绑定系统实现智能设备的绑定的过程为:The process of realizing the binding of smart devices based on the binding system of smart devices disclosed above is as follows:
APP2预先开启特定名称的访问接入点,智能设备开启配网模式,并扫描到APP2开启的特定名称的访问接入点并通过该特定名称的访问接入点接入APP2,此时,智能设备1、APP2、第一云平台3以及第二云平台4之间能够互相通讯。APP2 opens an access point with a specific name in advance, the smart device turns on the network configuration mode, and scans the access point with a specific name enabled by APP2 and accesses APP2 through the access point with a specific name. At this time, the smart device 1. APP2, the first cloud platform 3 and the second cloud platform 4 can communicate with each other.
智能设备1创建验证信息,并利用预置密钥加密验证信息中的智能设备的设备信息,得到加密信息,并将所创建的验证信息以及加密信息通过APP2和第一云平台3发送至第二云平台4。The smart device 1 creates verification information, and encrypts the device information of the smart device in the verification information with a preset key to obtain encrypted information, and sends the created verification information and encrypted information to the second cloud platform 3 through APP2 and the first cloud platform 3. cloud platform4.
需要说明的是,验证信息至少包括智能设备的设备信息。It should be noted that the verification information includes at least device information of the smart device.
其中,智能设备的设备信息包括但不限于设备标识、设备产商和设备类型。Wherein, the device information of the smart device includes, but is not limited to, a device identifier, a device manufacturer, and a device type.
第二云平台4接收智能设备1发送的验证信息和加密信息,利用预置密钥对加密信息进行解密,得到设备信息,并将设备信息与接收到的验证信息进行对比,若对比一致,确定智能设备1通过合法性验证,然后,将通过合法性验证的智能设备1的设备合法信息发送至第一云平台3。The second cloud platform 4 receives the verification information and encrypted information sent by the smart device 1, uses the preset key to decrypt the encrypted information, obtains the device information, and compares the device information with the received verification information. If the comparison is consistent, determine The smart device 1 passes the legitimacy verification, and then sends the device legitimacy information of the smart device 1 passing the legitimacy verification to the first cloud platform 3 .
第一云平台3接收第二云平台4发送的智能设备1的设备合法信息,并将接收到的智能设备1的设备合法信息发送至APP2。The first cloud platform 3 receives the legal device information of the smart device 1 sent by the second cloud platform 4 , and sends the received device legal information of the smart device 1 to the APP2.
APP2接收第一云平台3发送的智能设备1的设备合法信息,并将配网信息发送至智能设备1。APP2 receives the legal device information of the smart device 1 sent by the first cloud platform 3, and sends the distribution network information to the smart device 1.
智能设备1向智能终端2反馈已接收配网信息的响应信息。The smart device 1 feeds back the response information of the received distribution network information to the smart terminal 2 .
APP2向智能设备1发送注册第二云平台用户账号的请求。APP2 sends a request to the smart device 1 to register a user account on the second cloud platform.
智能设备1向APP2反馈第二云平台用户注册链接。Smart device 1 feeds back the second cloud platform user registration link to APP2.
APP2基于第二云平台的用户注册链接生成智能设备1在第二云平台4的用户注册信息,并将用户注册信息发送至第二云平台4。APP2 generates user registration information of the smart device 1 on the second cloud platform 4 based on the user registration link of the second cloud platform, and sends the user registration information to the second cloud platform 4 .
第二云平台4接收APP2发送的智能设备1在第二云平台的用户注册信息,根据用户注册信息生成第二云平台的第二用户账号和授权码,将第二用户账号与智能设备1绑定,并将授权码发送至APP2。The second cloud platform 4 receives the user registration information of the smart device 1 on the second cloud platform sent by APP2, generates a second user account and authorization code of the second cloud platform according to the user registration information, and binds the second user account with the smart device 1 Confirm and send the authorization code to APP2.
APP2将授权码发送至第一云平台3。APP2 sends the authorization code to the first cloud platform 3 .
第一云平台3向第二云平台4发送访问通行证请求。The first cloud platform 3 sends an access pass request to the second cloud platform 4 .
第二云平台4基于第一云平台3发送的访问通行证请求生成访问通行证,并将访问通行证与第二用户账号绑定,将访问通行证发送至第一云平台3,并与智能设备1在所述第一云平台3创建的第一用户账号绑定,使智能设备1使用访问通行证通过第一云平台3访问第二云平台4。The second cloud platform 4 generates an access pass based on the access pass request sent by the first cloud platform 3, binds the access pass to the second user account, sends the access pass to the first cloud platform 3, and communicates with the smart device 1 at the location The first user account created by the first cloud platform 3 is bound, so that the smart device 1 uses the access pass to access the second cloud platform 4 through the first cloud platform 3 .
基于本公开实施例提供的一种智能设备的绑定系统,在应用程序APP预先开启访问接入点并接入智能设备之后,接收APP发送的智能设备在第二云平台的用户注册信息;根据用户注册信息生成智能设备在第二云平台的第二用户账号和授权码;将第二用户账号与智能设备绑定,并将授权码发送至APP,使APP将授权码发送至第一云平台;基于第一云平台发送的访问通行证请求生成访问通行证,将访问通行证与第二用户账号绑定;将访问通行证发送至第一云平台,并与智能设备在第一云平台创建的第一用户账号绑定,使智能设备使用访问通行证通过第一云平台访问第二云平台。在本方案中,先通过用户注册信息生成智能设备在第二云平台的第二用户账号,并绑定第二用户账号与智能设备,在获取到第一云平台发送的访问通行证请求时,基于该访问通行证请求生成访问通行证并绑定访问通行证与第二用户账号,并发送访问通行证至第一云平台,并与智能设备在第一云平台创建的第一用户账号绑定,使智能设备使用访问通行证通过第一云平台访问第二云平台,实现智能终端的用户账户与智能设备的跨平台绑定。Based on a smart device binding system provided by an embodiment of the present disclosure, after the application program APP pre-opens the access point and accesses the smart device, it receives the user registration information of the smart device on the second cloud platform sent by the APP; according to User registration information generates the second user account and authorization code of the smart device on the second cloud platform; binds the second user account with the smart device, and sends the authorization code to the APP, so that the APP sends the authorization code to the first cloud platform ; Based on the access pass request sent by the first cloud platform, an access pass is generated, and the access pass is bound to the second user account; the access pass is sent to the first cloud platform, and the first user created by the smart device on the first cloud platform Account binding enables the smart device to use the access pass to access the second cloud platform through the first cloud platform. In this solution, the second user account of the smart device on the second cloud platform is first generated through the user registration information, and the second user account is bound to the smart device. When the access pass request sent by the first cloud platform is obtained, based on The access pass request generates an access pass and binds the access pass with the second user account, and sends the access pass to the first cloud platform, and binds the first user account created by the smart device on the first cloud platform, so that the smart device can use The access pass accesses the second cloud platform through the first cloud platform, realizing the cross-platform binding of the user account of the smart terminal and the smart device.
基于上述本公开实施例示出的智能设备的绑定系统,如图1所示,为本公开实施例提供的一种智能设备的绑定方法的流程示意图,该智能设备的绑定方法应用于第二云平台,该第二云平台为智能设备所属的云平台,该第二云平台可以为上述智能设备的绑定系统示出的第二云平台,该智能设备绑定方法主要包括以下步骤:Based on the smart device binding system shown in the above-mentioned embodiments of the present disclosure, as shown in FIG. 1 , it is a schematic flowchart of a smart device binding method provided by an embodiment of the present disclosure. Two cloud platforms, the second cloud platform is the cloud platform to which the smart device belongs, the second cloud platform can be the second cloud platform shown in the above-mentioned smart device binding system, and the smart device binding method mainly includes the following steps:
步骤S101:在应用程序APP预先开启访问接入点并接入智能设备之后,接收APP发送的智能设备在第二云平台的用户注册信息。Step S101: After the application program APP opens the access point in advance and accesses the smart device, receive the user registration information of the smart device on the second cloud platform sent by the APP.
在步骤S101中,第二云平台的用户注册信息由APP触发通过合法性验证的智能设备发送的第二云平台的用户注册链接并输入用户注册信息得到。In step S101, the user registration information of the second cloud platform is obtained by the APP triggering the user registration link of the second cloud platform sent by the smart device that has passed legality verification and inputting the user registration information.
APP可以为上述智能设备的绑定系统示出的APP。The APP may be the APP shown in the above-mentioned binding system of the smart device.
智能设备可以为上述智能设备的绑定系统示出的智能设备。The smart device may be the smart device shown in the above smart device binding system.
在具体实现步骤S101的过程中,在应用程序APP预先开启访问接入点并接入智能设备之后,APP接收通过合法性验证的智能设备发送的第二云平台的用户注册链接,并触发第二云平台的用户注册链接输入用户注册信息,得到智能设备在第二云平台的用户注册信息,并将智能设备在第二云平台的用户注册信息发送至第二云平台,第二云平台接收APP发送的智能设备在第二云平台的用户注册信息。In the process of implementing step S101, after the application program APP opens the access point in advance and accesses the smart device, the APP receives the user registration link of the second cloud platform sent by the smart device that has passed the legitimacy verification, and triggers the second The user registration link of the cloud platform enters the user registration information, obtains the user registration information of the smart device on the second cloud platform, and sends the user registration information of the smart device on the second cloud platform to the second cloud platform, and the second cloud platform receives the APP The user registration information of the sent smart device on the second cloud platform.
步骤S102:根据用户注册信息生成智能设备在第二云平台的第二用户账号和授权码。Step S102: Generate a second user account and authorization code of the smart device on the second cloud platform according to the user registration information.
在步骤S102中,授权码可以为Authcode。In step S102, the authorization code may be Authcode.
生成授权码的目的是为了获得第二云平台的访问通行证。The purpose of generating the authorization code is to obtain the access pass of the second cloud platform.
在具体实现步骤S102的过程中,第二云平台根据接收到的智能设备在第二云平台的用户注册信息为用户生成智能设备在第二云平台的第二用户账号以及能够获取第二云平台的访问权的授权码。In the process of implementing step S102, the second cloud platform generates a second user account of the smart device on the second cloud platform for the user according to the received user registration information of the smart device on the second cloud platform and can obtain the second user account of the second cloud platform. The authorization code for access rights.
步骤S103:将第二用户账号与智能设备绑定,并将授权码发送至APP,使APP将授权码发送至第一云平台。Step S103: Bind the second user account with the smart device, and send the authorization code to the APP, so that the APP sends the authorization code to the first cloud platform.
在步骤S103中,第一云平台为APP所属的云平台。In step S103, the first cloud platform is the cloud platform to which the APP belongs.
第一云平台可以为上述智能设备的绑定系统示出的第一云平台。The first cloud platform may be the first cloud platform shown in the above smart device binding system.
在具体实现步骤S103的过程中,在第二云平台中,第二云平台绑定生成的第二用户账号与智能设备,并将生成的授权码发送至APP,使APP将授权码发送至第一云平台。In the process of implementing step S103, in the second cloud platform, the second cloud platform binds the generated second user account with the smart device, and sends the generated authorization code to the APP, so that the APP sends the authorization code to the second cloud platform. One cloud platform.
步骤S104:基于第一云平台发送的访问通行证请求生成访问通行证,将访问通行证与第二用户账号绑定。Step S104: Generate an access pass based on the access pass request sent by the first cloud platform, and bind the access pass to the second user account.
在步骤S104中,访问通行证可以为访问令牌,但不限于此。In step S104, the access pass may be an access token, but is not limited thereto.
在具体实现步骤S104的过程中,在第二云平台中,第二云平台接收第一云平台发送的访问通行证请求,根据接收到的访问通行证请求生成访问通行证,并将所生成的访问通行证与前述生成的第二云平台用户账号进行绑定。In the process of implementing step S104, in the second cloud platform, the second cloud platform receives the access pass request sent by the first cloud platform, generates an access pass according to the received access pass request, and combines the generated access pass with the The user account of the second cloud platform generated above is bound.
步骤S105:将访问通行证发送至第一云平台,并与智能设备在第一云平台创建的第一用户账号绑定,使智能设备使用访问通行证通过第一云平台访问第二云 平台。Step S105: Send the access pass to the first cloud platform, and bind it to the first user account created by the smart device on the first cloud platform, so that the smart device uses the access pass to access the second cloud platform through the first cloud platform.
在具体实现步骤S105的过程中,第二云平台将生成的访问通行证发送至第一云平台,并与智能设备在第一云平台创建的第一用户账号绑定,当用户通过第一云平台访问第二云平台下的设备时,第一云平台可以使用访问通行证访问第二云平台,而不需要使用用户的第二云平台用户账号访问第二云平台,避免第二云平台用户账号泄露给第一云平台,也就是说,使智能设备使用访问通行证通过第一云平台访问第二云平台。In the process of implementing step S105, the second cloud platform sends the generated access pass to the first cloud platform, and binds it with the first user account created by the smart device on the first cloud platform. When accessing the devices under the second cloud platform, the first cloud platform can use the access pass to access the second cloud platform without using the user's second cloud platform user account to access the second cloud platform, avoiding the leakage of the second cloud platform user account Give the first cloud platform, that is to say, make the smart device use the access pass to access the second cloud platform through the first cloud platform.
基于本公开实施例提供的一种智能设备的绑定方法,在应用程序APP预先开启访问接入点并接入智能设备之后,接收APP发送的智能设备在第二云平台的用户注册信息;根据用户注册信息生成智能设备在第二云平台的第二用户账号和授权码;将第二用户账号与智能设备绑定,并将授权码发送至APP,使APP将授权码发送至第一云平台;基于第一云平台发送的访问通行证请求生成访问通行证,将访问通行证与第二用户账号绑定;将访问通行证发送至第一云平台,并与智能设备在第一云平台创建的第一用户账号绑定,使智能设备使用访问通行证通过第一云平台访问第二云平台。在本方案中,先通过用户注册信息生成智能设备在第二云平台的第二用户账号,并绑定第二用户账号与智能设备,在获取到第一云平台发送的访问通行证请求时,基于该访问通行证请求生成访问通行证并绑定访问通行证与第二用户账号,向第一云平台发送访问通行证,并与智能设备在第一云平台创建的第一用户账号绑定,使智能设备使用访问通行证通过第一云平台访问第二云平台,实现智能终端的用户账户与智能设备的跨平台绑定。Based on a method for binding a smart device provided by an embodiment of the present disclosure, after the application APP pre-opens the access point and accesses the smart device, the user registration information of the smart device on the second cloud platform sent by the APP is received; according to User registration information generates the second user account and authorization code of the smart device on the second cloud platform; binds the second user account with the smart device, and sends the authorization code to the APP, so that the APP sends the authorization code to the first cloud platform ; Based on the access pass request sent by the first cloud platform, an access pass is generated, and the access pass is bound to the second user account; the access pass is sent to the first cloud platform, and the first user created by the smart device on the first cloud platform Account binding enables the smart device to use the access pass to access the second cloud platform through the first cloud platform. In this solution, the second user account of the smart device on the second cloud platform is first generated through the user registration information, and the second user account is bound to the smart device. When the access pass request sent by the first cloud platform is obtained, based on The access pass request generates an access pass and binds the access pass with the second user account, sends the access pass to the first cloud platform, and binds it with the first user account created by the smart device on the first cloud platform, so that the smart device uses the access pass The passport accesses the second cloud platform through the first cloud platform, realizing the cross-platform binding of the user account of the smart terminal and the smart device.
可选的,基于上述本公开实施例提供的一种智能设备的绑定方法,执行步骤S201在应用程序APP预先开启访问接入点并接入智能设备之后,接收APP发送的智能设备在第二云平台的用户注册信息的过程,如图2所示,为本公开实施例提供的一种验证智能设备的合法性的流程示意图,主要包括以下步骤:Optionally, based on the method for binding a smart device provided by the above-mentioned embodiments of the present disclosure, step S201 is performed. After the application APP pre-opens the access point and accesses the smart device, the smart device receives the APP sent by the second The process of user registration information on the cloud platform, as shown in FIG. 2 , is a schematic flow diagram for verifying the legitimacy of a smart device provided by an embodiment of the present disclosure, and mainly includes the following steps:
步骤S201:接收智能设备通过APP和第一云平台发送的验证信息和加密信息。Step S201: Receive verification information and encrypted information sent by the smart device through the APP and the first cloud platform.
在步骤S201中,验证信息至少包含智能设备的设备信息,加密信息由智能设备利用预置密钥对设备信息进行加密得到。In step S201, the verification information includes at least device information of the smart device, and the encrypted information is obtained by encrypting the device information by the smart device using a preset key.
在具体实现步骤S201的过程中,智能设备将创建的验证信息和加密信息发送至APP,APP将智能设备创建的验证信息和加密信息发送至第一云平台,第一云平台将智能设备创建的验证信息和加密信息发送至第二云平台。换而言之,第二云平台接收智能设备通过APP和第一云平台发送的验证信息和加密信息。In the process of implementing step S201, the smart device sends the verification information and encryption information created by the smart device to the APP, and the APP sends the verification information and encryption information created by the smart device to the first cloud platform, and the first cloud platform sends the verification information and encryption information created by the smart device. The verification information and encrypted information are sent to the second cloud platform. In other words, the second cloud platform receives the verification information and encrypted information sent by the smart device through the APP and the first cloud platform.
步骤S202:利用预置密钥对加密信息进行解密,并对得到的设备信息进行合法性验证,确定智能设备的合法性。Step S202: Use the preset key to decrypt the encrypted information, and verify the legitimacy of the obtained device information to determine the legitimacy of the smart device.
在具体实现步骤S202的过程中,在第二云平台中,第二云平台接收到智能设备通过APP和第一云平台发送的验证信息和加密信息之后,需要对加密信息进行解密,因此,可以利用预置密钥对加密信息进行解密,得到设备信息,并对设备信息进行合法性验证,确定智能设备的合法性。In the process of implementing step S202, in the second cloud platform, after receiving the verification information and encrypted information sent by the smart device through the APP and the first cloud platform, the second cloud platform needs to decrypt the encrypted information. Therefore, it can Use the preset key to decrypt the encrypted information to obtain the device information, and verify the legitimacy of the device information to determine the legitimacy of the smart device.
可选的,执行步骤S202利用预置密钥对加密信息进行解密,并对得到的设备信息进行合法性验证,确定智能设备的合法性的过程,该过程主要包括以下步骤:Optionally, execute step S202 to decrypt the encrypted information with the preset key, and verify the legitimacy of the obtained device information to determine the legitimacy of the smart device. This process mainly includes the following steps:
步骤S11:利用预置密钥对加密信息进行解密,得到设备信息。Step S11: Use the preset key to decrypt the encrypted information to obtain the device information.
在具体实现步骤S11的过程中,在第二云平台中,第二云平台接收到智能设备通过APP和第一云平台发送的验证信息和加密信息之后,需要利用预置密钥对加密信息进行解密,因此,得到设备信息。In the process of implementing step S11, in the second cloud platform, after receiving the verification information and encryption information sent by the smart device through the APP and the first cloud platform, the second cloud platform needs to use the preset key to perform encryption on the encrypted information. Decryption, therefore, yields device information.
步骤S12:将设备信息与验证信息进行对比。Step S12: comparing the device information with the verification information.
在具体实现步骤S12的过程中,在第二云平台中,第二云平台将设备信息与接收到的智能设备创建的验证信息进行对比,以验证智能设备的合法性。In the process of implementing step S12, in the second cloud platform, the second cloud platform compares the device information with the received verification information created by the smart device to verify the legitimacy of the smart device.
步骤S13:判断设备信息与接收到的智能设备创建的验证信息对比是否一致,若对比一致,执行步骤S14,若对比不一致,执行步骤S15。Step S13: Determine whether the comparison between the device information and the received verification information created by the smart device is consistent, if the comparison is consistent, perform step S14, and if the comparison is not consistent, perform step S15.
在具体实现步骤S13的过程中,判断设备信息与接收到的智能设备创建的验证信息对比是否一致,若对比不一致,说明加密信息与智能设备创建的验证信息被篡改了,执行步骤S14,若对比一致,说明加密信息与智能设备创建的验证信息没有被篡改,执行步骤S15。In the process of implementing step S13, it is judged whether the comparison between the device information and the verification information created by the received smart device is consistent. If they are consistent, it means that the encrypted information and the verification information created by the smart device have not been tampered with, and step S15 is executed.
步骤S14:确定智能设备未通过合法性验证。Step S14: Determine that the smart device has not passed the legality verification.
在具体实现步骤S14的过程中,已知设备信息与接收到的智能设备创建的验证信息对比不一致,则确定智能设备未通过合法性验证。In the process of implementing step S14, if the known device information is inconsistent with the received verification information created by the smart device, it is determined that the smart device has not passed the legality verification.
步骤S15:确定智能设备通过合法性验证。Step S15: Determine that the smart device passes the legality verification.
在具体实现步骤S15的过程中,已知设备信息与接收到的智能设备创建的验证信息对比一致,则确定智能设备通过合法性验证。In the process of implementing step S15, if the known device information is consistent with the received verification information created by the smart device, it is determined that the smart device has passed the legality verification.
可选的,执行步骤S202确定智能设备的合法性之后,还包括:Optionally, after performing step S202 to determine the legitimacy of the smart device, it also includes:
将智能设备的设备合法信息发送至APP,使APP将配网信息发送至智能设备,并接收智能设备反馈的已接收配网信息的响应信息,以及使APP向智能设备发送注册第二云平台的用户账号的请求,并接收智能设备反馈的第二云平台的用户注册链接,基于第二云平台的用户注册链接生成智能设备在第二云平台的用户注册信息。Send the device legal information of the smart device to the APP, make the APP send the distribution network information to the smart device, and receive the response information of the received distribution network information fed back by the smart device, and make the APP send the registration second cloud platform to the smart device The user account request, and receive the user registration link of the second cloud platform fed back by the smart device, and generate the user registration information of the smart device on the second cloud platform based on the user registration link of the second cloud platform.
基于本公开实施例提供的一种智能设备的绑定方法,通过验证智能设备的合法性,避免用户信息的泄露,从而为实现智能终端的用户账户与智能设备的跨平台绑定提供前提条件。Based on the smart device binding method provided by the embodiments of the present disclosure, the leakage of user information is avoided by verifying the legitimacy of the smart device, thereby providing a precondition for realizing the cross-platform binding of the user account of the smart terminal and the smart device.
基于上述本公开实施例提供的一种智能设备的绑定方法,如图3所示,为本公开实施例提供的另一种智能设备的绑定方法的流程示意图,该智能设备的绑定方法应用于第二云平台,其中,访问通行证请求包括访问令牌请求,该智能设备的绑定方法主要包括以下步骤:Based on the binding method of smart devices provided by the above-mentioned embodiments of the present disclosure, as shown in FIG. 3 , it is a schematic flowchart of another binding method of smart devices provided by the embodiments of the present disclosure. The binding method of smart devices Applied to the second cloud platform, wherein the access pass request includes an access token request, the binding method of the smart device mainly includes the following steps:
步骤S301:在应用程序APP预先开启访问接入点并接入智能设备之后,接收APP发送的智能设备在第二云平台的用户注册信息。Step S301: After the application program APP opens the access point in advance and accesses the smart device, receive the user registration information of the smart device on the second cloud platform sent by the APP.
步骤S302:根据用户注册信息生成智能设备在第二云平台的第二用户账号和授权码。Step S302: Generate a second user account and authorization code of the smart device on the second cloud platform according to the user registration information.
步骤S303:将第二用户账号与智能设备绑定,并将授权码发送至APP,使APP将授权码发送至第一云平台。Step S303: Bind the second user account with the smart device, and send the authorization code to the APP, so that the APP sends the authorization code to the first cloud platform.
上述步骤S301至步骤S303的执行原理和过程与图1中公开的步骤S101至步骤S103的执行原理和过程相同,可参见,这里不再赘述。The execution principle and process of the above step S301 to step S303 are the same as the execution principle and process of step S101 to step S103 disclosed in FIG.
步骤S304:基于第一云平台发送的授权码和访问令牌请求生成访问令牌,将访问令牌与第二用户账号绑定。Step S304: Generate an access token based on the authorization code and the access token request sent by the first cloud platform, and bind the access token to the second user account.
在具体实现步骤S304的过程中,在第二云平台中,第二云平台接收第一云平 台发送的授权码和访问令牌请求,根据接收到的访问令牌请求生成访问令牌,并将所生成的访问令牌与前述生成的第二用户账号进行绑定。In the process of implementing step S304, in the second cloud platform, the second cloud platform receives the authorization code and the access token request sent by the first cloud platform, generates an access token according to the received access token request, and sends the The generated access token is bound to the aforementioned generated second user account.
步骤S305:将访问令牌发送至第一云平台,并与智能设备在第一云平台创建的第一用户账号绑定,使智能设备使用访问令牌通过第一云平台访问第二云平台。Step S305: Send the access token to the first cloud platform, and bind it to the first user account created by the smart device on the first cloud platform, so that the smart device uses the access token to access the second cloud platform through the first cloud platform.
在具体实现步骤S305的过程中,第二云平台将生成的访问令牌发送至第一云平台,并与智能设备在第一云平台创建的第一用户账号绑定,当用户通过第一云平台访问第二云平台下的设备时,第一云平台可以使用访问令牌访问第二云平台,而不需要使用用户的第二云平台用户账号访问第二云平台,避免第二云平台用户账号泄露给第一云平台,也就是说,使智能设备使用访问令牌通过第一云平台访问第二云平台。In the process of implementing step S305, the second cloud platform sends the generated access token to the first cloud platform, and binds it to the first user account created by the smart device on the first cloud platform. When the platform accesses devices under the second cloud platform, the first cloud platform can use the access token to access the second cloud platform without using the user's second cloud platform user account to access the second cloud platform, preventing the second cloud platform users from The account is leaked to the first cloud platform, that is to say, the smart device uses the access token to access the second cloud platform through the first cloud platform.
基于本公开实施例提供的一种智能设备的绑定方法,先通过用户注册信息生成智能设备在第二云平台的第二用户账号和授权码,并绑定第二用户账号与智能设备,在获取到第一云平台发送的授权码和访问令牌请求时,基于该访问令牌请求生成访问令牌并绑定访问令牌与第二云平台用户账号,向第一云平台发送访问令牌,并与智能设备在第一云平台创建的第一用户账号绑定,使智能设备使用访问令牌通过第一云平台访问第二云平台,实现智能终端的用户账户与智能设备的跨平台绑定。Based on a method for binding a smart device provided by an embodiment of the present disclosure, first generate the second user account and authorization code of the smart device on the second cloud platform through the user registration information, and bind the second user account and the smart device, then When the authorization code and access token request sent by the first cloud platform are obtained, an access token is generated based on the access token request, and the access token is bound to the user account of the second cloud platform, and the access token is sent to the first cloud platform , and bind with the first user account created by the smart device on the first cloud platform, so that the smart device uses the access token to access the second cloud platform through the first cloud platform, realizing the cross-platform binding of the user account of the smart terminal and the smart device Certainly.
基于上述本公开实施例示出的智能设备的绑定系统,如图4所示,为本公开实施例提供的一种智能设备的绑定方法的流程示意图,该智能设备的绑定方法应用于应用程序APP,该APP可以为上述智能设备的绑定系统示出的APP,该智能设备的绑定方法主要包括以下步骤:Based on the smart device binding system shown in the above-mentioned embodiments of the present disclosure, as shown in FIG. 4 , it is a schematic flowchart of a smart device binding method provided by an embodiment of the present disclosure. A program APP, the APP may be the APP shown in the binding system of the above-mentioned smart device, and the binding method of the smart device mainly includes the following steps:
步骤S401:预先开启访问接入点并接入智能设备。Step S401: Turn on the access point in advance and access the smart device.
在具体实现步骤S401的过程中,应用程序APP预先开启访问接入点,并通过该访问接入点接入智能设备。In the process of implementing step S401, the application program APP opens the access point in advance, and accesses the smart device through the access point.
步骤S402:向通过合法性验证的智能设备发送注册第二云平台的用户账号的请求,接收智能设备发送的第二云平台的用户注册链接,基于第二云平台的用户注册链接生成第二云平台的用户注册信息,并将用户注册信息发送至第二云平台, 使第二云平台根据用户注册信息生成智能设备在第二云平台的第二用户账号和授权码,将第二用户账号与智能设备绑定,并将授权码发送至APP。Step S402: Send a request to register the user account of the second cloud platform to the smart device that has passed the legality verification, receive the user registration link of the second cloud platform sent by the smart device, and generate the second cloud based on the user registration link of the second cloud platform The user registration information of the platform, and send the user registration information to the second cloud platform, so that the second cloud platform generates the second user account and authorization code of the smart device on the second cloud platform according to the user registration information, and combines the second user account with the The smart device is bound and the authorization code is sent to the APP.
在步骤S402中,第二云平台为智能设备所属的云平台,第二云平台可以为上述智能设备的绑定系统示出的第二云平台。In step S402, the second cloud platform is the cloud platform to which the smart device belongs, and the second cloud platform may be the second cloud platform shown in the above-mentioned binding system of the smart device.
智能设备可以为上述智能设备的绑定系统示出的智能设备。The smart device may be the smart device shown in the above smart device binding system.
在具体实现步骤S402的过程中,APP向通过合法性验证的智能设备发送注册第二云平台的用户账号的请求,智能设备向APP发送第二云平台的用户注册链接,APP触发第二云平台的用户注册链接并输入用户注册信息,得到智能设备在第二云平台的用户注册信息,并将得到的用户注册信息发送至第二云平台,使第二云平台根据用户注册信息生成智能设备在第二云平台的第二用户账号和授权码,将第二用户账号与智能设备绑定,并将授权码发送至APP。In the process of implementing step S402, the APP sends a request to register the user account of the second cloud platform to the smart device that has passed the legality verification, the smart device sends the user registration link of the second cloud platform to the APP, and the APP triggers the second cloud platform User registration link and input user registration information, get the user registration information of the smart device on the second cloud platform, and send the obtained user registration information to the second cloud platform, so that the second cloud platform generates the smart device on the second cloud platform according to the user registration information The second user account and the authorization code of the second cloud platform bind the second user account with the smart device, and send the authorization code to the APP.
步骤S403:接收第二云平台发送的授权码,并将授权码发送至第一云平台,使第一云平台将授权码和访问通行证请求发送至第二云平台,使第二云平台基于访问通行证请求生成访问通行证,将访问通行证与第二用户账号绑定,并将访问通行证发送至第一云平台,并与智能设备在第一云平台创建的第一用户账号绑定,使智能设备使用访问通行证通过第一云平台访问第二云平台。Step S403: Receive the authorization code sent by the second cloud platform, and send the authorization code to the first cloud platform, so that the first cloud platform sends the authorization code and the request for the access pass to the second cloud platform, so that the second cloud platform is based on the access The pass request generates an access pass, binds the access pass to the second user account, sends the access pass to the first cloud platform, and binds the first user account created by the smart device on the first cloud platform, so that the smart device can use The access pass accesses the second cloud platform through the first cloud platform.
在步骤S403中,第一云平台为APP所属的云平台,第一云平台可以为上述智能设备的绑定系统示出的第一云平台。In step S403, the first cloud platform is the cloud platform to which the APP belongs, and the first cloud platform may be the first cloud platform shown in the above-mentioned smart device binding system.
访问通行证可以为访问令牌,但不限于此。An access pass can be, but is not limited to, an access token.
在具体实现步骤S403的过程中,APP接收第二云平台发送的授权码,并将授权码发送至第一云平台,第一云平台将授权码和访问通行证请求发送至第二云平台,第二云平台基于接收到的访问通行证请求生成访问通行证,将访问通行证与第二云平台用户账号进行绑定,并将访问通行证发送至第一云平台,并与智能设备在第一云平台创建的第一用户账号绑定,使智能设备使用访问通行证通过第一云平台访问第二云平台。In the process of implementing step S403, the APP receives the authorization code sent by the second cloud platform, and sends the authorization code to the first cloud platform, and the first cloud platform sends the authorization code and the access pass request to the second cloud platform, and the second cloud platform sends the authorization code to the first cloud platform. The second cloud platform generates an access pass based on the received access pass request, binds the access pass to the user account of the second cloud platform, and sends the access pass to the first cloud platform, and combines it with the smart device created on the first cloud platform The first user account is bound, so that the smart device uses the access pass to access the second cloud platform through the first cloud platform.
基于本公开实施例提供的一种智能设备的绑定方法,通过第二云平台的用户注册链接生成第二云平台的用户注册信息,使第二云平台通过用户注册信息生成智能设备在第二云平台的第二用户账号和授权码,并绑定第二用户账号与智能设 备,使第二云平台在获取到第一云平台发送的访问通行证请求时,基于该访问通行证请求生成访问通行证并绑定访问通行证与第二用户账号,并发送访问通行证,并与智能设备在第一云平台创建的第一用户账号绑定,使智能设备使用访问通行证通过一云平台访问第二云平台,实现智能终端的用户账户与智能设备的跨平台绑定。Based on a method for binding smart devices provided by an embodiment of the present disclosure, the user registration information of the second cloud platform is generated through the user registration link of the second cloud platform, so that the second cloud platform generates the smart device on the second cloud platform through the user registration information. The second user account and authorization code of the cloud platform, and bind the second user account and the smart device, so that when the second cloud platform obtains the access pass request sent by the first cloud platform, it generates an access pass based on the access pass request and Bind the access pass with the second user account, and send the access pass, and bind it with the first user account created by the smart device on the first cloud platform, so that the smart device uses the access pass to access the second cloud platform through the first cloud platform, realizing The user account of the smart terminal is bound to the cross-platform of the smart device.
基于上述本公开实施例提供的一种智能设备的绑定方法,在执行步骤S401向通过合法性验证的智能设备发送注册第二云平台的用户账号的请求之前,还包括以下步骤:Based on the binding method of a smart device provided by the above-mentioned embodiments of the present disclosure, before performing step S401 to send a request for registering a user account of the second cloud platform to the smart device that has passed the legality verification, the following steps are further included:
步骤S21:接收第二云平台发送的通过合法性验证的智能设备的设备合法信息,并将配网信息发送至智能设备。Step S21: Receive the device legitimacy information of the smart device that has passed the legitimacy verification sent by the second cloud platform, and send the distribution network information to the smart device.
在具体实现步骤S21的过程中,APP接收第二云平台发送的通过合法性验证的智能设备的设备合法信息,并向智能设备发送配网信息。In the process of implementing step S21, the APP receives the device legality information of the smart device that has passed the legality verification sent by the second cloud platform, and sends the network distribution information to the smart device.
步骤S22:接收智能设备反馈的已接收配网信息的响应信息。Step S22: Receive the response information of the received distribution network information fed back by the smart device.
在具体实现步骤S22的过程中,APP接收智能设备反馈的已接收配网信息的响应信息。In the process of implementing step S22, the APP receives the response information of the received distribution network information fed back by the smart device.
基于本公开实施例提供的一种智能设备的绑定方法,接收智能设备反馈的已接收配网信息的响应信息之后,通过智能设备发送的第二云平台的用户注册链接生成智能设备在第二云平台的用户注册信息,使第二云平台通过用户注册信息生成智能设备在第二云平台的第二用户账号和授权码,并绑定第二用户账号与智能设备,使第二云平台在获取到第一云平台发送的访问通行证请求时,基于该访问通行证请求生成访问通行证并绑定访问通行证与第二用户账号,并发送访问通行证至第一云平台,并与智能设备在第一云平台创建的第一用户账号绑定,使智能设备使用访问通行证通过一云平台访问第二云平台,实现智能终端的用户账户与智能设备的跨平台绑定。Based on a smart device binding method provided by an embodiment of the present disclosure, after receiving the response information of the received distribution network information fed back by the smart device, the user registration link of the second cloud platform sent by the smart device is generated by the smart device in the second The user registration information of the cloud platform enables the second cloud platform to generate the second user account and authorization code of the smart device on the second cloud platform through the user registration information, and bind the second user account and the smart device so that the second cloud platform can When the access pass request sent by the first cloud platform is obtained, an access pass is generated based on the access pass request, and the access pass is bound to the second user account, and the access pass is sent to the first cloud platform, and connected with the smart device on the first cloud The binding of the first user account created by the platform enables the smart device to use the access pass to access the second cloud platform through the first cloud platform, realizing the cross-platform binding of the user account of the smart terminal and the smart device.
基于上述本公开实施例提供的一种智能设备的绑定方法,执行步骤S21接收第二云平台发送的通过合法性验证的智能设备的设备合法信息之前,还包括以下 步骤:Based on the binding method of a smart device provided by the above-mentioned embodiments of the present disclosure, before performing step S21 to receive the device legality information of the smart device that has passed the legality verification sent by the second cloud platform, the following steps are also included:
步骤S31:接收智能设备发送的验证信息和加密信息。Step S31: Receive verification information and encrypted information sent by the smart device.
在步骤S31中,验证信息至少包含智能设备的设备信息,加密信息由智能设备利用预置密钥对设备信息进行加密得到。In step S31, the verification information includes at least device information of the smart device, and the encrypted information is obtained by encrypting the device information by the smart device using a preset key.
需要说明的是,APP通过访问接入点接入智能设备之后,APP、智能设备、第一云平台以及第二云平台之间实现互相通讯。It should be noted that after the APP accesses the smart device through the access point, the APP, the smart device, the first cloud platform and the second cloud platform realize mutual communication.
在具体实现步骤S31的过程中,APP接入智能设备之后,接收智能设备发送的智能设备创建的验证信息和加密信息。During the specific implementation of step S31, after the APP accesses the smart device, it receives the verification information and encrypted information created by the smart device sent by the smart device.
步骤S32:将验证信息和加密信息发送至第一云平台,由第一云平台将验证信息和加密信息发送至第二云平台,使第二云平台利用预置密钥对加密信息进行解密,并将得到的设备信息进行合法性验证,确定智能设备的合法性。Step S32: Send the verification information and encrypted information to the first cloud platform, and the first cloud platform sends the verification information and encrypted information to the second cloud platform, so that the second cloud platform uses a preset key to decrypt the encrypted information, The legitimacy of the obtained device information is verified to determine the legitimacy of the smart device.
在具体实现步骤S32的过程中,APP将接收到的验证信息和加密信息发送至第一云平台,由第一云平台将验证信息和加密信息发送至第二云平台,使第二云平台利用预置密钥解密加密信息,得到设备信息,并将设备信息进行合法性验证,以确定智能设备的合法性。In the process of implementing step S32, the APP sends the received verification information and encryption information to the first cloud platform, and the first cloud platform sends the verification information and encryption information to the second cloud platform, so that the second cloud platform uses The preset key decrypts the encrypted information, obtains the device information, and verifies the legitimacy of the device information to determine the legitimacy of the smart device.
基于本公开实施例提供的一种智能设备的绑定方法,通过验证智能设备的合法性,避免用户信息的泄露,从而为实现智能终端的用户账户与智能设备的跨平台绑定提供前提条件。Based on the smart device binding method provided by the embodiments of the present disclosure, the leakage of user information is avoided by verifying the legitimacy of the smart device, thereby providing a precondition for realizing the cross-platform binding of the user account of the smart terminal and the smart device.
基于上述本公开实施例示出的智能设备的绑定系统,如图5所示,为本公开实施例提供的一种智能设备的绑定方法的流程示意图,该智能设备的绑定方法应用于第一云平台,该第一云平台可以为上述智能设备的绑定系统示出的第一云平台,该智能设备的绑定方法主要包括以下步骤:Based on the smart device binding system shown in the above-mentioned embodiments of the present disclosure, as shown in FIG. 5 , it is a schematic flowchart of a smart device binding method provided by an embodiment of the present disclosure. The smart device binding method is applied to the first A cloud platform, the first cloud platform may be the first cloud platform shown in the above-mentioned smart device binding system, and the smart device binding method mainly includes the following steps:
步骤S501:接收第二云平台发送的访问通行证。Step S501: Receive the access pass sent by the second cloud platform.
在步骤S501中,访问通行证与智能设备在第二云平台生成的第二用户账号绑定,第二用户账号由第二云平台在应用程序APP预先开启访问接入点并接入智能设备之后,接收APP发送的智能设备在第二云平台的用户注册信息,根据用户注册信息生成智能设备在第二云平台的第二用户账号。In step S501, the access pass is bound to the second user account generated by the smart device on the second cloud platform, and the second user account is pre-opened by the second cloud platform after the application program APP opens the access point and accesses the smart device. The user registration information of the smart device on the second cloud platform sent by the APP is received, and a second user account of the smart device on the second cloud platform is generated according to the user registration information.
在具体实现步骤S501的过程中,第一云平台接收第二云平台发送的访问通行证。During the specific implementation of step S501, the first cloud platform receives the access pass sent by the second cloud platform.
步骤S502:将访问通行证与智能设备在第一云平台创建的第一用户账号绑定。Step S502: Bind the access pass with the first user account created by the smart device on the first cloud platform.
在具体实现步骤S502的过程中,第一云平台将访问通行证与智能设备在第一云平台创建的第一用户账号进行绑定。In the process of implementing step S502, the first cloud platform binds the access pass with the first user account created by the smart device on the first cloud platform.
步骤S503:利用访问通行证使智能设备访问第二云平台。Step S503: using the access pass to enable the smart device to access the second cloud platform.
在具体实现步骤S503的过程中,第一云平台利用访问通行证使智能设备访问第二云平台。During the specific implementation of step S503, the first cloud platform enables the smart device to access the second cloud platform by using the access pass.
基于本公开实施例提供的一种智能设备的绑定方法,通过将接收到的第二云平台发送的访问通行证与智能设备在第一云平台创建的第一用户账号绑定,从而能够利用访问通行证使智能设备访问第二云平台,实现智能终端的用户账户与智能设备的跨平台绑定。Based on a binding method for smart devices provided by the embodiments of the present disclosure, by binding the received access pass sent by the second cloud platform with the first user account created by the smart device on the first cloud platform, it is possible to use the access The passport allows smart devices to access the second cloud platform, and realizes the cross-platform binding of the user account of the smart terminal and the smart device.
基于上述本公开实施例示出的智能设备的绑定方法,本公开实施例还对应提供了一种应用于智能设备的绑定方法的交互示意图,如图6所示,该方法包括:Based on the above-mentioned smart device binding method shown in the embodiments of the present disclosure, the embodiments of the present disclosure also provide an interactive schematic diagram of a binding method applied to smart devices, as shown in FIG. 6 , the method includes:
步骤S601:APP预先开启访问接入点。Step S601: The APP opens the access point in advance.
步骤S602:智能设备接入APP开启的访问接入点,并创建验证信息,利用预置密钥加密验证信息,得到加密信息,向APP发送验证信息和加密信息。Step S602: The smart device accesses the access point activated by the APP, creates verification information, encrypts the verification information with a preset key, obtains the encrypted information, and sends the verification information and the encrypted information to the APP.
步骤S603:APP向第一云平台发送验证信息和加密信息。Step S603: the APP sends verification information and encryption information to the first cloud platform.
步骤S604:第一云平台向第二云平台发送验证信息和加密信息。Step S604: the first cloud platform sends verification information and encryption information to the second cloud platform.
步骤S605:第二云平台利用预置密钥解密加密信息,得到设备信息,将设备信息与验证信息进行对比,若对比一致,确定智能设备通过合法性验证,若对比不一致,确定智能设备未通过合法性验证,通过合法性验证之后,向第一云平台发送智能设备的设备合法信息。Step S605: The second cloud platform uses the preset key to decrypt the encrypted information to obtain the device information, and compares the device information with the verification information. If the comparison is consistent, it is determined that the smart device has passed the legality verification. If the comparison is inconsistent, it is determined that the smart device has not passed the verification. Legitimacy verification, after passing the legality verification, send the device legal information of the smart device to the first cloud platform.
步骤S606:第一云平台向APP发送智能设备的设备合法信息。Step S606: the first cloud platform sends the device legal information of the smart device to the APP.
步骤S607:APP向智能设备发送配网信息。Step S607: APP sends network distribution information to the smart device.
步骤S608:智能设备向APP反馈已接收配网信息的响应信息。Step S608: The smart device feeds back the response information of the received distribution network information to the APP.
步骤S609:APP向智能设备发送注册第二云平台的用户账号的请求。Step S609: the APP sends a request to the smart device to register a user account of the second cloud platform.
步骤S610:智能设备向APP反馈第二云平台的用户注册链接。Step S610: the smart device feeds back the user registration link of the second cloud platform to the APP.
步骤S611:APP触发第二云平台的用户注册链接并输入生成用户注册信息,得到智能设备在第二云平台的用户注册信息,并向第二云平台发送用户注册信息。Step S611: The APP triggers the user registration link of the second cloud platform and inputs and generates user registration information, obtains the user registration information of the smart device on the second cloud platform, and sends the user registration information to the second cloud platform.
步骤S612:第二云平台根据用户注册信息生成智能设备在第二云平台的第二用户账号和授权码,将第二用户账号与智能设备绑定,并向APP发送授权码。Step S612: The second cloud platform generates a second user account and authorization code of the smart device on the second cloud platform according to the user registration information, binds the second user account with the smart device, and sends the authorization code to the APP.
步骤S613:APP向第一云平台发送授权码。Step S613: the APP sends an authorization code to the first cloud platform.
步骤S614:第一云平台向第二云平台发送授权码与访问通行证请求。Step S614: the first cloud platform sends the authorization code and access pass request to the second cloud platform.
步骤S615:第二云平台基于访问通行证请求生成访问通行证,将访问通行证与第二用户账号绑定,并向第一云平台发送访问通行证。Step S615: the second cloud platform generates an access pass based on the access pass request, binds the access pass to the second user account, and sends the access pass to the first cloud platform.
步骤S616:第一云平台将智能设备在第一云平台创建的第一用户账号与访问通行证绑定,使智能设备使用访问通行证通过第一云平台访问第二云平台。Step S616: The first cloud platform binds the first user account created by the smart device on the first cloud platform with the access pass, so that the smart device uses the access pass to access the second cloud platform through the first cloud platform.
基于本公开实施例提供的一种智能设备的绑定方法,先通过第二云平台的用户注册信息生成智能设备在第二云平台的第二用户账号和授权码,并绑定第二用户账号与智能设备,在获取到第一云平台发送的访问通行证请求时,基于该访问通行证请求生成访问通行证并绑定访问通行证与第二用户账号,第一云平台发送访问通行证,并与智能设备在第一云平台创建的第一用户账号绑定,使智能设备使用访问通行证通过第一云平台访问第二云平台,实现智能终端的用户账户与智能设备的跨平台绑定。Based on a method for binding a smart device provided by an embodiment of the present disclosure, first generate a second user account and authorization code of the smart device on the second cloud platform through the user registration information of the second cloud platform, and bind the second user account With the smart device, when the access pass request sent by the first cloud platform is obtained, the access pass is generated based on the access pass request and the access pass is bound to the second user account, the first cloud platform sends the access pass, and communicates with the smart device at The binding of the first user account created by the first cloud platform enables the smart device to use the access pass to access the second cloud platform through the first cloud platform, realizing the cross-platform binding of the user account of the smart terminal and the smart device.
与上述本公开实施例图1示出的一种智能设备的绑定方法相对应,本公开实施例还对应提供了一种第二云平台,如图7所示,该第二云平台包括:接收模块71、生成模块72、绑定模块73、处理模块74和发送模块75。Corresponding to the smart device binding method shown in FIG. 1 in the above embodiment of the present disclosure, the embodiment of the present disclosure also provides a second cloud platform correspondingly. As shown in FIG. 7 , the second cloud platform includes: A receiving module 71 , a generating module 72 , a binding module 73 , a processing module 74 and a sending module 75 .
接收模块71,被设置为在应用程序APP预先开启访问接入点并接入智能设备之后,接收APP发送的智能设备在第二云平台的用户注册信息,用户注册信息由APP触发通过合法性验证的智能设备发送的第二云平台的用户注册链接并输入用户注册信息得到。The receiving module 71 is configured to receive the user registration information of the smart device on the second cloud platform sent by the APP after the application APP pre-opens the access point and accesses the smart device, and the user registration information is triggered by the APP to pass the legality verification The user registration link of the second cloud platform sent by the smart device and input the user registration information are obtained.
生成模块72,被设置为根据用户注册信息生成智能设备在第二云平台的第二用户账号和授权码。The generating module 72 is configured to generate a second user account and an authorization code of the smart device on the second cloud platform according to the user registration information.
绑定模块73,被设置为将第二用户账号与智能设备绑定,并将授权码发送至APP,使APP将授权码发送至第一云平台,第一云平台为APP所属的云平台。The binding module 73 is configured to bind the second user account with the smart device, and send the authorization code to the APP, so that the APP sends the authorization code to the first cloud platform, and the first cloud platform is the cloud platform to which the APP belongs.
处理模块74,被设置为基于第一云平台发送的访问通行证请求生成访问通行证,将访问通行证与第二用户账号绑定。The processing module 74 is configured to generate an access pass based on the access pass request sent by the first cloud platform, and bind the access pass to the second user account.
发送模块75,被设置为将访问通行证发送至第一云平台,并与智能设备在第一云平台创建的第一用户账号绑定,使智能设备使用访问通行证通过第一云平台访问第二云平台。The sending module 75 is configured to send the access pass to the first cloud platform, and bind the first user account created by the smart device on the first cloud platform, so that the smart device uses the access pass to access the second cloud through the first cloud platform platform.
需要说明的是,上述本公开实施例公开的第二云平台中的各个模块具体的原理和执行过程,与上述本公开实施智能设备的绑定方法相同,可参见上述本公开实施例公开的智能设备的绑定方法中相应的部分,这里不再进行赘述。It should be noted that the specific principle and execution process of each module in the second cloud platform disclosed in the above-mentioned embodiments of the present disclosure are the same as the above-mentioned binding method for implementing smart devices in the present disclosure. The corresponding part in the binding method of the device will not be repeated here.
基于本公开实施例提供的一种第二云平台,在应用程序APP预先开启访问接入点并接入智能设备之后,接收APP发送的智能设备在第二云平台的用户注册信息;根据用户注册信息生成智能设备在第二云平台的第二用户账号和授权码;将第二用户账号与智能设备绑定,并将授权码发送至APP,使APP将授权码发送至第一云平台;基于第一云平台发送的访问通行证请求生成访问通行证,将访问通行证与第二用户账号绑定;将访问通行证发送至第一云平台,并与智能设备在第一云平台创建的第一用户账号绑定,使智能设备使用访问通行证通过第一云平台访问第二云平台。在本方案中,先通过用户注册信息生成智能设备在第二云平台的第二用户账号,并绑定第二用户账号与智能设备,在获取到第一云平台发送的访问通行证请求时,基于该访问通行证请求生成访问通行证并绑定访问通行证与第二用户账号,向第一云平台发送访问通行证,并与智能设备在第一云平台创建的第一用户账号,使智能设备使用访问通行证通过第一云平台访问第二云平台,实现智能终端的用户账户与智能设备的跨平台绑定。Based on a second cloud platform provided by an embodiment of the present disclosure, after the application APP pre-opens the access point and accesses the smart device, it receives the user registration information of the smart device on the second cloud platform sent by the APP; The information generates the second user account and authorization code of the smart device on the second cloud platform; binds the second user account with the smart device, and sends the authorization code to the APP, so that the APP sends the authorization code to the first cloud platform; The access pass request sent by the first cloud platform generates an access pass, binds the access pass to the second user account; sends the access pass to the first cloud platform, and binds the first user account created by the smart device on the first cloud platform It is determined that the smart device uses the access pass to access the second cloud platform through the first cloud platform. In this solution, the second user account of the smart device on the second cloud platform is first generated through the user registration information, and the second user account is bound to the smart device. When the access pass request sent by the first cloud platform is obtained, based on The access pass request generates an access pass and binds the access pass with the second user account, sends the access pass to the first cloud platform, and communicates with the first user account created by the smart device on the first cloud platform, so that the smart device uses the access pass to pass The first cloud platform accesses the second cloud platform to realize the cross-platform binding of the user account of the smart terminal and the smart device.
可选的,基于上述图7示出的第二云平台,结合图7,如图8所示,该第二云平台还进一步设置了验证模块76。Optionally, based on the second cloud platform shown in FIG. 7 above, in conjunction with FIG. 7 , as shown in FIG. 8 , the second cloud platform is further provided with a verification module 76 .
验证模块76,被设置为接收智能设备通过APP和第一云平台发送的验证信息和加密信息,其中,验证信息至少包含智能设备的设备信息,加密信息由智能 设备利用预置密钥对设备信息进行加密得到;利用预置密钥对加密信息进行解密,并对得到的设备信息进行合法性验证,确定智能设备的合法性。The verification module 76 is configured to receive verification information and encrypted information sent by the smart device through the APP and the first cloud platform, wherein the verification information includes at least the device information of the smart device, and the encrypted information is encrypted by the smart device using a preset key. Obtained by encryption; use the preset key to decrypt the encrypted information, and verify the legitimacy of the obtained device information to determine the legitimacy of the smart device.
基于本公开实施例提供的一种第二云平台,通过验证智能设备的合法性,避免用户信息的泄露,从而为实现智能终端的用户账户与智能设备的跨平台绑定提供前提条件。Based on the second cloud platform provided by the embodiments of the present disclosure, the leakage of user information is avoided by verifying the legitimacy of the smart device, thereby providing a precondition for realizing the cross-platform binding of the user account of the smart terminal and the smart device.
可选的,基于上述图7示出的第二云平台,所述发送模块75还具体被设置为:Optionally, based on the second cloud platform shown in FIG. 7 above, the sending module 75 is specifically configured to:
将智能设备的设备合法信息发送至APP,使APP将配网信息发送至智能设备,并接收智能设备反馈的已接收配网信息的响应信息,以及使APP向智能设备发送注册第二云平台的用户账号的请求,并接收智能设备反馈的第二云平台的用户注册链接,基于第二云平台的用户注册链接生成智能设备在第二云平台的用户注册信息。Send the device legal information of the smart device to the APP, make the APP send the distribution network information to the smart device, and receive the response information of the received distribution network information fed back by the smart device, and make the APP send the registration second cloud platform to the smart device The user account request, and receive the user registration link of the second cloud platform fed back by the smart device, and generate the user registration information of the smart device on the second cloud platform based on the user registration link of the second cloud platform.
基于本公开实施例提供的一种第二云平台,通过将通过合法性验证的智能设备的设备合法信息发送至APP,为后续实现智能终端的用户账户与智能设备的跨平台绑定提供前提条件。Based on the second cloud platform provided by the embodiment of the present disclosure, by sending the device legal information of the smart device that has passed the legality verification to the APP, it provides a prerequisite for the subsequent realization of the cross-platform binding of the user account of the smart terminal and the smart device .
可选的,基于上述图7示出的第二云平台,所述访问通行证请求包括访问令牌请求,所述处理模块74具体被设置为:Optionally, based on the second cloud platform shown in FIG. 7 above, the access pass request includes an access token request, and the processing module 74 is specifically configured to:
基于第一云平台发送的授权码和访问令牌请求生成访问令牌,将访问令牌与第二用户账号绑定。An access token is generated based on the authorization code and the access token request sent by the first cloud platform, and the access token is bound to the second user account.
相应的,所述发送模块75具体被设置为:Correspondingly, the sending module 75 is specifically configured as:
将访问令牌发送至第一云平台,并与智能设备在第一云平台创建的第一用户账号绑定,使智能设备使用访问令牌通过第一云平台访问第二云平台。The access token is sent to the first cloud platform, and is bound to the first user account created by the smart device on the first cloud platform, so that the smart device uses the access token to access the second cloud platform through the first cloud platform.
基于本公开实施例提供的一种第二云平台,先通过用户注册信息生成智能设备在第二云平台的第二用户账号和授权码,并绑定第二用户账号与智能设备,在获取到第一云平台发送的授权码和访问令牌请求时,基于该访问令牌请求生成访问令牌并绑定访问通行证与第二用户账号,向第一云平台发送访问令牌,并与智能设备在第一云平台创建的第一用户账号与访问令牌绑定,实现智能终端的用户 账户与智能设备的跨平台绑定。Based on the second cloud platform provided by the embodiments of the present disclosure, first generate the second user account and authorization code of the smart device on the second cloud platform through the user registration information, and bind the second user account and the smart device. When the authorization code and access token request sent by the first cloud platform, generate an access token based on the access token request and bind the access pass with the second user account, send the access token to the first cloud platform, and communicate with the smart device The first user account created on the first cloud platform is bound to the access token to realize the cross-platform binding of the user account of the smart terminal and the smart device.
与上述本公开实施例图4示出的一种智能设备的绑定方法相对应,本公开实施例还对应提供了一种应用程序APP,如图9所示,该智能终端包括:接入模块91、第一处理模块92和第二处理模块93。Corresponding to the binding method of a smart device shown in FIG. 4 in the above-mentioned embodiment of the present disclosure, the embodiment of the present disclosure also provides an application program APP correspondingly. As shown in FIG. 9 , the smart terminal includes: an access module 91 . A first processing module 92 and a second processing module 93 .
接入模块91,被设置为预先开启访问接入点并接入智能设备。The access module 91 is configured to pre-open the access point and access the smart device.
第一处理模块92,被设置为向通过合法性验证的智能设备发送注册第二云平台的用户账号的请求,接收智能设备发送的第二云平台的用户注册链接,基于第二云平台的用户注册链接生成第二云平台的用户注册信息,并将用户注册信息发送至第二云平台,使第二云平台根据用户注册信息生成智能设备在第二云平台的第二用户账号和授权码,将第二用户账号与智能设备绑定,并将授权码发送至APP。The first processing module 92 is configured to send a request for registering a user account of the second cloud platform to the smart device that has passed legality verification, and receive the user registration link of the second cloud platform sent by the smart device, based on the user account of the second cloud platform The registration link generates the user registration information of the second cloud platform, and sends the user registration information to the second cloud platform, so that the second cloud platform generates the second user account and authorization code of the smart device on the second cloud platform according to the user registration information, Bind the second user account with the smart device, and send the authorization code to the APP.
第二处理模块93,被设置为接收第二云平台发送的授权码,并将授权码发送至第一云平台,使第一云平台将授权码和访问通行证请求发送至第二云平台,使第二云平台基于访问通行证请求生成访问通行证,将访问通行证与第二用户账号绑定,并将访问通行证发送至第一云平台,并与智能设备在第一云平台创建的第一用户账号绑定,使智能设备使用访问通行证通过第一云平台访问第二云平台。The second processing module 93 is configured to receive the authorization code sent by the second cloud platform, and send the authorization code to the first cloud platform, so that the first cloud platform sends the authorization code and the access pass request to the second cloud platform, so that The second cloud platform generates an access pass based on the access pass request, binds the access pass to the second user account, sends the access pass to the first cloud platform, and binds the access pass to the first user account created by the smart device on the first cloud platform It is determined that the smart device uses the access pass to access the second cloud platform through the first cloud platform.
需要说明的是,上述本公开实施例公开的APP中的各个模块具体的原理和执行过程,与上述本公开实施智能设备的绑定方法相同,可参见上述本公开实施例公开的智能设备的绑定方法中相应的部分,这里不再进行赘述。It should be noted that the specific principle and execution process of each module in the APP disclosed in the above-mentioned embodiments of the present disclosure are the same as the above-mentioned method for implementing the binding of smart devices in the present disclosure. The corresponding part of the method is not repeated here.
基于本公开实施例提供的一种APP,通过第二云平台的用户注册链接生成第二云平台的用户注册信息,使第二云平台通过用户注册信息生成智能设备在第二云平台的第二用户账号和授权码,并绑定第二用户账号与智能设备,使第二云平台在获取到第一云平台发送的访问通行证请求时,基于该访问通行证请求生成访问通行证并绑定访问通行证与第二用户账号,并发送访问通行证,并与智能设备在第一云平台创建的第一用户账号绑定,使智能设备使用访问通行证通过一云平台访问第二云平台,实现智能终端的用户账户与智能设备的跨平台绑定。Based on an APP provided by an embodiment of the present disclosure, the user registration information of the second cloud platform is generated through the user registration link of the second cloud platform, so that the second cloud platform can generate a smart device on the second cloud platform of the second cloud platform through the user registration information. User account and authorization code, and bind the second user account with the smart device, so that when the second cloud platform obtains the access pass request sent by the first cloud platform, it generates an access pass based on the access pass request and binds the access pass with the The second user account, and send the access pass, and bind it with the first user account created by the smart device on the first cloud platform, so that the smart device can use the access pass to access the second cloud platform through the first cloud platform, and realize the user account of the smart terminal Cross-platform bindings to smart devices.
可选的,基于上述图9示出的APP,结合图9,如图10所示,该智能终端还进一步设置了验证模块94。Optionally, based on the above APP shown in FIG. 9 , combined with FIG. 9 , as shown in FIG. 10 , the smart terminal is further provided with a verification module 94 .
验证模块94,被设置为接收智能设备发送的验证信息和加密信息,其中,验证信息至少包含智能设备的设备信息,加密信息由智能设备利用预置密钥对设备信息进行加密得到;将验证信息和加密信息发送至第一云平台,由第一云平台将验证信息和加密信息发送至第二云平台,使第二云平台利用预置秘钥解密加密信息,并对得到的设备信息进行合法性验证,确定智能设备的合法性。The verification module 94 is configured to receive verification information and encrypted information sent by the smart device, wherein the verification information includes at least the device information of the smart device, and the encrypted information is obtained by encrypting the device information by the smart device using a preset key; the verification information and encrypted information to the first cloud platform, and the first cloud platform sends the verification information and encrypted information to the second cloud platform, so that the second cloud platform uses the preset secret key to decrypt the encrypted information, and legalizes the obtained device information Security verification to determine the legitimacy of smart devices.
基于本公开实施例提供的一种APP,通过验证智能设备的合法性,避免用户信息的泄露,从而为实现智能终端的用户账户与智能设备的跨平台绑定提供前提条件。Based on an APP provided by an embodiment of the present disclosure, the leakage of user information is avoided by verifying the legitimacy of the smart device, thereby providing a prerequisite for realizing the cross-platform binding of the user account of the smart terminal and the smart device.
可选的,基于上述图10示出的APP,结合图10,如图11所示,该智能终端还进一步设置了第三处理模块95。Optionally, based on the above APP shown in FIG. 10 , in combination with FIG. 10 , as shown in FIG. 11 , the smart terminal is further provided with a third processing module 95 .
第三处理模块95,被设置为接收第二云平台发送的通过合法性验证的智能设备的设备合法信息,并将配网信息发送至智能设备;接收智能设备反馈的已接收配网信息的响应信息。The third processing module 95 is configured to receive the device legitimacy information of the smart device that has passed the legality verification sent by the second cloud platform, and send the distribution network information to the smart device; receive the response of the received distribution network information fed back by the smart device information.
基于本公开实施例提供的一种APP,接收智能设备反馈的已接收配网信息的响应信息之后,通过智能设备发送的第二云平台的用户注册链接生成第二云平台的用户注册信息,使第二云平台通过用户注册信息生成智能设备在第二云平台的第二用户账号和授权码,并绑定第二用户账号与智能设备,使第二云平台在获取到第一云平台发送的访问通行证请求时,基于该访问通行证请求生成访问通行证并绑定访问通行证与第二用户账号,并发送访问通行证至第一云平台,并与智能设备在第一云平台创建的第一用户账号绑定,使智能设备使用访问通行证通过一云平台访问第二云平台,实现智能终端的用户账户与智能设备的跨平台绑定。Based on an APP provided by an embodiment of the present disclosure, after receiving the response information of the received distribution network information fed back by the smart device, the user registration information of the second cloud platform is generated through the user registration link of the second cloud platform sent by the smart device, so that The second cloud platform generates the second user account and authorization code of the smart device on the second cloud platform through the user registration information, and binds the second user account and the smart device, so that the second cloud platform can obtain the information sent by the first cloud platform. When requesting an access pass, generate an access pass based on the access pass request and bind the access pass to the second user account, send the access pass to the first cloud platform, and bind it to the first user account created by the smart device on the first cloud platform The smart device uses the access pass to access the second cloud platform through the first cloud platform, so as to realize the cross-platform binding of the user account of the smart terminal and the smart device.
与上述本公开实施例图5示出的一种智能设备的绑定方法相对应,本公开实施例还对应提供了一种第一云平台,如图12所示,该第一云平台包括:接收模块121、绑定模块122和处理模块123。Corresponding to the smart device binding method shown in FIG. 5 in the above-mentioned embodiment of the present disclosure, the embodiment of the present disclosure also provides a corresponding first cloud platform. As shown in FIG. 12 , the first cloud platform includes: A receiving module 121 , a binding module 122 and a processing module 123 .
接收模块121,被设置为接收第二云平台发送的访问通行证,访问通行证与智能设备在第二云平台生成的第二用户账号绑定,第二用户账号由所述第二云平台在应用程序APP预先开启访问接入点并接入智能设备之后,接收APP发送的智能设备在第二云平台的用户注册信息,根据用户注册信息生成智能设备在第二云平台的第二用户账号。The receiving module 121 is configured to receive the access pass sent by the second cloud platform, the access pass is bound to the second user account generated by the smart device on the second cloud platform, and the second user account is provided by the second cloud platform in the application program After the APP opens the access point in advance and accesses the smart device, it receives the user registration information of the smart device on the second cloud platform sent by the APP, and generates the second user account of the smart device on the second cloud platform according to the user registration information.
绑定模块122,被设置为将访问通行证与智能设备在第一云平台创建的第一用户账号绑定。The binding module 122 is configured to bind the access pass with the first user account created by the smart device on the first cloud platform.
处理模块123,被设置为利用访问通行证使智能设备访问第二云平台。The processing module 123 is configured to enable the smart device to access the second cloud platform by using the access pass.
需要说明的是,上述本公开实施例公开的第一云平台中的各个模块具体的原理和执行过程,与上述本公开实施智能设备的绑定方法相同,可参见上述本公开实施例公开的智能设备的绑定方法中相应的部分,这里不再进行赘述。It should be noted that the specific principle and execution process of each module in the first cloud platform disclosed in the above-mentioned embodiments of the present disclosure are the same as the above-mentioned binding method for implementing smart devices in the present disclosure. The corresponding part in the binding method of the device will not be repeated here.
基于本公开实施例提供的一种第一云平台,通过将接收到的第二云平台发送的访问通行证与智能设备在第一云平台创建的第一用户账号绑定,从而能够利用访问通行证使智能设备访问第二云平台,实现智能终端的用户账户与智能设备的跨平台绑定。Based on the first cloud platform provided by the embodiments of the present disclosure, by binding the received access pass sent by the second cloud platform with the first user account created by the smart device on the first cloud platform, the access pass can be used to The smart device accesses the second cloud platform to realize the cross-platform binding between the user account of the smart terminal and the smart device.
与上述本公开实施例示出的一种智能设备的绑定方法相对应,本公开实施例还对应提供了一种智能设备的绑定系统,如图13所示,该智能设备的绑定系统包括:智能设备131、应用程序APP132、第一云平台133和第二云平台134。Corresponding to the smart device binding method shown in the above-mentioned embodiments of the present disclosure, the embodiments of the present disclosure also provide a smart device binding system correspondingly, as shown in FIG. 13 , the smart device binding system includes : smart device 131, application program APP132, first cloud platform 133 and second cloud platform 134.
智能设备131,被设置为开启配网模式,扫描APP开启的访问接入点接入APP。The smart device 131 is set to enable the network distribution mode, and scans the access point enabled by the APP to access the APP.
APP132,被设置为预先开启访问接入点并接入智能设备,接收第二云平台发送的授权码,并将授权码发送至第一云平台。APP132 is configured to pre-open the access point and access the smart device, receive the authorization code sent by the second cloud platform, and send the authorization code to the first cloud platform.
第二云平台134,被设置为验证智能设备的合法性,并将智能设备的设备合法信息发送至APP,接收APP发送的智能设备在第二云平台的用户注册信息,根据用户注册信息生成智能设备在第二云平台的第二用户账号和授权码,将第二用户账号与智能设备绑定,并将授权码发送至APP,基于第一云平台发送的访问通行证请求生成访问通行证,将访问通行证与第二用户账号绑定,将访问通行证 发送至第一云平台。The second cloud platform 134 is set to verify the legitimacy of the smart device, and send the device legal information of the smart device to the APP, receive the user registration information of the smart device sent by the APP on the second cloud platform, and generate a smart device according to the user registration information. The second user account and authorization code of the device on the second cloud platform, bind the second user account with the smart device, and send the authorization code to the APP, generate an access pass based on the access pass request sent by the first cloud platform, and access The pass is bound to the second user account, and the access pass is sent to the first cloud platform.
第一云平台133,被设置为接收访问通行证,并将访问通行证与智能设备在第一云平台创建的第一用户账号绑定,使智能设备使用访问通行证通过第一云平台访问第二云平台。The first cloud platform 133 is configured to receive the access pass, and bind the access pass to the first user account created by the smart device on the first cloud platform, so that the smart device uses the access pass to access the second cloud platform through the first cloud platform .
基于本公开实施例提供的一种智能设备的绑定系统,在应用程序APP预先开启访问接入点并接入智能设备之后,接收APP发送的智能设备在第二云平台的用户注册信息;根据用户注册信息生成智能设备在第二云平台的第二用户账号和授权码;将第二用户账号与智能设备绑定,并将授权码发送至APP,使APP将授权码发送至第一云平台;基于第一云平台发送的访问通行证请求生成访问通行证,将访问通行证与第二用户账号绑定;将访问通行证发送至第一云平台,并与智能设备在第一云平台创建的第一用户账号绑定,使智能设备使用访问通行证通过第一云平台访问第二云平台。在本方案中,先通过用户注册信息生成智能设备在第二云平台的第二用户账号,并绑定第二用户账号与智能设备,在获取到第一云平台发送的访问通行证请求时,基于该访问通行证请求生成访问通行证并绑定访问通行证与第二用户账号,并发送访问通行证至第一云平台,并与智能设备在第一云平台创建的第一用户账号绑定,使智能设备使用访问通行证通过第一云平台访问第二云平台,实现智能终端的用户账户与智能设备的跨平台绑定。Based on a smart device binding system provided by an embodiment of the present disclosure, after the application program APP pre-opens the access point and accesses the smart device, it receives the user registration information of the smart device on the second cloud platform sent by the APP; according to User registration information generates the second user account and authorization code of the smart device on the second cloud platform; binds the second user account with the smart device, and sends the authorization code to the APP, so that the APP sends the authorization code to the first cloud platform ; Based on the access pass request sent by the first cloud platform, an access pass is generated, and the access pass is bound to the second user account; the access pass is sent to the first cloud platform, and the first user created by the smart device on the first cloud platform Account binding enables the smart device to use the access pass to access the second cloud platform through the first cloud platform. In this solution, the second user account of the smart device on the second cloud platform is first generated through the user registration information, and the second user account is bound to the smart device. When the access pass request sent by the first cloud platform is obtained, based on The access pass request generates an access pass and binds the access pass with the second user account, and sends the access pass to the first cloud platform, and binds the first user account created by the smart device on the first cloud platform, so that the smart device can use The access pass accesses the second cloud platform through the first cloud platform, realizing the cross-platform binding of the user account of the smart terminal and the smart device.
基于上述本公开实施例公开的智能设备的绑定系统,上述各个模块可以通过一种由处理器和存储器构成的硬件设备实现。具体为上述各个模块作为程序单元存储于存储器中,由处理器执行存储在存储器中的上述程序单元来实现智能设备的绑定。Based on the smart device binding system disclosed in the above-mentioned embodiments of the present disclosure, each of the above-mentioned modules may be implemented by a hardware device composed of a processor and a memory. Specifically, each of the above-mentioned modules is stored in the memory as a program unit, and the processor executes the above-mentioned program unit stored in the memory to realize the binding of the smart device.
其中,处理器中包含内核,由内核去存储器中调取相应的程序单元。内核可以设置一个或以上,通过调整内核参数来实现智能设备的绑定。Wherein, the processor includes a kernel, and the kernel retrieves corresponding program units from the memory. One or more kernels can be set, and the binding of smart devices can be realized by adjusting kernel parameters.
本公开实施例提供了一种计算机可读的存储介质,所述计算机可读的存储介质包括存储的程序,其中,所述程序运行时执行如执行图1公开的智能设备的绑定方法,或者,图4公开的智能设备的绑定方法,图5公开的智能设备的绑定方法。An embodiment of the present disclosure provides a computer-readable storage medium, where the computer-readable storage medium includes a stored program, wherein, when the program is running, it executes the binding method of the smart device disclosed in FIG. 1 , or , the binding method of the smart device disclosed in FIG. 4 , and the binding method of the smart device disclosed in FIG. 5 .
本公开实施例提供了一种处理器,所述处理器被设置为运行程序,其中,所述程序运行时执行图1公开的智能设备的绑定方法,或者,图4公开的智能设备的绑定方法,图5公开的智能设备的绑定方法。An embodiment of the present disclosure provides a processor, and the processor is configured to run a program, wherein, when the program is running, the smart device binding method disclosed in FIG. 1 is executed, or the smart device binding method disclosed in FIG. 4 is executed. The binding method of the smart device disclosed in FIG. 5 .
本公开实施例提供了一种电子设备,如图14所示,为本公开实施例提供的一种电子设备140的结构示意图。An embodiment of the present disclosure provides an electronic device, as shown in FIG. 14 , which is a schematic structural diagram of an electronic device 140 provided by an embodiment of the present disclosure.
本公开实施例中的电子设备可以是服务器、PC、PAD、手机等。The electronic device in the embodiments of the present disclosure may be a server, a PC, a PAD, a mobile phone, and the like.
该电子设备包括至少一个处理器1401,以及与处理器连接的至少一个存储器1402,以及总线1403。The electronic device includes at least one processor 1401 , at least one memory 1402 connected to the processor, and a bus 1403 .
处理器1401、存储器1402通过总线1403完成相互间的通信。处理器1401,被设置为执行存储器1402中存储的计算机程序。The processor 1401 and the memory 1402 communicate with each other through the bus 1403 . The processor 1401 is configured to execute the computer programs stored in the memory 1402 .
存储器1402,被设置为存储计算机程序,该计算机程序至少被设置为:在应用程序APP预先开启访问接入点并接入智能设备之后,接收APP发送的智能设备在第二云平台的用户注册信息;根据用户注册信息生成智能设备在第二云平台的第二用户账号和授权码;将第二用户账号与智能设备绑定,并将授权码发送至APP,使APP将授权码发送至第一云平台;基于第一云平台发送的访问通行证请求生成访问通行证,将访问通行证与第二用户账号绑定;将访问通行证发送至第一云平台,并与智能设备在第一云平台创建的第一用户账号绑定,使智能设备使用访问通行证通过第一云平台访问第二云平台。The memory 1402 is configured to store a computer program, and the computer program is at least configured to: receive the user registration information of the smart device on the second cloud platform sent by the APP after the application program APP pre-opens the access point and accesses the smart device ; Generate the second user account and authorization code of the smart device on the second cloud platform according to the user registration information; bind the second user account with the smart device, and send the authorization code to the APP, so that the APP sends the authorization code to the first cloud platform; Cloud platform; generate an access pass based on the access pass request sent by the first cloud platform, and bind the access pass to the second user account; send the access pass to the first cloud platform, and combine it with the first cloud platform created by the smart device A user account is bound, so that the smart device uses the access pass to access the second cloud platform through the first cloud platform.
本申请还提供了一种计算机程序产品,当在电子设备上执行时,适于执行初始化有如下方法步骤的程序:The present application also provides a computer program product, which, when executed on an electronic device, is suitable for executing a program that is initialized with the following method steps:
在应用程序APP预先开启访问接入点并接入智能设备之后,接收APP发送的智能设备在第二云平台的用户注册信息;根据用户注册信息生成智能设备在第二云平台的第二用户账号和授权码;将第二用户账号与智能设备绑定,并将授权码发送至APP,使APP将授权码发送至第一云平台;基于第一云平台发送的访问通行证请求生成访问通行证,将访问通行证与第二用户账号绑定;将访问通行证发送至第一云平台,并与智能设备在第一云平台创建的第一用户账号绑定,使智能设备使用访问通行证通过第一云平台访问第二云平台。After the application program APP opens the access point in advance and accesses the smart device, it receives the user registration information of the smart device on the second cloud platform sent by the APP; generates the second user account of the smart device on the second cloud platform according to the user registration information and the authorization code; bind the second user account with the smart device, and send the authorization code to the APP, so that the APP sends the authorization code to the first cloud platform; generate an access pass based on the access pass request sent by the first cloud platform, and send The access pass is bound to the second user account; the access pass is sent to the first cloud platform, and is bound to the first user account created by the smart device on the first cloud platform, so that the smart device uses the access pass to access through the first cloud platform Second cloud platform.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品 的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
在一个典型的配置中,设备包括一个或多个处理器(CPU)、存储器和总线。设备还可以包括输入/输出接口、网络接口等。In a typical configuration, a device includes one or more processors (CPUs), memory and a bus. A device may also include input/output interfaces, network interfaces, and the like.
存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RA M)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM),存储器包括至少一个存储芯片。存储器是计算机可读介质的示例。Memory may include non-permanent memory in computer-readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM), and memory includes at least a memory chip. The memory is an example of a computer readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可被设置为存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, A magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device, or any other non-transmission medium, configured to store information that can be accessed by a computing device. As defined herein, computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统或系统实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的系统及系统实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中 的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。Each embodiment in this specification is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment. The systems and system embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is It can be located in one place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to realize the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without creative effort.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本公开的范围。Professionals can further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the possible For interchangeability, in the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementation should not be considered beyond the scope of the present disclosure.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本公开。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本公开的精神或范围的情况下,在其它实施例中实现。因此,本公开将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (19)

  1. 一种智能设备的绑定方法,应用于第二云平台,所述方法包括:A method for binding smart devices, applied to a second cloud platform, the method comprising:
    在应用程序APP预先开启访问接入点并接入智能设备之后,接收所述APP发送的所述智能设备在所述第二云平台的用户注册信息;After the application program APP opens the access point in advance and accesses the smart device, receiving the user registration information of the smart device on the second cloud platform sent by the APP;
    根据所述用户注册信息生成所述智能设备在所述第二云平台的第二用户账号和授权码;generating a second user account and an authorization code of the smart device on the second cloud platform according to the user registration information;
    将所述第二用户账号与所述智能设备绑定,并将所述授权码发送至所述APP,使所述APP将所述授权码发送至第一云平台;Binding the second user account with the smart device, and sending the authorization code to the APP, so that the APP sends the authorization code to the first cloud platform;
    基于所述第一云平台发送的访问通行证请求生成访问通行证,将所述访问通行证与所述第二用户账号绑定;generating an access pass based on the access pass request sent by the first cloud platform, and binding the access pass to the second user account;
    将所述访问通行证发送至所述第一云平台,并与所述智能设备在所述第一云平台创建的第一用户账号绑定,使所述智能设备使用所述访问通行证通过所述第一云平台访问所述第二云平台。Send the access pass to the first cloud platform, and bind it to the first user account created by the smart device on the first cloud platform, so that the smart device uses the access pass to pass through the first cloud platform. A cloud platform accesses the second cloud platform.
  2. 根据权利要求1所述的方法,其中,所述验证所述智能设备的合法性的过程包括:The method according to claim 1, wherein the process of verifying the legitimacy of the smart device comprises:
    接收所述智能设备通过所述APP和所述第一云平台发送的验证信息和加密信息,其中,所述验证信息至少包含智能设备的设备信息,所述加密信息由所述智能设备利用预置密钥对所述设备信息进行加密得到;receiving the verification information and encrypted information sent by the smart device through the APP and the first cloud platform, wherein the verification information includes at least the device information of the smart device, and the encrypted information is preset by the smart device using The key is obtained by encrypting the device information;
    利用所述预置密钥对所述加密信息进行解密,并对得到的设备信息进行合法性验证,确定所述智能设备的合法性。Deciphering the encrypted information by using the preset key, and verifying the validity of the obtained device information, to determine the validity of the smart device.
  3. 根据权利要求2所述的方法,其中,在确定所述智能设备的合法性之后,还包括:The method according to claim 2, wherein, after determining the legitimacy of the smart device, further comprising:
    将所述智能设备的设备合法信息发送至所述APP,使所述APP将配网信息发送至所述智能设备,并接收所述智能设备反馈的已接收所述配网信息的响应信息,以及使所述APP向所述智能设备发送注册第二云平台的用户账号的请求,并接收所述智能设备反馈的所述第二云平台的用户注册链接,基于所述第二云平台的用户注册链接生成所述智能设备在所述第二云平台的所述用户注册信息。Sending the device legal information of the smart device to the APP, causing the APP to send the distribution network information to the smart device, and receiving the response information fed back by the smart device that the distribution network information has been received, and Make the APP send to the smart device a request to register the user account of the second cloud platform, and receive the user registration link of the second cloud platform fed back by the smart device, based on the user registration of the second cloud platform The link generates the user registration information of the smart device on the second cloud platform.
  4. 根据权利要求1所述的方法,其中,所述访问通行证请求包括访问令牌请求,所述基于所述第一云平台发送的访问通行证请求生成访问通行证,将所述访问通行证与所述第二用户账号绑定,包括:The method according to claim 1, wherein the access pass request comprises an access token request, the access pass is generated based on the access pass request sent by the first cloud platform, and the access pass is combined with the second User account binding, including:
    基于所述第一云平台发送的所述授权码和访问令牌请求生成访问令牌,将所述访问令牌与所述第二用户账号绑定;Generate an access token based on the authorization code and the access token request sent by the first cloud platform, and bind the access token to the second user account;
    相应的,所述将所述访问通行证发送至所述第一云平台,并与所述智能设备在所述第一云平台创建的第一用户账号绑定,使所述智能设备使用所述访问通行证通过所述第一云平台访问所述第二云平台,包括:Correspondingly, the access pass is sent to the first cloud platform, and is bound to the first user account created by the smart device on the first cloud platform, so that the smart device uses the access pass. The passport accesses the second cloud platform through the first cloud platform, including:
    将所述访问令牌发送至所述第一云平台,并与所述智能设备在所述第一云平台创建的第一用户账号绑定,使所述智能设备使用所述访问令牌通过所述第一云平台访问所述第二云平台。Send the access token to the first cloud platform, and bind it to the first user account created by the smart device on the first cloud platform, so that the smart device uses the access token to pass through the The first cloud platform accesses the second cloud platform.
  5. 一种智能设备的绑定方法,应用于应用程序APP,所述方法包括:A binding method for an intelligent device, applied to an application program APP, the method comprising:
    预先开启访问接入点并接入智能设备;Turn on the access point in advance and connect to the smart device;
    向通过合法性验证的所述智能设备发送注册第二云平台的用户账号的请求,接收所述智能设备发送的所述第二云平台的用户注册链接,基于所述第二云平台的用户注册链接生成所述第二云平台的用户注册信息,并将所述用户注册信息发送至第二云平台,使所述第二云平台根据所述用户注册信息生成所述智能设备在第二云平台的第二用户账号和授权码,将所述第二用户账号与所述智能设备绑定,并将所述授权码发送至所述APP;Sending a request for registering a user account of the second cloud platform to the smart device that has passed legality verification, receiving the user registration link of the second cloud platform sent by the smart device, and registering based on the user registration of the second cloud platform link to generate the user registration information of the second cloud platform, and send the user registration information to the second cloud platform, so that the second cloud platform generates the smart device on the second cloud platform according to the user registration information. a second user account and an authorization code, bind the second user account to the smart device, and send the authorization code to the APP;
    接收所述第二云平台发送的授权码,并将所述授权码发送至第一云平台,使所述第一云平台将所述授权码和访问通行证请求发送至所述第二云平台,使所述第二云平台基于所述访问通行证请求生成访问通行证,将所述访问通行证与所述第二用户账号绑定,并将所述访问通行证发送至所述第一云平台,并与所述智能设备在所述第一云平台创建的第一用户账号绑定,使所述智能设备使用所述访问通行证通过所述第一云平台访问所述第二云平台。receiving the authorization code sent by the second cloud platform, and sending the authorization code to the first cloud platform, so that the first cloud platform sends the authorization code and the access pass request to the second cloud platform, making the second cloud platform generate an access pass based on the access pass request, binding the access pass to the second user account, sending the access pass to the first cloud platform, and communicating with the The smart device is bound to the first user account created on the first cloud platform, so that the smart device uses the access pass to access the second cloud platform through the first cloud platform.
  6. 根据权利要求5所述的方法,其中,所述向通过合法性验证的所述智能设备发送注册第二云平台的用户账号的请求之前,还包括:The method according to claim 5, wherein, before sending the request for registering the user account of the second cloud platform to the smart device that has passed the legality verification, further comprising:
    接收所述第二云平台发送的通过合法性验证的所述智能设备的设备合法信 息,并将配网信息发送至所述智能设备;receiving the device legal information of the smart device sent by the second cloud platform and passing the legality verification, and sending the distribution network information to the smart device;
    接收所述智能设备反馈的已接收所述配网信息的响应信息。Receiving response information fed back by the smart device that the distribution network information has been received.
  7. 根据权利要求5所述的方法,其中,在接收所述第二云平台发送的通过合法性验证的所述智能设备的设备合法信息之前,还包括:The method according to claim 5, wherein, before receiving the legality information of the smart device sent by the second cloud platform and passing the legality verification, further comprising:
    接收所述智能设备发送的验证信息和加密信息,其中,所述验证信息至少包含智能设备的设备信息,所述加密信息由所述智能设备利用预置密钥对所述设备信息进行加密得到;Receive verification information and encrypted information sent by the smart device, wherein the verification information includes at least device information of the smart device, and the encrypted information is obtained by encrypting the device information by the smart device using a preset key;
    将所述验证信息和所述加密信息发送至所述第一云平台,由所述第一云平台将所述验证信息和所述加密信息发送至所述第二云平台,使所述第二云平台利用所述预置密钥对所述加密信息进行解密,并对得到的设备信息进行合法性验证,确定所述智能设备的合法性。sending the verification information and the encrypted information to the first cloud platform, and the first cloud platform sends the verification information and the encrypted information to the second cloud platform, so that the second The cloud platform decrypts the encrypted information by using the preset key, and verifies the legitimacy of the obtained device information to determine the legitimacy of the smart device.
  8. 一种智能设备的绑定方法,应用于第一云平台,所述方法包括:A method for binding smart devices, applied to the first cloud platform, said method comprising:
    接收第二云平台发送的访问通行证,所述访问通行证与智能设备在所述第二云平台生成的第二用户账号绑定,所述第二用户账号由所述第二云平台在应用程序APP预先开启访问接入点并接入所述智能设备之后,接收所述APP发送的所述智能设备在第二云平台的用户注册信息,根据所述用户注册信息生成所述智能设备在第二云平台的第二用户账号;Receive the access pass sent by the second cloud platform, the access pass is bound to the second user account generated by the smart device on the second cloud platform, and the second user account is set by the second cloud platform in the application program APP After opening the access point in advance and accessing the smart device, receiving the user registration information of the smart device on the second cloud platform sent by the APP, and generating the user registration information of the smart device on the second cloud platform according to the user registration information. the second user account of the platform;
    将所述访问通行证与所述智能设备在所述第一云平台创建的第一用户账号绑定;Binding the access pass to a first user account created by the smart device on the first cloud platform;
    利用所述访问通行证使所述智能设备访问所述第二云平台。Using the access pass to enable the smart device to access the second cloud platform.
  9. 一种第二云平台,包括:A second cloud platform, comprising:
    接收模块,被设置为在应用程序APP预先开启访问接入点并接入智能设备之后,接收所述APP发送的所述智能设备在所述第二云平台的用户注册信息;The receiving module is configured to receive the user registration information of the smart device on the second cloud platform sent by the APP after the application APP pre-opens the access point and accesses the smart device;
    生成模块,被设置为根据所述用户注册信息生成所述智能设备在所述第二云平台的第二用户账号和授权码;A generating module configured to generate a second user account and an authorization code of the smart device on the second cloud platform according to the user registration information;
    绑定模块,被设置为将所述第二用户账号与所述智能设备绑定,并将所述授权码发送至所述APP,使所述APP将所述授权码发送至第一云平台;A binding module configured to bind the second user account with the smart device, and send the authorization code to the APP, so that the APP sends the authorization code to the first cloud platform;
    处理模块,被设置为基于所述第一云平台发送的访问通行证请求生成访问通 行证,将所述访问通行证与所述第二用户账号绑定;A processing module configured to generate an access pass based on the access pass request sent by the first cloud platform, and bind the access pass to the second user account;
    发送模块,被设置为将所述访问通行证发送至所述第一云平台,并与所述智能设备在所述第一云平台创建的第一用户账号绑定,使所述智能设备使用所述访问通行证通过所述第一云平台访问所述第二云平台。A sending module, configured to send the access pass to the first cloud platform, and bind it to the first user account created by the smart device on the first cloud platform, so that the smart device can use the The access pass accesses the second cloud platform through the first cloud platform.
  10. 根据权利要求9所述的第二云平台,其中,所述第二云平台还包括:The second cloud platform according to claim 9, wherein the second cloud platform further comprises:
    验证模块,被设置为接收所述智能设备通过所述APP和所述第一云平台发送的验证信息和加密信息,其中,所述验证信息至少包含智能设备的设备信息,所述加密信息由所述智能设备利用预置密钥对所述设备信息进行加密得到;利用所述预置密钥对所述加密信息进行解密,并对得到的设备信息进行合法性验证,确定所述智能设备的合法性。The verification module is configured to receive verification information and encrypted information sent by the smart device through the APP and the first cloud platform, wherein the verification information includes at least device information of the smart device, and the encrypted information is determined by the The smart device encrypts the device information by using a preset key; decrypts the encrypted information by using the preset key, and performs legality verification on the obtained device information to determine the legitimacy of the smart device sex.
  11. 根据权利要求9所述的第二云平台,其中,所述发送模块,还被设置为在确定所述智能设备的合法性之后,将所述智能设备的设备合法信息发送至所述APP,使所述APP将配网信息发送至所述智能设备,并接收所述智能设备反馈的已接收所述配网信息的响应信息,以及使所述APP向所述智能设备发送注册第二云平台的用户账号的请求,并接收所述智能设备反馈的所述第二云平台的用户注册链接,基于所述第二云平台的用户注册链接生成所述智能设备在所述第二云平台的所述用户注册信息。The second cloud platform according to claim 9, wherein the sending module is further configured to send the device legality information of the smart device to the APP after determining the legitimacy of the smart device, so that The APP sends the distribution network information to the smart device, and receives the response information fed back by the smart device that the distribution network information has been received, and makes the APP send the registration information of the second cloud platform to the smart device request for a user account, and receive the user registration link of the second cloud platform fed back by the smart device, and generate the user registration link of the smart device on the second cloud platform based on the user registration link of the second cloud platform. User registration information.
  12. 根据权利要求9所述的第二云平台,其中,The second cloud platform according to claim 9, wherein,
    所述处理模块,还被设置为基于所述第一云平台发送的所述授权码和访问令牌请求生成访问令牌,将所述访问令牌与所述第二用户账号绑定;The processing module is further configured to generate an access token based on the authorization code and the access token request sent by the first cloud platform, and bind the access token to the second user account;
    所述发送模块,还被设置为将所述访问令牌发送至所述第一云平台,并与所述智能设备在所述第一云平台创建的第一用户账号绑定,使所述智能设备使用所述访问令牌通过所述第一云平台访问所述第二云平台。The sending module is further configured to send the access token to the first cloud platform, and bind it to the first user account created by the smart device on the first cloud platform, so that the smart The device uses the access token to access the second cloud platform through the first cloud platform.
  13. 一种应用程序APP,包括:An application program APP, comprising:
    接入模块,被设置为预先开启访问接入点并接入智能设备;The access module is configured to pre-open the access point and access the smart device;
    第一处理模块,被设置为向通过合法性验证的所述智能设备发送注册第二云平台的用户账号的请求,接收所述智能设备发送的所述第二云平台的用户注册链接,基于所述第二云平台的用户注册链接生成所述第二云平台的用户注册信息, 并将所述用户注册信息发送至所述第二云平台,使所述第二云平台根据所述用户注册信息生成所述智能设备在第二云平台的第二用户账号和授权码,将所述第二用户账号与所述智能设备绑定,并将所述授权码发送至所述APP;The first processing module is configured to send a request for registering a user account of the second cloud platform to the smart device that has passed the legality verification, receive the user registration link of the second cloud platform sent by the smart device, and based on the The user registration link of the second cloud platform generates the user registration information of the second cloud platform, and sends the user registration information to the second cloud platform, so that the second cloud platform according to the user registration information Generate a second user account and an authorization code of the smart device on the second cloud platform, bind the second user account with the smart device, and send the authorization code to the APP;
    第二处理模块,被设置为接收所述第二云平台发送的授权码,并将所述授权码发送至第一云平台,使所述第一云平台将所述授权码和访问通行证请求发送至所述第二云平台,使所述第二云平台基于所述访问通行证请求生成访问通行证,将所述访问通行证与所述第二用户账号绑定,并将所述访问通行证发送至所述第一云平台,并与所述智能设备在所述第一云平台创建的第一用户账号绑定,使所述智能设备使用所述访问通行证通过所述第一云平台访问所述第二云平台。The second processing module is configured to receive the authorization code sent by the second cloud platform, and send the authorization code to the first cloud platform, so that the first cloud platform sends the authorization code and the access pass request to the second cloud platform, causing the second cloud platform to generate an access pass based on the access pass request, bind the access pass to the second user account, and send the access pass to the The first cloud platform is bound to the first user account created by the smart device on the first cloud platform, so that the smart device uses the access pass to access the second cloud through the first cloud platform platform.
  14. 根据权利要求13所述的应用程序APP,其中,第一处理模块,还被设置为向通过合法性验证的所述智能设备发送注册第二云平台的用户账号的请求之前,接收所述第二云平台发送的通过合法性验证的所述智能设备的设备合法信息,并将配网信息发送至所述智能设备;接收所述智能设备反馈的已接收所述配网信息的响应信息。The application program APP according to claim 13, wherein the first processing module is further configured to receive the second The cloud platform sends the legitimacy information of the smart device that has passed the legality verification, and sends the distribution network information to the smart device; and receives the response information fed back by the smart device that the distribution network information has been received.
  15. 根据权利要求13所述的应用程序APP,其中,所述应用程序APP还包括:The application program APP according to claim 13, wherein the application program APP further comprises:
    验证模块,被设置为接收所述智能设备发送的验证信息和加密信息,其中,所述验证信息至少包含智能设备的设备信息,所述加密信息由所述智能设备利用预置密钥对所述设备信息进行加密得到;将所述验证信息和所述加密信息发送至所述第一云平台,由所述第一云平台将所述验证信息和所述加密信息发送至所述第二云平台,使所述第二云平台利用所述预置密钥对所述加密信息进行解密,并对得到的设备信息进行合法性验证,确定所述智能设备的合法性。A verification module, configured to receive verification information and encrypted information sent by the smart device, wherein the verification information includes at least device information of the smart device, and the encrypted information is encrypted by the smart device using a preset key The device information is obtained by encrypting; sending the verification information and the encrypted information to the first cloud platform, and the first cloud platform sends the verification information and the encrypted information to the second cloud platform and make the second cloud platform use the preset key to decrypt the encrypted information, and verify the legitimacy of the obtained device information, so as to determine the legitimacy of the smart device.
  16. 一种第一云平台,包括:A first cloud platform, including:
    接收模块,被设置为接收第二云平台发送的访问通行证,所述访问通行证与智能设备在所述第二云平台生成的第二用户账号绑定,所述第二用户账号由所述第二云平台在应用程序APP预先开启访问接入点并接入所述智能设备之后,接收所述APP发送的所述智能设备在第二云平台的用户注册信息,根据所述用户注册信息生成所述智能设备在第二云平台的第二用户账号;The receiving module is configured to receive the access pass sent by the second cloud platform, the access pass is bound to the second user account generated by the smart device on the second cloud platform, and the second user account is assigned by the second cloud platform. After the application program APP opens the access point in advance and accesses the smart device, the cloud platform receives the user registration information of the smart device on the second cloud platform sent by the APP, and generates the user registration information according to the user registration information. The second user account of the smart device on the second cloud platform;
    绑定模块,被设置为将所述访问通行证与所述智能设备在所述第一云平台创建的第一用户账号绑定;A binding module configured to bind the access pass to the first user account created by the smart device on the first cloud platform;
    处理模块,被设置为利用所述访问通行证使所述智能设备访问所述第二云平台。A processing module configured to enable the smart device to access the second cloud platform by using the access pass.
  17. 一种智能设备的绑定系统,包括:智能设备、应用程序APP、第一云平台和第二云平台;A binding system for smart devices, including: smart devices, application programs APP, a first cloud platform and a second cloud platform;
    所述智能设备,被设置为开启配网模式,扫描所述APP开启的所述访问接入点接入所述APP;The smart device is configured to enable a network distribution mode, and scan the access point enabled by the APP to access the APP;
    所述APP,被设置为预先开启访问接入点并接入所述智能设备,接收所述第二云平台发送的授权码,并将所述授权码发送至所述第一云平台;The APP is configured to pre-open the access point and access the smart device, receive the authorization code sent by the second cloud platform, and send the authorization code to the first cloud platform;
    所述第二云平台,被设置为验证所述智能设备的合法性,并将所述智能设备的设备合法信息发送至所述APP,接收所述APP发送的所述智能设备在所述第二云平台的用户注册信息,根据所述用户注册信息生成所述智能设备在所述第二云平台的第二用户账号和授权码,将所述第二用户账号与所述智能设备绑定,并将所述授权码发送至所述APP,基于所述第一云平台发送的访问通行证请求生成访问通行证,将所述访问通行证与所述第二用户账号绑定,将所述访问通行证发送至所述第一云平台;The second cloud platform is configured to verify the legitimacy of the smart device, and send the device legitimacy information of the smart device to the APP, and receive the smart device sent by the APP in the second The user registration information of the cloud platform, generating a second user account and authorization code of the smart device on the second cloud platform according to the user registration information, binding the second user account with the smart device, and Send the authorization code to the APP, generate an access pass based on the access pass request sent by the first cloud platform, bind the access pass to the second user account, and send the access pass to the The first cloud platform;
    所述第一云平台,被设置为接收所述访问通行证,并将所述访问通行证与所述智能设备在所述第一云平台创建的第一用户账号绑定,使所述智能设备使用所述访问通行证通过所述第一云平台访问所述第二云平台。The first cloud platform is configured to receive the access pass, and bind the access pass to the first user account created by the smart device on the first cloud platform, so that the smart device uses the The access pass is used to access the second cloud platform through the first cloud platform.
  18. 一种电子设备,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为通过所述计算器程序执行如权利要求1至4中任一所述的智能设备的绑定方法,或者,权利要求5至7中任一所述的智能设备的绑定方法,或者,权利要求8中所述的智能设备的绑定方法。An electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the binding of the smart device according to any one of claims 1 to 4 through the computer program. or the binding method of the smart device described in any one of claims 5 to 7, or the binding method of the smart device described in claim 8.
  19. 一种计算机可读的存储介质,所述计算机可读的存储介质包括存储的程序,其中,所述程序运行时执行如权利要求1至4中任一所述的智能设备的绑定方法,或者,权利要求5至7中任一所述的智能设备的绑定方法,或者,权利要求8中所述的智能设备的绑定方法。A computer-readable storage medium, the computer-readable storage medium comprising a stored program, wherein, when the program runs, the smart device binding method according to any one of claims 1 to 4 is executed, or , the smart device binding method described in any one of claims 5 to 7, or, the smart device binding method described in claim 8.
PCT/CN2022/113115 2021-08-31 2022-08-17 Method and system for binding smart device, and related device WO2023030014A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111013452.XA CN113766503B (en) 2021-08-31 2021-08-31 Binding method and system of intelligent device and related device
CN202111013452.X 2021-08-31

Publications (1)

Publication Number Publication Date
WO2023030014A1 true WO2023030014A1 (en) 2023-03-09

Family

ID=78792083

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/113115 WO2023030014A1 (en) 2021-08-31 2022-08-17 Method and system for binding smart device, and related device

Country Status (2)

Country Link
CN (1) CN113766503B (en)
WO (1) WO2023030014A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113766503B (en) * 2021-08-31 2023-10-24 青岛海尔科技有限公司 Binding method and system of intelligent device and related device
CN114338224B (en) * 2022-01-17 2024-04-12 广东好太太智能家居有限公司 Cross-platform control method and system for intelligent hardware

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897668A (en) * 2015-10-22 2016-08-24 乐视致新电子科技(天津)有限公司 Third party account authorization method, device, server and system
US20170149867A1 (en) * 2015-11-19 2017-05-25 Electronics And Telecommunications Research Institute Method and apparatus for communication between heterogeneous platforms
CN107995215A (en) * 2017-12-20 2018-05-04 青岛海信智慧家居系统股份有限公司 Control method, device and the cloud platform server of smart home device
CN112600856A (en) * 2020-12-28 2021-04-02 青岛海尔科技有限公司 Equipment authorization method and device, storage medium and electronic device
CN113766503A (en) * 2021-08-31 2021-12-07 青岛海尔科技有限公司 Binding method and system of intelligent equipment and related equipment
CN113766496A (en) * 2021-08-30 2021-12-07 青岛海尔科技有限公司 Cross-platform binding method and system of intelligent equipment and related equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188241A (en) * 2011-12-31 2013-07-03 上海第九城市信息技术有限公司 User account management method based on mobile intelligent terminal number
CN104378342B (en) * 2014-01-10 2016-04-13 腾讯科技(深圳)有限公司 Many accounts verification method, Apparatus and system
CN109743598A (en) * 2018-12-29 2019-05-10 深圳Tcl新技术有限公司 Third party is authorized to access method, system and the readable storage medium storing program for executing of TV
CN109525605B (en) * 2019-01-03 2021-07-27 杭州数梦工场科技有限公司 Account management method, device and system and computer readable storage medium
CN113079224A (en) * 2021-03-19 2021-07-06 北京三快在线科技有限公司 Account binding method and device, storage medium and electronic equipment
CN114338224B (en) * 2022-01-17 2024-04-12 广东好太太智能家居有限公司 Cross-platform control method and system for intelligent hardware

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897668A (en) * 2015-10-22 2016-08-24 乐视致新电子科技(天津)有限公司 Third party account authorization method, device, server and system
US20170149867A1 (en) * 2015-11-19 2017-05-25 Electronics And Telecommunications Research Institute Method and apparatus for communication between heterogeneous platforms
CN107995215A (en) * 2017-12-20 2018-05-04 青岛海信智慧家居系统股份有限公司 Control method, device and the cloud platform server of smart home device
CN112600856A (en) * 2020-12-28 2021-04-02 青岛海尔科技有限公司 Equipment authorization method and device, storage medium and electronic device
CN113766496A (en) * 2021-08-30 2021-12-07 青岛海尔科技有限公司 Cross-platform binding method and system of intelligent equipment and related equipment
CN113766503A (en) * 2021-08-31 2021-12-07 青岛海尔科技有限公司 Binding method and system of intelligent equipment and related equipment

Also Published As

Publication number Publication date
CN113766503A (en) 2021-12-07
CN113766503B (en) 2023-10-24

Similar Documents

Publication Publication Date Title
CN110933108B (en) Data processing method and device based on block chain network, electronic equipment and storage medium
CN107743133B (en) Mobile terminal and access control method and system based on trusted security environment
JP6262278B2 (en) Method and apparatus for storage and computation of access control client
WO2023030014A1 (en) Method and system for binding smart device, and related device
EP2255507B1 (en) A system and method for securely issuing subscription credentials to communication devices
CN110532766B (en) Processing method of trusted application program based on multiple containers and related equipment
EP2095288B1 (en) Method for the secure storing of program state data in an electronic device
JPH0581204A (en) Access control in distributed type computer system
JP2008099267A (en) Method for securing session between wireless terminal and equipment in network
WO2023030009A1 (en) Smart device cross-platform binding method and system, and related device
WO2021109963A1 (en) Initial security configuration method, security module, and terminal
AU2016325979B2 (en) Information registration and authentication method and device
CN111131416A (en) Business service providing method and device, storage medium and electronic device
JP2002297385A (en) Authenticating method in agent system
WO2021120924A1 (en) Method and device for certificate application
CN112948789B (en) Identity authentication method and device, storage medium and electronic equipment
EP3748902A1 (en) Management method, terminal and server
CN116094793A (en) Method and system for establishing connection between operation center and security equipment based on data certificate
CN116781292A (en) Data processing method, device, equipment and readable storage medium
CN114338091A (en) Data transmission method and device, electronic equipment and storage medium
CN112131597A (en) Method and device for generating encrypted information and intelligent equipment
CN115996126B (en) Information interaction method, application device, auxiliary platform and electronic device
TWM585941U (en) Account data processing system
WO2023240587A1 (en) Device permission configuration method and apparatus, and terminal device
TWI673621B (en) Information registration, authentication method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22863154

Country of ref document: EP

Kind code of ref document: A1