CN113438314A - 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
- CN113438314A CN113438314A CN202110729301.8A CN202110729301A CN113438314A CN 113438314 A CN113438314 A CN 113438314A CN 202110729301 A CN202110729301 A CN 202110729301A CN 113438314 A CN113438314 A CN 113438314A
- Authority
- CN
- China
- Prior art keywords
- information
- cloud server
- cloud
- equipment
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000013475 authorization Methods 0.000 claims abstract description 54
- 238000004590 computer program Methods 0.000 claims description 21
- 230000002457 bidirectional effect Effects 0.000 claims description 10
- 238000012545 processing Methods 0.000 claims description 6
- 238000004422 calculation algorithm Methods 0.000 claims description 5
- 238000005516 engineering process Methods 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 6
- 230000004913 activation Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000006870 function 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
- 102100038359 Xaa-Pro aminopeptidase 3 Human genes 0.000 description 1
- 101710081949 Xaa-Pro aminopeptidase 3 Proteins 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
Images
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 invention 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 and bound with target equipment, which is sent by a first APP 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 the device authority and the device certificate 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 permission and the equipment certificate, wherein the authorization information carries the equipment information and 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 equipment control of cross-manufacturers is realized through permission sharing among different manufacturers.
Description
Technical Field
The present invention relates to the field of communications, and in particular, to a device control method, apparatus, storage medium, and electronic apparatus.
Background
In the prior art, equipment is controlled through a cloud server, and generally, the equipment can be controlled only if an equipment application program APP (application) and the cloud server belong to the same manufacturer, and the equipment cannot be controlled by a cross-manufacturer.
Aiming at the problem that cross-manufacturer control of equipment cannot be realized in the related technology, no solution is provided.
Disclosure of Invention
The embodiment of the invention provides an equipment control method, an equipment control device, a storage medium and an electronic device, and at least solves the problem that cross-manufacturer equipment control cannot be realized in the related technology.
According to an embodiment of the present invention, 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 and 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, wherein the access cloud information is sent by a first APP issued by a first manufacturer, and the target equipment is already bound with the second cloud server;
the first cloud server acquires the device authority and the device certificate of the target device according to the access cloud information and the device cloud information;
and the first cloud server sends authorization information to the first APP according to the device permission and the device certificate, wherein the authorization information carries the device information and is used for indicating the first APP to control the target device according to the device 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 device permission from the second APP through the established first connection;
the first cloud server establishes a second connection with the third cloud server through the device cloud information, and acquires the device credential from the third cloud server according to the established second connection, wherein the device credential is determined by a random value generated by the third cloud server according to a preset algorithm and the device information.
Optionally, the obtaining, by the first cloud server, the device permission from the second APP through the established first connection includes:
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 OAuth2.0 is completed.
Optionally, the obtaining, by the first cloud server, the device credential from the third cloud server according to the established second connection includes:
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 device certificate sent by the third cloud server according to the established second connection.
According to another embodiment of the present invention, 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, which is bound by 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 is already bound with the second cloud server;
the first APP receives authorization information sent by the first cloud server according to the device permission and the device certificate of the target device, wherein the device permission and the device certificate are acquired by the first cloud server according to the access cloud information and the device cloud information;
and the first APP controls the target equipment according to the equipment information based on the authorization information.
Optionally, before the first APP sends, 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 the 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, the method further includes:
and the first APP determines that the state of the target device is a bound state.
Optionally, the controlling, by the first APP according to the device information based on the authorization information includes:
the first APP activates an Access Control List (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, acquiring the control authority of the target device according to the device information;
and the first APP controls the target equipment based on the control authority.
According to another embodiment of the present invention, there is also provided an apparatus control device, applied to a first cloud server, including:
the device comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving access cloud information of a second cloud server corresponding to a second manufacturer and bound with target equipment, the access cloud information of the third cloud server corresponding to a third manufacturer to which the target equipment belongs and the equipment information of the target equipment, which are sent by a first APP issued by a first manufacturer, and the target equipment is already bound with the second cloud server;
the acquisition module is used for acquiring the device authority and the device certificate of the target device according to the access cloud information and the device cloud information;
and the first sending module is used for sending authorization information to the first APP according to the device permission and the device certificate, wherein the authorization information carries the device information, and the authorization information is used for indicating the first APP to control the target device according to the device information.
Optionally, the obtaining module includes:
the first obtaining submodule is used for establishing a first connection with a second APP corresponding to the second cloud server through the access cloud information and obtaining the equipment permission from the second APP through the established first connection;
and the second obtaining submodule is used for establishing a 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 a random value generated by the third cloud server according to a preset algorithm and the equipment information.
Optionally, the first obtaining sub-module is further configured to
Performing OAuth2.0 of open authorization through the first APP and the second APP corresponding to the second cloud server;
and acquiring the equipment authority after the OAuth2.0 is completed.
Optionally, the second obtaining sub-module is further configured to
Performing mutual authentication with the third cloud server;
and after the bidirectional authentication is successful, receiving the device certificate sent by the third cloud server according to the established second connection.
According to another embodiment of the present invention, there is also provided an apparatus control device, applied to a first APP, including:
a second sending module, 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 already established a binding connection with the second cloud server;
a receiving module, configured to receive authorization information sent by the first cloud server according to the device permission and the device credential of the target device, where the device permission and the device credential are obtained by the first cloud server according to the access cloud information and the device 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:
a determining module, configured to determine that the state of the target device is a bound state.
Optionally, the control module comprises:
the first control sub-module is 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 obtaining submodule is used for obtaining the control authority of the target equipment according to the equipment information after the activation is successful;
and the control submodule is used for controlling the target equipment based on the control authority.
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 perform 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, access cloud information of a second cloud server corresponding to a second manufacturer and 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, wherein the access cloud information is sent by a first APP issued by a first manufacturer and is bound by the target equipment; acquiring the device authority and the device certificate of the target device according to the access cloud information and the device cloud information; and authorization information is sent to the first APP according to the device permission and the device certificate, wherein the authorization information is used for indicating the first APP to control the target device according to the device information, so that the problem that cross-manufacturer control of the device cannot be realized in the related technology can be solved, and the control of the cross-manufacturer device is realized through permission sharing among different manufacturers.
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 configuration of a mobile terminal of an apparatus control method of an embodiment of the present invention;
FIG. 2 is a first flowchart of a device control method according to an embodiment of the present invention;
FIG. 3 is a second flowchart of a device control method according to an embodiment of the present invention;
FIG. 4 is a flow diagram of multi-platform control according to an embodiment of the present invention;
FIG. 5 is a first block diagram of a device control apparatus according to an embodiment of the present invention;
fig. 6 is a block diagram two of the device control apparatus according to an 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.
Example 1
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking a mobile terminal as an example, fig. 1 is a hardware structure block diagram of the mobile terminal of the device control method according to the embodiment of the present invention, as shown in fig. 1, the mobile terminal may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or 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 understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. 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 computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the device control method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs 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 the mobile terminal 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 mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 can be a Radio FrequeNcy (RF) module, which is used to communicate with the internet in a wireless manner.
Based on the foregoing mobile terminal or network architecture, in this embodiment, an apparatus control method is provided, and fig. 2 is a first flowchart of the apparatus control method according to the embodiment of the present invention, as shown in fig. 2, applied to a first cloud server, where the process includes the following steps:
step S202, receiving access cloud information of a second cloud server corresponding to a second manufacturer and 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, wherein the target equipment is already bound with the second cloud server, and the access cloud information is sent by a first APP issued by a first manufacturer;
in an embodiment of the invention, 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 accessed by the target device, 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, acquiring the device authority and the device certificate of the target device according to the access cloud information and the device cloud information;
in step S204, the device right may specifically be a Token or the like.
Step S206, sending authorization information to the first APP according to the device permission and the device credential, wherein the authorization information carries the device information, and the authorization information is used for instructing 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 the authority sharing among different vendors.
In an embodiment of the present invention, the step S204 may specifically include:
step S2041, a first cloud server establishes a first connection with a second APP corresponding to a second cloud server through the access cloud information, and acquires the equipment permission from the second APP through the established first connection;
further, in step S2041, the obtaining the device permission 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; and acquiring the equipment authority after the OAuth2.0 is completed.
Step S2042, the first cloud server establishes a second connection with the third cloud server through the device cloud information, and acquires the device credential from the third cloud server according to the established second connection, where the device credential is determined by the device information and a random value generated by the third cloud server according to a preset algorithm.
Further, in step S2041, the obtaining 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 device certificate sent by the third cloud server according to the established second connection.
Example 2
According to another embodiment of the present invention, there is also provided an apparatus control method, and fig. 3 is a second flowchart of the apparatus control method according to the embodiment of the present invention, 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, which is bound by 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 is already bound with the second cloud server;
step S304, receiving authorization information sent by the first cloud server according to the device authority and the device certificate of the target device, wherein the device authority and the device certificate are acquired by the first cloud server according to the access cloud information and the device cloud information;
step S306, based on the authorization information, controlling the target device according to the device information.
Through the steps S302 to S306, the problem that cross-manufacturer control of equipment cannot be realized in the related technology can be solved, and cross-manufacturer equipment control is realized through authority sharing among different manufacturers.
In an optional embodiment, before the step S302, the first APP determines that the state of the target device is a bound state.
In an embodiment of the present invention, the step S306 may specifically include: based on the authorization information, the first APP activates an Access Control List (ACL) through a local interface of the target device, wherein the ACL is issued to the target device by the second cloud server; after the activation is successful, acquiring the control authority of the target equipment 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 flowchart of multi-platform control according to an embodiment of the present invention, as shown in fig. 4, including:
in the APP (i.e., the first APP) of the first vendor, the device D2 (corresponding to the target device) of the second vendor accesses the APP (i.e., the first APP), finds an unbound device through the first APP, and returns the address (i.e., the device cloud information), the device ID, and the random value of the cloud server (i.e., the first cloud server) corresponding to the first vendor to the D2, and the D2 performs device bidirectional authentication with the first APP and the first cloud server, i.e., accesses the first cloud server according to the OLA standard, where the device bidirectional authentication process is a flow defined by the OLA standard and is not described herein again.
After successful access, the APP3 (third APP for short) of the third vendor controlling D2 specifically includes:
in the device discovery process, the third APP discovers that D2 is a bound device and acquires 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 number and the password of the first APP to acquire the equipment permission.
After the success, the first APP updates an Access Control List (ACL) of D2.
And in the process of performing OAuth2.0 with the first APP, the third cloud server can also perform authentication with a second cloud server of a second manufacturer, and after the authentication is successful, an equipment certificate of the second cloud server through random value calculation is obtained.
The third cloud server issues the obtained device authority (specifically, Token) and the device certificate to a third APP;
and the third APP activates the ACL issued by the first cloud server to the D2 through a local interface with the D2, and the third APP obtains the control authority of the D2 after the ACL is successfully issued.
According to the embodiment of the invention, the rights and interests of the access platform factory and the equipment binding user are ensured through OAuth 2.0; the device manufacturer is authenticated again, so that the benefits of the device manufacturer are guaranteed; the ACL expansion and activation are used, so that the subsequent rights can be shared conveniently, and the dual activation strategy is safer.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 3
In this embodiment, an apparatus control device is further provided, and the apparatus control device is used to implement the foregoing embodiments and preferred embodiments, and the description of the apparatus control device is 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. 5 is a first block diagram of the device control apparatus according to the embodiment of the present invention, as shown in fig. 5, applied to a first cloud server, including:
a receiving module 52, configured to receive access cloud information of a second cloud server corresponding to a second vendor and bound to a target device, the access 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 is already bound to the second cloud server and sent by a first APP issued by a first vendor;
an obtaining module 54, configured to obtain a device authority and a device credential of the target device according to the access cloud information and the device cloud information;
a first sending module 56, configured to send authorization information to the first APP according to the device permission 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 obtaining submodule is used for establishing a first connection with a second APP corresponding to the second cloud server through the access cloud information and obtaining the equipment permission from the second APP through the established first connection;
and the second obtaining submodule is used for establishing a 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 a random value generated by the third cloud server according to a preset algorithm and the equipment information.
Optionally, the first obtaining sub-module is further configured to
Performing OAuth2.0 of open authorization through the first APP and the second APP corresponding to the second cloud server;
and acquiring the equipment authority after the OAuth2.0 is completed.
Optionally, the second obtaining sub-module is further configured to
Performing mutual authentication with the third cloud server;
and after the bidirectional authentication is successful, receiving the device certificate sent by the third cloud server according to the established second connection.
Example 4
In this embodiment, an apparatus control device is further provided, and the apparatus control device is used to implement the foregoing embodiments and preferred embodiments, and the description of the apparatus control device is 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. 6 is a second block diagram of the device control apparatus according to the embodiment of the present invention, as shown in fig. 6, applied to a first APP, including:
a second sending module 62, 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 and the second cloud server have already established a binding connection;
a receiving module 64, configured to receive authorization information sent by the first cloud server according to the device permission and the device credential of the target device, where the device permission and the device credential are obtained by the first cloud server according to the access cloud information and the device cloud information;
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:
a determining module, configured to determine that the state of the target device is a bound state.
Optionally, the control module 66 includes:
the first control sub-module is 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 obtaining submodule is used for obtaining the control authority of the target equipment according to the equipment information after the activation is successful;
and the control submodule is used for controlling the target equipment based on the control authority.
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.
Example 3
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:
s11, receiving access cloud information of a second cloud server corresponding to a second manufacturer and 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, wherein the access cloud information of the second cloud server is sent by a first APP issued by a first manufacturer, and the target equipment is already bound with the second cloud server;
s12, acquiring the device authority and the device certificate 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 device permission and the device credential, wherein the authorization information carries the device information, and the authorization information is used for indicating the first APP to control the target device according to the device information.
Optionally, in this embodiment, the storage medium may be further configured to store a computer program for executing the following steps:
s21, sending, 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 already established a binding connection with the second cloud server;
s22, receiving authorization information sent by the first cloud server according to the device permission and the device credential of the target device, where the device permission and the device credential are obtained by the first cloud server according to the access cloud information and the device cloud information;
and S23, controlling the target device according to the device information based on the authorization information.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-ONly Memory (ROM), a RaNdom Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, which can store computer programs.
Example 4
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:
s11, receiving access cloud information of a second cloud server corresponding to a second manufacturer and 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, wherein the access cloud information of the second cloud server is sent by a first APP issued by a first manufacturer, and the target equipment is already bound with the second cloud server;
s12, acquiring the device authority and the device certificate 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 device permission and the device credential, wherein the authorization information carries the device information, and the authorization information is used for indicating the first APP to control the target device according to the device information.
Optionally, in this embodiment, the processor may be further configured to execute, by the computer program, the following steps:
s21, sending, 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 already established a binding connection with the second cloud server;
s22, receiving authorization information sent by the first cloud server according to the device permission and the device credential of the target device, where the device permission and the device credential are obtained by the first cloud server according to the access cloud information and the device cloud information;
and S23, controlling the target device according to the device information based on the authorization information.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, 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 (11)
1. An apparatus 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 and 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, wherein the access cloud information is sent by a first APP issued by a first manufacturer, and the target equipment is already bound with the second cloud server;
the first cloud server acquires the device authority and the device certificate of the target device according to the access cloud information and the device cloud information;
and the first cloud server sends authorization information to the first APP according to the device permission and the device certificate, wherein the authorization information carries the device information and is used for indicating the first APP to control the target device according to the device information.
2. The method of claim 1, wherein 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 comprises:
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 device permission from the second APP through the established first connection;
the first cloud server establishes a second connection with the third cloud server through the device cloud information, and acquires the device credential from the third cloud server according to the established second connection, wherein the device credential is determined by a random value generated by the third cloud server according to a preset algorithm and the device information.
3. The method of claim 2, wherein the obtaining, by the first cloud server, the device permission from the second APP via 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 OAuth2.0 is completed.
4. The method of claim 2, 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 device certificate sent by the third cloud server according to the established second connection.
5. An apparatus 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, which is bound by 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 is already bound with the second cloud server;
the first APP receives authorization information sent by the first cloud server according to the device permission and the device certificate of the target device, wherein the device permission and the device certificate are acquired by the first cloud server according to the access cloud information and the device cloud information;
and the first APP controls the target equipment according to the equipment information based on the authorization information.
6. The method according to claim 5, wherein before the first APP sends, 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, the method further includes:
and the first APP determines that the state of the target device is a bound state.
7. The method of claim 5, wherein the first APP controls the target device according to the device information based on the authorization information, and wherein the method comprises:
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 first APP is successfully activated, acquiring the control authority of the target device according to the device information;
and the first APP controls the target equipment based on the control authority.
8. An apparatus control device, applied to a first cloud server, includes:
the device comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving access cloud information of a second cloud server corresponding to a second manufacturer and bound with target equipment, the access cloud information of the third cloud server corresponding to a third manufacturer to which the target equipment belongs and the equipment information of the target equipment, which are sent by a first APP issued by a first manufacturer, and the target equipment is already bound with the second cloud server;
the acquisition module is used for acquiring the device authority and the device certificate of the target device according to the access cloud information and the device cloud information;
and the first sending module is used for sending authorization information to the first APP according to the device permission and the device certificate, wherein the authorization information carries the device information, and the authorization information is used for indicating the first APP to control the target device according to the device information.
9. An apparatus control device, applied to a first APP, comprising:
a second sending module, 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 already established a binding connection with the second cloud server;
a receiving module, configured to receive authorization information sent by the first cloud server according to the device permission and the device credential of the target device, where the device permission and the device credential are obtained by the first cloud server according to the access cloud information and the device cloud information;
and the control module is used for controlling the target equipment according to the equipment information based on the authorization information.
10. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to perform the method of any one of claims 1 to 4 and 5 to 7 when the computer program is executed.
11. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and the processor is configured to execute the computer program to perform the method of any one of claims 1 to 4 and 5 to 7.
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 true CN113438314A (en) | 2021-09-24 |
CN113438314B 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) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115103033A (en) * | 2022-06-21 | 2022-09-23 | 青岛海尔科技有限公司 | Device control method, device, storage medium, and electronic apparatus |
WO2023005525A1 (en) * | 2021-07-26 | 2023-02-02 | 深圳Tcl新技术有限公司 | Configuration method for device control privilege, apparatus, computer device, and storage medium |
WO2023077922A1 (en) * | 2021-11-02 | 2023-05-11 | 深圳Tcl新技术有限公司 | Device connection method and apparatus, and electronic device and computer-readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120102551A1 (en) * | 2010-07-01 | 2012-04-26 | Prasanna Bidare | System for Two Way Authentication |
US20160140334A1 (en) * | 2014-11-13 | 2016-05-19 | Seagate Technology Llc | Device Functionality Access Control Using Unique Device Credentials |
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 |
US20200192358A1 (en) * | 2018-12-12 | 2020-06-18 | Beijing Baidu Netcom Science and Technology Co., Ltd | Method, apparatus, system and storage medium for authorizing autonomous driving function |
WO2021072749A1 (en) * | 2019-10-18 | 2021-04-22 | Oppo广东移动通信有限公司 | Device permission control method, device, and storage medium |
-
2021
- 2021-06-29 CN CN202110729301.8A patent/CN113438314B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120102551A1 (en) * | 2010-07-01 | 2012-04-26 | Prasanna Bidare | System for Two Way Authentication |
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 |
US20160140334A1 (en) * | 2014-11-13 | 2016-05-19 | Seagate Technology Llc | Device Functionality Access Control Using Unique Device Credentials |
CN107222485A (en) * | 2017-06-14 | 2017-09-29 | 腾讯科技(深圳)有限公司 | A kind of authorization method and relevant device |
US20200192358A1 (en) * | 2018-12-12 | 2020-06-18 | Beijing Baidu Netcom Science and Technology Co., Ltd | Method, apparatus, system and storage medium for authorizing autonomous driving function |
WO2021072749A1 (en) * | 2019-10-18 | 2021-04-22 | Oppo广东移动通信有限公司 | Device permission control method, device, and storage medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023005525A1 (en) * | 2021-07-26 | 2023-02-02 | 深圳Tcl新技术有限公司 | Configuration method for device control privilege, apparatus, computer device, and storage medium |
WO2023077922A1 (en) * | 2021-11-02 | 2023-05-11 | 深圳Tcl新技术有限公司 | Device connection method and apparatus, and electronic device and computer-readable storage medium |
CN115103033A (en) * | 2022-06-21 | 2022-09-23 | 青岛海尔科技有限公司 | Device control method, device, storage medium, and electronic apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN113438314B (en) | 2023-10-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 | |
EP3337219B1 (en) | Carrier configuration processing method, device and system, and computer storage medium | |
CN112291079B (en) | Network service configuration method and network management equipment | |
CN110944330A (en) | MEC platform deployment method and device | |
CN106161496B (en) | The remote assistance method and device of terminal, system | |
CN111885594B (en) | Equipment binding method and device | |
KR100663547B1 (en) | Communication system and method for software upgrade of terminal and the terminal | |
CN105338529B (en) | Wireless network connection method and system | |
CN109429272A (en) | Shunt method and relevant device under a kind of roaming scence | |
RU2601834C2 (en) | Method of application distribution, terminal and server | |
CN105228126A (en) | A kind of method and system of Network Access Point trustship | |
CN110891266B (en) | Network roaming method, device, terminal equipment and storage medium | |
CN112689316B (en) | Binding method and device of intelligent equipment, storage medium and electronic device | |
CN110831245A (en) | Network connection method, device and router | |
CN110139274A (en) | A kind of method for authenticating of bluetooth equipment, electronic equipment and can storage medium | |
CN116996908A (en) | Fusion management method, device, equipment and medium of master-slave gateway and wireless AP | |
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 | |
CN112689006A (en) | Internet of things equipment control method and device, storage medium and electronic device | |
CN111131324A (en) | Login method and device of business system, storage medium and electronic device | |
CN112738025A (en) | Device control method and apparatus, storage medium, and electronic apparatus | |
EP1637003B1 (en) | Databases synchronization | |
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 |