[go: up one dir, main page]

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

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

Info

Publication number
CN115001885A
CN115001885A CN202210429673.3A CN202210429673A CN115001885A CN 115001885 A CN115001885 A CN 115001885A CN 202210429673 A CN202210429673 A CN 202210429673A CN 115001885 A CN115001885 A CN 115001885A
Authority
CN
China
Prior art keywords
target
control instruction
control
devices
configuration file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210429673.3A
Other languages
Chinese (zh)
Other versions
CN115001885B (en
Inventor
高鹏宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202210429673.3A priority Critical patent/CN115001885B/en
Publication of CN115001885A publication Critical patent/CN115001885A/en
Application granted granted Critical
Publication of CN115001885B publication Critical patent/CN115001885B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • H04L12/282Controlling appliance services of a home automation network by calling their functionalities based on user interaction within the home
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/303Terminal profiles
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Automation & Control Theory (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The application discloses an equipment control method and device, a storage medium and an electronic device, and relates to the technical field of smart families, wherein the equipment control method comprises the following steps: under the condition that a control instruction of a target object is acquired through a first gateway, determining a target device set to be controlled by the control instruction, wherein the target device set comprises: a plurality of target devices of a target device type; the device models of the target devices are different, and the control instruction is used for controlling each target device in the target devices to execute target operation; the method comprises the steps of obtaining a configuration file corresponding to the type of target equipment, transcoding control instructions according to the configuration file, and obtaining a plurality of target control instructions, wherein each control instruction in the plurality of target control instructions is used for controlling the corresponding target equipment to execute target operation; and respectively sending each target control instruction to the corresponding target equipment through the second gateway.

Description

Device control method and apparatus, storage medium, and electronic apparatus
Technical Field
The application relates to the technical field of smart homes, in particular to a device control method and device, a storage medium and an electronic device.
Background
With the development of technology and the improvement of quality of life, more and more intelligent home appliances enter the families of people, and in one family, a plurality of devices of the same type may appear, for example, one family may be provided with a plurality of air conditioners. But in the face of the same appliance of a different model or brand, the commands defined for the same action may not be consistent. Furthermore, if a user wants to open all devices of the same type at home at the same time, the user needs to issue control instructions to each device at the same time, so that the operation is troublesome and the user experience is poor.
Aiming at the problems of the related art that under the condition that a plurality of devices of the same type need to be controlled to execute the same operation, the control instructions of the devices of different types are different, and further the control instructions need to be respectively issued to the plurality of devices, so that the operation is complex, an effective solution is not provided at present.
Accordingly, there is a need for improvement in the related art to overcome the disadvantages of the related art.
Disclosure of Invention
The embodiment of the invention provides a device control method and device, a storage medium and an electronic device, which at least solve the problem of complicated operation caused by the fact that control instructions need to be respectively issued to a plurality of devices due to different control instructions of the devices of different models under the condition that the devices of the same type need to be controlled to execute the same operation.
According to an aspect of an embodiment of the present invention, there is provided an apparatus control method including: under the condition that a control instruction of a target object is acquired through a first gateway, determining a target device set to be controlled by the control instruction, wherein the target device set comprises: a plurality of target devices of a target device type; the control instruction is used for controlling each target device in the target devices to execute target operation; acquiring a configuration file corresponding to the type of the target equipment, and transcoding the control instruction according to the configuration file to obtain a plurality of target control instructions, wherein each control instruction in the plurality of target control instructions is used for controlling the corresponding target equipment to execute the target operation; and respectively sending each target control instruction to corresponding target equipment through a second gateway.
Further, determining a target device set to be controlled by the control instruction includes: performing semantic analysis on the voice control instruction under the condition that the control instruction is the voice control instruction to obtain a semantic analysis result; and determining the target equipment type of the equipment to be controlled according to the semantic analysis result, and determining the plurality of target equipment in the target area under the condition that the target area is obtained according to the semantic analysis result, wherein the equipment type of each target equipment in the plurality of target equipment is the target equipment type.
Further, determining the plurality of target devices located in the target area includes: determining a plurality of devices which establish communication connection with a cloud server; and determining the device type in the plurality of devices as the target device type and a plurality of target devices located in the target area.
Further, the method further comprises: under the condition that the target area is not obtained through the semantic analysis result, acquiring a preset area preset by the target object, and determining the target devices in the preset area; or acquiring the target devices preset by the target object.
Further, transcoding the control instruction through the configuration file to obtain a plurality of target control instructions, including: determining a control instruction format of each target device according to the configuration file and the device model of each target device; and determining each target control instruction according to the control parameter corresponding to the target operation and the control instruction format of each target device to obtain the plurality of target control instructions.
Further, after each target control instruction in the plurality of target control instructions is sent to the corresponding target device through the second gateway, the method further includes: determining a first version number of the configuration file; determining a second version number of a configuration file corresponding to the target device type in the cloud server; and under the condition that the second version number is higher than the first version number, acquiring a configuration file corresponding to the second version number from the cloud server, and updating the configuration file of the first version into the configuration file of the second version.
Further, obtaining a configuration file corresponding to the type of the target device includes: under the condition that the control instruction is a voice control instruction, carrying out voiceprint recognition on the voice control instruction to obtain a target voiceprint; determining whether the target voiceprint is located in a target voiceprint library, wherein the target voiceprint library stores voiceprints of devices allowing control over the type of the target device; and acquiring a configuration file corresponding to the type of the target equipment under the condition that the target voiceprint is determined to be located in the target voiceprint library.
According to another aspect of the embodiments of the present invention, there is also provided an apparatus control device, including: the determining module is configured to determine a target device set to be controlled by a control instruction when the control instruction of a target object is acquired through a first gateway, where the target device set includes: a plurality of target devices of a target device type; the target devices are different in device model, and the control instruction is used for controlling each target device in the target devices to execute target operation; the processing module is used for acquiring a configuration file corresponding to the type of the target equipment and transcoding the control instruction according to the configuration file to obtain a plurality of target control instructions, wherein each control instruction in the plurality of target control instructions is used for controlling the corresponding target equipment to execute the target operation; and the sending module is used for sending each target control instruction to the corresponding target equipment through the second gateway.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the above-mentioned device control method when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the apparatus control method through the computer program.
According to the method and the device, the target device set to be controlled and provided with the target device type is determined according to the control command of the target object, the configuration file corresponding to the target device type is further obtained, the control command is transcoded according to the configuration file, a plurality of target control commands are obtained, and each target control command is further sent to the corresponding target device respectively, so that each target device executes the operation corresponding to the control command. That is to say, control instructions are converted into a plurality of target control instructions corresponding to different models through the configuration file, and then each device executes the same operation through the corresponding target control instruction, so that the operation is simple, the control device which is fast for a user can execute the same operation, the experience of the user is improved, and the problem that the operation is complex due to the fact that the control instructions of the devices of different models are different and the control instructions need to be respectively issued to the devices under the condition that the devices of the same type need to be controlled to execute the same operation is solved.
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 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 labor.
FIG. 1 is a diagram illustrating a hardware environment of a device control method according to an embodiment of the present application;
FIG. 2 is a flow chart (one) of a device control method according to an embodiment of the present invention;
fig. 3 is a flowchart of an apparatus control method according to an embodiment of the present invention (two);
fig. 4 is a flowchart (iii) of an apparatus control method according to an embodiment of the present invention;
fig. 5 is a flowchart (iv) of an apparatus control method according to an embodiment of the present invention;
FIG. 6 is a block diagram (I) of the structure of the device control apparatus according to the embodiment of the present invention
Fig. 7 is a block diagram (ii) of the configuration of the device control apparatus according to the embodiment of the present invention.
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, which can be derived by a person skilled in the art from the embodiments given herein 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 the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be implemented 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.
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 Smart Home, intelligent Home equipment ecology, intelligent house (intelligence 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 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 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 104, 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 104.
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. Terminal equipment 102 can be but not limited to be PC, the cell-phone, the panel computer, intelligent air conditioner, intelligent cigarette machine, intelligent refrigerator, intelligent oven, intelligent kitchen range, intelligent washing machine, intelligent water heater, intelligent washing equipment, intelligent dish washer, intelligent projection equipment, intelligent TV, intelligent clothes hanger, intelligent (window) curtain, intelligence audio-visual, smart jack, intelligent stereo set, intelligent audio amplifier, intelligent new trend equipment, intelligent kitchen guarding equipment, intelligent bathroom equipment, intelligence robot of sweeping the floor, intelligence robot of wiping the window, intelligence robot of mopping the ground, intelligent air purification equipment, intelligent steam ager, intelligent microwave oven, intelligent kitchen is precious, intelligent clarifier, intelligent water dispenser, intelligent lock etc..
In order to solve the above problem, in this embodiment, a device control method is provided, and fig. 2 is a flowchart (one) of the device control method according to the embodiment of the present invention, where the flowchart includes the following steps:
step S202, under the condition that a control instruction of a target object is obtained through a first gateway, determining a target device set to be controlled by the control instruction, wherein the target device set comprises: a plurality of target devices of a target device type; the target devices are different in device model, and the control instruction is used for controlling each target device in the target devices to execute target operation;
it should be noted that the target object may be a user who controls a device, and in an exemplary embodiment, the control instruction of the target object may be acquired by a device of a target device type, or may be acquired by another device. For example, assuming that the type of the target device to be controlled is an air conditioner, the control instruction may be acquired through the air conditioner or the volume, and then the device that acquires the control instruction sends the control instruction to the cloud server, where the first gateway is a network bridge between a network where the device that acquires the control instruction is located and a network where the cloud server is located.
It should be noted that, in an exemplary embodiment, the target device type may be an air conditioner, and the target device set is a set of a plurality of air conditioners of different models. The above-described target operation may set the air conditioner to the cooling mode and adjust the temperature to 26 degrees celsius.
Step S204, a configuration file corresponding to the type of the target equipment is obtained, transcoding is carried out on the control instruction according to the configuration file, and a plurality of target control instructions are obtained, wherein each control instruction in the plurality of target control instructions is used for controlling the corresponding target equipment to execute the target operation;
for better understanding, it is assumed that the air conditioner a is started up (BootUp), the temperature is set to (temperature), the air conditioner of the model B is started up (onOffStatus), and the temperature is set to (Celcius), and after the control instruction is obtained, the control instruction can be converted into target control instructions of respective starting up and temperature setting of the air conditioner a and the air conditioner B through a configuration file, and the air conditioner a and the air conditioner B are respectively controlled to execute the starting up and temperature setting.
In an exemplary embodiment, if the control instruction is a voice control instruction, it is necessary to perform voiceprint recognition on the voice control instruction to obtain a target voiceprint, and it is further necessary to determine whether the target voiceprint is located in a target voiceprint library, only when it is determined that the target voiceprint is located in the target voiceprint library, a configuration file corresponding to the type of the target device is obtained, and when the target voiceprint is not located in the target voiceprint library, a prompt voice is sent out to prompt a user that device control cannot be performed. It should be noted that the target voiceprint library stores voiceprints of devices that allow control of the target device type.
In an exemplary embodiment, if the control instruction is issued in the application program by the user, it is necessary to determine a target account used by the user to issue the control instruction, and only when it is determined that the target account allows to control the device of the target device type, the configuration file corresponding to the target device type is acquired. Otherwise, the user is prompted that the equipment control cannot be carried out.
Step S206, sending each target control instruction to the corresponding target device through the second gateway.
It should be noted that the second gateway is a network bridge between the network where the cloud server is located and the network where the target device is located. The first gateway may or may not be the same as the second gateway.
It should be noted that the technical solution of this embodiment can be applied to the device control service of the cloud server.
Through the steps, the control instruction issued by the user is converted into the plurality of target control instructions corresponding to different models by using the configuration file, and then each device executes the same operation through the corresponding target control instruction.
In an exemplary embodiment, the determining of the target device set to be controlled by the control instruction may be implemented by:
step S1, carrying out semantic analysis on the voice control instruction under the condition that the control instruction is the voice control instruction to obtain a semantic analysis result;
step S2, determining the target device type of the device to be controlled according to the semantic analysis result, and determining the multiple target devices located in the target area under the condition that the target area is obtained according to the semantic analysis result, where it should be noted that the device type of each of the multiple target devices is the target device type.
For better understanding, as an alternative example, it is assumed that the control command is a voice control command: the method comprises the steps that all air conditioners in a classroom are turned on, any one device in the classroom can collect a voice control instruction, the voice control instruction is sent to a cloud server, the cloud server conducts semantic recognition, the type of a target device is obtained and is an air conditioner, the class where the air conditioner collecting the voice control instruction is located in a target area is determined, and then all air conditioners to be controlled in the class can be determined. The plurality of target devices include all air conditioners in a classroom.
In an exemplary embodiment, the determining of the plurality of target devices located in the target area may be implemented by: determining a plurality of devices which establish communication connection with a cloud server; determining the device type of the plurality of devices as the target device type and the plurality of target devices located in the target area.
That is to say, all the devices that establish communication connection with the cloud server need to be determined, the positions of all the devices need to be determined, and then the devices whose positions are in the target area and whose device types are the target device types are determined as the target devices, so that the target device set can be obtained.
In an exemplary embodiment, when the target area is not obtained according to the semantic analysis result, a preset area preset by a target object may be obtained, and the target devices are determined according to the preset area; or acquiring the target devices preset by the target object.
That is, a user may preset a control area (the preset area), and then, when the voice control instruction is identified and the control area issued by the user is not determined, the preset control area is used to determine the target device set to be controlled. The user can also set in advance which types of equipment need to be uniformly controlled. As an alternative example, assuming that the target device type is air conditioner, the user may control the air conditioners of the device types a, B, and C together in advance.
In an exemplary embodiment, transcoding the control instruction through the configuration file to obtain a plurality of target control instructions may be implemented by:
step S1: determining a control instruction format of each target device according to the configuration file and the device model of each target device;
it should be noted that, because the formats of the corresponding actual control instructions are different for the same operation by the devices of different models, in one case, because the bottom boards of the devices of different models are different, the formats of the control instructions corresponding to the execution operation of the devices of different models can be recorded by one configuration file.
Step S2: and determining each target control instruction according to the control parameter corresponding to the target operation and the control instruction format of each target device to obtain the plurality of target control instructions.
That is to say, after the control instruction formats of different models are determined, only the control parameter corresponding to the execution of the target operation needs to be converted into the corresponding target control instruction through the different control instruction formats, in other words, in this embodiment, only the control instruction format of each device model needs to be acquired, and then the control parameter is issued to the devices of different device models according to the corresponding control instruction format, so that the devices of different models can all execute the target operation, and the user is prevented from needing to issue the control instruction respectively for the devices of different models. It should be noted that the device control server may instruct the transcoding parser to perform the above steps S1-S2.
In an exemplary embodiment, after each target control instruction in the plurality of target control instructions is sent to a corresponding target device, a first version number of the configuration file needs to be determined; determining a second version number of a configuration file corresponding to the target device type in the cloud server; and under the condition that the second version number is higher than the first version number, acquiring a configuration file corresponding to the second version number from the cloud server, and updating the configuration file of the first version into the configuration file of the second version.
It is to be understood that the above-described embodiments are only a few, but not all, embodiments of the present invention. In order to better understand the above device control method, the following describes the above process with reference to an embodiment, but the process is not limited to the technical solution of the embodiment of the present invention, and specifically:
in an alternative embodiment, fig. 3 is a flowchart (ii) of a device control method according to an embodiment of the present invention, and the specific steps are as follows:
step S302: starting;
step S304: a user issues a control command;
step S306: sending a control instruction to the device control service through a user gateway (corresponding to the first gateway in the above embodiment);
step S308: the equipment control service analyzes the control instruction;
step S310: sending target control instructions corresponding to different types of equipment through an equipment gateway (equivalent to a second gateway in the embodiment);
step S312: receiving corresponding target control instructions by devices of different models;
step S314: and (6) ending.
That is, the command issued by the user is issued to the device control service by the user gateway, the device control service performs transcoding and other processing on the command, and then issues the command to the device gateway, and finally the device gateway issues the command to different devices.
To better understand how the device control service parses the control command, fig. 4 is a flowchart (iii) of a device control method according to an embodiment of the present invention, and the specific steps are as follows:
step S402: starting;
step S404: under the condition of acquiring the control instruction, judging whether a calling party needs transcoding, if so, executing the step S406, otherwise, executing the step S410;
step S406: acquiring a configuration file of the latest version to obtain a transcoding resolver;
step S408: transcoding the control command through a transcoding resolver;
step S410: and (6) ending.
That is to say, when the device control service receives the control instruction, the authority of the caller is checked first, and whether the control instruction needs to be transcoded is determined. And if transcoding is required, converting the control command by using a transcoding resolver.
In order to better control how the service obtains the latest version of the configuration file to obtain the transcoding parser, fig. 5 is a flowchart (four) of a device control method according to an embodiment of the present invention, and the specific steps are as follows:
step S502: creating a timing task;
step S504: downloading a configuration file list from a cloud server;
step S506: comparing with a local configuration file list;
step S508: determining whether there is an update, if yes, executing step S510, otherwise executing step S512;
step S510: downloading the latest configuration file;
step S512: and (5) delaying the thread, and executing the step S504.
That is to say, when the device control service is started, the configuration file is downloaded from the cloud server to the local, and the transcoding resolver is initialized. And meanwhile, starting a timing task, periodically downloading a configuration file list from the cloud, downloading the updated configuration file when the configuration file is updated, reloading the configuration file, and reinitializing the transcoding resolver.
It should be noted that, according to the technical scheme of the embodiment of the application, a command can be used for uniformly controlling the same type of equipment with different models in a home, so that the control success rate is improved, and the user experience is optimized. Meanwhile, dynamic configuration is supported, the configuration file is timely changed, and for developers, the code is convenient to maintain and manage.
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 (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
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 devices described in the following embodiments are preferably implemented in software, implementations in hardware or a combination of software and hardware are also possible and contemplated.
Fig. 6 is a block diagram (a) of a device control apparatus according to an embodiment of the present invention, the apparatus including:
the determining module 62 is configured to, in a case that a control instruction of a target object is obtained through a first gateway, determine a target device set to be controlled by the control instruction, where the target device set includes: a plurality of target devices of a target device type; the target devices are different in device model, and the control instruction is used for controlling each target device in the target devices to execute target operation;
a processing module 64, configured to obtain a configuration file corresponding to the type of the target device, and transcode the control instruction according to the configuration file to obtain a plurality of target control instructions, where each control instruction in the plurality of target control instructions is used to control a corresponding target device to execute the target operation;
and a sending module 66, configured to send each target control instruction to the corresponding target device through the second gateway.
Through the device, the control instruction issued by the user is converted into the plurality of target control instructions corresponding to different models through the configuration file, and then each device executes the same operation through the corresponding target control instruction.
In an exemplary embodiment, the determining module 62 is further configured to perform semantic analysis on the voice control instruction to obtain a semantic analysis result, if the control instruction is a voice control instruction; and determining the target equipment type of the equipment to be controlled according to the semantic analysis result, and determining the plurality of target equipment in the target area under the condition that the target area is obtained according to the semantic analysis result, wherein the equipment type of each target equipment in the plurality of target equipment is the target equipment type.
In an example embodiment, the determining module 62 is further configured to determine a plurality of devices that establish a communication connection with the cloud server; determining the device type of the plurality of devices as the target device type and the plurality of target devices located in the target area.
In an exemplary embodiment, the determining module 62 is further configured to, when the target area is not obtained according to the semantic analysis result, obtain a preset area preset by the target object, and determine the plurality of target devices located in the preset area; or acquiring the target devices preset by the target object.
In an exemplary embodiment, the processing module 64 is further configured to determine a control instruction format of each target device according to the configuration file and the device model of each target device; and determining each target control instruction according to the control parameter corresponding to the target operation and the control instruction format of each target device to obtain the plurality of target control instructions.
In an exemplary embodiment, the processing module 64 is further configured to perform voiceprint recognition on the voice control instruction to obtain a target voiceprint when the control instruction is the voice control instruction; determining whether the target voiceprint is located in a target voiceprint library, wherein the target voiceprint library stores voiceprints of devices allowing control over the type of the target device; and acquiring a configuration file corresponding to the type of the target equipment under the condition that the target voiceprint is determined to be located in the target voiceprint library.
Fig. 7 is a block diagram (ii) of the configuration of a device control apparatus according to an embodiment of the present invention, the apparatus including: the module 68 is updated.
In an exemplary embodiment, the update module 68 is further configured to determine a first version number of the configuration file; determining a second version number of a configuration file corresponding to the target device type in the cloud server; and under the condition that the second version number is higher than the first version number, acquiring a configuration file corresponding to the second version number from the cloud server, and updating the configuration file of the first version into the configuration file of the second version.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, when a control instruction of a target object is obtained through a first gateway, determining a target device set to be controlled by the control instruction, where the target device set includes: a plurality of target devices of a target device type; the control instruction is used for controlling each target device in the target devices to execute target operation;
s2, obtaining a configuration file corresponding to the type of the target device, and transcoding the control instruction according to the configuration file to obtain a plurality of target control instructions, wherein each control instruction in the plurality of target control instructions is used for controlling the corresponding target device to execute the target operation;
and S3, respectively sending each target control instruction to the corresponding target device through the second gateway.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
Embodiments of the present invention further provide an electronic device, comprising 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.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, when a control instruction of a target object is obtained through a first gateway, determining a target device set to be controlled by the control instruction, where the target device set includes: a plurality of target devices of a target device type; the control instruction is used for controlling each target device in the target devices to execute target operation;
s2, obtaining a configuration file corresponding to the type of the target device, and transcoding the control instruction according to the configuration file to obtain a plurality of target control instructions, wherein each control instruction in the plurality of target control instructions is used for controlling the corresponding target device to execute the target operation;
and S3, respectively sending each target control instruction to the corresponding target device through the second gateway.
In an exemplary embodiment, 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.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the 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 various 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 foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1.一种设备控制方法,其特征在于,包括:1. a device control method, is characterized in that, comprises: 在通过第一网关获取到目标对象的控制指令的情况下,确定所述控制指令待控制的目标设备集合,其中,所述目标设备集合包括:目标设备类型的多个目标设备;所述多个目标设备的设备型号不同,所述控制指令用于控制所述多个目标设备中的每个目标设备均执行目标操作;In the case where the control instruction of the target object is acquired through the first gateway, a set of target devices to be controlled by the control instruction is determined, wherein the set of target devices includes: multiple target devices of a target device type; the multiple The device models of the target devices are different, and the control instruction is used to control each target device in the multiple target devices to perform the target operation; 获取与所述目标设备类型相对应的配置文件,并根据所述配置文件对所述控制指令进行转码,得到多个目标控制指令,其中,所述多个目标控制指令中的每个控制指令用于控制对应的目标设备执行所述目标操作;Acquire a configuration file corresponding to the target device type, and transcode the control instruction according to the configuration file to obtain multiple target control instructions, wherein each control instruction in the multiple target control instructions for controlling the corresponding target device to perform the target operation; 通过第二网关将所述每个目标控制指令分别发送至对应的目标设备。Each target control instruction is respectively sent to the corresponding target device through the second gateway. 2.根据权利要求1所述的方法,其特征在于,确定所述控制指令待控制的目标设备集合,包括:2. The method according to claim 1, wherein determining the target device set to be controlled by the control instruction comprises: 在所述控制指令为语音控制指令的情况下,对所述语音控制指令进行语义分析,得到语义分析结果;In the case that the control instruction is a voice control instruction, semantic analysis is performed on the voice control instruction to obtain a semantic analysis result; 通过所述语义分析结果确定待控制的设备的目标设备类型,并在通过所述语义分析结果得到目标区域的情况下,确定位于所述目标区域的所述多个目标设备,其中,所述多个目标设备中每一个目标设备的设备类型均为所述目标设备类型。The target device type of the device to be controlled is determined according to the semantic analysis result, and when the target area is obtained through the semantic analysis result, the multiple target devices located in the target area are determined, wherein the multiple target devices are located in the target area. The device type of each target device in the target devices is the target device type. 3.根据权利要求2所述的方法,其特征在于,确定位于所述目标区域的所述多个目标设备,包括:3. The method according to claim 2, wherein determining the plurality of target devices located in the target area comprises: 确定与云端服务器建立通信连接的多个设备;Determine multiple devices that establish a communication connection with the cloud server; 确定所述多个设备中设备类型为所述目标设备类型,且位于所述目标区域的多个目标设备。It is determined that the device type among the plurality of devices is the target device type and is located in the target area for a plurality of target devices. 4.根据权利要求2所述的方法,其特征在于,所述方法还包括:4. The method according to claim 2, wherein the method further comprises: 在通过所述语义分析结果未得到所述目标区域的情况下,获取所述目标对象预先设置的预设区域,并确定位于所述预设区域的所述多个目标设备;或If the target area is not obtained through the semantic analysis result, acquire a preset area preset by the target object, and determine the multiple target devices located in the preset area; or 获取所述目标对象预先设置的所述多个目标设备。Acquire the multiple target devices preset by the target object. 5.根据权利要求1所述的方法,其特征在于,通过所述配置文件对所述控制指令进行转码,得到多个目标控制指令,包括:5. The method according to claim 1, wherein the control instruction is transcoded by the configuration file to obtain a plurality of target control instructions, comprising: 通过所述配置文件与所述每个目标设备的设备型号确定所述每个目标设备的控制指令格式;Determine the control instruction format of each target device through the configuration file and the device model of each target device; 通过所述目标操作对应的控制参数与所述每个目标设备的控制指令格式确定所述每个目标控制指令,得到所述多个目标控制指令。Each target control instruction is determined by the control parameter corresponding to the target operation and the control instruction format of each target device, and the multiple target control instructions are obtained. 6.根据权利要求1所述的方法,其特征在于,通过第二网关将所述多个目标控制指令中的每个目标控制指令分别发送至对应的目标设备之后,所述方法还包括:6. The method according to claim 1, wherein after each target control instruction in the plurality of target control instructions is respectively sent to the corresponding target device through the second gateway, the method further comprises: 确定所述配置文件的第一版本号;以及determining a first version number of the configuration file; and 确定云端服务器中与所述目标设备类型对应的配置文件的第二版本号;determining the second version number of the configuration file corresponding to the target device type in the cloud server; 在所述第二版本号高于所述第一版本号的情况下,从所述云端服务器中获取所述第二版本号对应的配置文件,并将所述第一版本的配置文件更新为所述第二版本的配置文件。In the case that the second version number is higher than the first version number, obtain the configuration file corresponding to the second version number from the cloud server, and update the configuration file of the first version to the the configuration file for the second version. 7.根据权利要求1所述的方法,其特征在于,获取与目标设备类型相对应的配置文件,包括:7. The method according to claim 1, wherein obtaining a configuration file corresponding to the target device type, comprising: 在所述控制指令为语音控制指令的情况下,对所述语音控制指令进行声纹识别,得到目标声纹;In the case that the control command is a voice control command, perform voiceprint recognition on the voice control command to obtain a target voiceprint; 确定所述目标声纹是否位于目标声纹库,其中,所述目标声纹库中存储有允许控制所述目标设备类型的设备的声纹;determining whether the target voiceprint is located in a target voiceprint library, wherein the target voiceprint library stores voiceprints that allow control of devices of the target device type; 在确定所述目标声纹位于所述目标声纹库的情况下,获取与目标设备类型相对应的配置文件。When it is determined that the target voiceprint is located in the target voiceprint library, a configuration file corresponding to the target device type is acquired. 8.一种设备控制装置,其特征在于,包括:8. A device control device, characterized in that, comprising: 确定模块,用于在通过第一网关获取到目标对象的控制指令的情况下,确定所述控制指令待控制的目标设备集合,其中,所述目标设备集合包括:目标设备类型的多个目标设备;所述多个目标设备的设备型号不同,所述控制指令用于控制所述多个目标设备中的每个目标设备均执行目标操作;a determining module, configured to determine a set of target devices to be controlled by the control instruction when the control instruction of the target object is obtained through the first gateway, wherein the set of target devices includes: multiple target devices of the target device type ; The device models of the plurality of target devices are different, and the control instruction is used to control each target device in the plurality of target devices to perform the target operation; 处理模块,用于获取与所述目标设备类型相对应的配置文件,并根据所述配置文件对所述控制指令进行转码,得到多个目标控制指令,其中,所述多个目标控制指令中的每个控制指令用于控制对应的目标设备执行所述目标操作;A processing module, configured to obtain a configuration file corresponding to the target device type, and transcode the control instruction according to the configuration file to obtain multiple target control instructions, wherein among the multiple target control instructions Each control instruction of is used to control the corresponding target device to perform the target operation; 发送模块,用于通过第二网关将所述每个目标控制指令分别发送至对应的目标设备。The sending module is configured to send each target control instruction to the corresponding target device through the second gateway. 9.一种计算机可读的存储介质,其特征在于,所述计算机可读的存储介质包括存储的程序,其中,所述程序运行时执行权利要求1至7中任一项所述的方法。9 . A computer-readable storage medium, wherein the computer-readable storage medium comprises a stored program, wherein the program executes the method according to any one of claims 1 to 7 when the program is run. 10 . 10.一种电子装置,包括存储器和处理器,其特征在于,所述存储器中存储有计算机程序,所述处理器被设置为通过所述计算机程序执行权利要求1至7中任一项所述的方法。10. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the computer program according to any one of claims 1 to 7 through the computer program Methods.
CN202210429673.3A 2022-04-22 2022-04-22 Equipment control method and device, storage medium and electronic device Active CN115001885B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210429673.3A CN115001885B (en) 2022-04-22 2022-04-22 Equipment control method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210429673.3A CN115001885B (en) 2022-04-22 2022-04-22 Equipment control method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN115001885A true CN115001885A (en) 2022-09-02
CN115001885B CN115001885B (en) 2024-01-26

Family

ID=83025837

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210429673.3A Active CN115001885B (en) 2022-04-22 2022-04-22 Equipment control method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115001885B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116430742A (en) * 2023-03-27 2023-07-14 青岛海尔科技有限公司 Method, device, control system, storage medium and electronic device for executing operation instructions
CN116658405A (en) * 2023-05-25 2023-08-29 四川虹美智能科技有限公司 A method and system for driving and controlling variable frequency compressors in the cloud
WO2024244822A1 (en) * 2023-05-29 2024-12-05 宁德时代未来能源(上海)研究院有限公司 Energy storage system communication control method and apparatus, device, energy storage system, and medium

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426928A (en) * 2013-08-22 2015-03-18 中国科学院计算机网络信息中心 Heterogeneous intelligent household electrical appliance intercommunication control method based on identification service of Internet of things
US20150295760A1 (en) * 2014-04-09 2015-10-15 Centurylink Intellectual Property Llc System and Method for Cloud Computing Adaptive Cloud Services
CN105207863A (en) * 2015-08-31 2015-12-30 青岛海尔智能家电科技有限公司 Method for controlling heterogeneous intelligent home electric appliances, cloud platform and home gateway
WO2017219653A1 (en) * 2016-06-24 2017-12-28 中兴通讯股份有限公司 Device control method, apparatus and system, and file sending method and apparatus
CN109102803A (en) * 2018-08-09 2018-12-28 珠海格力电器股份有限公司 Control method and device of household appliance, storage medium and electronic device
US10169035B1 (en) * 2017-09-06 2019-01-01 International Business Machines Corporation Customized static source code analysis
CN109302464A (en) * 2018-09-18 2019-02-01 爱普(福建)科技有限公司 The APP unified control method and system of smart home device based on control station
CN111240222A (en) * 2020-01-23 2020-06-05 珠海荣邦电子科技有限公司 Intelligent household control system, method and device
US20210119871A1 (en) * 2019-10-21 2021-04-22 Citrix Systems, Inc. Proxy configuration for multiple networks
US20210160130A1 (en) * 2018-05-14 2021-05-27 Zte Corporation Method and Apparatus for Determining Target Object, Storage Medium, and Electronic Device
CN113093596A (en) * 2021-03-29 2021-07-09 北京金山云网络技术有限公司 Control instruction processing method and device
KR20210091328A (en) * 2020-06-29 2021-07-21 바이두 온라인 네트웍 테크놀러지 (베이징) 캄파니 리미티드 Applet's voice control method, device and storage medium
CN113422814A (en) * 2021-06-16 2021-09-21 青岛易来智能科技股份有限公司 Method and system for sending device control command, storage medium and electronic device
CN113791689A (en) * 2021-09-15 2021-12-14 云茂互联智能科技(厦门)有限公司 Control method and device of intelligent equipment, storage medium and electronic device
CN113921004A (en) * 2021-09-26 2022-01-11 北京金山云网络技术有限公司 Intelligent device control method and device, storage medium and electronic device
CN114141242A (en) * 2021-12-03 2022-03-04 青岛海尔科技有限公司 Control method, system, device, storage medium and electronic device of household appliance
WO2022052481A1 (en) * 2020-09-08 2022-03-17 平安科技(深圳)有限公司 Artificial intelligence-based vr interaction method, apparatus, computer device, and medium
CN114203176A (en) * 2021-11-29 2022-03-18 云知声智能科技股份有限公司 Control method, device, storage medium and electronic device for intelligent equipment

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426928A (en) * 2013-08-22 2015-03-18 中国科学院计算机网络信息中心 Heterogeneous intelligent household electrical appliance intercommunication control method based on identification service of Internet of things
US20150295760A1 (en) * 2014-04-09 2015-10-15 Centurylink Intellectual Property Llc System and Method for Cloud Computing Adaptive Cloud Services
CN105207863A (en) * 2015-08-31 2015-12-30 青岛海尔智能家电科技有限公司 Method for controlling heterogeneous intelligent home electric appliances, cloud platform and home gateway
WO2017219653A1 (en) * 2016-06-24 2017-12-28 中兴通讯股份有限公司 Device control method, apparatus and system, and file sending method and apparatus
US10169035B1 (en) * 2017-09-06 2019-01-01 International Business Machines Corporation Customized static source code analysis
US20210160130A1 (en) * 2018-05-14 2021-05-27 Zte Corporation Method and Apparatus for Determining Target Object, Storage Medium, and Electronic Device
CN109102803A (en) * 2018-08-09 2018-12-28 珠海格力电器股份有限公司 Control method and device of household appliance, storage medium and electronic device
CN109302464A (en) * 2018-09-18 2019-02-01 爱普(福建)科技有限公司 The APP unified control method and system of smart home device based on control station
US20210119871A1 (en) * 2019-10-21 2021-04-22 Citrix Systems, Inc. Proxy configuration for multiple networks
CN111240222A (en) * 2020-01-23 2020-06-05 珠海荣邦电子科技有限公司 Intelligent household control system, method and device
KR20210091328A (en) * 2020-06-29 2021-07-21 바이두 온라인 네트웍 테크놀러지 (베이징) 캄파니 리미티드 Applet's voice control method, device and storage medium
US20210327426A1 (en) * 2020-06-29 2021-10-21 Beijing Baidu Netcom Science Technology Co., Ltd. Voice control method for applet and device, and storage medium
WO2022052481A1 (en) * 2020-09-08 2022-03-17 平安科技(深圳)有限公司 Artificial intelligence-based vr interaction method, apparatus, computer device, and medium
CN113093596A (en) * 2021-03-29 2021-07-09 北京金山云网络技术有限公司 Control instruction processing method and device
CN113422814A (en) * 2021-06-16 2021-09-21 青岛易来智能科技股份有限公司 Method and system for sending device control command, storage medium and electronic device
CN113791689A (en) * 2021-09-15 2021-12-14 云茂互联智能科技(厦门)有限公司 Control method and device of intelligent equipment, storage medium and electronic device
CN113921004A (en) * 2021-09-26 2022-01-11 北京金山云网络技术有限公司 Intelligent device control method and device, storage medium and electronic device
CN114203176A (en) * 2021-11-29 2022-03-18 云知声智能科技股份有限公司 Control method, device, storage medium and electronic device for intelligent equipment
CN114141242A (en) * 2021-12-03 2022-03-04 青岛海尔科技有限公司 Control method, system, device, storage medium and electronic device of household appliance

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李娜: "物联网中无线传感器网络安全关键技术研究", 西安电子科技大学, pages 7 - 20 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116430742A (en) * 2023-03-27 2023-07-14 青岛海尔科技有限公司 Method, device, control system, storage medium and electronic device for executing operation instructions
CN116658405A (en) * 2023-05-25 2023-08-29 四川虹美智能科技有限公司 A method and system for driving and controlling variable frequency compressors in the cloud
WO2024244822A1 (en) * 2023-05-29 2024-12-05 宁德时代未来能源(上海)研究院有限公司 Energy storage system communication control method and apparatus, device, energy storage system, and medium

Also Published As

Publication number Publication date
CN115001885B (en) 2024-01-26

Similar Documents

Publication Publication Date Title
US11546186B2 (en) Automatic device orchestration and configuration
CN115167164B (en) Device scene determination method and device, storage medium and electronic device
CN115001885A (en) Device control method and apparatus, storage medium, and electronic apparatus
CN115296948B (en) Method and device for updating scene information, storage medium and electronic device
CN114938365A (en) Method and device for updating functional module, storage medium and electronic device
CN115047797A (en) Equipment operation method and device combined with behavior preference and storage medium
CN114697150A (en) Command issuing method and device, storage medium and electronic device
CN115174609A (en) Control instruction sending method and device, storage medium and electronic device
CN116107253A (en) Method and device for determining equipment use scene, storage medium and electronic device
CN115460060B (en) Device upgrading method and device of intelligent device, storage medium and electronic device
CN115309062B (en) Device control method, device, storage medium and electronic device
CN117768465A (en) A scene execution method and device
CN115469638B (en) Interface testing methods and apparatus, storage media and electronic devices
CN116107975A (en) Equipment control method and device, storage medium and electronic device
CN115631832A (en) Cooking plan determination method and device, storage medium and electronic device
CN115174297A (en) Attribute information updating method and device, storage medium and electronic device
CN115525309A (en) Version updating method and device, storage medium and electronic device
CN115032907A (en) Method and device for updating perception parameters, storage medium and electronic device
CN115268324A (en) Instruction correction method and apparatus, storage medium, and electronic apparatus
CN114860767A (en) Remaining quality guarantee duration prompting method and device, storage medium and electronic device
CN114826899B (en) Debugging methods and devices, storage media and electronic devices for equipment control services
CN115766427B (en) Visual configuration system, project creation method and device and electronic device
CN115296958B (en) Distribution method and device of equipment control tasks, storage medium and electronic device
CN115296947B (en) Control command response method and device, storage medium and electronic device
CN117376042A (en) Function platform configuration method, device and electronic device of intelligent equipment

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