Nothing Special   »   [go: up one dir, main page]

CN112600856A - Equipment authorization method and device, storage medium and electronic device - Google Patents

Equipment authorization method and device, storage medium and electronic device Download PDF

Info

Publication number
CN112600856A
CN112600856A CN202011589747.7A CN202011589747A CN112600856A CN 112600856 A CN112600856 A CN 112600856A CN 202011589747 A CN202011589747 A CN 202011589747A CN 112600856 A CN112600856 A CN 112600856A
Authority
CN
China
Prior art keywords
cloud platform
client
registered
authorization
cloud
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.)
Pending
Application number
CN202011589747.7A
Other languages
Chinese (zh)
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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202011589747.7A priority Critical patent/CN112600856A/en
Publication of CN112600856A publication Critical patent/CN112600856A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a device authorization method and device, a storage medium and an electronic device. Wherein, the method comprises the following steps: sending an authorization request to a second cloud platform through a first client, wherein the first client is registered in the first cloud platform, and the authorization request is used for requesting the second cloud platform to allow the first client to control target equipment registered in the second cloud platform; receiving password information sent by the first client through the second cloud platform in response to the authorization request, wherein the password information is input to the first client through a target object; and determining that the first client is authorized to control the target equipment registered in the second cloud platform under the condition that the password information is verified. By adopting the technical scheme, the problems that the client cannot control the intelligent equipment of different platforms in the related technology, the intelligent equipment of different platforms cannot realize interconnection and intercommunication and the like are solved.

Description

Equipment authorization method and device, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a device authorization method and apparatus, a storage medium, and an electronic apparatus.
Background
In the recent years, along with the continuous development of artificial intelligence technology and cloud technology, the development of intelligent equipment enters a motorway. However, the endless intelligent devices are only used in a certain or a scene, which causes the problem that the scene experience of the intelligent devices is unsatisfactory. The process of configuring the intelligent equipment by the client is complex, the intelligent equipment of different brands needs to be controlled by different clients, and the intelligent equipment of different brands cannot realize interconnection and intercommunication and the like, so that consumers are always puzzled. The most exciting ratio change in the field of intelligent devices of different brands in the coming decades is the interconnection of everything and natural interaction, but it is also expected that in the coming years, there are countless intelligent devices of different brands, and the problem that the interconnection of intelligent devices of different brands cannot be realized is to be solved urgently.
Aiming at the problems that in the related art, the client cannot control the intelligent devices of different platforms, so that the intelligent devices of different platforms cannot realize interconnection and intercommunication and the like, an effective solution is not provided.
Disclosure of Invention
The embodiment of the invention provides an equipment authorization method and device, a storage medium and an electronic device, and aims to solve the problems that in the related art, a client cannot control intelligent equipment of different platforms, so that the intelligent equipment of the different platforms cannot be interconnected and intercommunicated and the like.
According to an embodiment of the present invention, there is provided a device authorization method including: sending an authorization request to a second cloud platform through a first client, wherein the first client is registered in the first cloud platform, and the authorization request is used for requesting the second cloud platform to allow the first client to control target equipment registered in the second cloud platform; receiving password information sent by the first client through the second cloud platform in response to the authorization request, wherein the password information is input to the first client through a target object; and determining that the first client is authorized to control the target equipment registered in the second cloud platform under the condition that the password information is verified.
Optionally, before the first client sends the authorization request to the second cloud platform, the method further includes: acquiring all other cloud platform lists except the first cloud platform from an account system through the first client, wherein all registered cloud platforms are saved in the account system; determining the second cloud platform from the list of other cloud platforms.
Optionally, receiving, by the second cloud platform, password information sent by the first client includes: after the first client sends the authorization request, jumping to a third party authorization page in the client, wherein the third party authorization page is used for receiving password information input by the target object; receiving, by the second cloud platform, password information input to the third party authorization page.
Optionally, after determining that the first client is authorized to control the target device registered in the second cloud platform, the method further includes: sending an authorization canceling request to a first cloud platform through a first client; and responding to the request for canceling the authorization, and canceling the binding relationship between the first client and the target equipment registered in the second cloud platform through the first cloud platform.
Optionally, after determining that the first client is authorized to control the target device registered in the second cloud platform, the method further includes: acquiring a registered equipment list in the second cloud platform; and selecting the target equipment from the equipment list for control.
Optionally, after determining that the first client is authorized to control the target device registered in the second cloud platform, the method includes: sending a first control instruction to a first cloud platform through the first client, so that the first cloud platform converts the first control instruction into a second control instruction which can be analyzed by a second cloud platform, and sends the second control instruction to the second cloud platform; and sending the second control instruction to the target equipment through the second cloud platform so as to instruct the target equipment to respond to the second control instruction.
Optionally, after the second control instruction is sent to the target device through the second cloud platform to instruct the target device to respond to the second control instruction, the method further includes: receiving a response result transmitted by the target device through the second cloud platform, wherein the response result is used for indicating a result of the target device responding to the second control instruction; and displaying the response result on the first client.
According to another embodiment of the present invention, there is also provided a device authorization apparatus including: the system comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending an authorization request to a second cloud platform through a first client, the first client is registered in the first cloud platform, and the authorization request is used for requesting the second cloud platform to allow the first client to control target equipment registered in the second cloud platform; a response module, configured to receive, through the second cloud platform, password information sent by the first client in response to the authorization request, where the password information is input to the first client through a target object; and the determining module is used for determining that the first client is authorized to control the target equipment registered in the second cloud platform under the condition that the password information passes the verification.
According to a further embodiment of the present invention, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to carry out the steps of any of the above-described method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the method and the device, an authorization request is sent to a second cloud platform through a first client, wherein the first client is registered in the first cloud platform, and the authorization request is used for requesting the second cloud platform to allow the first client to control target equipment registered in the second cloud platform; receiving password information sent by the first client through the second cloud platform in response to the authorization request, wherein the password information is input to the first client through a target object; and determining that the first client is authorized to control the target equipment registered in the second cloud platform under the condition that the password information is verified. That is to say, an authorization request is sent to a second cloud platform by a first client, after a response of the authorization request is obtained, password information sent by the first client is received by the second cloud platform, and when the password information passes verification, it is determined that the first client is authorized to control a target device registered in the second cloud platform. By adopting the technical scheme, the client side can not control the intelligent equipment of different platforms, so that the intelligent equipment of different platforms can not realize the problems of interconnection and intercommunication and the like, and the intelligent equipment of different platforms can be controlled by one client side, so that the interconnection and intercommunication of the intelligent equipment of different platforms can be realized.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a client of a device authorization method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of device authorization according to an embodiment of the present invention;
FIG. 3 is an architecture diagram of a device authorization apparatus according to an embodiment of the present invention;
FIG. 4 is a flow chart of a method of controlling a device according to an embodiment of the present invention;
FIG. 5 is a flow chart of a method of device authorization according to an embodiment of the present invention;
FIG. 6 is a flow chart of a method of de-authorizing a device according to an embodiment of the present invention;
FIG. 7 is a flow diagram of a method of synchronizing device lists according to an embodiment of the present invention;
FIG. 8 is a flow chart of a method for controlling read and write operations of a device according to an embodiment of the present invention;
fig. 9 is a flowchart of a device control reply method according to an embodiment of the present invention;
fig. 10 is a flowchart of a method for reporting device attributes according to an embodiment of the present invention;
fig. 11 is a block diagram of a device authorization apparatus according to another embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided by the embodiments of the present application may be executed in a client, or similar device. Taking the example of running on the client, fig. 1 is a hardware structure block diagram of the client of the device authorization method according to the embodiment of the present invention. As shown in fig. 1, the client may include one or more processors 102 (only one is shown in fig. 1), where the processors 102 may include, but are not limited to, a Microprocessor (MPU) or a Programmable Logic Device (PLD), and a memory 104 for storing data, and in an exemplary embodiment, the client may further include a transmission device 106 for communication function and an input/output device 108. It will be understood by those of ordinary skill in the art that the structure shown in fig. 1 is merely an illustration and is not intended to limit the structure of the client. For example, the client may also include more or fewer components than shown in FIG. 1, or have a different configuration with equivalent functionality to that shown in FIG. 1 or with more functionality than that shown in FIG. 1.
The memory 104 may be used for storing a client program, for example, a software program and a module of application software, such as a computer program corresponding to the device authorization method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to clients over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the client. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, an apparatus authorization method is provided, which is applied to the client, and fig. 2 is a flowchart of an apparatus authorization method according to an embodiment of the present invention, where the flowchart includes the following steps:
step S202, an authorization request is sent to a second cloud platform through a first client, wherein the first client is registered in the first cloud platform, and the authorization request is used for requesting the second cloud platform to allow the first client to control target equipment registered in the second cloud platform;
step S204, responding to the authorization request, receiving password information sent by the first client through the second cloud platform, wherein the password information is input to the first client through a target object;
step S206, determining that the first client is authorized to control the target device registered in the second cloud platform when the password information passes the verification.
According to the method and the device, an authorization request is sent to a second cloud platform through a first client, wherein the first client is registered in the first cloud platform, and the authorization request is used for requesting the second cloud platform to allow the first client to control target equipment registered in the second cloud platform; receiving password information sent by the first client through the second cloud platform in response to the authorization request, wherein the password information is input to the first client through a target object; and determining that the first client is authorized to control the target equipment registered in the second cloud platform under the condition that the password information is verified. That is to say, an authorization request is sent to a second cloud platform by a first client, after a response of the authorization request is obtained, password information sent by the first client is received by the second cloud platform, and when the password information passes verification, it is determined that the first client is authorized to control a target device registered in the second cloud platform. By adopting the technical scheme, the client side can not control the intelligent equipment of different platforms, so that the intelligent equipment of different platforms can not realize the problems of interconnection and intercommunication and the like, and the intelligent equipment of different platforms can be controlled by one client side, so that the interconnection and intercommunication of the intelligent equipment of different platforms can be realized.
Before performing step S202, that is, before sending the authorization request to the second cloud platform through the first client, the method further includes: acquiring all other cloud platform lists except the first cloud platform from an account system through the first client, wherein all registered cloud platforms are saved in the account system; determining the second cloud platform from the list of other cloud platforms.
It should be noted that all other cloud platform lists except the first cloud platform are obtained from the account system through the first client, where the first client is registered on the first cloud platform, that is, the first client is a client corresponding to the first cloud platform, the other cloud platforms are cloud platforms belonging to a third party, and the other cloud platforms and the first cloud platform belong to different vendors. According to the invention, the intelligent devices of different brands are controlled by one client, so that the interconnection and intercommunication of the intelligent devices of different brands are realized. And determining the second cloud platform from the other cloud platform lists, wherein the second cloud platform is also a cloud platform belonging to a third party. It should be noted that all registered cloud platforms are stored in the account system, wherein the account system is an account under the name of a user, and for reasons of real name, no matter whether one or a plurality of accounts under the name of the user are available, the account system can be regarded as one account. The account under the name of the user stores all cloud platforms registered by the user, and the client can acquire a list of all the cloud platforms registered by the user from the account system, and further determine a second cloud platform corresponding to the target device to be controlled.
In step S204, receiving, by the second cloud platform, password information sent by the first client, where the password information includes: after the first client sends the authorization request, jumping to a third party authorization page in the client, wherein the third party authorization page is used for receiving password information input by the target object; receiving, by the second cloud platform, password information input to the third party authorization page.
It should be noted that after the first client sends the authorization request, a third-party authorization page is skipped to in the client, where the third-party authorization page is an authorization page corresponding to the second cloud platform. The target object is also a user, the user opens a third party authorization page at the first client, password information of the second cloud platform is input at the third party authorization page, the third party authorization page sends the received password information to the second cloud platform, the second cloud platform verifies the received password information, and when the password information passes the verification, the first client can be determined to be authorized to control the target equipment registered in the second cloud platform.
In an optional embodiment, after determining that the first client is authorized to control the target device registered in the second cloud platform, the method further includes: sending an authorization canceling request to a first cloud platform through a first client; and responding to the request for canceling the authorization, and canceling the binding relationship between the first client and the target equipment registered in the second cloud platform through the first cloud platform.
It should be noted that, after the first client completes control over the target device registered in the second cloud platform, the first cloud platform may release the binding relationship between the first client and the target device registered in the second cloud platform, and cancel the last authorization of the second cloud platform to the first client. Specifically, the method comprises the following steps: the method comprises the steps that all other cloud platform lists are obtained at a first client, a second cloud platform corresponding to target equipment needing to be unbound is selected from the other cloud platform lists, the first client sends an authorization cancelling request to the first cloud platform, and the first cloud platform cancels the binding relation between the first client and the target equipment registered in the second cloud platform by calling a customized cloud gateway. Wherein the IOT custom cloud gateway is a gateway for the first cloud platform.
After step S206 is executed, that is, after it is determined that the first client is authorized to control the target device registered in the second cloud platform, the method further includes: acquiring a registered equipment list in the second cloud platform; and selecting the target equipment from the equipment list for control.
It should be noted that after determining that the first client is authorized to control the target device registered in the second cloud platform, the first client pulls device information under a third-party user, the customized cloud gateway receives the pull request sent by the first client, obtains a device list under the third-party user according to the three-party identifier of the third-party user, calls the cloud access gateway to register and bind the device according to the pulled device list, and accesses the device into the first cloud platform. The customized cloud gateway can acquire an equipment list under the third-party user according to the three-party identifier of the user, and the cloud access gateway is an access gateway between the first cloud platform and the first client. By the technical means, the first client can control the intelligent devices of different brands, and interconnection and intercommunication of the intelligent devices of different brands are realized.
After determining that the first client is authorized to control the target device registered in the second cloud platform after performing step S206, the method includes: sending a first control instruction to a first cloud platform through the first client, so that the first cloud platform converts the first control instruction into a second control instruction which can be analyzed by a second cloud platform, and sends the second control instruction to the second cloud platform; and sending the second control instruction to the target equipment through the second cloud platform so as to instruct the target equipment to respond to the second control instruction.
It should be noted that, controlling the target device registered in the second cloud platform by the first client is implemented, specifically: the first client enters the device detail page, clicks the detail page for control operation, and issues the first control instruction to the first cloud platform through the detail page, the first cloud platform calls the customized cloud gateway to convert the first control instruction into a second control instruction supported by the second cloud platform and the target device according to the requirements of the second cloud platform and the target device, the customized cloud gateway sends the second control instruction to the second cloud platform, and the second cloud platform controls the target device to respond.
Sending the second control instruction to the target device through the second cloud platform to instruct the target device to respond to the second control instruction, and then the method further includes: receiving a response result transmitted by the target device through the second cloud platform, wherein the response result is used for indicating a result of the target device responding to the second control instruction; and displaying the response result on the first client.
It should be noted that, after the second control instruction is sent to the target device by the second cloud platform to instruct the target device to respond to the second control instruction, the second cloud platform may obtain a response result of the target device to the second control instruction by subscribing to a service of the target device or by calling back a response result of the target device to the second control instruction, where the response result is reported by the target device. And the second cloud platform sends the response result to the first cloud platform, and the first cloud platform uploads the received response result to the equipment detail page of the first client. Through the technical means, the first client can control intelligent devices of different brands.
In an optional embodiment, the target device needs to upload the attribute of the target device to a custom cloud gateway, and the custom cloud gateway converts the attribute of the target device into an attribute value that can be recognized by the first cloud platform. For example, the device switches of one manufacturer's devices may be represented by off and on, and the device switches of another manufacturer's devices may be represented by close and on, and the attribute values of different devices may need to be converted.
In order to better understand the above technical solutions, an alternative embodiment of the present invention is further provided for explaining the above technical solutions.
In an alternative embodiment, fig. 3 is an architecture diagram of a device authorization apparatus according to an embodiment of the invention, as shown in fig. 3:
the architecture of the device authorization apparatus includes four parts: the system comprises a first client, a first cloud platform, a second cloud platform and target equipment.
The first client side is the wisdom family APP, the first client side requests authorization from the second cloud platform to obtain an equipment list of the second cloud platform, the first client side selects target equipment from the equipment list of the second cloud platform, and the first client side performs read-write control on the target equipment through an equipment detail page.
A first cloud platform: the first cloud platform is a cloud platform corresponding to the client, the first cloud platform is connected with the client through a cloud access gateway, the first cloud platform calls a customized cloud gateway to achieve command conversion and equipment attribute conversion, and the first cloud platform is connected with the second cloud platform through a cloud equipment gateway.
A second cloud platform: the second cloud platform is a three-party platform in the figure, and the second cloud platform is a cloud platform corresponding to the target device.
The target device: the target device, i.e. the three-party device, is the first target device that the user needs to control through the first client.
In an alternative embodiment, fig. 4 is a flowchart of a device control method according to an embodiment of the present invention, as shown in fig. 4, including the following steps:
s402: the target equipment is connected with the second cloud platform;
s404: the first client requests authorization from the second cloud platform through the account system of the user;
s406: after the first client obtains authorization of the second cloud platform, the first client synchronizes an equipment list of the second cloud platform through the customized cloud gateway;
s408: after the customized cloud gateway obtains the equipment list of the second cloud platform, the customized cloud gateway adds the target equipment in the equipment list of the second cloud platform to the first client through the cloud access gateway;
s410: the customized cloud gateway adds the obtained target equipment to a home account;
s412: the first client sends a control command to the target equipment through the resource information SDK;
s414: after the resource information SDK obtains a control command of the first client, calling a cloud access gateway;
s416: the cloud access gateway issues the control command to the customized cloud gateway;
s418: and the customized cloud gateway converts the control command into an assembly, adaptation and issuing command which can be accepted by the second cloud platform and the target equipment.
In an alternative embodiment, fig. 5 is a flowchart of a device authorization method according to an embodiment of the present invention, as shown in fig. 5, including the following steps:
s502: the first client acquires all third-party platform lists through an account system;
s504: determining a second cloud platform from the third-party platform list, and selecting and clicking a platform needing authorization by a user;
s506: jumping to a third party authorization page, inputting a user name and a password of the second cloud platform, and returning after successful verification, wherein the third party authorization page is an authorization page of the second cloud platform;
s508: clicking a third-party authorization page to confirm authorization, and returning an authorization code and a three-party identifier to the first client;
s510: the first client pulls the equipment under the user of the second cloud platform and synchronizes to the first client;
s512: the whole authorization flow is successful.
In an alternative embodiment, fig. 6 is a flowchart of a method for de-authorizing a device according to an embodiment of the present invention, as shown in fig. 6, including the following steps:
s602: the method comprises the steps that a first client side obtains all authorized third-party platform lists through an account system;
s604: the user selects a second cloud platform needing to cancel authorization and clicks a page;
s606: the account system requests the customized cloud gateway to unbind the synchronized device information of the second cloud platform;
s608: the customized cloud gateway calls the UDS service to unbind the synchronized user equipment;
s610: after the operation returns, the account system clears the user authorization relationship;
s612: and finishing the authorization cancellation and removing the account association relation.
In an alternative embodiment, fig. 7 is a flowchart of a method for synchronizing device lists according to an embodiment of the present invention, as shown in fig. 7, including the following steps:
s702: the authorization of the second cloud platform is completed, and the first client pulls the equipment information of the second cloud platform user;
s704: the customized cloud gateway receives the pulling request and acquires an equipment list under the user according to the third-party identification of the second cloud platform user;
s706: the customized cloud gateway calls a cloud access gateway to register and bind the equipment according to the pulled equipment list, and the equipment is accessed to the first client;
s708: after the registration binding is successful, the customized cloud gateway stores the mapping relation between the target equipment and the second cloud platform equipment;
s710: the customized cloud gateway pushes a device relationship according to the first client;
s712: and completing the acquisition of the device list, wherein the target device has already accessed to the second cloud platform.
In an alternative embodiment, fig. 8 is a flowchart of a device read-write control method according to an embodiment of the present invention, as shown in fig. 8, including the following steps:
s802: a first client enters an equipment detail page and clicks the equipment detail page to control operation;
s804: the device detail page issues the control command to the cloud access gateway, and the cloud access gateway selects to directly issue the second cloud platform or issue the control command to the customized cloud gateway according to the service requirement;
s806: the customized cloud gateway receives the issued command, and the issued command needs to be converted into a command supported by the second cloud platform and the target equipment according to the attribute requirements of the second cloud platform and the target equipment;
s808: the customized cloud gateway issues a command to the second cloud platform;
s810: and returning after the control response of the second cloud platform equipment, and ending the control process.
In an alternative embodiment, fig. 9 is a flowchart of a device control response method according to an embodiment of the present invention, as shown in fig. 9, including the following steps:
s902: according to the operation of fig. 8, after the second cloud platform issues the control command to the target device, the target device reports a reward response to the second cloud platform;
s904: the second cloud platform acquires a control response result according to a target device response message subscribed by the service or by dropping a issued control command back;
s906: the second cloud platform controls the response result to be reported to the first cloud platform;
s908: the control response ends.
In an alternative embodiment, fig. 10 is a flowchart of a device attribute reporting method according to an embodiment of the present invention, and as shown in fig. 10, the method includes the following steps:
s1002: the target equipment needs to report the attribute value required by the attribute change to the first cloud platform;
s1004: the customized cloud gateway subscribes the target equipment attribute of the second cloud platform according to the service requirement;
s1006: the customized cloud gateway receives the attribute report of the target equipment, and converts the attribute report into an attribute value which can be identified by the first cloud platform according to the attribute requirements of the second cloud platform and the target equipment;
s1008: and the customized cloud gateway calls the cloud access gateway to report the attributes to the first cloud platform.
According to the method and the device, an authorization request is sent to a second cloud platform through a first client, wherein the first client is registered in the first cloud platform, and the authorization request is used for requesting the second cloud platform to allow the first client to control target equipment registered in the second cloud platform; receiving password information sent by the first client through the second cloud platform in response to the authorization request, wherein the password information is input to the first client through a target object; and determining that the first client is authorized to control the target equipment registered in the second cloud platform under the condition that the password information is verified. That is to say, an authorization request is sent to a second cloud platform by a first client, after a response of the authorization request is obtained, password information sent by the first client is received by the second cloud platform, and when the password information passes verification, it is determined that the first client is authorized to control a target device registered in the second cloud platform. By adopting the technical scheme, the client side can not control the intelligent equipment of different platforms, so that the intelligent equipment of different platforms can not realize the problems of interconnection and intercommunication and the like, and the intelligent equipment of different platforms can be controlled by one client side, so that the interconnection and intercommunication of the intelligent equipment of different platforms can be realized.
In this embodiment, an apparatus authorization device is further provided, and the apparatus authorization device is used to implement the foregoing embodiments and preferred embodiments, and details of which have been already described are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 11 is a block diagram of a configuration of a device authorization apparatus according to another embodiment of the present invention; as shown in fig. 11, includes:
a sending module 110, configured to send, by a first client, an authorization request to a second cloud platform, where the first client is registered in the first cloud platform, and the authorization request is used to request the second cloud platform to allow the first client to control a target device registered in the second cloud platform;
a response module 112, configured to receive, through the second cloud platform, password information sent by the first client in response to the authorization request, where the password information is input to the first client through a target object;
a determining module 114, configured to determine that the first client is authorized to control the target device registered in the second cloud platform if the password information is verified.
According to the method and the device, an authorization request is sent to a second cloud platform through a first client, wherein the first client is registered in the first cloud platform, and the authorization request is used for requesting the second cloud platform to allow the first client to control target equipment registered in the second cloud platform; receiving password information sent by the first client through the second cloud platform in response to the authorization request, wherein the password information is input to the first client through a target object; and determining that the first client is authorized to control the target equipment registered in the second cloud platform under the condition that the password information is verified. That is to say, an authorization request is sent to a second cloud platform by a first client, after a response of the authorization request is obtained, password information sent by the first client is received by the second cloud platform, and when the password information passes verification, it is determined that the first client is authorized to control a target device registered in the second cloud platform. By adopting the technical scheme, the client side can not control the intelligent equipment of different platforms, so that the intelligent equipment of different platforms can not realize the problems of interconnection and intercommunication and the like, and the intelligent equipment of different platforms can be controlled by one client side, so that the interconnection and intercommunication of the intelligent equipment of different platforms can be realized.
Optionally, the sending module 110 is further configured to obtain, by the first client, a list of all other cloud platforms except the first cloud platform from an account system, where all registered cloud platforms are saved in the account system; determining the second cloud platform from the list of other cloud platforms.
It should be noted that all other cloud platform lists except the first cloud platform are obtained from the account system through the first client, where the first client is registered on the first cloud platform, that is, the first client is a client corresponding to the first cloud platform, the other cloud platforms are cloud platforms belonging to a third party, and the other cloud platforms and the first cloud platform belong to different vendors. According to the invention, the intelligent devices of different brands are controlled by one client, so that the interconnection and intercommunication of the intelligent devices of different brands are realized. And determining the second cloud platform from the other cloud platform lists, wherein the second cloud platform is also a cloud platform belonging to a third party. It should be noted that all registered cloud platforms are stored in the account system, wherein the account system is an account under the name of a user, and for reasons of real name, no matter whether one or a plurality of accounts under the name of the user are available, the account system can be regarded as one account. The account under the name of the user stores all cloud platforms registered by the user, and the client can acquire a list of all the cloud platforms registered by the user from the account system, and further determine a second cloud platform corresponding to the target device to be controlled.
Optionally, the response module 112 is further configured to jump to a third party authorization page in the first client after the first client sends the authorization request, where the third party authorization page is used to receive password information input by the target object; receiving, by the second cloud platform, password information input to the third party authorization page.
It should be noted that after the first client sends the authorization request, a third-party authorization page is skipped to in the client, where the third-party authorization page is an authorization page corresponding to the second cloud platform. The target object is also a user, the user opens a third party authorization page at the first client, password information of the second cloud platform is input at the third party authorization page, the third party authorization page sends the received password information to the second cloud platform, the second cloud platform verifies the received password information, and when the password information passes the verification, the first client can be determined to be authorized to control the target equipment registered in the second cloud platform.
Optionally, the determining module 114 is further configured to send a request for canceling authorization to the first cloud platform through the first client; and responding to the request for canceling the authorization, and canceling the binding relationship between the first client and the target equipment registered in the second cloud platform through the first cloud platform.
It should be noted that, after the first client completes control over the target device registered in the second cloud platform, the first cloud platform may release the binding relationship between the first client and the target device registered in the second cloud platform, and cancel the last authorization of the second cloud platform to the first client. Specifically, the method comprises the following steps: the method comprises the steps that all other cloud platform lists are obtained at a first client, a second cloud platform corresponding to target equipment needing to be unbound is selected from the other cloud platform lists, the first client sends an authorization cancelling request to the first cloud platform, and the first cloud platform cancels the binding relation between the first client and the target equipment registered in the second cloud platform by calling a customized cloud gateway. Wherein the IOT custom cloud gateway is a gateway for the first cloud platform.
Optionally, the determining module 114 is further configured to obtain a registered device list in the second cloud platform; and selecting the target equipment from the equipment list for control.
It should be noted that after determining that the first client is authorized to control the target device registered in the second cloud platform, the first client pulls device information under a third-party user, the customized cloud gateway receives the pull request sent by the first client, obtains a device list under the third-party user according to the three-party identifier of the third-party user, calls the cloud access gateway to register and bind the device according to the pulled device list, and accesses the device into the first cloud platform. The customized cloud gateway can acquire an equipment list under the third-party user according to the three-party identifier of the user, and the cloud access gateway is an access gateway between the first cloud platform and the first client. By the technical means, the first client can control the intelligent devices of different brands, and interconnection and intercommunication of the intelligent devices of different brands are realized.
Optionally, the determining module 114 is further configured to send a first control instruction to a first cloud platform through the first client, so that the first cloud platform converts the first control instruction into a second control instruction that can be analyzed by the second cloud platform, and sends the second control instruction to the second cloud platform; and sending the second control instruction to the target equipment through the second cloud platform so as to instruct the target equipment to respond to the second control instruction.
It should be noted that, controlling the target device registered in the second cloud platform by the first client is implemented, specifically: the first client enters the device detail page, clicks the detail page for control operation, and issues the first control instruction to the first cloud platform through the detail page, the first cloud platform calls the customized cloud gateway to convert the first control instruction into a second control instruction supported by the second cloud platform and the target device according to the requirements of the second cloud platform and the target device, the customized cloud gateway sends the second control instruction to the second cloud platform, and the second cloud platform controls the target device to respond.
Optionally, the determining module 114 is further configured to receive a response result transmitted by the target device through the second cloud platform, where the response result is used to indicate a result of the target device responding to the second control instruction; and displaying the response result on the first client.
It should be noted that, after the second control instruction is sent to the target device by the second cloud platform to instruct the target device to respond to the second control instruction, the second cloud platform may obtain a response result of the target device to the second control instruction by subscribing to a service of the target device or by calling back a response result of the target device to the second control instruction, where the response result is reported by the target device. And the second cloud platform sends the response result to the first cloud platform, and the first cloud platform uploads the received response result to the equipment detail page of the first client. Through the technical means, the first client can control intelligent devices of different brands.
In an optional embodiment, the target device needs to upload the attribute of the target device to a custom cloud gateway, and the custom cloud gateway converts the attribute of the target device into an attribute value that can be recognized by the first cloud platform. For example, the device switches of one manufacturer's devices may be represented by off and on, and the device switches of another manufacturer's devices may be represented by close and on, and the attribute values of different devices may need to be converted.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, sending, by a first client, an authorization request to a second cloud platform, where the first client is registered on the first cloud platform, and the authorization request is used to request the second cloud platform to allow the first client to control a target device registered in the second cloud platform;
s2, in response to the authorization request, receiving, by the second cloud platform, password information sent by the first client, where the password information is input to the first client through a target object;
and S3, determining that the first client is authorized to control the target device registered in the second cloud platform under the condition that the password information is verified.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, sending, by a first client, an authorization request to a second cloud platform, where the first client is registered on the first cloud platform, and the authorization request is used to request the second cloud platform to allow the first client to control a target device registered in the second cloud platform;
s2, in response to the authorization request, receiving, by the second cloud platform, password information sent by the first client, where the password information is input to the first client through a target object;
and S3, determining that the first client is authorized to control the target device registered in the second cloud platform under the condition that the password information is verified.
Optionally, in this option, the specific examples in this embodiment may refer to the examples described in the foregoing embodiment and optional implementation, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A device authorization method, comprising:
sending an authorization request to a second cloud platform through a first client, wherein the first client is registered in the first cloud platform, and the authorization request is used for requesting the second cloud platform to allow the first client to control target equipment registered in the second cloud platform;
receiving password information sent by the first client through the second cloud platform in response to the authorization request, wherein the password information is input to the first client through a target object;
and determining that the first client is authorized to control the target equipment registered in the second cloud platform under the condition that the password information is verified.
2. The method of claim 1, wherein prior to sending the authorization request to the second cloud platform via the first client, the method further comprises:
acquiring all other cloud platform lists except the first cloud platform from an account system through the first client, wherein all registered cloud platforms are saved in the account system;
determining the second cloud platform from the list of other cloud platforms.
3. The method of claim 1, wherein receiving, by the second cloud platform, the password information sent by the first client comprises:
after the first client sends the authorization request, jumping to a third party authorization page in the client, wherein the third party authorization page is used for receiving password information input by the target object;
receiving, by the second cloud platform, password information input to the third party authorization page.
4. The method of claim 1, wherein after determining that the first client is authorized to control the target device registered in the second cloud platform, the method further comprises:
sending an authorization canceling request to a first cloud platform through a first client;
and responding to the request for canceling the authorization, and canceling the binding relationship between the first client and the target equipment registered in the second cloud platform through the first cloud platform.
5. The method of claim 1, wherein after determining that the first client is authorized to control the target device registered in the second cloud platform, the method further comprises:
acquiring a registered equipment list in the second cloud platform;
and selecting the target equipment from the equipment list for control.
6. The method of claim 1, wherein after determining that the first client is authorized to control the target device registered in the second cloud platform, the method comprises:
sending a first control instruction to a first cloud platform through the first client, so that the first cloud platform converts the first control instruction into a second control instruction which can be analyzed by a second cloud platform, and sends the second control instruction to the second cloud platform;
and sending the second control instruction to the target equipment through the second cloud platform so as to instruct the target equipment to respond to the second control instruction.
7. The method of claim 6, wherein after sending the second control instruction to the target device via the second cloud platform to instruct the target device to respond to the second control instruction, the method further comprises:
receiving a response result transmitted by the target device through the second cloud platform, wherein the response result is used for indicating a result of the target device responding to the second control instruction;
and displaying the response result on the first client.
8. An apparatus authorization device, comprising:
the system comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending an authorization request to a second cloud platform through a first client, the first client is registered in the first cloud platform, and the authorization request is used for requesting the second cloud platform to allow the first client to control target equipment registered in the second cloud platform;
a response module, configured to receive, through the second cloud platform, password information sent by the first client in response to the authorization request, where the password information is input to the first client through a target object;
and the determining module is used for determining that the first client is authorized to control the target equipment registered in the second cloud platform under the condition that the password information passes the verification.
9. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any one of claims 1 to 6.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 6 by means of the computer program.
CN202011589747.7A 2020-12-28 2020-12-28 Equipment authorization method and device, storage medium and electronic device Pending CN112600856A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011589747.7A CN112600856A (en) 2020-12-28 2020-12-28 Equipment authorization method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011589747.7A CN112600856A (en) 2020-12-28 2020-12-28 Equipment authorization method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN112600856A true CN112600856A (en) 2021-04-02

Family

ID=75203383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011589747.7A Pending CN112600856A (en) 2020-12-28 2020-12-28 Equipment authorization method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112600856A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113691377A (en) * 2021-08-20 2021-11-23 珠海格力电器股份有限公司 Method and device for processing equipment list
CN113779516A (en) * 2021-06-29 2021-12-10 青岛海尔科技有限公司 Equipment control method and device, storage medium and electronic device
CN114137843A (en) * 2021-11-15 2022-03-04 青岛海尔科技有限公司 Equipment control method, device, terminal, server and storage medium
CN114338766A (en) * 2021-12-22 2022-04-12 珠海格力电器股份有限公司 Cross-platform equipment processing method and interconnection system
CN114499964A (en) * 2021-12-24 2022-05-13 青岛海尔科技有限公司 Device control method and apparatus, storage medium, and electronic apparatus
CN114500617A (en) * 2021-12-24 2022-05-13 青岛海尔科技有限公司 Internet equipment control method and device, storage medium and electronic equipment
CN115103033A (en) * 2022-06-21 2022-09-23 青岛海尔科技有限公司 Device control method, device, storage medium, and electronic apparatus
CN115167163A (en) * 2022-06-28 2022-10-11 青岛海尔科技有限公司 Scene execution method and device, storage medium and electronic device
WO2023015574A1 (en) * 2021-08-13 2023-02-16 Oppo广东移动通信有限公司 Method and apparatus for account association, and computer device and storage medium
WO2023030014A1 (en) * 2021-08-31 2023-03-09 青岛海尔科技有限公司 Method and system for binding smart device, and related device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105099704A (en) * 2015-08-13 2015-11-25 上海博路信息技术有限公司 Biometric identification-based OAuth service
WO2016145797A1 (en) * 2015-07-20 2016-09-22 中兴通讯股份有限公司 Smart home control method, device and system
CN106375442A (en) * 2016-08-31 2017-02-01 海尔优家智能科技(北京)有限公司 Cross-platform device information management method and apparatus
CN107104991A (en) * 2016-02-19 2017-08-29 中兴通讯股份有限公司 Control method, device and the mobile terminal of smart machine
CN109688150A (en) * 2018-12-29 2019-04-26 奥克斯空调股份有限公司 A kind of multi-platform account interoperability methods and device
CN110830463A (en) * 2019-10-30 2020-02-21 腾讯科技(深圳)有限公司 Third party authorized login method and device
CN110932953A (en) * 2019-12-24 2020-03-27 苏州思必驰信息科技有限公司 Intelligent household control method and device, computer equipment and storage medium
CN111737681A (en) * 2020-06-08 2020-10-02 海尔优家智能科技(北京)有限公司 Resource acquisition method and device, storage medium and electronic device
CN111966058A (en) * 2020-07-20 2020-11-20 四川虹美智能科技有限公司 Control method, device and system of intelligent equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016145797A1 (en) * 2015-07-20 2016-09-22 中兴通讯股份有限公司 Smart home control method, device and system
CN105099704A (en) * 2015-08-13 2015-11-25 上海博路信息技术有限公司 Biometric identification-based OAuth service
CN107104991A (en) * 2016-02-19 2017-08-29 中兴通讯股份有限公司 Control method, device and the mobile terminal of smart machine
CN106375442A (en) * 2016-08-31 2017-02-01 海尔优家智能科技(北京)有限公司 Cross-platform device information management method and apparatus
CN109688150A (en) * 2018-12-29 2019-04-26 奥克斯空调股份有限公司 A kind of multi-platform account interoperability methods and device
CN110830463A (en) * 2019-10-30 2020-02-21 腾讯科技(深圳)有限公司 Third party authorized login method and device
CN110932953A (en) * 2019-12-24 2020-03-27 苏州思必驰信息科技有限公司 Intelligent household control method and device, computer equipment and storage medium
CN111737681A (en) * 2020-06-08 2020-10-02 海尔优家智能科技(北京)有限公司 Resource acquisition method and device, storage medium and electronic device
CN111966058A (en) * 2020-07-20 2020-11-20 四川虹美智能科技有限公司 Control method, device and system of intelligent equipment

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113779516A (en) * 2021-06-29 2021-12-10 青岛海尔科技有限公司 Equipment control method and device, storage medium and electronic device
CN113779516B (en) * 2021-06-29 2023-08-18 青岛海尔科技有限公司 Equipment control method and device, storage medium and electronic device
WO2023015574A1 (en) * 2021-08-13 2023-02-16 Oppo广东移动通信有限公司 Method and apparatus for account association, and computer device and storage medium
CN113691377A (en) * 2021-08-20 2021-11-23 珠海格力电器股份有限公司 Method and device for processing equipment list
CN113691377B (en) * 2021-08-20 2023-04-11 珠海格力电器股份有限公司 Method and device for processing equipment list
WO2023030014A1 (en) * 2021-08-31 2023-03-09 青岛海尔科技有限公司 Method and system for binding smart device, and related device
CN114137843A (en) * 2021-11-15 2022-03-04 青岛海尔科技有限公司 Equipment control method, device, terminal, server and storage medium
CN114338766A (en) * 2021-12-22 2022-04-12 珠海格力电器股份有限公司 Cross-platform equipment processing method and interconnection system
CN114500617A (en) * 2021-12-24 2022-05-13 青岛海尔科技有限公司 Internet equipment control method and device, storage medium and electronic equipment
CN114499964A (en) * 2021-12-24 2022-05-13 青岛海尔科技有限公司 Device control method and apparatus, storage medium, and electronic apparatus
CN114500617B (en) * 2021-12-24 2023-11-28 青岛海尔科技有限公司 Internet equipment control method and device, storage medium and electronic equipment
CN114499964B (en) * 2021-12-24 2023-12-19 青岛海尔科技有限公司 Equipment control method and device, storage medium and electronic device
CN115103033A (en) * 2022-06-21 2022-09-23 青岛海尔科技有限公司 Device control method, device, storage medium, and electronic apparatus
CN115167163A (en) * 2022-06-28 2022-10-11 青岛海尔科技有限公司 Scene execution method and device, storage medium and electronic device
CN115167163B (en) * 2022-06-28 2024-07-19 青岛海尔科技有限公司 Scene execution method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN112600856A (en) Equipment authorization method and device, storage medium and electronic device
US20240086237A1 (en) Triggered queue transformation
EP3596989B1 (en) Method, non-transitory computer-readable storage medium and apparatus for assisted automatic network service request and delivery in a network environment
CN109995713A (en) Service processing method and relevant device in a kind of micro services frame
CN110072273B (en) Communication method, device, entity and storage medium
CN111885115B (en) Device binding changing method and device
US11595323B2 (en) Enhanced real-time linking methods and systems
US20230123924A1 (en) Partial uses of clustered access rights
CN111885594B (en) Equipment binding method and device
US9798892B2 (en) Prioritized link establishment for data transfer using task scheduling
CN107566429A (en) Base station, the response method of access request, apparatus and system
KR101933466B1 (en) Method and apparatus for providing service based component using personal network
US11356434B2 (en) Technical layer for portable electronic assistant
US20120135755A1 (en) Apparatus and method for providing contents services
CN112532711A (en) Edge computing application deployment method, terminal, edge computing node and storage medium
US11841968B2 (en) Method of live event ticketing with prioritized link for seating rearrangement
CN110708694A (en) Method, system, storage medium and electronic device for realizing simultaneous online public and private networks
CN113068176B (en) Method and device for providing data analysis result
CN107291744A (en) It is determined that and with the method and device of the relationship between application program
CN113285810A (en) Target equipment login method and device, storage medium and electronic device
CN113438314A (en) Equipment control method and device, storage medium and electronic device
CN116760822A (en) Method, system and device for transmitting files of Internet of things equipment
CN109617713A (en) The implementation method and server of resource dissemination
CN112671572B (en) Method and device for intelligent equipment network distribution, storage medium and electronic device
US20120296989A1 (en) File transmission management system and file transmission management method for supporting file transmission in mobile messaging service

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210402

RJ01 Rejection of invention patent application after publication