CN114338224A - Intelligent hardware cross-platform control method and system - Google Patents

Intelligent hardware cross-platform control method and system Download PDF

Info

Publication number
CN114338224A
CN114338224A CN202210050157.XA CN202210050157A CN114338224A CN 114338224 A CN114338224 A CN 114338224A CN 202210050157 A CN202210050157 A CN 202210050157A CN 114338224 A CN114338224 A CN 114338224A
Authority
CN
China
Prior art keywords
user
platform
account
information
user terminal
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202210050157.XA
Other languages
Chinese (zh)
Other versions
CN114338224B (en
Inventor
王妙玉
周亮
蔡民浩
吴宁泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Hotata Smart Home Co Ltd
Original Assignee
Guangdong Hotata Smart Home Co Ltd
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 Guangdong Hotata Smart Home Co Ltd filed Critical Guangdong Hotata Smart Home Co Ltd
Priority to CN202210050157.XA priority Critical patent/CN114338224B/en
Publication of CN114338224A publication Critical patent/CN114338224A/en
Application granted granted Critical
Publication of CN114338224B publication Critical patent/CN114338224B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The invention discloses an intelligent hardware cross-platform control method and a system, wherein the method comprises the following steps of registering a user own account according to registration request information; the user registration request information comprises unique user identification information, receives user own account login information sent by a user terminal, and verifies the validity; returning first authentication information to the user terminal under the condition that the validity of the user's own account is verified; and receiving third authentication information sent by the third-party platform, verifying the legality, and sending fourth authentication information to the third-party platform under the condition that the legality passes so that the third-party platform establishes session connection with the user terminal. According to the method and the system, the built-in account system of the third-party platform can be smoothly transited to the self-owned account system, the intelligent equipment bound with the account system of the third-party platform can be controlled through the account system of the self-owned platform, and the problem that the equipment control between the platform and the platform cannot be compatible is solved.

Description

Intelligent hardware cross-platform control method and system
Technical Field
The invention relates to the technical field of communication, in particular to an intelligent hardware cross-platform control method and system.
Background
The existing APP account system is deeply bound with the third-party platform, if a user wants to control the intelligent device, the user needs to use functions such as login, registration and logout provided by the SDK provided by the third-party platform, and a development engineer only needs to configure the home page, the login and the registration page of the APP on the third-party platform, and can complete the login and registration functions of the APP without any coding, so that the labor and the time cost can be saved in the early development of the APP.
However, although the third-party built-in account system is convenient and fast to control intelligent hardware, the problem that cross-platform login cannot control old equipment and the like exists, and equipment control between platforms cannot be compatible.
Disclosure of Invention
In view of the above technical problems, an object of the present invention is to provide an intelligent hardware cross-platform control method and system, which solve the problem that the traditional cross-platform account cannot log in and cannot control the legacy bound device.
The invention adopts the following technical scheme:
an intelligent hardware cross-platform control method is applied to an own platform which is in butt joint with a third-party platform; the method comprises the following steps:
receiving user registration request information sent by a user terminal, and registering a user own account according to the registration request information; the user registration request information comprises unique user identification information, and the user identification information is first user identification information corresponding to a built-in account of a user on a third-party platform;
receiving user own account login information sent by a user terminal, and verifying the legality;
returning first authentication information to the user terminal under the condition that the validity of the user's own account is verified, so that the user terminal sends second authentication information to the third-party platform;
and receiving third authentication information sent by the third-party platform, verifying the legality, and sending fourth authentication information to the third-party platform under the condition that the legality passes so that the third-party platform establishes session connection with the user terminal.
Optionally, the method further includes:
receiving an intelligent equipment binding request sent by a user owned account through a user terminal;
binding the intelligent equipment to the account owned by the corresponding user;
receiving an intelligent device control instruction sent by a user own account;
correspondingly controlling the intelligent equipment bound to the user own account in the own platform according to the control instruction; and/or sending an intelligent device control instruction to a third-party platform, searching for the intelligent device correspondingly bound in the third-party platform, and then controlling according to the control instruction; the searched intelligent device is the intelligent device bound to the user own account or the built-in account with the same user identification information as the user own account in the third-party platform.
Optionally, the step of registering the user's own account according to the registration request information includes:
responding to user identification information sent by a user terminal, generating first verification information according to the user identification information, and sending the first verification information to the user terminal;
receiving second verification information and second user identification information sent by a user terminal;
verifying the second verification information and the second user identification information according to the first user identification information and the first verification information, and if the first user identification information and the second verification information are the same, passing the verification;
feeding back the verification result to the user terminal, receiving password information sent by the user terminal when the verification is passed, and confirming whether the password information is set successfully;
and when the password information is confirmed to be successfully set, receiving second user identification information sent by the user terminal again, creating a user own account according to the password information and the second user identification information, and feeding back a creation result to the user terminal.
Optionally, the receiving the password information sent by the user terminal and confirming whether the setting of the password information is successful includes: and after receiving first password information sent by the user terminal, receiving second password information sent by the user terminal, and if the first password information is the same as the second password information, confirming that the password information is successfully set.
Optionally, the first authentication information includes character string information jwt and verification code information authCode, and the character string information jwt has a set aging;
the second authentication information comprises authCode information, and the authCode is sent to the third-party platform by the user terminal by calling an SDK built-in method;
the third authentication information comprises verification code information authCode, a public key AppKey and a private key AppSecret;
the fourth authentication information includes an access token _ token and a refresh token refresh _ token.
An intelligent hardware cross-platform control method is applied to a third-party platform which is in butt joint with a self-owned platform; the method comprises the following steps:
acquiring unique user identification information corresponding to a built-in account of a user, and enabling a user terminal to register the own account of the user on an own platform based on the unique user identification information;
receiving second authentication information sent by the user terminal; when a user terminal logs in an own platform, the user terminal receives first authentication information sent by an own cradle head under the condition that the own account of the user is verified to be legal by the own platform, and the user terminal sends out second authentication information based on the first authentication information;
generating third authentication information according to the second authentication information of the user terminal, and sending the third authentication information to the owned platform, so that the owned platform verifies the validity of the third authentication information, and sends out fourth authentication information under the legal condition;
and receiving fourth authentication information sent by the own platform, and establishing session connection with the user terminal.
Optionally, the method further includes:
after session connection is established with a user terminal, receiving an intelligent equipment binding request sent by a user own account through the user terminal;
binding the intelligent equipment to the account owned by the corresponding user;
the control method further comprises the following steps:
receiving an intelligent device control instruction sent by a built-in account of a user through a user terminal;
controlling corresponding intelligent equipment bound to the user built-in account under the third-party platform according to the control instruction;
receiving an intelligent equipment control instruction directly sent by a user own account through a user terminal;
controlling corresponding intelligent equipment bound to the user own account under the third-party platform according to the control instruction;
receiving an intelligent device control instruction sent by an own cloud platform, wherein the intelligent device control instruction is sent by a user terminal through an own account of a user logged in the own cloud platform;
controlling the intelligent equipment correspondingly bound in the third-party platform according to the control instruction; the intelligent device correspondingly bound in the third-party platform is as follows: the intelligent device is bound to the own account of the user or a built-in account with the same user identification information as the own account of the user in the third-party platform; the user owned account is the user owned account which is logged in to the owned cloud platform and sends out the intelligent equipment control instruction.
An intelligent hardware cross-platform control system comprises a self-contained platform, a third-party platform and a user terminal; the third party platform is in butt joint communication with the own holder;
the user terminal is used for registering and logging in the own cloud deck by the user own account; the system comprises a third-party platform, a built-in account of a user and a server, wherein the third-party platform is used for logging in the built-in account of the user; the system comprises a first authentication information receiving module, a second authentication information generating module and a first authentication information sending module, wherein the first authentication information is used for receiving first authentication information sent by a self-owned platform and generating second authentication information according to the first authentication information;
the self-owned platform is used for receiving user registration request information sent by the user terminal and registering a user self-owned account according to the registration request information; the system comprises a user terminal, a server and a server, wherein the user terminal is used for receiving user own account login information sent by the user terminal and verifying the legality; the authentication method comprises the steps of returning first authentication information to a user terminal under the condition that the validity of a user's own account is verified; and the third authentication information is used for receiving the third authentication information sent by the third-party platform, verifying the legality, and sending the fourth authentication information to the third-party platform under the condition that the legality passes, so that the third-party platform establishes session connection with the user terminal. The user registration request information comprises unique user identification information which is corresponding to a built-in account of a user on a third-party platform;
the third-party platform is used for acquiring unique user identification information corresponding to the built-in account of the user; the second authentication information is used for receiving the second authentication information sent by the user terminal; and the third authentication information is generated according to the second authentication information of the user terminal, is sent to the owned platform, and is used for receiving the fourth authentication information sent by the owned platform and establishing session connection with the user terminal.
An electronic device for creating a user's own account, comprising: the intelligent hardware cross-platform control system comprises at least one processor and a memory which is in communication connection with the at least one processor, wherein the memory stores instructions which can be executed by the at least one processor, and the instructions are executed by the at least one processor so as to enable the at least one processor to execute the intelligent hardware cross-platform control method.
A computer storage medium having stored thereon a computer program which, when executed by a processor, implements the intelligent hardware cross-platform control method.
Compared with the prior art, the invention has the beneficial effects that:
(1) in the method, based on the uniform user identification information of the built-in account of the third-party platform, the own account of the user can be established on the own platform; when a user own account logs in an own platform, firstly, the user own account logs in the own platform successfully through the own platform, then, the user terminal sends related verification information to a third party platform, the third party platform feeds back the verification information to the own platform, and under the condition that the verification is passed, the third party platform establishes session connection with the user terminal. Therefore, in the invention, the self-owned platform provides an interface and a function for checking the user for the third-party platform, and the user can log in the third-party platform without perception after logging in the self-owned platform. Based on the method, the account system built in the third-party platform is smoothly transited to the self-owned account system, the user can be migrated to the self-owned platform only by a small amount of operation of the user, the user can carry out cross-platform control on the intelligent equipment bound under the self-owned platform and the third-party platform, and the interaction between the user and the intelligent equipment of the original platform can not be influenced.
(2) In the method, after the session between the user terminal and the third-party platform is realized, namely the corresponding user account of the user logs in the third-party platform, the corresponding intelligent equipment can be bound in the third-party platform, and the user account of the user can directly control the bound intelligent equipment. In addition, the user own account can also simultaneously control the intelligent equipment bound to the built-in account and under the user own account in the third-party platform through the own platform, so that the simultaneous control of the intelligent equipment bound by the original built-in account and the intelligent equipment bound by the user own account can be simultaneously realized, and the technical problems that cross-platform login cannot control the old equipment and the equipment control between the platform and the platform cannot be compatible in the prior art are solved.
Drawings
Fig. 1 is a schematic flowchart of an intelligent hardware cross-platform control method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an intelligent hardware cross-platform control method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for creating and logging in a user account of an owned platform according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a cross-platform account login method according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an account system operating intelligent device of an own platform and a third-party platform according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating an intelligent hardware cross-platform control system according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and specific embodiments, and it should be noted that, in the premise of no conflict, the following described embodiments or technical features may be arbitrarily combined to form a new embodiment:
the first embodiment is as follows:
referring to fig. 1 to 7, in this embodiment, a system adopted by an intelligent hardware cross-platform control method of the present invention includes: the system comprises a user terminal 1, a self-owned platform 2 and a third party platform 3, wherein the third party platform 3 supports an authorization protocol;
in a specific implementation, the authorization protocol may be an OAuth protocol, specifically, an OAuth2.0 protocol, and the third party platform 3 supports the OAuth2.0 protocol, so that the self-owned platform 2 may be allowed to provide a token information, instead of using a user name and a password to access data of the third party platform 3 provider.
Referring to fig. 1, fig. 1 shows an intelligent hardware cross-platform control method applied to an owned platform 2, including the following steps:
step S1, receiving user registration request information sent by the user terminal 1, and registering the user' S own account according to the registration request information; the user registration request information comprises unique user identification information which is first user identification information corresponding to a built-in account of a user on the third-party platform 3;
in this embodiment, the user built-in account number on the third party platform 3 is a user account established by the user on the third party platform 3, and the unique user identification information may specifically include user information such as a mobile phone number, a user name, a microblog name, a micro signal, user ID information, and nickname information of the user.
Specifically, the step of registering the user's own account according to the registration request information includes:
step S11, responding to the user identification information sent by the user terminal 1, generating first verification information according to the user identification information, and returning the first verification information to the user terminal 1;
in this embodiment, the generated first verification information may be a verification code or a character string.
Step S12, receiving second verification information and second user identification information sent by the user terminal 1;
in this embodiment, after receiving the verification code or the character string, the user terminal 1 sends the verification code or the character string to the owned platform 2, so that the owned platform 2 verifies the verification code or the character string sent by the user terminal 1.
Step S13, verifying the second verification information and the second user identification information according to the first user identification information and the first verification information; if the two are the same, the verification is passed;
in this embodiment, when the second authentication information and the second user identification information sent by the user terminal 1 to the owned platform 2 are the same as the first user identification information and the first authentication information, the authentication is passed.
Step S14, the verification result is fed back to the user terminal 1, and when the verification is passed, the password information sent by the user terminal 1 is received, and whether the password information is set successfully is confirmed;
and step S15, when the password information is successfully set, receiving the second user identification information sent by the user terminal 1 again, creating the own account of the user according to the password information and the second user identification information, and feeding back the creation result to the user terminal 1.
Optionally, the returning the first authentication information to the user terminal 1 includes: returning the first verification information to the user terminal 1 through downlink short message information;
optionally, the receiving the password information sent by the user terminal 1 and confirming whether the setting of the password information is successful includes: after receiving first password information sent by the user terminal 1, receiving second password information sent by the user terminal 1, and if the first password information is the same as the second password information, confirming that the password information is successfully set.
Step S2, receiving user own account login information sent by the user terminal 1 and verifying the legality;
in this embodiment, the user's own account login information may be user information such as a mobile phone number, a user name, a microblog name, a micro signal, user ID information, and nickname information of the user.
Step S3, returning the first authentication information to the user terminal 1 under the condition that the validity of the user' S own account is verified, so that the user terminal 1 sends the second authentication information to the third party platform 3;
in this embodiment, if the validity of the user's own account passes the verification, first authentication information is generated and sent to the user terminal 1, the user terminal 1 sends the first authentication information to the third party platform 3, and the third party platform 3 generates second identity authentication information according to the first identity authentication information;
in this embodiment, the self-owned platform 2 authenticates the first authentication information, and if the authentication fails, a prompt message such as an error in the first authentication information is returned.
Optionally, the first authentication information includes character string information jwt and verification code information authCode, and the character string information jwt has a set aging;
it should be noted that jwt (json Web token) is a character string, and when initiating a network request, the character string information jwt is placed in the header or url, so that it can be ensured that the transmitted data can be found when tampered, and the security of the data can be ensured.
In the above implementation process, by setting the aging of the character string information jwt, the security of data transfer can be further ensured.
Optionally, the second authentication information includes authCode information, and the user terminal 1 sends the authCode information to the third party platform 3 by calling an SDK built-in method;
in this embodiment, the user's own account login information may be used to log in the own platform 2, and specifically may include account password information used for the own platform 2, or a mobile phone number and authentication code information used for logging in the own platform 2, or a user name and password information.
And step S4, receiving the third authentication information sent by the third party platform 3, verifying the legality, and sending the fourth authentication information to the third party platform 3 under the condition that the legality passes, so that the third party platform 3 establishes session connection with the user terminal 1.
Specifically, the third authentication information may include verification code information authCode, a public key AppKey, and a private key AppSecret;
the fourth authentication information includes an access token _ token and a refresh token refresh _ token.
In this embodiment, a token information, namely access _ token, is applied through app _ key (used for marking which rights to be applied are) and app _ secret (used for indicating that the rights are owned), and then the data request can directly verify the rights through the access _ token.
In this embodiment, when the third authentication information is not verified, the self-owned platform 2 refuses to issue an access _ token (access token, system object representing access control operation subject) and a refresh _ token (refresh token), and if the verification is passed, issues the access _ token and the refresh _ token, and deletes the local authcode (verification code information).
In this embodiment, after the account system of the self-owned platform 2 logs in the third party platform 3, when a binding request for binding the smart device is received by the self-owned platform 2 or the third party platform 3 later, or when the user needs to newly bind the smart device, the user information, such as the information of binding the device, is bound to the account system of the self-owned platform 2 and is not bound to the account system of the third party platform 3, so that the user information can be gradually transited from the third party platform 3 to the information of binding the device to the self-owned platform 2.
In the implementation process, the built-in account system of the third-party platform is smoothly transited to the self-owned account system, the user can be migrated to the self-owned platform only by a small amount of operation of the user, the user can carry out cross-platform control on the intelligent equipment bound under the self-owned platform and the third-party platform, and interaction between the user and the intelligent equipment of the original platform is not influenced.
As another embodiment, please refer to fig. 2, where fig. 2 illustrates an intelligent hardware cross-platform control method according to the present invention, and after step S4, the method further includes:
step S5, receiving an intelligent device binding request sent by a user own account through a user terminal 1;
in this embodiment, the binding request of the smart device may be a binding request applied by the user terminal 1 under the owned platform 2, or may be a binding request applied under the third-party platform 3, which is not limited herein.
Step S6, binding the intelligent device to the corresponding user' S own account;
step S7, receiving an intelligent device control instruction sent by a user own account;
step S8, performing corresponding control on the intelligent equipment bound to the user own account in the own platform 2 according to the control instruction; and/or sending an intelligent device control instruction to the third-party platform 3, searching the intelligent device correspondingly bound in the third-party platform 3, and then controlling according to the control instruction; the searched intelligent device is the intelligent device bound to the user own account or the built-in account with the same user identification information as the user own account in the third-party platform 3.
In this embodiment, the intelligent device controlled by the user terminal 1 according to the control instruction may be the intelligent device that is found in the third party platform 3 and is correspondingly bound, or the intelligent device that is bound in the own platform 2. The intelligent device found in the third party platform 3 may be an intelligent device bound to the user's own account through the third party platform 3, or an intelligent device originally bound to the user's built-in account of the third party platform 3.
In the implementation process, after the user own user account logs in the third-party platform, the corresponding intelligent device can be bound in the third-party platform, and the user own account can directly control the bound intelligent device. In addition, the user own account can also simultaneously control the intelligent equipment bound to the built-in account and under the user own account in the third-party platform through the own platform, so that the simultaneous control of the intelligent equipment bound by the original built-in account and the intelligent equipment bound by the user own account can be simultaneously realized, and the technical problems that cross-platform login cannot control the old equipment and the equipment control between the platform and the platform cannot be compatible in the prior art are solved.
As another embodiment, the intelligent hardware cross-platform control method of the present invention is applied to the user terminal 1, and includes the following steps:
step S10, acquiring unique user identification information corresponding to the user built-in account, and enabling the user terminal 1 to register the user own account on the own platform 2 based on the unique user identification information;
step S20, receiving second authentication information sent by the user terminal 1; when a user own account logs in the own platform 2, the user terminal 1 receives first authentication information sent by the own cradle head under the condition that the user own account is verified to be legal by the own platform 2, and the user terminal 1 sends out second authentication information based on the first authentication information;
step S30, generating third authentication information according to the second authentication information of the user terminal 1, and sending the third authentication information to the owned platform 2, so that the owned platform 2 verifies the validity of the third authentication information, and sends out fourth authentication information under the legal condition;
and step S40, receiving the fourth authentication information sent by the self-owned platform 2, and establishing session connection with the user terminal 1.
Optionally, the control method further includes:
after session connection is established with the user terminal 1, receiving an intelligent equipment binding request sent by a user own account through the user terminal 1;
binding the intelligent equipment to the account owned by the corresponding user;
receiving an intelligent device control instruction sent by a built-in account of a user through a user terminal 1;
controlling the corresponding intelligent equipment bound to the user built-in account under the third-party platform 3 according to the control instruction;
receiving an intelligent device control instruction directly sent by a user own account through a user terminal 1, and controlling corresponding intelligent devices bound to the user own account under a third-party platform 3 according to the control instruction;
receiving an intelligent device control instruction sent by an own cloud platform, wherein the intelligent device control instruction is sent by a user own account logged in the own cloud platform through a user terminal 1;
controlling the intelligent equipment correspondingly bound in the third-party platform 3 according to the control instruction; the intelligent device correspondingly bound in the third-party platform 3 is: the intelligent device in the third-party platform 3 is bound to the user own account or a built-in account with the same user identification information as the user own account; the user owned account is the user owned account which is logged in to the owned cloud platform and sends out the intelligent equipment control instruction.
In this embodiment, the own platform 2 may be an own IOT platform, the user terminal 1 is abbreviated as APP, and the third party platform 3 may be an swiftly platform. The method specifically comprises the following steps:
firstly, a user account for logging in the owned platform 2 is created, please refer to fig. 3, and fig. 3 shows a method for creating and logging in a user account of the owned platform 2; creating a first account on the owned platform 2 according to the first user identification information, specifically, the method includes the following steps:
1) and the user inputs the mobile phone number at the APP end and sends the mobile phone number to the self-owned IOT platform.
2) The IOT platform records the mobile phone number of the user, generates a verification code and sends the verification code to the APP terminal through the operator.
3) And the APP end receives the verification code, inputs the verification code at the APP end and submits the verification code to the self-owned IOT platform for verification.
4) And after the own IOT platform verifies that the mobile phone number and the verification code are correct, successful information is returned, the user inputs the password twice at the APP end, and the password and the mobile phone number are submitted to the own IOT platform together after the user confirms that the password is correct.
5) After the IOT platform receives the mobile phone number and the password, the APP user is newly built, and information of successful registration of the APP end is returned.
6) After receiving the successful registration information, the APP terminal submits the mobile phone number and the password to the login interface again, and then the user successfully logs in.
Secondly, after the self-owned platform 2 successfully logs in, the self-owned platform 2 needs to provide the third party platform 3 (such as a swallow platform) with an interface and a function for checking a user, so that the user can log in the third platform without sensing after logging in the self-owned platform 2, and please refer to fig. 4, which shows a cross-platform account login method of the invention, specifically comprises the following steps:
1) the APP terminal sends a user name, a password/a mobile phone number and a verification code;
2) the method comprises the steps that an own IOT platform receives a user name, a password/a mobile phone number and a verification code, the user validity is verified, and if the user is not legal, error information is returned; if the validity is legal, jwt and authCode are returned, and the validity time of jwt is set;
3) the APP terminal receives jwt and the authCode, and sends the authCode to the third-party platform by calling the SDK built-in method;
4) after receiving the authCode, the third party platform sends the authCode, the AppKey, the AppSecret and other parameters to the IOT platform;
5) the IOT platform verifies whether the authCode, the AppKey and the AppSecret are legal or not, if not, the token is refused to be issued, if so, the access _ token and the refresh _ token are issued, and the local authCode is deleted;
6) after the third-party platform successfully obtains the access _ token and the refresh _ token, the third-party platform considers that the user is legal, and then establishes a session with the App terminal.
After simultaneously logging in the self-owned platform 2 and the third-party platform 3, the user can perform cross-platform control on the intelligent device bound under the self-owned platform 2 and the third-party platform 3, please refer to fig. 5, and fig. 4 shows a schematic diagram of the intelligent device controlled by the account systems of the self-owned platform 2 and the third-party platform 3. The account system of the third-party platform 3 is called a built-in account for short, the account system of the self-owned platform 2 is called a self-owned account system for short, the intelligent device hung under the third-party platform 3 is controlled by the third-party platform 3, and the built-in account can control the intelligent device under the built-in account; the intelligent device hung on the IOT platform is controlled by the platform 2, and the account system can not control the intelligent device under the built-in account.
After logging in, the intelligent device bound under the own platform 2 and the intelligent device bound under the third-party platform 3 can be controlled simultaneously through the own account system.
In the implementation process, the self-owned platform 2 and the third-party platform 3 can simultaneously log in, and after the simultaneous logging in, a user can perform cross-platform control on the intelligent device bound under the self-owned platform 2 and the third-party platform 3 (specifically, the cross-platform device control can be realized through cloud and cloud docking in the prior art, and is not specifically described here); the method and the system realize smooth transition of the built-in account system of the third-party platform 3 to the self-owned account system, and the user can be migrated to the self-owned platform 2 only by a small amount of operation of the user, and interaction between the user and the original intelligent equipment bound under the third-party platform 3 is not influenced.
Example two:
referring to fig. 6, an intelligent hardware cross-platform control system of the present invention includes: the system comprises a user terminal 1, a self-owned platform 2 and a third party platform 3, wherein the third party platform 3 supports an authorization protocol;
the self-contained platform 2 is used for receiving first identity authentication information sent by the user terminal 1 and authenticating the first identity authentication information; if the authentication is passed, second identity authentication information is generated and sent to the user terminal 1, the user terminal 1 sends the second identity authentication information to the third-party platform 3, and the third-party platform 3 generates third identity authentication information according to the second identity authentication information; receiving third identity authentication information sent by a third-party platform 3, and verifying the third identity authentication information; after the third identity authentication information is verified, fourth identity authentication information is generated and sent to a third-party platform 3;
the user terminal 1 is configured to send first identity authentication information to the owned platform 2, and authenticate the first identity authentication information with the owned platform 2; receiving second identity authentication information sent by the own platform 2, and sending the second identity authentication information to the third-party platform 3;
the third-party platform 3 is configured to receive second identity authentication information sent by the user terminal 1, and generate third identity authentication information according to the second identity authentication information; and receiving fourth identity authentication information sent by the self-owned platform 2, and establishing a session between the third-party platform 3 and the user terminal 1 according to the fourth identity authentication information.
In the implementation process, first user identification information associated with second account information of a user on a third-party platform 3 (namely, the third-party platform 3) is acquired, an account system (namely, a first account) of a self-owned platform 2 corresponding to the first user identification information is established according to the first user identification information, when the account system of the self-owned platform 2 is logged in, the account system (namely, a second account) of the third-party platform 3 is also logged in, intelligent equipment bound with the account system of the third-party platform 3 is controlled through the account system of the self-owned platform 2, cross-platform control of the intelligent equipment is achieved, and the problem that equipment control between the platform and the platform cannot be compatible is solved.
Example three:
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and in the present application, an electronic device 100 for implementing an intelligent hardware cross-platform control method according to the present invention according to an embodiment of the present application may be described by using the schematic diagram shown in fig. 7.
As shown in fig. 7, an electronic device 100 includes one or more processors 102, one or more memory devices 104, and the like, which are interconnected via a bus system and/or other type of connection mechanism (not shown). It should be noted that the components and structure of the electronic device 100 shown in fig. 7 are only exemplary and not limiting, and the electronic device may have some of the components shown in fig. 7 and may have other components and structures not shown in fig. 7 as needed.
The processor 102 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device 100 to perform desired functions.
The storage 104 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, Random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, Read Only Memory (ROM), hard disk, flash memory, etc. On which one or more computer program instructions may be stored that may be executed by processor 102 to implement the functions of the embodiments of the application (as implemented by the processor) described below and/or other desired functions. Various applications and various data, such as various data used and/or generated by the applications, may also be stored in the computer-readable storage medium.
The invention also provides a computer storage medium on which a computer program is stored, in which the method of the invention, if implemented in the form of software functional units and sold or used as a stand-alone product, can be stored. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer storage medium and used by a processor to implement the steps of the embodiments of the method. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer storage medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer storage media may include content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer storage media that does not include electrical carrier signals and telecommunications signals as subject to legislation and patent practice.
Various other modifications and changes may be made by those skilled in the art based on the above-described technical solutions and concepts, and all such modifications and changes should fall within the scope of the claims of the present invention.

Claims (10)

1. An intelligent hardware cross-platform control method is characterized by being applied to an own platform which is in butt joint with a third-party platform; the method comprises the following steps:
receiving user registration request information sent by a user terminal, and registering a user own account according to the registration request information; the user registration request information comprises unique user identification information, and the user identification information is first user identification information corresponding to a built-in account of a user on a third-party platform;
receiving user own account login information sent by a user terminal, and verifying the legality;
returning first authentication information to the user terminal under the condition that the validity of the user's own account is verified, so that the user terminal sends second authentication information to the third-party platform;
and receiving third authentication information sent by the third-party platform, verifying the legality, and sending fourth authentication information to the third-party platform under the condition that the legality passes so that the third-party platform establishes session connection with the user terminal.
2. The intelligent hardware cross-platform control method according to claim 1, further comprising:
receiving an intelligent equipment binding request sent by a user owned account through a user terminal;
binding the intelligent equipment to the account owned by the corresponding user;
receiving an intelligent device control instruction sent by a user own account;
correspondingly controlling the intelligent equipment bound to the user own account in the own platform according to the control instruction; and/or sending an intelligent device control instruction to a third-party platform, searching for the intelligent device correspondingly bound in the third-party platform, and then controlling according to the control instruction; the searched intelligent device is the intelligent device bound to the user own account or the built-in account with the same user identification information as the user own account in the third-party platform.
3. The intelligent hardware cross-platform control method according to claim 1, wherein the step of registering the user's own account according to the registration request information comprises:
responding to first user identification information sent by a user terminal, generating first verification information according to the first user identification information, and sending the first verification information to the user terminal;
receiving second verification information and second user identification information sent by a user terminal;
verifying the second verification information and the second user identification information according to the first user identification information and the first verification information, and if the first user identification information and the second verification information are the same, passing the verification;
feeding back the verification result to the user terminal, receiving password information sent by the user terminal when the verification is passed, and confirming whether the password information is set successfully;
and when the password information is confirmed to be successfully set, receiving second user identification information sent by the user terminal again, creating a user own account according to the password information and the second user identification information, and feeding back a creation result to the user terminal.
4. The intelligent hardware cross-platform control method according to claim 3, wherein the receiving password information sent by a user terminal and confirming whether the password information is set successfully comprises: and after receiving first password information sent by the user terminal, receiving second password information sent by the user terminal, and if the first password information is the same as the second password information, confirming that the password information is successfully set.
5. The intelligent hardware cross-platform control method according to claim 1, wherein the first authentication information includes character string information jwt and verification code information authCode, the character string information jwt having a set age;
the second authentication information comprises authCode information, and the authCode is sent to the third-party platform by the user terminal by calling an SDK built-in method;
the third authentication information comprises verification code information authCode, a public key AppKey and a private key AppSecret;
the fourth authentication information includes an access token _ token and a refresh token refresh _ token.
6. An intelligent hardware cross-platform control method is characterized by being applied to a third-party platform which is in butt joint with an own platform; the method comprises the following steps:
acquiring unique user identification information corresponding to a built-in account of a user, and enabling a user terminal to register the own account of the user on an own platform based on the unique user identification information;
receiving second authentication information sent by the user terminal; when a user terminal logs in an own platform, the user terminal receives first authentication information sent by an own cradle head under the condition that the own account of the user is verified to be legal by the own platform, and the user terminal sends out second authentication information based on the first authentication information;
generating third authentication information according to the second authentication information of the user terminal, and sending the third authentication information to the owned platform, so that the owned platform verifies the validity of the third authentication information, and sends out fourth authentication information under the legal condition;
and receiving fourth authentication information sent by the own platform, and establishing session connection with the user terminal.
7. The intelligent hardware cross-platform control method of claim 6, further comprising:
after session connection is established with a user terminal, receiving an intelligent equipment binding request sent by a user own account through the user terminal;
binding the intelligent equipment to the account owned by the corresponding user;
the control method further comprises the following steps:
receiving an intelligent device control instruction sent by a built-in account of a user through a user terminal;
controlling corresponding intelligent equipment bound to the user built-in account under the third-party platform according to the control instruction;
receiving an intelligent equipment control instruction directly sent by a user own account through a user terminal;
controlling corresponding intelligent equipment bound to the user own account under the third-party platform according to the control instruction;
receiving an intelligent device control instruction sent by an own cloud platform, wherein the intelligent device control instruction is sent by a user terminal through an own account of a user logged in the own cloud platform;
controlling the intelligent equipment correspondingly bound in the third-party platform according to the control instruction; the intelligent device correspondingly bound in the third-party platform is as follows: the intelligent device is bound to the own account of the user or a built-in account with the same user identification information as the own account of the user in the third-party platform; the user owned account is the user owned account which is logged in to the owned cloud platform and sends out the intelligent equipment control instruction.
8. An intelligent hardware cross-platform control system is characterized by comprising a self-owned platform, a third party platform and a user terminal; the third party platform is in butt joint communication with the own holder;
the user terminal is used for registering and logging in the own cloud deck by the user own account; the system comprises a third-party platform, a built-in account of a user and a server, wherein the third-party platform is used for logging in the built-in account of the user; the system comprises a first authentication information receiving module, a second authentication information generating module and a first authentication information sending module, wherein the first authentication information is used for receiving first authentication information sent by a self-owned platform and generating second authentication information according to the first authentication information;
the self-owned platform is used for receiving user registration request information sent by the user terminal and registering a user self-owned account according to the registration request information; the system comprises a user terminal, a server and a server, wherein the user terminal is used for receiving user own account login information sent by the user terminal and verifying the legality; the authentication method comprises the steps of returning first authentication information to a user terminal under the condition that the validity of a user's own account is verified; the third authentication information is used for receiving the third authentication information sent by the third party platform, verifying the legality, and sending the fourth authentication information to the third party platform under the condition that the legality passes, so that the third party platform establishes session connection with the user terminal; the user registration request information comprises unique user identification information which is corresponding to a built-in account of a user on a third-party platform;
the third-party platform is used for acquiring unique user identification information corresponding to the built-in account of the user; the second authentication information is used for receiving the second authentication information sent by the user terminal; and the third authentication information is generated according to the second authentication information of the user terminal, is sent to the owned platform, and is used for receiving the fourth authentication information sent by the owned platform and establishing session connection with the user terminal.
9. An electronic device, comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the intelligent hardware cross-platform control method of any of claims 1-7.
10. A computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the intelligent hardware cross-platform control method of any one of claims 1-7.
CN202210050157.XA 2022-01-17 2022-01-17 Cross-platform control method and system for intelligent hardware Active CN114338224B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210050157.XA CN114338224B (en) 2022-01-17 2022-01-17 Cross-platform control method and system for intelligent hardware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210050157.XA CN114338224B (en) 2022-01-17 2022-01-17 Cross-platform control method and system for intelligent hardware

Publications (2)

Publication Number Publication Date
CN114338224A true CN114338224A (en) 2022-04-12
CN114338224B CN114338224B (en) 2024-04-12

Family

ID=81028721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210050157.XA Active CN114338224B (en) 2022-01-17 2022-01-17 Cross-platform control method and system for intelligent hardware

Country Status (1)

Country Link
CN (1) CN114338224B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113766503A (en) * 2021-08-31 2021-12-07 青岛海尔科技有限公司 Binding method and system of intelligent equipment and related equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140075188A1 (en) * 2012-09-11 2014-03-13 Verizon Patent And Licensing Inc. Trusted third party client authentication
CN105164663A (en) * 2013-01-09 2015-12-16 艾菲尼莫公司 Systems and methods for access-controlled interactions
CN105897668A (en) * 2015-10-22 2016-08-24 乐视致新电子科技(天津)有限公司 Third party account authorization method, device, server and system
CN107508837A (en) * 2017-09-28 2017-12-22 山东浪潮通软信息科技有限公司 A kind of cross-platform heterogeneous system login method based on intelligent code key certification
CN107819805A (en) * 2016-09-14 2018-03-20 北京京东尚科信息技术有限公司 Smart machine control method and system
CN110830463A (en) * 2019-10-30 2020-02-21 腾讯科技(深圳)有限公司 Third party authorized login method and device
CN110879540A (en) * 2019-12-17 2020-03-13 苏州思必驰信息科技有限公司 Control method of intelligent platform, intelligent platform and computer readable medium
CN111556006A (en) * 2019-12-31 2020-08-18 远景智能国际私人投资有限公司 Third-party application system login method, device, terminal and SSO service platform
CN112968903A (en) * 2021-03-08 2021-06-15 浪潮云信息技术股份公司 Integrated authentication integration method based on account binding
CN113596124A (en) * 2021-07-20 2021-11-02 四川虹美智能科技有限公司 Control system and method of intelligent device
CN113766503A (en) * 2021-08-31 2021-12-07 青岛海尔科技有限公司 Binding method and system of intelligent equipment and related equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140075188A1 (en) * 2012-09-11 2014-03-13 Verizon Patent And Licensing Inc. Trusted third party client authentication
CN105164663A (en) * 2013-01-09 2015-12-16 艾菲尼莫公司 Systems and methods for access-controlled interactions
CN105897668A (en) * 2015-10-22 2016-08-24 乐视致新电子科技(天津)有限公司 Third party account authorization method, device, server and system
CN107819805A (en) * 2016-09-14 2018-03-20 北京京东尚科信息技术有限公司 Smart machine control method and system
CN107508837A (en) * 2017-09-28 2017-12-22 山东浪潮通软信息科技有限公司 A kind of cross-platform heterogeneous system login method based on intelligent code key certification
CN110830463A (en) * 2019-10-30 2020-02-21 腾讯科技(深圳)有限公司 Third party authorized login method and device
CN110879540A (en) * 2019-12-17 2020-03-13 苏州思必驰信息科技有限公司 Control method of intelligent platform, intelligent platform and computer readable medium
CN111556006A (en) * 2019-12-31 2020-08-18 远景智能国际私人投资有限公司 Third-party application system login method, device, terminal and SSO service platform
CN112968903A (en) * 2021-03-08 2021-06-15 浪潮云信息技术股份公司 Integrated authentication integration method based on account binding
CN113596124A (en) * 2021-07-20 2021-11-02 四川虹美智能科技有限公司 Control system and method of intelligent device
CN113766503A (en) * 2021-08-31 2021-12-07 青岛海尔科技有限公司 Binding method and system of intelligent equipment and related equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113766503A (en) * 2021-08-31 2021-12-07 青岛海尔科技有限公司 Binding method and system of intelligent equipment and related equipment
CN113766503B (en) * 2021-08-31 2023-10-24 青岛海尔科技有限公司 Binding method and system of intelligent device and related device

Also Published As

Publication number Publication date
CN114338224B (en) 2024-04-12

Similar Documents

Publication Publication Date Title
CN111556006B (en) Third-party application system login method, device, terminal and SSO service platform
US11190501B2 (en) Hybrid single sign-on for software applications and services using classic and modern identity providers
WO2018036314A1 (en) Single-sign-on authentication method and apparatus, and storage medium
WO2016173199A1 (en) Mobile application single sign-on method and device
CN108712372B (en) Method and system for accessing WEB third party login by client
CN106161475B (en) Method and device for realizing user authentication
CN112738105B (en) Invitation registration method and device
WO2018058982A1 (en) Control information pushing method and pushing device, intelligent router and server
CN109005159B (en) Data processing method for terminal access system server and authentication server
CN103139200A (en) Single sign-on method of web service
CN109388937B (en) Single sign-on method and sign-on system for multi-factor identity authentication
CN111404695B (en) Token request verification method and device
CN111064708B (en) Authorization authentication method and device and electronic equipment
CN111431920A (en) Security control method and system based on dynamic token
EP4206960A1 (en) Device authentication method and apparatus, electronic device, server and storage medium
CN111949959B (en) Authorization authentication method and device in Oauth protocol
CN113765655A (en) Access control method, device, equipment and storage medium
US9680814B2 (en) Method, device, and system for registering terminal application
CN111949958A (en) Authorization authentication method and device in Oauth protocol
US9455972B1 (en) Provisioning a mobile device with a security application on the fly
CN114338224B (en) Cross-platform control method and system for intelligent hardware
CN111600888B (en) Method and device for login verification and login verification system
CN111245791B (en) Single sign-on method for realizing management and IT service through reverse proxy
CN105656856A (en) Resource management method and device
WO2015096483A1 (en) Terminal application registration method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant