CN113438314B - Equipment control method and device, storage medium and electronic device - Google Patents
Equipment control method and device, storage medium and electronic device Download PDFInfo
- Publication number
- CN113438314B CN113438314B CN202110729301.8A CN202110729301A CN113438314B CN 113438314 B CN113438314 B CN 113438314B CN 202110729301 A CN202110729301 A CN 202110729301A CN 113438314 B CN113438314 B CN 113438314B
- Authority
- CN
- China
- Prior art keywords
- equipment
- cloud server
- information
- cloud
- app
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000013475 authorization Methods 0.000 claims abstract description 62
- 238000004590 computer program Methods 0.000 claims description 20
- 230000002457 bidirectional effect Effects 0.000 claims description 12
- 238000004422 calculation algorithm Methods 0.000 claims description 8
- 238000005516 engineering process Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 6
- 230000004913 activation Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 102100038359 Xaa-Pro aminopeptidase 3 Human genes 0.000 description 1
- 101710081949 Xaa-Pro aminopeptidase 3 Proteins 0.000 description 1
- 230000003213 activating effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04L67/125—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0869—Network architectures or network communication protocols for network security for authentication of entities for achieving mutual authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
- H04L63/101—Access control lists [ACL]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- General Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Computer And Data Communications (AREA)
Abstract
The application provides a device control method, a device, a storage medium and an electronic device, wherein the method comprises the following steps: the method comprises the steps that a first cloud server receives access cloud information of a second cloud server corresponding to a second manufacturer bound with target equipment, which is sent by a first APP and issued by a first manufacturer, equipment cloud information of a third cloud server corresponding to a third manufacturer to which the target equipment belongs, and equipment information of the target equipment; acquiring device rights and device credentials of the target device according to the access cloud information and the device cloud information; and sending authorization information to the first APP according to the equipment authority and the equipment certificate, wherein the authorization information carries the equipment information, and the authorization information is used for indicating the first APP to control the target equipment according to the equipment information, so that the problem that cross-manufacturer control equipment cannot be realized in the related technology can be solved, and the cross-manufacturer equipment control is realized through authority sharing among different manufacturers.
Description
Technical Field
The present application relates to the field of communications, and in particular, to a device control method, a device, a storage medium, and an electronic apparatus.
Background
In the prior art, the cloud server is used to control the device, and in general, only the device application APP (Application) and the cloud server belong to the same manufacturer, but the device cannot be controlled across manufacturers.
Aiming at the problem that cross-manufacturer control equipment cannot be realized in the related technology, no solution has been proposed yet.
Disclosure of Invention
The embodiment of the application provides a device control method, a device, a storage medium and an electronic device, which are used for at least solving the problem that cross-manufacturer control of devices cannot be realized in the related technology.
According to an embodiment of the present application, there is provided an apparatus control method including:
the method comprises the steps that a first cloud server receives access cloud information of a second cloud server corresponding to a second manufacturer bound with target equipment, which is issued by a first APP by a first manufacturer, equipment cloud information of a third cloud server corresponding to a third manufacturer to which the target equipment belongs, and equipment information of the target equipment, wherein the target equipment is bound with the second cloud server;
the first cloud server acquires the device authority and the device credential of the target device according to the access cloud information and the device cloud information;
the first cloud server sends authorization information to the first APP according to the equipment authority and the equipment certificate, wherein the authorization information carries the equipment information, and the authorization information is used for indicating the first APP to control the target equipment according to the equipment information.
Optionally, the obtaining, by the first cloud server, the device authority and the device credential of the target device according to the access cloud information and the device cloud information includes:
the first cloud server establishes a first connection with a second APP corresponding to the second cloud server through the access cloud information, and acquires the equipment authority from the second APP through the established first connection;
the first cloud server establishes a second connection with the third cloud server through the equipment cloud information, and obtains the equipment certificate from the third cloud server according to the established second connection, wherein the equipment certificate is determined by the third cloud server according to a random value generated by a preset algorithm and the equipment information.
Optionally, the first cloud server acquires the device rights from the second APP through the established first connection, including:
the first cloud server performs open authorization oauth2.0 through the first APP and the second APP corresponding to the second cloud server;
and the first cloud server acquires the equipment authority after the opening authorization oauth2.0 is completed.
Optionally, the first cloud server obtains the device credential from the third cloud server according to the established second connection, including:
the first cloud server and the third cloud server perform bidirectional authentication;
and after the bidirectional authentication is successful, the first cloud server receives the equipment certificate sent by the third cloud server according to the established second connection.
According to another embodiment of the present application, there is also provided an apparatus control method including:
the method comprises the steps that a first APP sends access cloud information of a second cloud server corresponding to a second manufacturer bound with target equipment, equipment cloud information of a third cloud server corresponding to a third manufacturer to which the target equipment belongs and equipment information of the target equipment to a first cloud server corresponding to a first manufacturer, wherein the target equipment and the second cloud server are bound;
the first APP receives authorization information sent by the first cloud server according to the equipment authority and the equipment credential of the target equipment, wherein the equipment authority and the equipment credential are acquired by the first cloud server according to the access cloud information and the equipment cloud information;
the first APP controls the target device according to the device information based on the authorization information.
Optionally, before the first APP sends, to the first cloud server corresponding to the first vendor, access cloud information of the second cloud server corresponding to the second vendor to which the target device is bound, device cloud information of the third cloud server corresponding to the third vendor to which the target device belongs, and device information of the target device, the method further includes:
the first APP determines that the state of the target device is a bound state.
Optionally, the controlling, by the first APP, the target device according to the device information based on the authorization information includes:
the first APP activates an access control list (Access Control List, which is called ACL for short) through a local interface of the target device based on the authorization information, wherein the ACL is issued to the target device by the second cloud server;
after the first APP is successfully activated, the control authority of the target equipment is obtained according to the equipment information;
the first APP controls the target device based on the control authority.
According to another embodiment of the present application, there is also provided an apparatus control device applied to a first cloud server, including:
the device comprises a receiving module, a first application and a second application, wherein the receiving module is used for receiving access cloud information of a second cloud server corresponding to a second manufacturer bound with target equipment and issued by a first manufacturer, equipment cloud information of a third cloud server corresponding to a third manufacturer to which the target equipment belongs and equipment information of the target equipment, wherein the target equipment is already in binding connection with the second cloud server;
the acquisition module is used for acquiring the equipment authority and the equipment certificate of the target equipment according to the access cloud information and the equipment cloud information;
the first sending module is used for sending authorization information to the first APP according to the equipment authority and the equipment certificate, wherein the authorization information carries the equipment information, and the authorization information is used for indicating the first APP to control the target equipment according to the equipment information.
Optionally, the acquiring module includes:
the first acquisition sub-module is used for establishing a first connection with a second APP corresponding to the second cloud server through the access cloud information, and acquiring the equipment authority from the second APP through the established first connection;
the second obtaining sub-module is used for establishing second connection with the third cloud server through the equipment cloud information, and obtaining the equipment certificate from the third cloud server according to the established second connection, wherein the equipment certificate is determined by the third cloud server according to a random value generated by a preset algorithm and the equipment information.
Optionally, the first obtaining sub-module is further configured to
Performing open authorization oauth2.0 through the first APP and the second APP corresponding to the second cloud server;
after the open authorization oauth2.0 is completed, the device rights are acquired.
Optionally, the second obtaining sub-module is further configured to
Performing bidirectional authentication with the third cloud server;
and after the bidirectional authentication is successful, receiving the equipment certificate sent by the third cloud server according to the established second connection.
According to another embodiment of the present application, there is also provided an apparatus control device applied to a first APP, including:
the second sending module is used for sending access cloud information of a second cloud server corresponding to a second manufacturer bound with target equipment, equipment cloud information of a third cloud server corresponding to a third manufacturer to which the target equipment belongs and equipment information of the target equipment to a first cloud server corresponding to the first manufacturer, wherein the target equipment is already in bound connection with the second cloud server;
the receiving module is used for receiving the authorization information sent by the first cloud server according to the equipment authority and the equipment credential of the target equipment, wherein the equipment authority and the equipment credential are acquired by the first cloud server according to the access cloud information and the equipment cloud information;
and the control module is used for controlling the target equipment according to the equipment information based on the authorization information.
Optionally, the apparatus further comprises:
and the determining module is used for determining the state of the target equipment to be the bound state.
Optionally, the control module includes:
a first control sub-module, configured to activate an access control list ACL through a local interface of the target device based on the authorization information, where the ACL is issued to the target device by the second cloud server;
the third acquisition sub-module is used for acquiring the control authority of the target equipment according to the equipment information after the activation is successful;
and the control sub-module is used for controlling the target equipment based on the control authority.
According to a further embodiment of the application, there is also provided a computer-readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the application, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the method and the device, the access cloud information of the second cloud server corresponding to the second manufacturer bound by the target device and sent by the first APP issued by the first manufacturer, the device cloud information of the third cloud server corresponding to the third manufacturer to which the target device belongs and the device information of the target device are received; acquiring device rights and device credentials of the target device according to the access cloud information and the device cloud information; and sending authorization information to the first APP according to the equipment authority and the equipment certificate, wherein the authorization information is used for indicating the first APP to control the target equipment according to the equipment information, so that the problem that equipment cross-manufacturer control cannot be realized in the related technology can be solved, and equipment cross-manufacturer control is realized through authority sharing among different manufacturers.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a mobile terminal of a device control method of an embodiment of the present application;
FIG. 2 is a flow chart diagram of a method of device control according to an embodiment of the present application;
FIG. 3 is a second flowchart of a device control method according to an embodiment of the present application;
FIG. 4 is a flow chart of multi-platform control according to an embodiment of the application;
FIG. 5 is a block diagram I of a device control apparatus according to an embodiment of the application;
fig. 6 is a block diagram two of a device control apparatus according to an embodiment of the present application.
Detailed Description
The application will be described in detail hereinafter with reference to the drawings in conjunction with embodiments. It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
Example 1
The method according to the first embodiment of the present application may be implemented in a mobile terminal, a computer terminal or a similar computing device. Taking a mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal according to the device control method of the embodiment of the present application, as shown in fig. 1, the mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, and optionally, the mobile terminal may further include a transmission device 106 for a communication function and an input/output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a device control method in an embodiment of the present application, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, to implement the above-mentioned method. 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 remotely located relative to the processor 102, which may be connected to the mobile terminal via 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 means 106 is arranged to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network INterface CoNtroller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio FrequeNcy (RF) module, which is configured to communicate with the internet wirelessly.
Based on the above mobile terminal or network architecture, in this embodiment, a device control method is provided, fig. 2 is a flowchart of a device control method according to an embodiment of the present application, as shown in fig. 2, applied to a first cloud server, where the flowchart includes the following steps:
step S202, receiving access cloud information of a second cloud server corresponding to a second manufacturer bound to target equipment, which is issued by a first APP by a first manufacturer, equipment cloud information of a third cloud server corresponding to a third manufacturer to which the target equipment belongs, and equipment information of the target equipment, wherein the target equipment is already in bound connection with the second cloud server;
in the embodiment of the present application, the first manufacturer, the second manufacturer, and the third manufacturer are different manufacturers.
In the step S202, the second cloud server refers to a cloud server to which the target device is connected, that is, a bound cloud server; the third cloud server is a cloud server to which the target device belongs, and in general, the second cloud server and the target device belong to the same manufacturer. The first vendor, the second vendor, and the third vendor are different vendors.
Step S204, obtaining the device authority and the device certificate of the target device according to the access cloud information and the device cloud information;
in the step S204, the device authority may specifically be a Token or the like.
Step S206, sending authorization information to the first APP according to the device authority and the device credential, where the authorization information carries the device information, and the authorization information is used to instruct the first APP to control the target device according to the device information.
Through the steps S202 to S206, the problem that the cross-vendor control device cannot be realized in the related art can be solved, and the cross-vendor device control is realized through rights sharing among different vendors.
In the embodiment of the present application, the step S204 may specifically include:
step S2041, a first cloud server establishes a first connection with a second APP corresponding to the second cloud server through the access cloud information, and acquires the device authority from the second APP through the established first connection;
further, in the above step S2041, the obtaining the device right from the second APP through the established first connection may specifically include: the first cloud server performs open authorization oauth2.0 through the first APP and the second APP corresponding to the second cloud server; after the open authorization oauth2.0 is completed, the device rights are acquired.
In step S2042, the first cloud server establishes a second connection with the third cloud server through the device cloud information, and obtains the device credential from the third cloud server according to the established second connection, where the device credential is determined by the third cloud server according to a random value generated by a preset algorithm and the device information.
Further, in the step S2041, the acquiring the device credential from the third cloud server according to the established second connection may specifically include: the first cloud server and the third cloud server perform bidirectional authentication; and after the bidirectional authentication is successful, receiving the equipment certificate sent by the third cloud server according to the established second connection.
Example 2
According to another embodiment of the present application, there is further provided a device control method, and fig. 3 is a second flowchart of the device control method according to an embodiment of the present application, as shown in fig. 3, applied to a first APP corresponding to a first cloud server, where the flowchart includes the following steps:
step S302, sending access cloud information of a second cloud server corresponding to a second manufacturer bound with a target device, device cloud information of a third cloud server corresponding to a third manufacturer to which the target device belongs and device information of the target device to a first cloud server corresponding to the first manufacturer, wherein the target device has established binding connection with the second cloud server;
step S304, receiving authorization information sent by the first cloud server according to the device authority and the device credential of the target device, wherein the device authority and the device credential are acquired by the first cloud server according to the access cloud information and the device cloud information;
step S306, controlling the target device according to the device information based on the authorization information.
Through the steps S302 to S306, the problem that the cross-manufacturer control device cannot be realized in the related art can be solved, and the cross-manufacturer device control is realized through rights sharing among different manufacturers.
In an alternative embodiment, the first APP determines that the state of the target device is a bound state before step S302.
In the embodiment of the present application, the step S306 may specifically include: the first APP activates an Access Control List (ACL) through a local interface of the target equipment based on the authorization information, wherein the ACL is issued to the target equipment by the second cloud server; after the activation is successful, the control authority of the target equipment is obtained according to the equipment information; and controlling the target equipment based on the control authority.
The above embodiments are described in detail below with specific examples.
FIG. 4 is a flow chart of multi-platform control according to an embodiment of the application, as shown in FIG. 4, including:
the device D2 (corresponding to the target device) of the second manufacturer is accessed to the APP (i.e., the first APP) of the first manufacturer, the unbound device is found through the first APP, the address (i.e., the device cloud information) of the cloud server (i.e., the first cloud server) corresponding to the first manufacturer, the device ID and the random value are returned to the D2, and the D2 performs device bidirectional authentication with the first APP and the first cloud server, i.e., accesses to the first cloud server according to the OLA standard, wherein the device bidirectional authentication process is a procedure defined by the OLA standard and is not described herein.
After the access is successful, the APP3 (third APP) control D2 of the third manufacturer specifically comprises:
in the device discovery process, the third APP discovers that D2 is a bound device and obtains a bound cloud address, device cloud information, and a random value.
The third APP sends the binding cloud address, the device cloud information, and the random value to a cloud server of a third vendor (i.e., a third cloud server).
And the third cloud server and the first APP perform OAuth2.0 user input of the account password of the first APP to obtain equipment permission.
After success the first APP updates the access control list (Access Control Lists, abbreviated ACL) of D2.
In the oauth2.0 process of the third cloud server with the first APP, authentication can also be performed with a second cloud server of a second manufacturer, and after authentication is successful, equipment certification of the second cloud server through random value calculation is obtained.
The third cloud server issues the device rights (specifically, token) obtained above to a third APP;
and activating the first cloud server by the third APP through a local interface with the D2 to issue the ACL of the D2, and after success, obtaining the control authority of the D2 by the third APP.
According to the embodiment of the application, the rights and interests of the access platform factory and the equipment binding user are ensured through OAuth2.0; by authenticating with the equipment manufacturer again, the benefit of the equipment manufacturer is ensured; the ACL extension and activation are used for facilitating the sharing of the subsequent rights, and the dual activation strategy is safer to use.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
Example 3
In this embodiment, a device control apparatus is further provided, and this apparatus is used to implement the foregoing embodiments and preferred embodiments, and will not be described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 5 is a block diagram of a device control apparatus according to an embodiment of the present application, as shown in fig. 5, applied to a first cloud server, including:
the receiving module 52 is configured to receive access cloud information of a second cloud server corresponding to a second vendor to which a target device is bound, which is sent by a first APP and issued by a first vendor, device cloud information of a third cloud server corresponding to a third vendor to which the target device belongs, and device information of the target device, where the target device has established a binding connection with the second cloud server;
an obtaining module 54, configured to obtain device rights and device credentials of the target device according to the access cloud information and the device cloud information;
the first sending module 56 is configured to send authorization information to the first APP according to the device authority and the device credential, where the authorization information carries the device information, and the authorization information is used to instruct the first APP to control the target device according to the device information.
Optionally, the obtaining module 54 includes:
the first acquisition sub-module is used for establishing a first connection with a second APP corresponding to the second cloud server through the access cloud information, and acquiring the equipment authority from the second APP through the established first connection;
the second obtaining sub-module is used for establishing second connection with the third cloud server through the equipment cloud information, and obtaining the equipment certificate from the third cloud server according to the established second connection, wherein the equipment certificate is determined by the third cloud server according to a random value generated by a preset algorithm and the equipment information.
Optionally, the first obtaining sub-module is further configured to
Performing open authorization oauth2.0 through the first APP and the second APP corresponding to the second cloud server;
after the open authorization oauth2.0 is completed, the device rights are acquired.
Optionally, the second obtaining sub-module is further configured to
Performing bidirectional authentication with the third cloud server;
and after the bidirectional authentication is successful, receiving the equipment certificate sent by the third cloud server according to the established second connection.
Example 4
In this embodiment, a device control apparatus is further provided, and this apparatus is used to implement the foregoing embodiments and preferred embodiments, and will not be described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 6 is a block diagram two of a device control apparatus according to an embodiment of the present application, as shown in fig. 6, applied to a first APP, including:
the second sending module 62 is configured to send, to a first cloud server corresponding to a first vendor, access cloud information of a second cloud server corresponding to a second vendor to which a target device is bound, device cloud information of a third cloud server corresponding to a third vendor to which the target device belongs, and device information of the target device, where the target device has established a binding connection with the second cloud server;
the receiving module 64 is configured to receive authorization information sent by the first cloud server according to the device rights and the device credentials of the target device, where the device rights and the device credentials are acquired by the first cloud server according to the access cloud information and the device cloud information;
and a control module 66, configured to control the target device according to the device information based on the authorization information.
Optionally, the apparatus further comprises:
and the determining module is used for determining the state of the target equipment to be the bound state.
Optionally, the control module 66 includes:
a first control sub-module, configured to activate an access control list ACL through a local interface of the target device based on the authorization information, where the ACL is issued to the target device by the second cloud server;
the third acquisition sub-module is used for acquiring the control authority of the target equipment according to the equipment information after the activation is successful;
and the control sub-module is used for controlling the target equipment based on the control authority.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
Example 3
An embodiment of the application also provides a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s11, receiving access cloud information of a second cloud server corresponding to a second manufacturer bound with target equipment, which is issued by a first APP by a first manufacturer, equipment cloud information of a third cloud server corresponding to a third manufacturer to which the target equipment belongs, and equipment information of the target equipment, wherein the target equipment is already in bound connection with the second cloud server;
s12, acquiring device rights and device credentials of the target device according to the access cloud information and the device cloud information;
s13, sending authorization information to the first APP according to the equipment authority and the equipment certificate, wherein the authorization information carries the equipment information, and the authorization information is used for indicating the first APP to control the target equipment according to the equipment information.
Alternatively, in the present embodiment, the above-described storage medium may be further configured to store a computer program for performing the steps of:
s21, sending access cloud information of a second cloud server corresponding to a second manufacturer bound with target equipment, equipment cloud information of a third cloud server corresponding to a third manufacturer to which the target equipment belongs and equipment information of the target equipment to a first cloud server corresponding to the first manufacturer, wherein the target equipment and the second cloud server are bound;
s22, receiving authorization information sent by the first cloud server according to the equipment authority and the equipment credential of the target equipment, wherein the equipment authority and the equipment credential are acquired by the first cloud server according to the access cloud information and the equipment cloud information;
s23, controlling the target equipment according to the equipment information based on the authorization information.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-ONly Memory (ROM), a random access Memory (RaNdom Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
Example 4
An embodiment of the application also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s11, receiving access cloud information of a second cloud server corresponding to a second manufacturer bound with target equipment, which is issued by a first APP by a first manufacturer, equipment cloud information of a third cloud server corresponding to a third manufacturer to which the target equipment belongs, and equipment information of the target equipment, wherein the target equipment is already in bound connection with the second cloud server;
s12, acquiring device rights and device credentials of the target device according to the access cloud information and the device cloud information;
s13, sending authorization information to the first APP according to the equipment authority and the equipment certificate, wherein the authorization information carries the equipment information, and the authorization information is used for indicating the first APP to control the target equipment according to the equipment information.
Optionally, in this embodiment, the above processor may be further configured to execute the following steps by a computer program:
s21, sending access cloud information of a second cloud server corresponding to a second manufacturer bound with target equipment, equipment cloud information of a third cloud server corresponding to a third manufacturer to which the target equipment belongs and equipment information of the target equipment to a first cloud server corresponding to the first manufacturer, wherein the target equipment and the second cloud server are bound;
s22, receiving authorization information sent by the first cloud server according to the equipment authority and the equipment credential of the target equipment, wherein the equipment authority and the equipment credential are acquired by the first cloud server according to the access cloud information and the equipment cloud information;
s23, controlling the target equipment according to the equipment information based on the authorization information.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present application should be included in the protection scope of the present application.
Claims (10)
1. A device control method, characterized by comprising:
the method comprises the steps that a first cloud server receives access cloud information of a second cloud server corresponding to a second manufacturer bound with target equipment, which is issued by a first APP by a first manufacturer, equipment cloud information of a third cloud server corresponding to a third manufacturer to which the target equipment belongs, and equipment information of the target equipment, wherein the target equipment is bound with the second cloud server;
the first cloud server acquires the device authority and the device credential of the target device according to the access cloud information and the device cloud information;
the first cloud server sends authorization information to the first APP according to the equipment authority and the equipment credential, wherein the authorization information carries the equipment information, and the authorization information is used for indicating the first APP to control the target equipment according to the equipment information;
the first cloud server obtains the device authority and the device credential of the target device according to the access cloud information and the device cloud information, including:
the first cloud server establishes a first connection with a second APP corresponding to the second cloud server through the access cloud information, and acquires the equipment authority from the second APP through the established first connection;
the first cloud server establishes a second connection with the third cloud server through the equipment cloud information, and obtains the equipment certificate from the third cloud server according to the established second connection, wherein the equipment certificate is determined by the third cloud server according to a random value generated by a preset algorithm and the equipment information.
2. The method of claim 1, wherein the first cloud server obtaining the device rights from the second APP through the established first connection comprises:
the first cloud server performs open authorization oauth2.0 through the first APP and the second APP corresponding to the second cloud server;
and the first cloud server acquires the equipment authority after the opening authorization oauth2.0 is completed.
3. The method of claim 1, wherein the first cloud server obtaining the device credential from the third cloud server according to the established second connection comprises:
the first cloud server and the third cloud server perform bidirectional authentication;
and after the bidirectional authentication is successful, the first cloud server receives the equipment certificate sent by the third cloud server according to the established second connection.
4. A device control method, characterized by comprising:
the method comprises the steps that a first APP sends access cloud information of a second cloud server corresponding to a second manufacturer bound with target equipment, equipment cloud information of a third cloud server corresponding to a third manufacturer to which the target equipment belongs and equipment information of the target equipment to a first cloud server corresponding to a first manufacturer, wherein the target equipment and the second cloud server are bound;
the first APP receives authorization information sent by the first cloud server according to the equipment authority and the equipment credential of the target equipment, wherein the equipment authority and the equipment credential are acquired by the first cloud server according to the access cloud information and the equipment cloud information; the equipment authority is that the first cloud server establishes a first connection with a second APP corresponding to the second cloud server through the access cloud information, and the first connection is obtained from the second APP; the device credential is obtained from the third cloud server according to the established second connection, wherein the device credential is determined by the third cloud server according to a random value generated by a preset algorithm and the device information;
the first APP controls the target device according to the device information based on the authorization information.
5. The method of claim 4, wherein before the first APP sends the access cloud information of the second cloud server corresponding to the second vendor to which the target device is bound, the device cloud information of the third cloud server corresponding to the third vendor to which the target device belongs, and the device information of the target device to the first cloud server corresponding to the first vendor, the method further comprises:
the first APP determines that the state of the target device is a bound state.
6. The method of claim 4, wherein the first APP controls the target device according to the device information based on the authorization information, comprising:
the first APP activates an Access Control List (ACL) through a local interface of the target device based on the authorization information, wherein the ACL is issued to the target device by the second cloud server;
after the first APP is successfully activated, the control authority of the target equipment is obtained according to the equipment information;
the first APP controls the target device based on the control authority.
7. A device control apparatus, characterized by being applied to a first cloud server, comprising:
the device comprises a receiving module, a first application and a second application, wherein the receiving module is used for receiving access cloud information of a second cloud server corresponding to a second manufacturer bound with target equipment and issued by a first manufacturer, equipment cloud information of a third cloud server corresponding to a third manufacturer to which the target equipment belongs and equipment information of the target equipment, wherein the target equipment is already in binding connection with the second cloud server;
the acquisition module is used for acquiring the device authority and the device credential of the target device according to the access cloud information and the device cloud information, and comprises the following steps: the first cloud server establishes a first connection with a second APP corresponding to the second cloud server through the access cloud information, and acquires the equipment authority from the second APP through the established first connection; the first cloud server establishes a second connection with the third cloud server through the equipment cloud information, and acquires the equipment certificate from the third cloud server according to the established second connection, wherein the equipment certificate is determined by the third cloud server according to a random value generated by a preset algorithm and the equipment information;
the first sending module is used for sending authorization information to the first APP according to the equipment authority and the equipment certificate, wherein the authorization information carries the equipment information, and the authorization information is used for indicating the first APP to control the target equipment according to the equipment information.
8. A device control apparatus, characterized by being applied to a first APP, comprising:
the second sending module is used for sending access cloud information of a second cloud server corresponding to a second manufacturer bound with target equipment, equipment cloud information of a third cloud server corresponding to a third manufacturer to which the target equipment belongs and equipment information of the target equipment to a first cloud server corresponding to the first manufacturer, wherein the target equipment is already in bound connection with the second cloud server;
the receiving module is used for receiving the authorization information sent by the first cloud server according to the equipment authority and the equipment credential of the target equipment, wherein the equipment authority and the equipment credential are acquired by the first cloud server according to the access cloud information and the equipment cloud information; the equipment authority is that the first cloud server establishes a first connection with a second APP corresponding to the second cloud server through the access cloud information, and the first connection is obtained from the second APP; the device credential is obtained from the third cloud server according to the established second connection, wherein the device credential is determined by the third cloud server according to a random value generated by a preset algorithm and the device information
And the control module is used for controlling the target equipment according to the equipment information based on the authorization information.
9. A computer-readable storage medium, characterized in that the storage medium has stored therein a computer program, wherein the computer program is arranged to execute the method of any of the claims 1 to 3, 4 to 6 when run.
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 run the computer program to perform the method of any of the claims 1 to 3, 4 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110729301.8A CN113438314B (en) | 2021-06-29 | 2021-06-29 | Equipment control method and device, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110729301.8A CN113438314B (en) | 2021-06-29 | 2021-06-29 | Equipment control method and device, storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113438314A CN113438314A (en) | 2021-09-24 |
CN113438314B true CN113438314B (en) | 2023-10-24 |
Family
ID=77757746
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110729301.8A Active CN113438314B (en) | 2021-06-29 | 2021-06-29 | Equipment control method and device, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113438314B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113596141B (en) * | 2021-07-26 | 2023-07-25 | 深圳Tcl新技术有限公司 | Method and device for setting device control authority, computer device and storage medium |
CN116070290A (en) * | 2021-11-02 | 2023-05-05 | 深圳Tcl新技术有限公司 | Device connection method, apparatus, electronic device, and computer-readable storage medium |
CN115103033A (en) * | 2022-06-21 | 2022-09-23 | 青岛海尔科技有限公司 | Device control method, device, storage medium, and electronic apparatus |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105723374A (en) * | 2013-10-15 | 2016-06-29 | 微软技术许可有限责任公司 | Secure remote modification of device credentials using device-generated credentials |
CN107222485A (en) * | 2017-06-14 | 2017-09-29 | 腾讯科技(深圳)有限公司 | A kind of authorization method and relevant device |
CN109005185A (en) * | 2012-09-22 | 2018-12-14 | 谷歌有限责任公司 | Promote the multilayer authentication method communicated between intelligent home equipment and server based on cloud |
WO2021072749A1 (en) * | 2019-10-18 | 2021-04-22 | Oppo广东移动通信有限公司 | Device permission control method, device, and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012001697A1 (en) * | 2010-07-01 | 2012-01-05 | Tata Consultancy Services Ltd. | System for two way authentication |
US9489508B2 (en) * | 2014-11-13 | 2016-11-08 | Seagate Technology Llc | Device functionality access control using unique device credentials |
CN109725638A (en) * | 2018-12-12 | 2019-05-07 | 北京百度网讯科技有限公司 | Function for Automatic Pilot authorization method, device, system and storage medium |
-
2021
- 2021-06-29 CN CN202110729301.8A patent/CN113438314B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109005185A (en) * | 2012-09-22 | 2018-12-14 | 谷歌有限责任公司 | Promote the multilayer authentication method communicated between intelligent home equipment and server based on cloud |
CN105723374A (en) * | 2013-10-15 | 2016-06-29 | 微软技术许可有限责任公司 | Secure remote modification of device credentials using device-generated credentials |
CN107222485A (en) * | 2017-06-14 | 2017-09-29 | 腾讯科技(深圳)有限公司 | A kind of authorization method and relevant device |
WO2021072749A1 (en) * | 2019-10-18 | 2021-04-22 | Oppo广东移动通信有限公司 | Device permission control method, device, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113438314A (en) | 2021-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113438314B (en) | Equipment control method and device, storage medium and electronic device | |
CN111885115B (en) | Device binding changing method and device | |
JP6566500B2 (en) | Method, terminal, and system for upgrading terminal system | |
CN109328467B (en) | Method, server and system for downloading updated profiles | |
US20170161721A1 (en) | Method and system for opening account based on euicc | |
EP3337219B1 (en) | Carrier configuration processing method, device and system, and computer storage medium | |
CN106161496B (en) | The remote assistance method and device of terminal, system | |
CN111885594B (en) | Equipment binding method and device | |
KR20160003992A (en) | METHOD AND APPARATUS FOR PROFILE DOWNLOAD FOR eUICC | |
CN103733649A (en) | Apparatus and methods of identity management in a multi-network system | |
CN105338529B (en) | Wireless network connection method and system | |
CN109041140B (en) | Method for rapidly switching wireless network, intelligent hardware and terminal equipment | |
CN108738019B (en) | User authentication method and device in converged network | |
CN109429272A (en) | Shunt method and relevant device under a kind of roaming scence | |
KR20060023401A (en) | Communication system and method for software upgrade of terminal and the terminal | |
RU2601834C2 (en) | Method of application distribution, terminal and server | |
CN107623908A (en) | A kind of hair fastener method and subscriber identification module card | |
CN110831245B (en) | Network connection method, device and router | |
CN103516510A (en) | Wireless communication system access control method and related wireless communication system | |
CN112689316B (en) | Binding method and device of intelligent equipment, storage medium and electronic device | |
CN110139274A (en) | A kind of method for authenticating of bluetooth equipment, electronic equipment and can storage medium | |
CN112637221B (en) | Equipment control method and device | |
CN112738785B (en) | Device connection method and apparatus, storage medium, and electronic apparatus | |
CN113779516B (en) | Equipment control method and device, storage medium and electronic device | |
CN111399886B (en) | Method and system for equipment quick upgrade |
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 |