CN115001885B - Equipment control method and device, storage medium and electronic device - Google Patents

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

Info

Publication number
CN115001885B
CN115001885B CN202210429673.3A CN202210429673A CN115001885B CN 115001885 B CN115001885 B CN 115001885B CN 202210429673 A CN202210429673 A CN 202210429673A CN 115001885 B CN115001885 B CN 115001885B
Authority
CN
China
Prior art keywords
target
control instruction
control
configuration file
devices
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210429673.3A
Other languages
Chinese (zh)
Other versions
CN115001885A (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

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 a device control method and device, a storage medium and an electronic device, and relates to the technical field of smart families, wherein the device 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 plurality of target devices are different, and the control instruction is used for controlling each target device in the plurality of target devices to execute target operation; acquiring a configuration file corresponding to the type of the target equipment, and transcoding a 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 target operation; and respectively sending each target control instruction to the corresponding target equipment through the second gateway.

Description

Equipment control method and device, storage medium and electronic device
Technical Field
The application relates to the technical field of smart families, 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 life quality, more and more intelligent home appliances enter into families, and in a family, a plurality of devices of the same type may occur, for example, a family may be provided with a plurality of air conditioners. But in the face of different models or brands of the same appliance, the commands defined for the same action may be inconsistent. Further, if the user wants to open all devices of the same type in the home at the same time, control instructions need to be issued to each device at the same time, so that the operation is troublesome and the experience of the user is poor.
Aiming at the related technology, under the condition that a plurality of devices of the same type are required to be controlled to execute the same operation, as the control instructions of the devices of different models are different, the control instructions are required to be respectively issued to the devices, so that the problem of complex operation is caused, and no effective solution is proposed at present.
Accordingly, there is a need for improvements in the related art to overcome the drawbacks 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 that the operation is complex because control instructions of different types of devices are different under the condition that a plurality of devices of the same type are required to be controlled to execute the same operation, and further the control instructions are required to be issued to the plurality of devices respectively.
According to an aspect of the 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 equipment set to be controlled by the control instruction, wherein the target equipment set comprises: a plurality of target devices of a target device type; the device models of the plurality of target devices are different, and the control instruction is used for controlling each target device in the plurality of 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 the target device set to be controlled by the control instruction includes: under the condition that the control instruction is a voice control instruction, carrying out semantic analysis on the voice control instruction to obtain a semantic analysis result; determining a target device type of a device to be controlled according to the semantic analysis result, and determining a plurality of target devices positioned in a target area under the condition that the target area is obtained according to the semantic analysis result, wherein the device type of each target device in the plurality of target devices is the target device 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 equipment type in the plurality of equipment as the target equipment type and a plurality of target equipment positioned in the target area.
Further, the method further comprises: acquiring a preset area preset by the target object and determining a plurality of target devices positioned in the preset area under the condition that the target area is not obtained through the semantic analysis result; 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 through the configuration file and the device model of each target device; and determining each target control instruction through the control parameters 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 a 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 equipment type in a 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: if the control instruction is a voice control instruction, voiceprint recognition is carried out on the voice control instruction to obtain a target voiceprint; determining whether the target voiceprint is positioned in a target voiceprint library, wherein the target voiceprint library stores voiceprints of devices allowing the control of the target device type; and under the condition that the target voiceprint is determined to be positioned in the target voiceprint library, acquiring a configuration file corresponding to the type of the target equipment.
According to another aspect of the embodiment of the present invention, there is also provided an apparatus control device, including: the determining module is configured to determine, when a control instruction of a target object is acquired through a first gateway, 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 device models of the plurality of target devices are different, and the control instruction is used for controlling each target device in the plurality of 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 respectively 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-described device control method when run.
According to still another aspect of the embodiment of the present invention, there is also provided an electronic apparatus including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the above-mentioned device control method through the computer program.
According to the method and the device, the target equipment set with the target equipment type to be controlled is determined according to the control instruction of the target object, the configuration file corresponding to the target equipment type is further obtained, the control instruction is transcoded according to the configuration file to obtain a plurality of target control instructions, and each target control instruction is further sent to the corresponding target equipment respectively, so that each target equipment executes the operation corresponding to the control instruction. That is, the control instructions are converted into the plurality of target control instructions corresponding to different types through the configuration file, and then each device executes the same operation through the corresponding target control instructions, so that the operation is simple, the user can quickly control the devices to 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 are required to be respectively issued to the plurality of devices under the condition that the plurality of devices of the same type are required to execute the same operation due to the fact that the control instructions of the devices of different types are different is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the 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 that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of 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 (two) of a device control method according to an embodiment of the present invention;
fig. 4 is a flowchart (iii) of a device control method according to an embodiment of the present invention;
fig. 5 is a flowchart (fourth) of a device control method according to an embodiment of the present invention;
FIG. 6 is a block diagram showing the construction of a device control apparatus according to an embodiment of the present invention
Fig. 7 is a block diagram (two) of the structure of the device control apparatus according to the embodiment of the present invention.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise 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 one aspect of the embodiments of the present application, there is provided an apparatus control method. The device control method is widely applied to full-house intelligent digital control application scenes such as Smart Home (Smart Home), intelligent Home device ecology, intelligent Home (intelligent house) ecology and the like. Alternatively, in the present embodiment, the above-described device control method may be applied to a hardware environment constituted 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 used to provide services (such as application services and the like) for a terminal or a client installed on the terminal, a database may be set on the server or independent of the server, for providing data storage services for the server 104, and cloud computing and/or edge computing services may be configured on the server or independent of the server, for providing data computing services for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (Wireless Fidelity ), bluetooth. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent smoke machine, an intelligent refrigerator, an intelligent oven, an intelligent cooking range, 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 sweeping robot, an intelligent window cleaning robot, an intelligent mopping robot, an intelligent air purifying device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen appliance, an intelligent purifier, an intelligent water dispenser, an intelligent door lock, and the like.
In order to solve the above-described problem, there is provided an apparatus control method in the present embodiment, and fig. 2 is a flowchart (one) of the apparatus control method according to an embodiment of the present invention, the flowchart including the steps of:
step S202, determining a target device set to be controlled by a control instruction of a target object, where the target device set includes: a plurality of target devices of a target device type; the device models of the plurality of target devices are different, and the control instruction is used for controlling each target device in the plurality of 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 collected by a device of a target device type, or may be collected 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 collected through the air conditioner, or the control instruction may be collected through volume, and then the device collecting 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 collecting 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 with different models. The above target operation may set the air conditioner to a 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, and the control instructions are transcoded 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;
for better understanding, it is assumed that the air conditioner a is turned on (BootUp), the temperature is set to (temperature), the air conditioner of the model B is turned on (onOffStatus), and the temperature is set to (celius), so that after the control instruction is acquired, the control instruction can be converted into the target control instruction of the respective turning-on and temperature setting of the air conditioner a and the air conditioner B through the configuration file, and the air conditioner a and the air conditioner B are controlled to execute the turning-on and the temperature setting respectively.
In an exemplary embodiment, if the control instruction is a voice control instruction, voice control instruction needs to be recognized to obtain a target voice print, and then whether the target voice print is located in a target voice print library needs to be determined, a configuration file corresponding to the type of the target device is obtained only if the target voice print is determined to be located in the target voice print library, and when the target voice print is not located in the target voice print library, a prompt voice is sent to prompt a user that the device cannot be controlled. The target voiceprint library stores voiceprints of devices allowing the control of the target device type.
In an exemplary embodiment, if the control instruction is issued by the user in the application program, a target account number used by the user to issue the control instruction needs to be determined, and only if the target account number is determined to allow the control of the device of the target device type, a configuration file corresponding to the target device type is acquired. Otherwise, prompting the user that the equipment cannot be controlled.
Step S206, sending each target control instruction to a corresponding target device through a 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 be the same as the second gateway or may be different.
It should be noted that, the technical solution of the present embodiment may be applied to a device control service of a cloud server.
Through the steps, the control instructions issued by the user are converted into the plurality of target control instructions corresponding to different types by using the configuration file, and then each device executes the same operation through the corresponding target control instructions, so that the operation is simple, the user can quickly control the devices to execute the same operation, the experience of the user is improved, and the problem that the operation is complex because the control instructions are issued to the devices of different types under the condition that the devices of the same type are required to be controlled to execute the same operation is solved.
In an exemplary embodiment, the determining the target device set to be controlled by the control instruction may be implemented by:
step S1, under the condition that the control instruction is a voice control instruction, carrying out semantic analysis on the voice control instruction to obtain a semantic analysis result;
step S2, determining the type of the target equipment of the equipment to be controlled according to the semantic analysis result, and determining the plurality of target equipment positioned 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 of the plurality of target equipment is the target equipment type.
For better understanding, as an alternative example, assume that the control instruction is a voice control instruction: if all the air conditioners in the classroom are opened, any one device in the classroom can acquire a voice control instruction, then the voice control instruction is sent to the cloud server, the cloud server performs semantic recognition to obtain the type of the target device as the air conditioner, and the target area is determined to be the classroom where the air conditioner acquiring the voice control instruction is located, so that all the air conditioners to be controlled in the classroom can be determined. The plurality of target devices include all air conditioners in a classroom.
In an exemplary embodiment, the above determination 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; and determining the equipment type in the plurality of equipment as the target equipment type and the plurality of target equipment positioned in the target area.
That is, all devices that establish communication connection with the cloud server need to be determined, positions of all devices are determined, the positions are further located in a target area, and devices with device types being target device types are determined as target devices, so that a target device set can be obtained.
In an exemplary embodiment, in a case that the target area is not obtained through the semantic analysis result, a preset area preset by a target object may be obtained, and the plurality of target devices may be determined through the preset area; or acquiring the target devices preset by the target object.
That is, the user may set a control area (the above-mentioned preset area) in advance, and further determine the target device set to be controlled using the preset control area in the case that the control area issued by the user is not determined by recognizing the voice control instruction. The user can set which types of equipment need to be uniformly controlled in advance. As an alternative example, assuming that the target device type is an air conditioner, the user may control the air conditioners of the device types a, B, and C together in advance.
In an exemplary embodiment, the transcoding of the control command through the configuration file, to obtain a plurality of target control commands, may be implemented by:
step S1: determining a control instruction format of each target device through 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 for the devices of different models, in one case, because the bottom boards of the devices of different models are different, the control instruction formats corresponding to the operations of the devices of different models can be recorded through one configuration file.
Step S2: and determining each target control instruction through the control parameters corresponding to the target operation and the control instruction format of each target device to obtain the plurality of target control instructions.
That is, after determining the control command formats of different types, only the control parameters corresponding to the execution target operation need to be converted into the corresponding target control commands through the different control command formats, in other words, in this embodiment, only the control command format of each equipment type needs to be obtained, and then the control parameters are issued to the equipment of different equipment types according to the corresponding control command formats, so that the equipment of different types can execute the target operation, and the need of a user to issue control commands for the equipment of different types is avoided. It should be noted that, the device control server may instruct the transcoding resolver to perform the steps S1 to S2 described above.
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 equipment type in a 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 will be apparent that the embodiments described above are merely some, but not all, embodiments of the invention. For better understanding of the above-mentioned device control method, the following description will explain the above-mentioned process with reference to the embodiments, but is not intended to limit the technical solution of the embodiments of the present invention, 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: the user issues a control command;
step S306: transmitting a control instruction to the device control service through a user gateway (equivalent 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 (corresponding to the second gateway in the embodiment);
step S312: receiving corresponding target control instructions by equipment of different models;
step S314: and (5) ending.
That is, the command issued by the user is issued to the device control service by the user gateway, and after the device control service transcodes the command, the command is issued to the device gateway, and finally the device gateway issues the command to different devices.
In order to better understand how the device control service parses the control instruction, fig. 4 is a flowchart (iii) of a device control method according to an embodiment of the present invention, and specific steps are as follows:
step S402: starting;
step S404: under the condition that the control instruction is acquired, judging whether the calling party needs transcoding, and executing a step S406 under the condition that the calling party needs transcoding, otherwise executing a step S410;
step S406: acquiring the latest version of configuration file to obtain a transcoding resolver;
step S408: transcoding the control instruction through a transcoding analyzer;
step S410: and (5) ending.
That is, 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. If transcoding is needed, the control instruction is converted through a transcoding analyzer.
In order to obtain the latest version of the configuration file by the better device control service, a transcoding parser is obtained, and fig. 5 is a flowchart (fourth) of a device control method according to an embodiment of the present invention, which specifically includes the following steps:
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 so, executing step S510, otherwise executing S512;
step S510: downloading the latest configuration file;
step S512: the thread is delayed, and step S504 is performed.
That is, 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. Meanwhile, a timing task is started, a cloud end is periodically removed to download a configuration file list, when the configuration file is updated, the updated configuration file is downloaded, the configuration file is reloaded, and the transcoding resolver is reinitialized.
It should be noted that, through the technical scheme of the embodiment of the application, a command can be used for uniformly controlling the same equipment with different models in home, so that the control success rate is improved, and the user experience is optimized. Meanwhile, dynamic configuration is supported, the configuration file is modified and then takes effect in time, and for developers, the maintenance and management of codes are facilitated.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the various embodiments of the present invention.
In this embodiment, a device control apparatus is further provided, and this apparatus is used to implement the foregoing embodiments and preferred embodiments, and will not be described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the 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:
a determining module 62, configured to determine, when a control instruction of a target object is acquired through a first gateway, 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 device models of the plurality of target devices are different, and the control instruction is used for controlling each target device in the plurality of target devices to execute target operation;
the processing module 64 is 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 configured to control the corresponding target device to execute the target operation;
and the sending module 66 is configured to send each target control instruction to a corresponding target device through the second gateway.
Through the device, the control instructions issued by the user are converted into the plurality of target control instructions corresponding to different types by using the configuration file, and then each device executes the same operation through the corresponding target control instructions, so that the operation is simple, the user can quickly control the devices to execute the same operation, the experience of the user is improved, and the problem that the operation is complex because the control instructions are issued to the devices respectively due to the fact that the control instructions of the devices of different types are different under the condition that the devices of the same type are required to be controlled to execute the same operation is solved.
In an exemplary embodiment, the determining module 62 is further configured to, if the control instruction is a voice control instruction, perform semantic analysis on the voice control instruction to obtain a semantic analysis result; determining a target device type of a device to be controlled according to the semantic analysis result, and determining a plurality of target devices positioned in a target area under the condition that the target area is obtained according to the semantic analysis result, wherein the device type of each target device in the plurality of target devices is the target device type.
In an exemplary embodiment, the determining module 62 is further configured to determine a plurality of devices that establish a communication connection with the cloud server; and determining the equipment type in the plurality of equipment as the target equipment type and the plurality of target equipment positioned in the target area.
In an exemplary embodiment, the determining module 62 is further configured to obtain a preset area preset by the target object and determine the plurality of target devices located in the preset area if the target area is not obtained through the semantic analysis result; 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 through the control parameters 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, if the control instruction is a voice control instruction, perform voiceprint recognition on the voice control instruction to obtain a target voiceprint; determining whether the target voiceprint is positioned in a target voiceprint library, wherein the target voiceprint library stores voiceprints of devices allowing the control of the target device type; and under the condition that the target voiceprint is determined to be positioned in the target voiceprint library, acquiring a configuration file corresponding to the type of the target equipment.
Fig. 7 is a block diagram (two) of a device control apparatus according to an embodiment of the present invention, the apparatus including: updating module 68.
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 equipment type in a 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 therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s1, under the condition that a control instruction of a target object is acquired through a first gateway, determining a target equipment set to be controlled by the control instruction, wherein the target equipment set comprises: a plurality of target devices of a target device type; the device models of the plurality of target devices are different, and the control instruction is used for controlling each target device in the plurality of target devices to execute target operation;
s2, 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;
s3, each target control instruction is respectively sent to corresponding target equipment through a second gateway.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, under the condition that a control instruction of a target object is acquired through a first gateway, determining a target equipment set to be controlled by the control instruction, wherein the target equipment set comprises: a plurality of target devices of a target device type; the device models of the plurality of target devices are different, and the control instruction is used for controlling each target device in the plurality of target devices to execute target operation;
s2, 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;
s3, each target control instruction is respectively sent to corresponding target equipment through a second gateway.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps 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 merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (9)

1. A device control method, characterized by comprising:
under the condition that a control instruction of a target object is acquired through a first gateway, determining a target equipment set to be controlled by the control instruction, wherein the target equipment set comprises: a plurality of target devices of a target device type; the device models of the plurality of target devices are different, and the control instruction is used for controlling each target device in the plurality of 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;
each target control instruction is respectively sent to corresponding target equipment through a second gateway;
transcoding the control instruction through the configuration file to obtain a plurality of target control instructions, wherein the method comprises the following steps: determining a control instruction format of each target device through the configuration file and the device model of each target device; and determining each target control instruction through the control parameters corresponding to the target operation and the control instruction format of each target device to obtain the plurality of target control instructions.
2. The method of claim 1, wherein determining the set of target devices to be controlled by the control instruction comprises:
under the condition that the control instruction is a voice control instruction, carrying out semantic analysis on the voice control instruction to obtain a semantic analysis result;
determining a target device type of a device to be controlled according to the semantic analysis result, and determining a plurality of target devices positioned in a target area under the condition that the target area is obtained according to the semantic analysis result, wherein the device type of each target device in the plurality of target devices is the target device type.
3. The method of claim 2, wherein determining the plurality of target devices located in the target area comprises:
determining a plurality of devices which establish communication connection with a cloud server;
and determining the equipment type in the plurality of equipment as the target equipment type and a plurality of target equipment positioned in the target area.
4. The method according to claim 2, wherein the method further comprises:
acquiring a preset area preset by the target object and determining a plurality of target devices positioned in the preset area under the condition that the target area is not obtained through the semantic analysis result; or (b)
And acquiring the target devices preset by the target object.
5. The method of claim 1, wherein after each of the plurality of target control instructions is sent to a corresponding target device by a second gateway, the method further comprises: determining a first version number of the configuration file; and
determining a second version number of a configuration file corresponding to the target equipment type in a 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.
6. The method of claim 1, wherein obtaining a configuration file corresponding to the target device type comprises:
if the control instruction is a voice control instruction, voiceprint recognition is carried out on the voice control instruction to obtain a target voiceprint;
determining whether the target voiceprint is positioned in a target voiceprint library, wherein the target voiceprint library stores voiceprints of devices allowing the control of the target device type;
and under the condition that the target voiceprint is determined to be positioned in the target voiceprint library, acquiring a configuration file corresponding to the type of the target equipment.
7. An apparatus control device, comprising:
the determining module is configured to determine, when a control instruction of a target object is acquired through a first gateway, 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 device models of the plurality of target devices are different, and the control instruction is used for controlling each target device in the plurality of 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; the sending module is used for respectively sending each target control instruction to corresponding target equipment through a second gateway;
the processing module 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 through the control parameters corresponding to the target operation and the control instruction format of each target device to obtain the plurality of target control instructions.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program when run performs the method of any one of claims 1 to 6.
9. 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 according to any of claims 1 to 6 by means of the computer program.
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 CN115001885A (en) 2022-09-02
CN115001885B true 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)

Citations (14)

* 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
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, device, storage medium and the electronic device of household appliance
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
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
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 and device of intelligent equipment, storage medium and electronic device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10084669B2 (en) * 2014-04-09 2018-09-25 Centurylink Intellectual Property Llc System and method for cloud computing adaptive cloud services
CN108646580A (en) * 2018-05-14 2018-10-12 中兴通讯股份有限公司 The determination method and device of control object, storage medium, electronic device
US20210119871A1 (en) * 2019-10-21 2021-04-22 Citrix Systems, Inc. Proxy configuration for multiple networks
KR20210091328A (en) * 2020-06-29 2021-07-21 바이두 온라인 네트웍 테크놀러지 (베이징) 캄파니 리미티드 Applet's voice control method, device and storage medium

Patent Citations (14)

* 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
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
CN109102803A (en) * 2018-08-09 2018-12-28 珠海格力电器股份有限公司 Control method, device, storage medium and the electronic device of household appliance
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
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 and device of intelligent equipment, 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

Non-Patent Citations (1)

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

Also Published As

Publication number Publication date
CN115001885A (en) 2022-09-02

Similar Documents

Publication Publication Date Title
CN115167164A (en) Method and device for determining equipment scene, storage medium and electronic device
CN114697150B (en) Command issuing method and device, storage medium and electronic device
CN115001885B (en) Equipment control method and device, storage medium and electronic device
CN116107253A (en) Method and device for determining equipment use scene, storage medium and electronic device
CN116360584A (en) Virtual target product generation method and device, storage medium and electronic device
CN115309062A (en) Device control method, device, storage medium, and electronic apparatus
CN115167160A (en) Device control method and apparatus, device control system, and storage medium
CN115277412B (en) Edge gateway upgrading method and device, storage medium and electronic device
CN114826899B (en) Debugging method and device for equipment control service, storage medium and electronic device
CN115296948B (en) Scene information updating method and device, storage medium and electronic device
CN115460060B (en) Device upgrading method and device of intelligent device, storage medium and electronic device
CN114938365B (en) Function module updating method and device, storage medium and electronic device
CN115296958B (en) Distribution method and device of equipment control tasks, storage medium and electronic device
CN115190018B (en) Method and device for playing upgrade prompt information, storage medium and electronic device
CN115297352B (en) Video continuous playing method and device, storage medium and electronic device
CN117768256A (en) Equipment control method, device, storage medium and electronic device
CN115174380B (en) Operation updating method and device of gateway equipment, storage medium and electronic device
CN115297128B (en) Edge execution information processing method and device, storage medium and electronic device
CN116132209A (en) Scene construction method and device, storage medium and electronic device
CN114697345B (en) Information updating method and device, storage medium and electronic device
CN116545791A (en) Parameter adjustment method and device, storage medium and electronic device
CN116301511A (en) Equipment interaction method and device, storage medium and electronic device
CN116541012A (en) Basic parameter modification method and device, storage medium and electronic device
CN116108070A (en) Method and device for opening equipment detail page, storage medium and electronic device
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
GR01 Patent grant
GR01 Patent grant