CN115103033A - Device control method, device, storage medium, and electronic apparatus - Google Patents

Device control method, device, storage medium, and electronic apparatus Download PDF

Info

Publication number
CN115103033A
CN115103033A CN202210708110.8A CN202210708110A CN115103033A CN 115103033 A CN115103033 A CN 115103033A CN 202210708110 A CN202210708110 A CN 202210708110A CN 115103033 A CN115103033 A CN 115103033A
Authority
CN
China
Prior art keywords
cloud platform
equipment
control
opposite
operation instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210708110.8A
Other languages
Chinese (zh)
Inventor
王磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202210708110.8A priority Critical patent/CN115103033A/en
Publication of CN115103033A publication Critical patent/CN115103033A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols 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
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application discloses an equipment control method, an equipment control device, a storage medium and an electronic device, and relates to the technical field of smart homes/smart families, wherein the equipment control method comprises the following steps: acquiring a control instruction based on a local cloud platform; under the condition that it is determined that first equipment belonging to an opposite-end cloud platform exists in the equipment to be controlled, converting a first operation instruction of the first equipment in the control instruction according to a preset operation instruction mapping relation; and sending the converted first operation instruction to an opposite-end cloud platform, and sending a second operation instruction of second equipment in the control instruction to a local-end cloud platform so as to control the first equipment and the second equipment. According to the invention, the interconnection and intercommunication control of the equipment between the local cloud platform and various opposite cloud platforms is realized through the translation part, the development time of the equipment intercommunication control between the cloud platforms of various manufacturers is effectively shortened, and the controllable equipment types of the cloud platforms of various manufacturers are rapidly increased.

Description

Device control method, device, storage medium, and electronic apparatus
Technical Field
The present application relates to the field of smart home/smart home technologies, and in particular, to an apparatus control method and apparatus, a storage medium, and an electronic apparatus.
Background
Currently, each smart home manufacturer can access a respective Internet of Things (IoT) cloud platform to achieve smart interconnection. The types of current intelligent home industry access equipment are various, interconnection and intercommunication control is difficult to realize between the equipment of manufacturers in different fields, and in order to enrich the diversity of own controllable equipment types, the interconnection and intercommunication among platforms can be completed in a cooperative mode usually, and then the increase of controllable equipment types in a local IoT cloud platform is realized.
In the prior art, in order to achieve interconnection and intercommunication control between devices of manufacturers in different fields, different manufacturers usually cooperate to complete interconnection and intercommunication between IoT cloud platforms, thereby achieving interconnection and intercommunication control between devices of different manufacturers. At present, different manufacturers cooperate, and each device needs to be purposefully developed and butted based on specific product forms in the factory platform so as to adapt to the rules of the platforms of the different manufacturers, and a long development time is consumed for butting one device; the variety of the equipment of each manufacturer platform is various, so that the interconnection and intercommunication control among a plurality of pieces of equipment of manufacturers in different fields needs to consume a large amount of development time.
In addition, in the face of equipment of manufacturers in different fields, the equipment needs to be controlled after being developed independently for each equipment, and the control rules of each manufacturer platform are different, so that the developed equipment cannot be reused on other manufacturer platforms, and the equipment needs to be developed specifically when being accessed to different manufacturer platforms each time, thereby greatly reducing the efficiency of equipment intercommunication control.
In summary, in the prior art, the targeted development and docking are performed on the devices of different manufacturers, which results in long development time and low communication control efficiency.
Disclosure of Invention
The application provides an equipment control method, an equipment control device, a storage medium and an electronic device, which are used for overcoming the defects of long development time and low intercommunication control efficiency caused by the fact that equipment of different manufacturers is subjected to targeted development and butt joint in the prior art, and realizing the purpose of quickly realizing the equipment intercommunication control of the different manufacturers while reducing the development time.
The application provides an equipment control method, which comprises the following steps:
acquiring a control instruction based on a local cloud platform; the control instruction comprises an instruction for controlling the equipment to be controlled;
under the condition that it is determined that first equipment belonging to an opposite-end cloud platform exists in the equipment to be controlled, converting a first operation instruction of the first equipment in the control instruction according to a preset operation instruction mapping relation; the operation instruction mapping relation comprises a plurality of groups of mapping relations between operation instructions in the local cloud platform and operation instructions in the opposite cloud platform;
sending the converted first operation instruction to the opposite-end cloud platform, and sending a second operation instruction of second equipment in the control instruction to the local-end cloud platform so as to control the first equipment and the second equipment; the second device is a device belonging to the local cloud platform in the devices to be controlled.
According to the device control method provided by the application, the step of sending the converted first operation instruction to the opposite-end cloud platform comprises the following steps:
according to the identification of the opposite-end cloud platform, searching a login address of the opposite-end cloud platform in a local memory;
logging in an equipment control interface of the opposite-end cloud platform according to the login address;
and under the condition of receiving a login authorization code returned by the opposite-end cloud platform, sending the converted first operation instruction to the opposite-end cloud platform through the equipment control interface.
According to the equipment control method provided by the application, the control instruction further comprises a control condition;
the sending the converted first operation instruction to the opposite-end cloud platform, and sending a second operation instruction of the second device in the control instruction to the local-end cloud platform include:
under the condition that the current environment meets the control condition, sending the converted first operation instruction to the opposite-end cloud platform to trigger the first device to execute the converted first operation instruction;
and synchronously sending the second operating instruction to the home-end cloud platform so as to trigger the second equipment to synchronously execute the second operating instruction.
According to the device control method provided by the application, the step of sending the converted first operation instruction to the opposite-end cloud platform comprises the following steps:
and under the condition that the converted first operation instruction comprises a plurality of sub-operation instructions, combining the plurality of sub-operation instructions to form a combined operation instruction, and sending the combined operation instruction to the opposite-end cloud platform.
According to the device control method provided by the application, the step of sending the converted first operation instruction to the opposite-end cloud platform comprises the following steps:
determining a calling address of the opposite-end cloud platform according to the identifier of the opposite-end cloud platform;
and sending the converted first operation instruction to the opposite-end cloud platform according to the interface corresponding to the calling address.
According to an apparatus control method provided by the present application, the method further includes:
sending the callback address of the local cloud platform to the opposite-end cloud platform so that the opposite-end cloud platform can return a control result of the first equipment through an interface corresponding to the callback address;
receiving a control result of the first device returned by the opposite-end cloud platform;
caching the control log and the control result of the first equipment and the control log and the control result of the second equipment in a local memory;
and under the condition that the control of any one of the first equipment and the second equipment is finished, displaying the control log and the control result of the any equipment on the local cloud platform.
According to a device control method provided by the present application, before the receiving the control result of the first device returned by the peer cloud platform, the method further includes:
acquiring the access frequency of the opposite-end cloud platform to the local-end cloud platform under the condition of receiving a data return request sent by the opposite-end cloud platform;
searching the IP address of the opposite-end cloud platform in a domain name white list of the local-end cloud platform under the condition that the access frequency is determined to be greater than a frequency threshold value;
and under the condition that the IP address of the opposite-end cloud platform is found, authorizing the data return request of the opposite-end cloud platform so that the opposite-end cloud platform returns the control result of the first equipment under the condition that the data return request is determined to be authorized.
The present invention also provides an apparatus control device, including:
the acquisition module is used for acquiring a control instruction based on the local cloud platform; the control instruction comprises an instruction for controlling the equipment to be controlled;
the translation module is used for converting a first operation instruction of the first device in the control instruction according to a preconfigured operation instruction mapping relation under the condition that the first device belonging to the opposite-end cloud platform exists in the to-be-controlled device; the operation instruction mapping relation comprises a plurality of groups of mapping relations between the operation instructions in the home cloud platform and the operation instructions in the opposite cloud platform;
the control module is used for sending the converted first operating instruction to the opposite-end cloud platform and sending a second operating instruction of second equipment in the control instruction to the local-end cloud platform so as to control the first equipment and the second equipment; and the second equipment is the equipment which belongs to the local cloud platform in the equipment to be controlled.
The present application further provides an electronic apparatus, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to implement the apparatus control method according to any one of the above methods by executing the computer program.
The present application also provides a computer-readable storage medium including a stored program, wherein the program is executed to implement the apparatus control method according to any one of the above.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, implements the apparatus control method as described in any of the above.
The device control method, the device, the storage medium and the electronic device provided by the application configure the mapping relation between the operation instruction in the local cloud platform and the operation instruction in the opposite cloud platform in the translation component arranged inside or outside the local cloud platform to realize the correspondence between the operation instructions of the opposite cloud platform and the devices in the local cloud platform, and can convert the first operation instruction of the first device input by the local cloud platform into the operation instruction suitable for the device control rule of the opposite cloud platform according to the operation instruction mapping relation to quickly and accurately realize the interconnection control between the first device of the opposite cloud platform and the second device of the local cloud platform, and can realize the interconnection control between the local cloud platform and various opposite cloud platforms through the translation component to avoid the development and butt joint of each device one by one on the local cloud platform, the development time of equipment intercommunication control among the cloud platforms of the intelligent home manufacturers is effectively shortened, and the controllable equipment types of the cloud platforms of the intelligent home manufacturers are rapidly increased; meanwhile, after the platforms are communicated with each other, control of scene types can be enriched after more types of equipment are accessed, and equipment control is more intelligent.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a schematic flow chart of a plant control method provided herein;
fig. 2 is a schematic structural diagram of interaction between a local cloud platform and an opposite cloud platform in the device control method provided by the present application;
FIG. 3 is a schematic structural diagram of a device control apparatus provided in the present application;
FIG. 4 is a diagram illustrating a hardware environment of a device control method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in this application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The following describes the device control method according to the embodiment of the present application with reference to fig. 1 and fig. 2, where the method may be used in a scenario of device linkage control of various manufacturers, and an execution subject of the method may be a translation component disposed inside or outside a local cloud platform, where the translation component is an electronic device, such as a server or a network attached storage, and the present application is not limited in this embodiment.
As shown in fig. 1, the present embodiment provides an apparatus control method, including the steps of:
step 101, acquiring a control instruction based on a local cloud platform; the control instruction comprises an instruction for controlling the equipment to be controlled;
the device to be controlled is a device that needs to be controlled, such as an air conditioner, a humidifier, a water heater, a bathroom heater, and the like, which is not specifically limited in this embodiment.
The device to be controlled comprises one or more devices in the local cloud platform and one or more devices in the opposite cloud platform;
correspondingly, the control instruction comprises an operation instruction of one or more devices in the local cloud platform and an operation instruction of one or more devices of the opposite cloud platform.
Optionally, when a user needs to control the device to be controlled, a control instruction for controlling the device to be controlled needs to be input in the local cloud platform;
the manner of inputting the control command includes, but is not limited to, one or more of voice, text and physical key.
And the translation part is used for acquiring a control instruction for controlling the equipment to be controlled in real time based on the local cloud platform.
102, under the condition that it is determined that first equipment belonging to an opposite-end cloud platform exists in the equipment to be controlled, converting a first operation instruction of the first equipment in the control instruction according to a preset operation instruction mapping relation; the operation instruction mapping relation comprises a plurality of groups of mapping relations between the operation instructions in the home cloud platform and the operation instructions in the opposite cloud platform;
the operation instruction mapping relation is configured with a plurality of groups of mapping relations between the operation instruction in the local cloud platform and the operation instruction in the opposite cloud platform in advance, and the operation instruction mapping relation can be specifically configured and generated according to the name, value, type and the like of the operation instruction; the types include long integer long, string, int, and the like.
For example, an operation instruction for starting up and an operation instruction for shutting down a device in the local cloud platform are respectively "ON" and "OFF", and an operation instruction for starting up and an operation instruction for shutting down a device in the opposite cloud platform are respectively "TRUE" and "fast"; at this time, a mapping relationship between the operation instruction for starting up the device in the local cloud platform and the operation instruction for starting up the device in the opposite cloud platform is established, that is, a mapping relationship between "ON" and "TRUE" is established, and a mapping relationship between the operation instruction for shutting down the device in the local cloud platform and the operation instruction for shutting down the device in the opposite cloud platform is established, that is, a mapping relationship between "OFF" and "fast" is established.
It should be noted that the operation instruction mapping relationship may be configured and formed through a visual interface in the translation component, or may be reconfigured on the visual interface according to actual requirements.
The cloud platform of the home terminal and the cloud platform of the opposite terminal are cloud platforms of different manufacturers, if the home terminal cloud platform is the cloud platform of a manufacturer A, the cloud platform of the opposite terminal is the cloud platform of a manufacturer B, and the manufacturer A and the manufacturer B are different manufacturers, namely different manufacturers.
Each local cloud platform can be in butt joint with one or more opposite cloud platforms, and the specific number can be set according to the equipment control requirement.
It should be noted that, the local cloud platform and the opposite cloud platform are intercommunicated, so that data interaction can be realized, and network security policies between the platforms can be intercommunicated, so that the reliability of data transmission can be effectively ensured.
Optionally, when a control instruction for controlling the device to be controlled, which is input by a user on the local cloud platform, is obtained, the device corresponding to the identifier may be searched in the local cloud platform according to the identifier of each device in the device to be controlled, and if the device is not searched, the corresponding device may be searched in the opposite cloud platform according to the identifier of the device; and the equipment belonging to the opposite-end cloud platform in the equipment to be controlled is taken as first equipment, and the equipment belonging to the local-end cloud platform in the equipment to be controlled is taken as second equipment.
Under the condition that it is determined that first equipment belonging to an opposite-end cloud platform exists in the equipment to be controlled, the control instruction is input by a user on the local-end cloud platform, so that the control method is suitable for controlling each piece of equipment in the local-end cloud platform, and when the operation instruction in the opposite-end cloud platform is inconsistent with the operation instruction in the local-end cloud platform, the equipment in the opposite-end cloud platform cannot be controlled. At this time, when the first device of the peer cloud platform needs to be controlled, the first operation instruction of the first device in the control instruction needs to be converted according to the pre-configured operation instruction mapping relationship so as to be converted into an operation instruction suitable for the device control rule in the peer cloud platform.
For example, under the condition that the boot control of the first device in the opposite-end cloud platform is required, an "ON" operation instruction, which is input by a user ON the local-end cloud platform and is specific to the first device, is obtained, and at this time, the "ON" operation instruction of the first device is converted into a "TRUE" operation instruction according to the mapping relation of the operation instruction, so as to be consistent with the operation instruction in the opposite-end cloud platform.
103, sending the converted first operating instruction to the opposite-end cloud platform, and sending a second operating instruction of second equipment in the control instruction to the local-end cloud platform so as to control the first equipment and the second equipment; and the second equipment is the equipment which belongs to the local cloud platform in the equipment to be controlled.
Optionally, after the first operation instruction of the first device is converted, the first device in the opposite-end cloud platform can be pulled from the opposite-end cloud platform, and is in linkage control with the second device in the local-end cloud platform, so that rich intelligent scenes are realized.
Optionally, after the device configuration joint debugging of the peer cloud platform and the home cloud platform is passed, that is, under the condition that the first device in the peer cloud platform can be normally controlled, the converted first operating instruction may be sent to the peer cloud platform to trigger the first device to execute the converted first operating instruction, so as to implement control on the first device;
meanwhile, a second operation instruction of the second equipment can be synchronously sent to the local cloud platform to trigger the second equipment to execute the second operation instruction, so that linkage control of the second equipment and the first equipment is realized.
The linkage control mode of the first equipment and the second equipment comprises the steps of simultaneously controlling the first equipment and the second equipment, or firstly controlling the first equipment, and then controlling the second equipment after the first equipment is adjusted to be in a first state, or firstly controlling the second equipment, and then controlling the first equipment after the second equipment is adjusted to be in a second state; this embodiment does not specifically limit this.
In the coordinated control process, the control timing of the first device and the control timing of the second device are determined based on the trigger condition in the respective operation commands.
For example, a home terminal manufacturer can access a bathroom heater of an opposite terminal manufacturer, and under a scene of needing a shower, the home terminal manufacturer can be triggered to heat the water heater to 40 degrees, and simultaneously an instruction is issued to trigger the bathroom heater of the opposite terminal manufacturer to preheat, so that the water heater of the home terminal manufacturer and the bathroom heater of the opposite terminal manufacturer are controlled in a linkage mode, and the control efficiency of equipment and the experience of a user are improved.
In the embodiment, the mapping relation between the operation instruction in the home cloud platform and the operation instruction in the opposite cloud platform is configured in the translation component arranged inside or outside the home cloud platform, so as to realize the correspondence between the operation instruction in the opposite cloud platform and the operation instruction in the equipment in the home cloud platform, and the first operation instruction of the first equipment input by the home cloud platform can be converted into the operation instruction suitable for the equipment control rule of the opposite cloud platform according to the operation instruction mapping relation, so as to quickly and accurately realize the interconnection control between the first equipment of the opposite cloud platform and the second equipment of the home cloud platform, and the interconnection control between the home cloud platform and various opposite cloud platforms can be realized through the translation component, thereby avoiding the one-to-one development and butt joint of the home cloud platform for each equipment, and effectively shortening the development time of the equipment interconnection control between the cloud platforms of intelligent home manufacturers, controllable equipment categories of cloud platforms of various intelligent home manufacturers are rapidly increased; meanwhile, after the platforms are communicated with each other, control of scene types can be enriched after more types of equipment are accessed, and equipment control is more intelligent.
On the basis of the foregoing embodiment, in this embodiment, the sending the converted first operation instruction to the peer cloud platform includes: according to the identification of the opposite-end cloud platform, searching a login address of the opposite-end cloud platform in a local memory; logging in an equipment control interface of the opposite-end cloud platform according to the login address; and under the condition of receiving a login authorization code returned by the opposite-end cloud platform, sending the converted first operation instruction to the opposite-end cloud platform through the equipment control interface.
The mapping relation between the identification of the cloud platform and the login address of the cloud platform is stored in the local memory of the translation component in advance, so that the cloud platform of an intercommunicating manufacturer can uniquely identify one user, the corresponding relation is maintained, and the user can control equipment under a corresponding account.
Optionally, before performing interconnection control on the device, account intercommunication between the opposite-end cloud platform and the home-end cloud platform needs to be completed, and specifically, the account systems of both parties are opened according to an account authorization standard scheme, for example, other account intercommunication modes such as opening the account systems of both parties according to an account authorization standard scheme of oauth2.0 (second version of open authorization) and the like are opened.
Optionally, the specific steps of account intercommunication between the opposite-end cloud platform and the home-end cloud platform are as follows:
firstly, according to the identification of the opposite-end cloud platform, searching a login address of the opposite-end cloud platform in a local memory;
then, loading a login address, and inputting a corresponding user name and a corresponding password on a login interface corresponding to the login address;
under the condition that an authorization server of the opposite-end cloud platform determines that the user name and the password are correct, a login authorization code is returned to authorize the translation component to log in an equipment control interface of the opposite-end cloud platform;
and under the condition that the translation part is successfully logged in, jumping to the address where the equipment control interface of the opposite-end cloud platform is located, so that the converted first operation instruction is sent to the opposite-end cloud platform through the equipment control interface, the first equipment is triggered to execute the converted first operation instruction, and linkage control of the first equipment of the opposite-end cloud platform is realized on the local-end cloud platform.
It should be noted that the account can also cancel the authorization by canceling the login callback address after the authorization, so as to avoid a scenario that the user does not allow a different manufacturer to perform the device interconnection control.
In this embodiment, account intercommunication between the local cloud platform and the peer cloud platform can be quickly established through the identifier of the peer cloud platform, so that not only can the security of communication between the local cloud platform and the peer cloud platform be ensured, but also all devices in the peer cloud platform can be remotely controlled by the local cloud platform after the account is authorized, and the efficiency and the security of device interconnection control can be effectively improved.
On the basis of the foregoing embodiment, in this embodiment, the control instruction further includes a control condition; the sending the converted first operation instruction to the opposite-end cloud platform, and sending a second operation instruction of the second device in the control instruction to the local-end cloud platform include: under the condition that the current environment meets the control condition, sending the converted first operating instruction to the opposite-end cloud platform so as to trigger the first device to execute the converted first operating instruction; and synchronously sending the second operation instruction to the home terminal cloud platform so as to trigger the second equipment to synchronously execute the second operation instruction.
The control condition is a condition for triggering an operation instruction, that is, under what condition, relevant control of the access device is triggered, so that the control command to be realized is triggered to be issued under the condition that the configuration is satisfied.
Optionally, the step of performing linkage control on the first device and the second device in step 103 specifically includes the following steps:
and analyzing the control condition from the control instruction, judging whether the current environment meets the control condition, and sending the converted first operation instruction to an opposite-end cloud platform under the condition that the control condition is met so as to trigger the first equipment to execute the converted first operation instruction, and synchronously sending the second operation instruction to a local-end cloud platform so as to trigger the second equipment to synchronously execute the second operation instruction, so that the linkage control of the first equipment and the second equipment is realized.
After equipment in the cloud platform of the opposite-end manufacturer is pulled, the equipment can be linked with equipment in the cloud platform of the local-end manufacturer under the condition that the current environment meets the control condition, so that the intelligent scene of equipment control in the cloud platform of the local-end manufacturer is enriched, and the efficiency of equipment control and the user experience are improved.
On the basis of the foregoing embodiments, the sending the converted first operation instruction to the peer cloud platform in this example includes: and under the condition that the converted first operation instruction comprises a plurality of sub-operation instructions, combining the plurality of sub-operation instructions to form a combined operation instruction, and sending the combined operation instruction to the opposite-end cloud platform.
Optionally, whether the converted first operation instruction of the first device includes multiple sub-operation instructions is judged, and under the condition that it is determined that the converted first operation instruction includes multiple sub-operation instructions, it is determined that the first device needs to execute the multiple sub-operation instructions at the same time, the multiple sub-operation instructions can be copied to combine into a new combined operation instruction, and the combined operation instruction is sent to the opposite-end cloud platform, so as to trigger the first device to synchronously execute the combined operation instruction.
Similarly, under the condition that the second operation instruction of the second device includes a plurality of sub-operation instructions, the plurality of sub-operation instructions in the second operation instruction may also be copied to combine into a combined operation instruction corresponding to the second operation instruction, and the combined operation instruction corresponding to the second operation instruction is sent to the home-end cloud platform, so as to trigger the second device to synchronously execute the corresponding combined operation instruction.
In the embodiment, under the condition that a plurality of operation instructions need to be executed simultaneously, a plurality of sub-operation instructions are combined to form a combined operation instruction, so that the equipment is triggered to synchronously execute the corresponding combined operation instruction, the synchronous control on the equipment is realized, and the accuracy and the efficiency of the equipment control are improved.
On the basis of the foregoing embodiments, in this embodiment, the sending the converted first operation instruction to the opposite-end cloud platform includes: determining a calling address of the opposite-end cloud platform according to the identifier of the opposite-end cloud platform; and sending the converted first operation instruction to the opposite-end cloud platform according to the interface corresponding to the calling address.
The cloud platform of each manufacturer has a unique identifier; the identifier may be a number or an IP address, which is not specifically limited in this embodiment.
The calling address is the address of the calling platform interface required by command issuing.
Optionally, when the converted first operation instruction is sent to the first device of the peer cloud platform, the following steps need to be executed:
firstly, acquiring an identifier of an opposite-end cloud platform; and then, determining a calling address of the opposite-end cloud platform according to the identifier of the opposite-end cloud platform.
And then, the converted first operation instruction is sent to the opposite-end cloud platform through a calling interface corresponding to the calling address.
In this embodiment, the converted first operation instruction can be quickly and accurately sent to the opposite-end cloud platform through the identifier of the opposite-end cloud platform, so that linkage control of the first device in the opposite-end cloud platform is quickly and accurately performed.
On the basis of the foregoing embodiments, the method in this embodiment further includes: sending the callback address of the local cloud platform to the opposite cloud platform so that the opposite cloud platform can return a control result of the first device through an interface corresponding to the callback address; receiving a control result of the first device returned by the opposite-end cloud platform; caching the control log and the control result of the first equipment and the control log and the control result of the second equipment in a local memory; and under the condition that the control of any one of the first equipment and the second equipment is finished, displaying the control log and the control result of the any equipment on the local cloud platform.
The callback address is an address of a control interface for receiving a control result returned by the opposite-end cloud platform.
Optionally, when the converted first operation instruction is sent to the peer cloud platform, the callback address of the local cloud platform needs to be sent to the peer cloud platform, so that after the first device executes the converted first operation instruction, the peer cloud platform returns the control result of the first device to the local cloud platform through the callback interface corresponding to the callback address.
The switching component receives the control result of the first device returned by the opposite-end cloud platform in real time, and caches the control log and the control result of the first device, and the control log and the control result of the second device in a local memory for a user to check in real time.
And under the condition that the control of any one of the first equipment and the second equipment is finished, the control log and the control result of the equipment can be displayed on the local cloud platform in real time, so that a user can check the control log and the control result of the equipment on the local cloud platform in real time, and the abnormal condition can be timely found and processed under the condition that the equipment is abnormally controlled.
On the basis of the foregoing embodiment, in this embodiment, before the receiving the control result of the first device returned by the peer cloud platform, the method further includes: acquiring the access frequency of the opposite-end cloud platform to the local-end cloud platform under the condition of receiving a data return request sent by the opposite-end cloud platform; searching the IP address of the opposite-end cloud platform in a domain name white list of the local-end cloud platform under the condition that the access frequency is determined to be greater than a frequency threshold value; and under the condition that the IP address of the opposite-end cloud platform is found, authorizing the data return request of the opposite-end cloud platform, so that the opposite-end cloud platform returns the control result of the first device under the condition that the data return request is determined to be authorized.
Wherein, the domain name configuration white list is pre-configured with a specific IP (Internet Protocol) address allowing frequent access.
The frequency threshold value can be set according to actual requirements.
Optionally, before receiving a control result of the first device returned by the peer cloud platform, the following steps need to be performed:
firstly, receiving a data return request sent by an opposite-end cloud platform in real time, acquiring the access frequency of the opposite-end cloud platform to a local-end cloud platform under the condition of receiving the data return request sent by the opposite-end cloud platform, and judging whether the access frequency is greater than a frequency threshold value;
in order to ensure network safety, under the condition that the access frequency is determined to be greater than a frequency threshold value, searching an IP address of an opposite-end cloud platform in a domain name white list of a local-end cloud platform;
and under the condition that the IP address of the opposite-end cloud platform is found, authorizing the data return request of the opposite-end cloud platform so as to allow the opposite-end cloud platform to return the control result of the first equipment.
And the opposite-end cloud platform returns the control result of the first equipment after determining that the data return request is authorized.
At this time, the translation component receives the control result of the first device returned by the opposite-end cloud platform in real time, and caches the control result of the first device.
In the embodiment, the safety and the reliability of equipment control can be effectively improved by setting the domain name configuration white list.
As shown in fig. 2, the apparatus control method in this embodiment mainly includes the following steps:
step a, acquiring a mapping relation between controllable instructions which can be respectively recognized by a local cloud platform and an opposite cloud platform established according to a product and configuration information in a translation part;
the establishment of the mapping relation specifically comprises the following steps: the mapping relation is made based on the operation instructions defined by the local cloud platform and the opposite cloud platform, and the mapping relation can be specifically established according to the name, value, type and the like of the operation instructions;
the configuration information in the translation component includes:
firstly, under the condition that a plurality of instructions need to be executed simultaneously, the configuration information of new control combination formed by combining operation instructions needs to be copied;
command issuing the configuration information of the required calling platform address;
thirdly, the control interface recalls the configuration information of the address;
configuration information for caching control recording log and control result of equipment
Fifthly, configuring a white list for the domain name.
B, before interconnection control is carried out on the equipment, account intercommunication between a local cloud platform and an opposite cloud platform needs to be completed, and account systems of the local cloud platform and the opposite cloud platform are called up according to an Oauth2.0 account authorization standard scheme, and the method specifically comprises the following steps:
firstly, acquiring a login address;
acquiring a jump address after login so as to jump to an equipment control interface of the opposite-end cloud platform;
obtaining the login canceling callback address so that the account number can cancel the authorization after the authorization, thereby meeting the requirement that a user does not allow a different manufacturer to control the equipment.
Step c, scene linkage, specifically including pulling the equipment in the cloud platform of the opposite-end manufacturer, can link with the equipment in the cloud platform of the local-end manufacturer, realize abundant intelligent scene, specifically including the following steps:
after the product configuration joint debugging is passed (namely, equipment in a cloud platform of an opposite-end manufacturer can be normally controlled), determining control conditions for triggering control, namely, triggering related control of access equipment under what conditions;
triggering action: under the control condition, triggering the control command which is to be realized to be issued, namely issuing an operation instruction for controlling the first equipment and the second equipment so as to carry out linkage control on the first equipment and the second equipment.
In the prior art, each device is generally developed and docked according to each example, and the huge device category increases the difficulty of intelligent interconnection.
In this embodiment, by adding a translation component for translating between the local cloud platform and the opposite cloud platform in the local cloud platform, the operation instruction mapping relationship and the configuration information in the translation component are simply configured according to the function definition of the device, and the platform needs to communicate with the account system, so that the corresponding device under the account can be acquired and the interconnection and intercommunication between devices of different manufacturers can be realized. The translation component in the embodiment can realize the correspondence of different manufacturer equipment instructions through the configuration of the visual interface, thereby controlling different manufacturer equipment and realizing the scene execution of equipment among different types, not only shortening the development time of intercommunication among various intelligent household manufacturer platforms, but also realizing the rapid increase of controllable equipment types. Meanwhile, after the platforms are communicated with each other, more types of equipment are accessed, the control of scene types can be enriched, and the equipment control is more intelligent; and the problem that the platform is complicated to develop due to rapid interconnection and intercommunication among all factories can be solved, so that the controllable equipment types of the platform can be rapidly increased, and more intelligent scenes can be enriched.
The device control apparatus provided in the present application is described below, and the device control apparatus described below and the device control method described above may be referred to in correspondence with each other.
As shown in fig. 3, the present embodiment provides an apparatus for controlling a device, which includes an obtaining module 301, a translating module 302, and a controlling module 303, wherein:
the obtaining module 301 is configured to obtain a control instruction based on the local cloud platform; the control instruction comprises an instruction for controlling the equipment to be controlled;
optionally, when a user needs to control the device to be controlled, a control instruction for controlling the device to be controlled needs to be input in the local cloud platform;
the manner of inputting the control command includes, but is not limited to, one or more of voice, text and physical key.
And the translation part is used for acquiring a control instruction for controlling the equipment to be controlled in real time based on the local cloud platform.
The translation module 302 is configured to, when it is determined that a first device belonging to the peer cloud platform exists in the to-be-controlled device, convert a first operation instruction of the first device in the control instruction according to a preconfigured operation instruction mapping relationship; the operation instruction mapping relation comprises a plurality of groups of mapping relations between operation instructions in the local cloud platform and operation instructions in the opposite cloud platform;
optionally, when a control instruction for controlling the device to be controlled, which is input by a user on the local cloud platform, is obtained, the device corresponding to the identifier may be searched in the local cloud platform according to the identifier of each device in the device to be controlled, and if the device is not searched, the corresponding device may be searched in the opposite cloud platform according to the identifier of the device; and the equipment belonging to the opposite-end cloud platform in the equipment to be controlled is taken as first equipment, and the equipment belonging to the local-end cloud platform in the equipment to be controlled is taken as second equipment.
Under the condition that it is determined that first equipment belonging to an opposite-end cloud platform exists in the equipment to be controlled, the control instruction is input by a user on the local-end cloud platform, so that the control method is suitable for controlling each piece of equipment in the local-end cloud platform, and when the operation instruction in the opposite-end cloud platform is inconsistent with the operation instruction in the local-end cloud platform, the equipment in the opposite-end cloud platform cannot be controlled. At this time, when the first device of the peer cloud platform needs to be controlled, the first operation instruction of the first device in the control instruction needs to be converted according to the pre-configured operation instruction mapping relationship so as to be converted into an operation instruction suitable for the device control rule in the peer cloud platform.
The control module 303 is configured to send the converted first operation instruction to the opposite-end cloud platform, and send a second operation instruction of the second device in the control instruction to the local-end cloud platform, so as to control the first device and the second device; and the second equipment is the equipment which belongs to the local cloud platform in the equipment to be controlled.
Optionally, after the first operation instruction of the first device is converted, the first device in the opposite-end cloud platform can be pulled from the opposite-end cloud platform, and is in linkage control with the second device in the local-end cloud platform, so that rich intelligent scenes are realized.
Optionally, after the device configuration joint debugging of the peer cloud platform and the home cloud platform is passed, that is, under the condition that the first device in the peer cloud platform can be normally controlled, the converted first operating instruction may be sent to the peer cloud platform to trigger the first device to execute the converted first operating instruction, so as to implement control on the first device;
meanwhile, a second operation instruction of the second equipment can be synchronously sent to the local cloud platform to trigger the second equipment to execute the second operation instruction, so that linkage control of the second equipment and the first equipment is realized.
In the embodiment, the mapping relation between the operation instruction in the home cloud platform and the operation instruction in the opposite cloud platform is configured in the translation component arranged inside or outside the home cloud platform, so as to realize the correspondence between the operation instruction in the opposite cloud platform and the operation instruction in the equipment in the home cloud platform, and the first operation instruction of the first equipment input by the home cloud platform can be converted into the operation instruction suitable for the equipment control rule of the opposite cloud platform according to the operation instruction mapping relation, so as to quickly and accurately realize the interconnection control between the first equipment of the opposite cloud platform and the second equipment of the home cloud platform, and the interconnection control between the home cloud platform and various opposite cloud platforms can be realized through the translation component, thereby avoiding the one-to-one development and butt joint of the home cloud platform for each equipment, and effectively shortening the development time of the equipment interconnection control between the cloud platforms of intelligent home manufacturers, controllable equipment types of cloud platforms of various intelligent home manufacturers are rapidly increased; meanwhile, after the platforms are communicated with each other, control of scene types can be enriched after more types of equipment are accessed, and equipment control is more intelligent.
In some embodiments, the control module is specifically configured to: searching a login address of the opposite-end cloud platform in a local memory according to the identifier of the opposite-end cloud platform; logging in an equipment control interface of the opposite-end cloud platform according to the login address; and under the condition of receiving a login authorization code returned by the opposite-end cloud platform, sending the converted first operation instruction to the opposite-end cloud platform through the equipment control interface.
In some embodiments, the control instruction further comprises a control condition;
the control module is further configured to: under the condition that the current environment meets the control condition, sending the converted first operating instruction to the opposite-end cloud platform so as to trigger the first device to execute the converted first operating instruction; and synchronously sending the second operation instruction to the home terminal cloud platform so as to trigger the second equipment to synchronously execute the second operation instruction.
In some embodiments, the control module is further to: and under the condition that the converted first operation instruction comprises a plurality of sub-operation instructions, combining the plurality of sub-operation instructions to form a combined operation instruction, and sending the combined operation instruction to the opposite-end cloud platform.
In some embodiments, the control module is further to: determining a calling address of the opposite-end cloud platform according to the identifier of the opposite-end cloud platform; and sending the converted first operation instruction to the opposite-end cloud platform according to the interface corresponding to the calling address.
In some embodiments, the apparatus further comprises a storage module configured to: sending the callback address of the local cloud platform to the opposite cloud platform so that the opposite cloud platform can return a control result of the first device through an interface corresponding to the callback address; receiving a control result of the first device returned by the opposite-end cloud platform; caching the control log and the control result of the first equipment and the control log and the control result of the second equipment in a local memory; and under the condition that the control of any one of the first equipment and the second equipment is finished, displaying the control log and the control result of the any equipment on the local cloud platform.
In some embodiments, further comprising an authorization module to: acquiring the access frequency of the opposite-end cloud platform to the local-end cloud platform under the condition of receiving a data return request sent by the opposite-end cloud platform; searching the IP address of the opposite-end cloud platform in a domain name white list of the local-end cloud platform under the condition that the access frequency is determined to be greater than a frequency threshold value; and under the condition that the IP address of the opposite-end cloud platform is found, authorizing the data return request of the opposite-end cloud platform, so that the opposite-end cloud platform returns the control result of the first device under the condition that the data return request is determined to be authorized.
According to an aspect of an embodiment of the present application, there is provided an apparatus control method. The equipment control method is widely applied to full-House intelligent digital control application scenes such as intelligent homes (Smart Home), intelligent homes, intelligent Home equipment ecology, intelligent House (Intelligent House) ecology and the like. Alternatively, in this embodiment, the device control method described above may be applied to a hardware environment formed by the terminal device 401 and the server 402 as shown in fig. 4. As shown in fig. 4, the server 402 is connected to the terminal device 401 through a network, and may be configured to provide a service (e.g., an application service) for the terminal or a client installed on the terminal, set a database on the server or independent of the server, and provide a data storage service for the server 402, and configure a cloud computing and/or edge computing service on the server or independent of the server, and provide a data operation service for the server 402.
The network may include, but is not limited to, at least one of: wired networks, wireless networks. The wired network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, local area networks, which may include, but are not limited to, at least one of the following: WIFI (Wireless Fidelity ), bluetooth. The terminal device 401 may not be limited to a PC (Personal Computer), a mobile phone, a tablet PC, an intelligent air conditioner, an intelligent cigarette maker, an intelligent refrigerator, an intelligent oven, an intelligent stove, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent television, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and toilet device, an intelligent bathroom device, an intelligent floor sweeping robot, an intelligent window wiping robot, an intelligent floor mopping robot, an intelligent air purification device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen and toilet, an intelligent purifier, an intelligent water dispenser, an intelligent door lock, and the like.
Fig. 5 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 5: a processor (processor)501, a communication Interface (Communications Interface)502, a memory (memory)503, and a communication bus 504, wherein the processor 501, the communication Interface 502, and the memory 503 are configured to communicate with each other via the communication bus 504. The processor 501 may call logic instructions in the memory 503 to perform a device control method comprising: acquiring a control instruction based on a local cloud platform; the control instruction comprises an instruction for controlling the equipment to be controlled; under the condition that it is determined that first equipment belonging to an opposite-end cloud platform exists in the equipment to be controlled, converting a first operation instruction of the first equipment in the control instruction according to a preset operation instruction mapping relation; the operation instruction mapping relation comprises a plurality of groups of mapping relations between the operation instructions in the home cloud platform and the operation instructions in the opposite cloud platform; sending the converted first operating instruction to the opposite-end cloud platform, and sending a second operating instruction of second equipment in the control instruction to the local-end cloud platform so as to control the first equipment and the second equipment; and the second equipment is the equipment which belongs to the local cloud platform in the equipment to be controlled.
In addition, the logic instructions in the memory 503 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solutions of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
In another aspect, the present application further provides a computer program product, where the computer program product includes a computer program, the computer program can be stored on a computer-readable storage medium, and when the computer program is executed by a processor, a computer can execute the device control method provided by the above methods, where the method includes: acquiring a control instruction based on a local cloud platform; the control instruction comprises an instruction for controlling the equipment to be controlled; under the condition that it is determined that first equipment belonging to an opposite-end cloud platform exists in the equipment to be controlled, converting a first operation instruction of the first equipment in the control instruction according to a preset operation instruction mapping relation; the operation instruction mapping relation comprises a plurality of groups of mapping relations between the operation instructions in the home cloud platform and the operation instructions in the opposite cloud platform; sending the converted first operation instruction to the opposite-end cloud platform, and sending a second operation instruction of second equipment in the control instruction to the local-end cloud platform so as to control the first equipment and the second equipment; and the second equipment is the equipment which belongs to the local cloud platform in the equipment to be controlled.
In another aspect, the present application further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored program, where the program is executed to perform the apparatus control method provided by the foregoing methods when executed, and the method includes: acquiring a control instruction based on a local cloud platform; the control instruction comprises an instruction for controlling the equipment to be controlled; under the condition that it is determined that first equipment belonging to an opposite-end cloud platform exists in the equipment to be controlled, converting a first operation instruction of the first equipment in the control instruction according to a preset operation instruction mapping relation; the operation instruction mapping relation comprises a plurality of groups of mapping relations between operation instructions in the local cloud platform and operation instructions in the opposite cloud platform; sending the converted first operation instruction to the opposite-end cloud platform, and sending a second operation instruction of second equipment in the control instruction to the local-end cloud platform so as to control the first equipment and the second equipment; and the second equipment is the equipment which belongs to the local cloud platform in the equipment to be controlled.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. An apparatus control method characterized by comprising:
acquiring a control instruction based on a local cloud platform; the control instruction comprises an instruction for controlling the equipment to be controlled;
under the condition that it is determined that first equipment belonging to an opposite-end cloud platform exists in the equipment to be controlled, converting a first operation instruction of the first equipment in the control instruction according to a preset operation instruction mapping relation; the operation instruction mapping relation comprises a plurality of groups of mapping relations between operation instructions in the local cloud platform and operation instructions in the opposite cloud platform;
sending the converted first operation instruction to the opposite-end cloud platform, and sending a second operation instruction of second equipment in the control instruction to the local-end cloud platform so as to control the first equipment and the second equipment; the second device is a device belonging to the local cloud platform in the devices to be controlled.
2. The device control method according to claim 1, wherein the sending the converted first operation instruction to the peer cloud platform includes:
searching a login address of the opposite-end cloud platform in a local memory according to the identifier of the opposite-end cloud platform;
logging in an equipment control interface of the opposite-end cloud platform according to the login address;
and under the condition of receiving a login authorization code returned by the opposite-end cloud platform, sending the converted first operation instruction to the opposite-end cloud platform through the equipment control interface.
3. The apparatus control method according to claim 1, wherein the control instruction further includes a control condition;
the sending the converted first operation instruction to the opposite-end cloud platform, and sending a second operation instruction of the second device in the control instruction to the local-end cloud platform include:
under the condition that the current environment meets the control condition, sending the converted first operating instruction to the opposite-end cloud platform so as to trigger the first device to execute the converted first operating instruction;
and synchronously sending the second operating instruction to the home-end cloud platform so as to trigger the second equipment to synchronously execute the second operating instruction.
4. The device control method according to any one of claims 1 to 3, wherein the sending the converted first operation instruction to the peer cloud platform includes:
and under the condition that the converted first operation instruction comprises a plurality of sub-operation instructions, combining the plurality of sub-operation instructions to form a combined operation instruction, and sending the combined operation instruction to the opposite-end cloud platform.
5. The device control method according to any one of claims 1 to 3, wherein the sending the converted first operation instruction to the peer cloud platform includes:
determining a calling address of the opposite-end cloud platform according to the identifier of the opposite-end cloud platform;
and sending the converted first operation instruction to the opposite-end cloud platform according to the interface corresponding to the calling address.
6. The apparatus control method according to any one of claims 1 to 3, characterized in that the method further comprises:
sending the callback address of the local cloud platform to the opposite cloud platform so that the opposite cloud platform can return a control result of the first device through an interface corresponding to the callback address;
receiving a control result of the first device returned by the opposite-end cloud platform;
caching the control log and the control result of the first equipment and the control log and the control result of the second equipment in a local memory;
and under the condition that the control of any one of the first equipment and the second equipment is finished, displaying the control log and the control result of the any equipment on the local cloud platform.
7. The device control method according to claim 6, wherein before the receiving the control result of the first device returned by the peer cloud platform, the method further comprises:
acquiring the access frequency of the opposite-end cloud platform to the local-end cloud platform under the condition of receiving a data return request sent by the opposite-end cloud platform;
searching the IP address of the opposite-end cloud platform in a domain name white list of the local-end cloud platform under the condition that the access frequency is determined to be greater than a frequency threshold value;
and under the condition that the IP address of the opposite-end cloud platform is found, authorizing the data return request of the opposite-end cloud platform, so that the opposite-end cloud platform returns the control result of the first device under the condition that the data return request is determined to be authorized.
8. An apparatus control device, characterized by comprising:
the acquisition module is used for acquiring a control instruction based on the local cloud platform; the control instruction comprises an instruction for controlling the equipment to be controlled;
the translation module is used for converting a first operation instruction of the first device in the control instruction according to a preconfigured operation instruction mapping relation under the condition that the first device belonging to the opposite-end cloud platform exists in the devices to be controlled; the operation instruction mapping relation comprises a plurality of groups of mapping relations between operation instructions in the local cloud platform and operation instructions in the opposite cloud platform;
the control module is used for sending the converted first operation instruction to the opposite-end cloud platform and sending a second operation instruction of second equipment in the control instruction to the local-end cloud platform so as to control the first equipment and the second equipment; and the second equipment is the equipment which belongs to the local cloud platform in the equipment to be controlled.
9. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202210708110.8A 2022-06-21 2022-06-21 Device control method, device, storage medium, and electronic apparatus Pending CN115103033A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210708110.8A CN115103033A (en) 2022-06-21 2022-06-21 Device control method, device, storage medium, and electronic apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210708110.8A CN115103033A (en) 2022-06-21 2022-06-21 Device control method, device, storage medium, and electronic apparatus

Publications (1)

Publication Number Publication Date
CN115103033A true CN115103033A (en) 2022-09-23

Family

ID=83292313

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210708110.8A Pending CN115103033A (en) 2022-06-21 2022-06-21 Device control method, device, storage medium, and electronic apparatus

Country Status (1)

Country Link
CN (1) CN115103033A (en)

Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104852895A (en) * 2013-11-15 2015-08-19 株式会社理光 Card authentication for OAuth supported cloud services on a multi-function device
CN107995215A (en) * 2017-12-20 2018-05-04 青岛海信智慧家居系统股份有限公司 Control method, device and the cloud platform server of smart home device
CN109976173A (en) * 2019-03-18 2019-07-05 中国联合网络通信集团有限公司 Control method, device, equipment and the readable storage medium storing program for executing of smart home device
CN109992302A (en) * 2017-12-29 2019-07-09 英特尔公司 Spatial and temporal merging of remote atomic operations
CN110228067A (en) * 2019-06-13 2019-09-13 哈工大机器人(合肥)国际创新研究院 A kind of tow-armed robot combination operation test method based on laser tracker
CN110687820A (en) * 2019-11-07 2020-01-14 深圳市欧瑞博科技有限公司 Control method and device of intelligent household equipment, terminal equipment and storage medium
CN110740069A (en) * 2019-11-18 2020-01-31 中国银行股份有限公司 cross-cloud-platform hosting device and method
CN110932953A (en) * 2019-12-24 2020-03-27 苏州思必驰信息科技有限公司 Intelligent household control method and device, computer equipment and storage medium
CN110972131A (en) * 2019-10-31 2020-04-07 阿里巴巴集团控股有限公司 Authorization and control method, device, system and storage medium
CN111327662A (en) * 2018-12-17 2020-06-23 西安华为技术有限公司 Communication method and management device for heterogeneous Internet of things platform
CN111405059A (en) * 2020-03-26 2020-07-10 北京自如信息科技有限公司 Data transmission method of cloud equipment, electronic equipment and Internet of things system
CN111596562A (en) * 2020-05-15 2020-08-28 杭州涂鸦信息技术有限公司 Device control method, cloud device and computer storage medium
CN112286067A (en) * 2020-10-29 2021-01-29 深圳创维-Rgb电子有限公司 Intelligent household control method, device, server and readable storage medium
CN112600856A (en) * 2020-12-28 2021-04-02 青岛海尔科技有限公司 Equipment authorization method and device, storage medium and electronic device
CN113170000A (en) * 2019-02-22 2021-07-23 深圳市欢太科技有限公司 Equipment control method, device, system, electronic equipment and cloud server
CN113341742A (en) * 2021-06-04 2021-09-03 海尔(深圳)研发有限责任公司 Method and device for linkage control of household appliances and cloud control equipment
CN113438314A (en) * 2021-06-29 2021-09-24 青岛海尔科技有限公司 Equipment control method and device, storage medium and electronic device
CN113688046A (en) * 2021-08-26 2021-11-23 中国科学院上海高等研究院 Large-scale use case generation method for processor simulation verification
CN113848737A (en) * 2021-09-15 2021-12-28 珠海格力电器股份有限公司 Intelligent device control method, device and system, cloud server and storage medium
CN114167742A (en) * 2021-12-01 2022-03-11 招商局金融科技有限公司 Edge data processing method and device, computer equipment and storage medium
CN114338766A (en) * 2021-12-22 2022-04-12 珠海格力电器股份有限公司 Cross-platform equipment processing method and interconnection system

Patent Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104852895A (en) * 2013-11-15 2015-08-19 株式会社理光 Card authentication for OAuth supported cloud services on a multi-function device
CN107995215A (en) * 2017-12-20 2018-05-04 青岛海信智慧家居系统股份有限公司 Control method, device and the cloud platform server of smart home device
CN109992302A (en) * 2017-12-29 2019-07-09 英特尔公司 Spatial and temporal merging of remote atomic operations
CN111327662A (en) * 2018-12-17 2020-06-23 西安华为技术有限公司 Communication method and management device for heterogeneous Internet of things platform
CN113170000A (en) * 2019-02-22 2021-07-23 深圳市欢太科技有限公司 Equipment control method, device, system, electronic equipment and cloud server
CN109976173A (en) * 2019-03-18 2019-07-05 中国联合网络通信集团有限公司 Control method, device, equipment and the readable storage medium storing program for executing of smart home device
CN110228067A (en) * 2019-06-13 2019-09-13 哈工大机器人(合肥)国际创新研究院 A kind of tow-armed robot combination operation test method based on laser tracker
CN110972131A (en) * 2019-10-31 2020-04-07 阿里巴巴集团控股有限公司 Authorization and control method, device, system and storage medium
CN110687820A (en) * 2019-11-07 2020-01-14 深圳市欧瑞博科技有限公司 Control method and device of intelligent household equipment, terminal equipment and storage medium
CN110740069A (en) * 2019-11-18 2020-01-31 中国银行股份有限公司 cross-cloud-platform hosting device and method
CN110932953A (en) * 2019-12-24 2020-03-27 苏州思必驰信息科技有限公司 Intelligent household control method and device, computer equipment and storage medium
CN111405059A (en) * 2020-03-26 2020-07-10 北京自如信息科技有限公司 Data transmission method of cloud equipment, electronic equipment and Internet of things system
CN111596562A (en) * 2020-05-15 2020-08-28 杭州涂鸦信息技术有限公司 Device control method, cloud device and computer storage medium
CN112286067A (en) * 2020-10-29 2021-01-29 深圳创维-Rgb电子有限公司 Intelligent household control method, device, server and readable storage medium
CN112600856A (en) * 2020-12-28 2021-04-02 青岛海尔科技有限公司 Equipment authorization method and device, storage medium and electronic device
CN113341742A (en) * 2021-06-04 2021-09-03 海尔(深圳)研发有限责任公司 Method and device for linkage control of household appliances and cloud control equipment
CN113438314A (en) * 2021-06-29 2021-09-24 青岛海尔科技有限公司 Equipment control method and device, storage medium and electronic device
CN113688046A (en) * 2021-08-26 2021-11-23 中国科学院上海高等研究院 Large-scale use case generation method for processor simulation verification
CN113848737A (en) * 2021-09-15 2021-12-28 珠海格力电器股份有限公司 Intelligent device control method, device and system, cloud server and storage medium
CN114167742A (en) * 2021-12-01 2022-03-11 招商局金融科技有限公司 Edge data processing method and device, computer equipment and storage medium
CN114338766A (en) * 2021-12-22 2022-04-12 珠海格力电器股份有限公司 Cross-platform equipment processing method and interconnection system

Similar Documents

Publication Publication Date Title
CN105245596B (en) A kind of long-range control method and server
CN105681142B (en) networking system and networking method
CN104765291A (en) Method, device and gateway for controlling intelligent device
CN109039677A (en) Intelligent household scene update method, equipment, intelligent domestic gateway and system
CN113885349A (en) Local area network autonomous distributed intelligent home management method and system
CN115343962A (en) Intelligent household appliance control method and system, intelligent screen and storage medium
CN116016002A (en) Intelligent household appliance network distribution method and device and electronic device
CN116033006A (en) Data processing method, system, storage medium and electronic device
CN115327934A (en) Intelligent household scene recommendation method and system, storage medium and electronic device
CN115103033A (en) Device control method, device, storage medium, and electronic apparatus
WO2024016539A1 (en) Device control method and apparatus, and storage medium and electronic apparatus
CN113132333B (en) Networking login method, household appliance equipment, household appliance system and storage medium
CN116009438A (en) Control scene generation method and device, storage medium and electronic device
CN115200146A (en) Method and device for sending closing command, storage medium and electronic device
CN115314245B (en) Authority management method, system, storage medium and electronic device
CN114826899B (en) Debugging method and device for equipment control service, storage medium and electronic device
CN117749550A (en) Home appliance gateway distribution method and device, storage medium and electronic device
CN115174297B (en) Method and device for updating attribute information, storage medium and electronic device
CN115695510A (en) Control instruction sending method and device, storage medium and electronic device
CN117978487A (en) Cloud communication method, storage medium and electronic device
CN115550147A (en) Application service restarting method and device, storage medium and electronic device
CN116184886A (en) Equipment control method, device, storage medium and electronic device
CN115174383A (en) Device updating method, storage medium and electronic device
CN116578009A (en) Smart home coordinated control method, system, computing equipment and storage medium
CN117768465A (en) Scene execution method and device

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