[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

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

Device control method, storage medium and electronic device Download PDF

Info

Publication number
CN115032917A
CN115032917A CN202210590987.1A CN202210590987A CN115032917A CN 115032917 A CN115032917 A CN 115032917A CN 202210590987 A CN202210590987 A CN 202210590987A CN 115032917 A CN115032917 A CN 115032917A
Authority
CN
China
Prior art keywords
target
control
instruction
configuration
controlled device
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
CN202210590987.1A
Other languages
Chinese (zh)
Other versions
CN115032917B (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 CN202210590987.1A priority Critical patent/CN115032917B/en
Publication of CN115032917A publication Critical patent/CN115032917A/en
Application granted granted Critical
Publication of CN115032917B publication Critical patent/CN115032917B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • 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

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The application discloses an equipment control method, a storage medium and an electronic device, which relate to the technical field of smart home/smart home, and the equipment control method comprises the following steps: the method comprises the steps that a configuration page is displayed, wherein a plurality of configuration options are displayed on the configuration page, each configuration option corresponds to at least one of a control condition, a control instruction, equipment information and reply information, the control condition is used for triggering the corresponding control instruction, the control instruction is used for controlling the controlled equipment to execute the corresponding action, the equipment information is used for representing the state of the controlled equipment, and the reply information is used for the controlled equipment to respond to a request instruction of a target user; responding to a configuration adjustment request triggered by a target configuration option displayed on a configuration page, and adjusting a target control condition and/or a target control instruction corresponding to the target configuration option; and configuring target reply information of the target controlled equipment based on the target control condition and/or the target control instruction. By adopting the technical scheme, the technical problem of low efficiency due to the realization of the function adjustment of the equipment through the code is solved.

Description

设备控制方法、存储介质及电子装置Device control method, storage medium and electronic device

技术领域technical field

本申请涉及通信领域,具体而言,涉及一种设备控制方法、存储介质及电子装置。The present application relates to the field of communications, and in particular, to a device control method, a storage medium, and an electronic device.

背景技术Background technique

目前,在设备生产完成之后,通常需要对设备中的一项或多项功能进行调整。例如,在空调生产完成之后,希望对空调的语音控制功能进行调整。Currently, one or more functions in the device usually need to be adjusted after the production of the device is complete. For example, after the production of the air conditioner is completed, it is desirable to adjust the voice control function of the air conditioner.

相关技术中,在对设备的功能进行调整时,通常是开发人员通过对代码进行调整,来实现设备功能调整。而通过代码实现设备功能调整,耗时比较长,效率比较低。In the related art, when adjusting the function of the device, the developer usually adjusts the code to realize the adjustment of the device function. However, the adjustment of device functions through code is time-consuming and inefficient.

针对相关技术中,由于通过代码实现设备功能调整,效率比较低的技术问题,尚未提出有效的解决方案。In the related art, due to the technical problem that the device function adjustment is realized through code, the efficiency is relatively low, and an effective solution has not yet been proposed.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供了一种设备控制方法、存储介质及电子装置,以至少解决相关技术中,由于通过代码实现设备功能调整,效率比较低的技术问题。Embodiments of the present invention provide a device control method, a storage medium, and an electronic device, so as to at least solve the technical problem of relatively low efficiency in the related art due to the realization of device function adjustment through codes.

根据本发明实施例的一个实施例,提供了一种设备控制方法,包括:显示配置页面,其中,上述配置页面上展示有多个配置选项,每个上述配置选项对应控制条件、控制指令、设备信息和回复信息中的至少一个,上述控制条件用于触发对应的上述控制指令,上述控制指令用于控制受控设备执行对应的动作,上述设备信息用于表示上述受控设备的状态,上述回复信息用于上述受控设备响应目标用户的请求指令;响应于对上述配置页面上展示的目标配置选项触发的配置调整请求,调整上述目标配置选项对应的目标控制条件和/或目标控制指令;基于上述目标控制条件和/或目标控制指令,配置目标受控设备的目标回复信息。According to an embodiment of the present invention, a device control method is provided, which includes: displaying a configuration page, wherein a plurality of configuration options are displayed on the configuration page, and each configuration option corresponds to a control condition, a control instruction, a device At least one of the information and the reply information, the above-mentioned control conditions are used to trigger the corresponding above-mentioned control instructions, the above-mentioned control instructions are used to control the controlled device to perform corresponding actions, the above-mentioned device information is used to indicate the state of the above-mentioned controlled equipment, and the above-mentioned reply The information is used for the above-mentioned controlled device to respond to the request instruction of the target user; in response to the configuration adjustment request triggered by the target configuration option displayed on the above-mentioned configuration page, adjust the target control condition and/or target control instruction corresponding to the above-mentioned target configuration option; based on The above target control conditions and/or target control instructions configure the target reply information of the target controlled device.

在一个示例性实施例中,在上述基于上述目标控制条件和/或目标控制指令,配置目标受控设备的目标回复信息之后,包括:接收上述目标受控设备上传的第一控制请求指令和第二控制请求指令;对上述第一控制请求指令进行解析,确定与上述第一控制请求指令对应的第一目标控制条件和/或第一目标控制指令;对上述第二控制请求指令进行解析,确定与上述第二控制请求指令对应的第二目标控制条件和/或第二目标控制指令;在上述第一目标控制条件与上述第二目标控制条件为互斥或上述第一目标控制指令与上述第二目标控制指令为互斥的情况下,向上述目标受控设备下发第一目标回复信息,其中,上述第一目标回复信息用于指示上述目标受控设备响应失败。In an exemplary embodiment, after configuring the target response information of the target controlled device based on the target control condition and/or the target control instruction, the method includes: receiving the first control request instruction and the first control request uploaded by the target controlled device. 2. Control request instruction; analyze the above-mentioned first control request instruction to determine the first target control condition and/or first target control instruction corresponding to the above-mentioned first control request instruction; analyze the above-mentioned second control request instruction to determine The second target control condition and/or the second target control instruction corresponding to the above-mentioned second control request instruction; when the above-mentioned first target control condition and the above-mentioned second target control condition are mutually exclusive or the above-mentioned first target control instruction and the above-mentioned No. When the two target control instructions are mutually exclusive, first target reply information is delivered to the target controlled device, wherein the first target reply information is used to indicate that the target controlled device fails to respond.

在一个示例性实施例中,在上述基于上述目标控制条件和/或目标控制指令,配置目标受控设备的目标回复信息之后,包括:接收上述目标受控设备上传的第三控制请求指令;对上述第三控制请求指令进行解析,判断上述第三控制请求指令是否对应有第三目标控制条件和/或第三目标控制指令;在上述第三控制请求指令没有相对应的上述第三目标控制条件和/或上述第三目标控制指令的情况下,向上述目标受控设备下发第二目标回复信息,其中,上述第二目标回复信息用于确定上述第三目标控制条件和/或上述第三目标控制指令。In an exemplary embodiment, after configuring the target response information of the target controlled device based on the above target control condition and/or target control instruction, the method includes: receiving a third control request instruction uploaded by the above target controlled device; The third control request instruction is analyzed to determine whether the third control request instruction corresponds to the third target control condition and/or the third target control instruction; if the third control request instruction does not have the corresponding third target control condition And/or in the case of the third target control instruction, the second target reply information is sent to the target controlled device, wherein the second target reply information is used to determine the third target control condition and/or the third target control condition. target control command.

在一个示例性实施例中,在上述基于上述目标控制条件和/或目标控制指令,配置目标受控设备的目标回复信息之后,包括:接收上述目标受控设备上传的第四控制请求指令;对上述第四控制请求指令进行解析,判断上述第四控制请求指令是否为状态查询指令;在上述第四控制请求指令为上述状态查询指令的情况下,向上述目标受控设备下发第三目标回复信息,其中,上述第三目标回复信息用于表示上述目标受控设备的状态。In an exemplary embodiment, after configuring the target response information of the target controlled device based on the above target control condition and/or target control instruction, the method includes: receiving a fourth control request instruction uploaded by the above target controlled device; The fourth control request instruction is analyzed to determine whether the fourth control request instruction is a status query instruction; if the fourth control request instruction is the status query instruction, a third target reply is sent to the target controlled device information, wherein the third target reply information is used to indicate the state of the target controlled device.

在一个示例性实施例中,上述调整上述目标配置选项对应的目标控制条件和/或目标控制指令,包括:从已有的配置选项中选择控制条件和/或控制指令;将选择的上述控制条件和/或控制指令作为调整后的上述目标配置选项对应的目标控制条件和/或目标控制指令。In an exemplary embodiment, the above-mentioned adjusting the target control conditions and/or target control instructions corresponding to the above-mentioned target configuration options includes: selecting control conditions and/or control instructions from existing configuration options; and/or the control instruction as the target control condition and/or the target control instruction corresponding to the adjusted target configuration option.

在一个示例性实施例中,在上述显示配置页面之后,还包括:在上述配置页面中新增一个或多个处理器;对上述一个或多个处理器进行参数配置,其中,上述参数包括处理器名称、上述控制条件、上述控制指令、上述设备信息和上述回复信息中的至少一个。In an exemplary embodiment, after the above-mentioned displaying the configuration page, the method further includes: adding one or more processors in the above-mentioned configuration page; and configuring parameters for the above-mentioned one or more processors, wherein the above-mentioned parameters include processing at least one of the device name, the above-mentioned control condition, the above-mentioned control instruction, the above-mentioned device information and the above-mentioned reply information.

在一个示例性实施例中,上述在上述配置页面中新增一个或多个处理器,包括:在处理器的调用方式属于异步回调的情况下,在上述配置页面中配置第二处理器,其中,上述异步回调表示在第一处理器所对应的第一受控设备执行完成第一控制指令的情况下,上述第二处理器所对应的第二受控设备执行第二控制指令;在处理器的调用方式属于非异步回调的情况下,在上述配置页面中配置多个第三处理器,其中,上述非异步回调表示在第一处理器所对应的第一受控设备执行完成第一控制指令的情况下,上述多个第三处理器所对应的多个第三受控设备执行多个第三控制指令,上述多个第三控制指令是不同的控制指令。In an exemplary embodiment, the above-mentioned adding one or more processors in the above-mentioned configuration page includes: if the calling method of the processor belongs to asynchronous callback, configuring the second processor in the above-mentioned configuration page, wherein , the above asynchronous callback means that when the first controlled device corresponding to the first processor executes and completes the first control instruction, the second controlled device corresponding to the second processor executes the second control instruction; In the case where the calling method is a non-asynchronous callback, configure multiple third processors in the above configuration page, wherein the above non-asynchronous callback means that the first controlled device corresponding to the first processor executes and completes the first control instruction In the case where the plurality of third controlled devices corresponding to the plurality of third processors executes a plurality of third control instructions, the plurality of third control instructions are different control instructions.

根据本发明实施例的另一个实施例,还提供了一种设备控制装置,包括:显示模块,用于显示配置页面,其中,上述配置页面上展示有多个配置选项,每个上述配置选项对应控制条件、控制指令、设备信息和回复信息中的至少一个,上述控制条件用于触发对应的上述控制指令,上述控制指令用于控制受控设备执行对应的动作,上述设备信息用于表示上述受控设备的状态,上述回复信息用于上述受控设备响应目标用户的请求指令;调整模块,用于响应于对上述配置页面上展示的目标配置选项触发的配置调整请求,调整上述目标配置选项对应的目标控制条件和/或目标控制指令;配置模块,用于基于上述目标控制条件和/或目标控制指令,配置目标受控设备的目标回复信息。According to another embodiment of the embodiment of the present invention, a device control apparatus is further provided, including: a display module for displaying a configuration page, wherein a plurality of configuration options are displayed on the above-mentioned configuration page, and each of the above-mentioned configuration options corresponds to At least one of control conditions, control instructions, device information and reply information, the above-mentioned control conditions are used to trigger the corresponding above-mentioned control instructions, the above-mentioned control instructions are used to control the controlled equipment to perform corresponding actions, and the above-mentioned equipment information is used to indicate the above-mentioned subject. The above-mentioned reply information is used for the above-mentioned controlled device to respond to the request instruction of the target user; the adjustment module is used to respond to the configuration adjustment request triggered by the target configuration option displayed on the above-mentioned configuration page. The target control condition and/or target control instruction; the configuration module is used to configure the target response information of the target controlled device based on the above target control condition and/or target control instruction.

根据本发明实施例的又一方面,还提供了一种计算机可读的存储介质,该计算机可读的存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述设备控制方法。According to another aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, where a computer program is stored in the computer-readable storage medium, 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, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the above device through the computer program Control Method.

在本发明实施例中,显示配置页面,其中,配置页面上展示有多个配置选项,每个配置选项对应控制条件、控制指令、设备信息和回复信息中的至少一个,控制条件用于触发对应的控制指令,控制指令用于控制受控设备执行对应的动作,设备信息用于表示受控设备的状态,回复信息用于受控设备响应目标用户的请求指令;响应于对配置页面上展示的目标配置选项触发的配置调整请求,调整目标配置选项对应的目标控制条件和/或目标控制指令;基于目标控制条件和/或目标控制指令,配置目标受控设备的目标回复信息。采用上述技术方案,通过在配置页面中对设备功能进行调整,耗时短,效率高,解决了由于通过代码实现设备功能调整,效率比较低的技术问题。In the embodiment of the present invention, a configuration page is displayed, wherein a plurality of configuration options are displayed on the configuration page, each configuration option corresponds to at least one of a control condition, a control instruction, device information and reply information, and the control condition is used to trigger the corresponding The control command is used to control the controlled device to perform the corresponding action, the device information is used to indicate the state of the controlled device, and the reply information is used by the controlled device to respond to the target user's request command; The configuration adjustment request triggered by the target configuration option adjusts the target control condition and/or target control instruction corresponding to the target configuration option; based on the target control condition and/or the target control instruction, configures the target response information of the target controlled device. By adopting the above technical solution, by adjusting the device function in the configuration page, the time-consuming is short and the efficiency is high, and the technical problem of low efficiency due to realizing the device function adjustment through code is solved.

附图说明Description of 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 following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. In other words, on the premise of no creative labor, other drawings can also be obtained from these drawings.

图1是根据本申请实施例的一种可选的设备控制方法的应用场景的示意图;1 is a schematic diagram of an application scenario of an optional device control method according to an embodiment of the present application;

图2是根据本发明实施例的一种可选的设备控制方法的流程图;2 is a flowchart of an optional device control method according to an embodiment of the present invention;

图3是根据本发明实施例的一种可选的设备控制方法的示意图;3 is a schematic diagram of an optional device control method according to an embodiment of the present invention;

图4是根据本发明实施例的一种可选的设备控制装置的结构框图。FIG. 4 is a structural block diagram of an optional device control apparatus according to an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to make those skilled in the art better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only The embodiments are part of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the scope of protection of the present application.

需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", etc. in the description and claims of the present application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that the embodiments of the application described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.

在本发明实施例中,提供了一种上述设备控制方法的实施例。作为一种可选的实施方式,该设备控制方法可以但不限于应用于如图1所示的应用环境中。In an embodiment of the present invention, an embodiment of the foregoing device control method is provided. As an optional implementation manner, the device control method may be, but is not limited to, applied to the application environment shown in FIG. 1 .

可选地,在本实施例中,在用户发出语音指令后,例如“我要洗澡”,配置页面对该语音指令进行语义解析,并根据解析结果进行指令配置,将配置完成的指令发送到受控设备,受控设备接收到该指令后,完成相关操作。例如,受控设备为热水器,热水器接收到该指令后,完成“打开热水器,温度设置为42度”的操作。Optionally, in this embodiment, after the user issues a voice command, such as "I want to take a bath", the configuration page performs semantic analysis on the voice command, configures the command according to the analysis result, and sends the configured command to the recipient. After receiving the command, the controlled device completes the relevant operations. For example, the controlled device is a water heater. After the water heater receives the instruction, it completes the operation of "turn on the water heater and set the temperature to 42 degrees".

上述受控设备可以并不限定于为PC、手机、平板电脑、智能空调、智能烟机、智能冰箱、智能烤箱、智能炉灶、智能洗衣机、智能热水器、智能洗涤设备、智能洗碗机、智能投影设备、智能电视、智能晾衣架、智能窗帘、智能影音、智能插座、智能音响、智能音箱、智能新风设备、智能厨卫设备、智能卫浴设备、智能扫地机器人、智能擦窗机器人、智能拖地机器人、智能空气净化设备、智能蒸箱、智能微波炉、智能厨宝、智能净化器、智能饮水机、智能门锁等。The above-mentioned controlled devices may not be limited to PCs, mobile phones, tablet computers, smart air conditioners, smart hoods, smart refrigerators, smart ovens, smart stoves, smart washing machines, smart water heaters, smart washing equipment, smart dishwashers, and smart projections. Equipment, smart TV, smart drying rack, smart curtain, smart audio and video, smart socket, smart audio, smart speaker, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart sweeping robot, smart window cleaning robot, smart mopping robot , smart air purification equipment, smart steamer, smart microwave oven, smart kitchen treasure, smart purifier, smart water dispenser, smart door lock, etc.

在本实施例中提供了一种设备控制方法,图2是根据本发明实施例的设备控制方法的流程图,该流程包括如下步骤:A device control method is provided in this embodiment, and FIG. 2 is a flowchart of a device control method according to an embodiment of the present invention, and the process includes the following steps:

步骤S202,显示配置页面,其中,配置页面上展示有多个配置选项,每个配置选项对应控制条件、控制指令、设备信息和回复信息中的至少一个,控制条件用于触发对应的控制指令,控制指令用于控制受控设备执行对应的动作,设备信息用于表示受控设备的状态,回复信息用于受控设备响应目标用户的请求指令;Step S202, displaying a configuration page, wherein a plurality of configuration options are displayed on the configuration page, and each configuration option corresponds to at least one of control conditions, control instructions, device information and reply information, and the control conditions are used to trigger the corresponding control instructions, The control instruction is used to control the controlled device to perform the corresponding action, the device information is used to represent the state of the controlled device, and the reply information is used for the controlled device to respond to the target user's request instruction;

步骤S204,响应于对配置页面上展示的目标配置选项触发的配置调整请求,调整目标配置选项对应的目标控制条件和/或目标控制指令;Step S204, in response to the configuration adjustment request triggered by the target configuration option displayed on the configuration page, adjust the target control condition and/or the target control instruction corresponding to the target configuration option;

步骤S206,基于目标控制条件和/或目标控制指令,配置目标受控设备的目标回复信息。Step S206, configure the target reply information of the target controlled device based on the target control condition and/or the target control instruction.

可选地,在本实施例中,上述配置页面可以但不限于为用于对受控设备的控制指令进行配置、调整的页面。配置页面可以但不限于利用自然语言处理的方式对用户发出的语音指令进行解析,根据解析结果确定控制条件,并基于控制条件确定对应的控制指令。例如,用户发出“我要洗澡”的语音指令后,利用自然语言处理解析得到的结果确定的控制条件为“我要洗澡”,而“我要洗澡”对应的控制指令为“打开热水器,温度设置为42度”,并将该控制指令发送到热水器,进而控制热水器完成相关操作。Optionally, in this embodiment, the above configuration page may be, but is not limited to, a page for configuring and adjusting the control instructions of the controlled device. The configuration page may, but is not limited to, use natural language processing to parse the voice instructions sent by the user, determine control conditions according to the analysis results, and determine corresponding control instructions based on the control conditions. For example, after the user sends out the voice command of "I want to take a bath", the control condition determined by the result obtained by natural language processing analysis is "I want to take a bath", and the control command corresponding to "I want to take a bath" is "Turn on the water heater, set the temperature 42 degrees”, and send the control command to the water heater, and then control the water heater to complete related operations.

需要说明的是,用户在不同的时间段,对受控设备的需求可能会有所不同,例如,用户在冬天洗澡的时候,希望热水器的温度稍微调高一些,例如42度,而在夏天洗澡的时候,希望热水器的温度稍微调低一些,例如40度;因此,在接收到配置调整请求后,可以对控制条件和/或控制指令进行相对应的调整。It should be noted that users may have different needs for controlled equipment in different time periods. For example, when a user takes a bath in winter, he wants the temperature of the water heater to be slightly higher, such as 42 degrees, while taking a bath in summer When the temperature of the water heater is slightly lower, for example, 40 degrees; therefore, after receiving the configuration adjustment request, the control conditions and/or control instructions can be adjusted accordingly.

可选地,在本实施例中,在用户发出对受控设备的请求指令之后,基于该请求指令,受控设备无法确定执行什么类型的动作的情况下,受控设备可以但不限于向用户发出回复信息,以告知用户请求指令不明确或者进一步询问用户以获得明确的请求指令等。Optionally, in this embodiment, after the user sends a request instruction to the controlled device, if the controlled device cannot determine what type of action to perform based on the request instruction, the controlled device may, but is not limited to, send the request to the user. A reply message is sent to inform the user that the request instruction is not clear or to further ask the user to obtain a clear request instruction, etc.

通过本申请实施例提供的方案,显示配置页面,其中,配置页面上展示有多个配置选项,每个配置选项对应控制条件、控制指令、设备信息和回复信息中的至少一个,控制条件用于触发对应的控制指令,控制指令用于控制受控设备执行对应的动作,设备信息用于表示受控设备的状态,回复信息用于受控设备响应目标用户的请求指令;响应于对配置页面上展示的目标配置选项触发的配置调整请求,调整目标配置选项对应的目标控制条件和/或目标控制指令;基于目标控制条件和/或目标控制指令,配置目标受控设备的目标回复信息。采用上述技术方案,通过在配置页面中对设备功能进行调整,耗时短,效率高,解决了由于通过代码实现设备功能调整,效率比较低的技术问题。Through the solution provided by the embodiment of the present application, a configuration page is displayed, wherein a plurality of configuration options are displayed on the configuration page, and each configuration option corresponds to at least one of control conditions, control instructions, device information and reply information, and the control conditions are used for Trigger the corresponding control command, the control command is used to control the controlled device to perform the corresponding action, the device information is used to indicate the state of the controlled device, and the reply information is used for the controlled device to respond to the target user's request command; The configuration adjustment request triggered by the displayed target configuration option adjusts the target control condition and/or target control instruction corresponding to the target configuration option; based on the target control condition and/or the target control instruction, configures the target response information of the target controlled device. By adopting the above technical solution, by adjusting the device function in the configuration page, the time-consuming is short and the efficiency is high, and the technical problem of low efficiency due to realizing the device function adjustment through code is solved.

在一个示例性实施例中,在基于目标控制条件和/或目标控制指令,配置目标受控设备的目标回复信息之后,包括:接收目标受控设备上传的第一控制请求指令和第二控制请求指令;对第一控制请求指令进行解析,确定与第一控制请求指令对应的第一目标控制条件和/或第一目标控制指令;对第二控制请求指令进行解析,确定与第二控制请求指令对应的第二目标控制条件和/或第二目标控制指令;在第一目标控制条件与第二目标控制条件为互斥或第一目标控制指令与第二目标控制指令为互斥的情况下,向目标受控设备下发第一目标回复信息,其中,第一目标回复信息用于指示目标受控设备响应失败。In an exemplary embodiment, after configuring the target response information of the target controlled device based on the target control condition and/or the target control instruction, the method includes: receiving a first control request instruction and a second control request uploaded by the target controlled device instruction; parse the first control request instruction, determine the first target control condition and/or the first target control instruction corresponding to the first control request instruction; parse the second control request instruction, determine the second control request instruction The corresponding second target control condition and/or the second target control instruction; when the first target control condition and the second target control condition are mutually exclusive or the first target control instruction and the second target control instruction are mutually exclusive, Deliver first target reply information to the target controlled device, where the first target reply information is used to indicate that the target controlled device fails to respond.

例如,可以配置在受控设备执行到两个相互斥时的请求指令的回复信息,如“开机失败了”。For example, when the controlled device executes two mutually exclusive request commands, it is possible to configure the reply information, such as "boot failure".

通过本申请实施例提供的方案,在目标受控设备接收到两个互斥请求指令的情况下,配置目标受控设备的第一目标回复信息。提高了用户体验。With the solutions provided by the embodiments of the present application, when the target controlled device receives two mutually exclusive request instructions, the first target reply information of the target controlled device is configured. Improved user experience.

在一个示例性实施例中,在基于目标控制条件和/或目标控制指令,配置目标受控设备的目标回复信息之后,包括:接收目标受控设备上传的第三控制请求指令;对第三控制请求指令进行解析,判断第三控制请求指令是否对应有第三目标控制条件和/或第三目标控制指令;在第三控制请求指令没有相对应的第三目标控制条件和/或第三目标控制指令的情况下,向目标受控设备下发第二目标回复信息,其中,第二目标回复信息用于确定第三目标控制条件和/或第三目标控制指令。In an exemplary embodiment, after configuring the target response information of the target controlled device based on the target control condition and/or the target control instruction, the method includes: receiving a third control request instruction uploaded by the target controlled device; The request command is parsed to determine whether the third control request command corresponds to the third target control condition and/or the third target control command; the third control request command does not have the corresponding third target control condition and/or the third target control command In the case of the instruction, the second target reply information is sent to the target controlled device, wherein the second target reply information is used to determine the third target control condition and/or the third target control instruction.

例如,可以配置多轮对话,当用户说打开空调时回复“温度设置为多少度”。For example, it is possible to configure multiple rounds of dialogue, replying "what is the temperature set to" when the user says to turn on the air conditioner.

通过本申请实施例提供的方案,在目标受控设备接收到第三控制请求指令的情况下,配置目标处理器的第二目标回复信息。提高了用户体验。With the solutions provided by the embodiments of the present application, when the target controlled device receives the third control request instruction, the second target reply information of the target processor is configured. Improved user experience.

在一个示例性实施例中,在基于目标控制条件和/或目标控制指令,配置目标受控设备的目标回复信息之后,包括:接收目标受控设备上传的第四控制请求指令;对第四控制请求指令进行解析,判断第四控制请求指令是否为状态查询指令;在第四控制请求指令为状态查询指令的情况下,向目标受控设备下发第三目标回复信息,其中,第三目标回复信息用于表示目标受控设备的状态。In an exemplary embodiment, after configuring the target response information of the target controlled device based on the target control condition and/or the target control instruction, the method includes: receiving a fourth control request instruction uploaded by the target controlled device; Analyze the request instruction to determine whether the fourth control request instruction is a status query instruction; if the fourth control request instruction is a status query instruction, send third target reply information to the target controlled device, wherein the third target reply Information is used to represent the state of the target controlled device.

例如,可以配置应用类型,属性名称,回复信息,如:应用类型“空调”,属性名称:“新风打开”,回复信息:“好的,已为您打开新风模式”。For example, you can configure the application type, attribute name, and reply information, such as: application type "air conditioner", attribute name: "fresh air on", and reply information: "OK, the fresh air mode has been turned on for you".

通过本申请实施例提供的方案,在目标受控设备接收到第四控制请求指令的情况下,配置目标处理器的第三目标回复信息。提高了用户体验。With the solutions provided by the embodiments of the present application, when the target controlled device receives the fourth control request instruction, the third target reply information of the target processor is configured. Improved user experience.

在一个示例性实施例中,调整目标配置选项对应的目标控制条件和/或目标控制指令,包括:调整目标控制条件,得到调整后的目标控制条件;在调整目标配置选项对应的目标控制条件和/或目标控制指令之后,包括:在获取到与调整后的目标控制条件相匹配的第一控制请求的情况下,获取目标控制指令,并通过目标控制指令控制受控设备执行第一动作。In an exemplary embodiment, adjusting the target control conditions and/or target control instructions corresponding to the target configuration options includes: adjusting the target control conditions to obtain the adjusted target control conditions; adjusting the target control conditions and/or target control instructions corresponding to the target configuration options /or after the target control instruction, including: when a first control request matching the adjusted target control condition is acquired, acquiring the target control instruction, and controlling the controlled device to perform the first action through the target control instruction.

可选地,在本实施例中,控制条件可以根据用户的实际需求进行调整,例如,用户习惯说“我要泡澡”,而不习惯说“我要洗澡”,此时,可以将控制条件“我要洗澡”调整为“我要泡澡”。并在获取到用户发出的“我要泡澡”的请求后,将“打开热水器,温度设置为42度”的控制指令发送到热水器,进而控制热水器完成相关操作。Optionally, in this embodiment, the control conditions can be adjusted according to the actual needs of the user. For example, the user is accustomed to saying "I want to take a bath", but is not used to saying "I want to take a bath". At this time, the control conditions can be adjusted. "I want to take a bath" is adjusted to "I want to take a bath". And after obtaining the request of "I want to take a bath" from the user, it sends the control command of "turn on the water heater and set the temperature to 42 degrees" to the water heater, and then controls the water heater to complete related operations.

通过本申请实施例提供的方案,通过对控制条件进行调整,提高了设备控制的灵活性。With the solutions provided by the embodiments of the present application, the flexibility of device control is improved by adjusting the control conditions.

在一个示例性实施例中,调整目标配置选项对应的目标控制条件和/或目标控制指令,包括:调整目标控制指令,得到调整后的目标控制指令;在调整目标配置选项对应的目标控制条件和/或目标控制指令之后,包括:在获取到与目标控制条件相匹配的第二控制请求的情况下,获取调整后的目标控制指令,并通过调整后的目标控制指令控制受控设备执行第二动作。In an exemplary embodiment, adjusting the target control conditions and/or target control instructions corresponding to the target configuration options includes: adjusting the target control instructions to obtain the adjusted target control instructions; adjusting the target control conditions and/or target control instructions corresponding to the target configuration options /or after the target control instruction, including: in the case of acquiring a second control request matching the target control condition, acquiring the adjusted target control instruction, and controlling the controlled device to execute the second control instruction through the adjusted target control instruction action.

可选地,在本实施例中,控制指令可以根据用户的实际需求进行调整,例如,用户在冬天洗澡的时候,希望热水器的温度稍微调高一些,例如42度,而在夏天洗澡的时候,希望热水器的温度稍微调低一些,例如40度;因此,可以在不同的时间段对控制指令进行相应的调整。Optionally, in this embodiment, the control instruction can be adjusted according to the actual needs of the user. For example, when the user takes a bath in winter, he wants the temperature of the water heater to be slightly higher, such as 42 degrees, and when taking a bath in summer, It is desirable that the temperature of the water heater be turned down a little, say 40 degrees; therefore, the control commands can be adjusted accordingly at different time periods.

通过本申请实施例提供的方案,通过对控制指令进行调整,提高了设备控制的灵活性。With the solutions provided by the embodiments of the present application, the flexibility of device control is improved by adjusting the control instructions.

在一个示例性实施例中,调整目标配置选项对应的目标控制条件和/或目标控制指令,包括:调整目标控制条件以及目标控制指令,得到调整后的目标控制条件以及调整后的目标控制指令;在调整目标配置选项对应的目标控制条件和/或目标控制指令之后,包括:在获取到与调整后的目标控制条件相匹配的第三控制请求的情况下,获取调整后的目标控制指令,并通过调整后的目标控制指令控制受控设备执行第三动作。In an exemplary embodiment, adjusting the target control conditions and/or target control instructions corresponding to the target configuration options includes: adjusting the target control conditions and the target control instructions to obtain the adjusted target control conditions and the adjusted target control instructions; After adjusting the target control conditions and/or target control instructions corresponding to the target configuration options, the method includes: in the case of obtaining a third control request matching the adjusted target control conditions, obtaining the adjusted target control instructions, and The controlled device is controlled to perform the third action through the adjusted target control instruction.

可选地,在本实施例中,可以根据用户的实际需求同时调整控制条件和控制指令,调整控制条件和控制指令可以包括但不限于增加新的控制条件和控制指令,修改控制条件和控制指令,删除控制条件和控制指令。Optionally, in this embodiment, the control conditions and control instructions can be adjusted simultaneously according to the actual needs of the user. Adjusting the control conditions and control instructions may include, but is not limited to, adding new control conditions and control instructions, and modifying control conditions and control instructions. , delete the control condition and control instruction.

通过本申请实施例提供的方案,通过对控制条件和控制指令进行调整,提高了设备控制的灵活性。With the solutions provided by the embodiments of the present application, the flexibility of device control is improved by adjusting the control conditions and control instructions.

在一个示例性实施例中,调整目标配置选项对应的目标控制条件和/或目标控制指令,包括:从已有的配置选项中选择控制条件和/或控制指令;将选择的控制条件和/或控制指令作为调整后的目标配置选项对应的目标控制条件和/或目标控制指令。In an exemplary embodiment, adjusting the target control conditions and/or target control instructions corresponding to the target configuration options includes: selecting control conditions and/or control instructions from existing configuration options; The control instruction is used as the target control condition and/or the target control instruction corresponding to the adjusted target configuration option.

可选地,在本实施例中,在对控制条件和/或控制指令进行调整时,可以从数据库中已有的配置选项中选择控制条件和/或控制指令。例如,数据库中存储了多个可选的配置选项,可以通过下拉菜单选择的方式对控制条件和/或控制指令进行调整。Optionally, in this embodiment, when the control conditions and/or control instructions are adjusted, the control conditions and/or control instructions may be selected from existing configuration options in the database. For example, a plurality of optional configuration options are stored in the database, and control conditions and/or control instructions can be adjusted by means of a drop-down menu selection.

通过本申请实施例提供的方案,通过从已有的配置选项中选择的方式来调整控制条件和/或控制指令,提高了调整的效率。With the solutions provided by the embodiments of the present application, the control conditions and/or control instructions are adjusted by selecting from existing configuration options, thereby improving the efficiency of adjustment.

在一个示例性实施例中,在显示配置页面之后,还包括:在配置页面中新增一个或多个处理器;对一个或多个处理器进行参数配置,其中,参数包括处理器名称、上述控制条件、上述控制指令、上述设备信息和上述回复信息中的至少一个。In an exemplary embodiment, after the configuration page is displayed, the method further includes: adding one or more processors in the configuration page; configuring parameters for one or more processors, wherein the parameters include a processor name, the above-mentioned At least one of the control condition, the above-mentioned control instruction, the above-mentioned device information and the above-mentioned reply information.

可选地,在本实施例中,可以在配置页面中通过新增处理器,并对处理器进行参数配置的方式实现对受控设备的控制,配置参数可以根据用户需求进行调整,例如,增加、删除或调整。Optionally, in this embodiment, the control of the controlled device can be realized by adding a processor on the configuration page and configuring parameters for the processor, and the configuration parameters can be adjusted according to user requirements, for example, adding , delete or adjust.

通过本申请实施例提供的方案,通过在配置页面中配置处理器的方式,提高了对设备功能进行调整的效率。With the solution provided by the embodiment of the present application, the efficiency of adjusting the function of the device is improved by configuring the processor in the configuration page.

在一个示例性实施例中,在配置页面中新增一个或多个处理器,包括:在处理器的调用方式属于异步回调的情况下,在配置页面中配置第处理器,其中,异步回调表示在第一处理器所对应的第一受控设备执行完成第一控制指令的情况下,第二处理器所对应的第二受控设备执行第二控制指令;在处理器的调用方式属于非异步回调的情况下,在配置页面中配置多个第三处理器,其中,非异步回调表示在第一处理器所对应的第一受控设备执行完成第一控制指令的情况下,多个第三处理器所对应的多个第三受控设备执行多个第三控制指令,多个第三控制指令是不同的控制指令。In an exemplary embodiment, adding one or more processors in the configuration page includes: if the calling mode of the processor belongs to an asynchronous callback, configuring the first processor in the configuration page, wherein the asynchronous callback represents When the first controlled device corresponding to the first processor executes and completes the first control instruction, the second controlled device corresponding to the second processor executes the second control instruction; the calling method of the processor is non-asynchronous In the case of callback, configure multiple third processors in the configuration page, where non-asynchronous callback means that when the first controlled device corresponding to the first processor executes and completes the first control instruction, multiple third processors are executed. The multiple third controlled devices corresponding to the processor execute multiple third control instructions, and the multiple third control instructions are different control instructions.

可选地,在本实施例中,处理器的工作模式可以包括但不限于异步回调和非异步回调;其中,异步回调表示当前处理器处理完一个响应指令后,触发下一个处理器响应其他指令;非异步回调表示当前处理器处理完一个响应指令后,触发多个处理器同时响应多个不同的指令。例如,异步回调模式下,在用户洗完澡后,可以触发下一个处理器执行“我要听音乐”的响应指令;非异步回调模式下,在用户洗完澡后,可以同时触发多个处理器同时执行“我要听音乐”、“我要吹空调”等多个不同的指令。Optionally, in this embodiment, the working mode of the processor may include, but is not limited to, asynchronous callback and non-asynchronous callback; wherein, asynchronous callback means that after the current processor processes one response instruction, the next processor is triggered to respond to other instructions. ;Non-asynchronous callback means that after the current processor processes a response command, multiple processors are triggered to respond to multiple different commands at the same time. For example, in the asynchronous callback mode, after the user takes a shower, the next processor can be triggered to execute the "I want to listen to music" response instruction; in the non-asynchronous callback mode, after the user takes a shower, multiple processes can be triggered at the same time The device executes several different commands such as "I want to listen to music" and "I want to blow the air conditioner" at the same time.

通过本申请实施例提供的方案,通过为处理器设置多种工作模式,提高了设备控制的灵活性。With the solutions provided by the embodiments of the present application, the flexibility of device control is improved by setting multiple working modes for the processor.

为了更好的理解上述设备控制方法的过程,以下再结合可选实施例对上述设备控制方法进行说明,但不用于限定本发明实施例的技术方案。In order to better understand the process of the foregoing device control method, the foregoing device control method is described below with reference to optional embodiments, but is not intended to limit the technical solutions of the embodiments of the present invention.

在本实施例中提供了一种对处理器进行参数配置的示意图,如图3所示。In this embodiment, a schematic diagram of parameter configuration of the processor is provided, as shown in FIG. 3 .

1)处理器名称1) Processor name

输入处理器名称,不能和已有处理器名称重复。Enter a processor name, which cannot be the same as an existing processor name.

2)控制条件2) Control conditions

给当前处理器添加条件选项。先选择条件类型,参数值包括NLP,设备属性,设备状态,设备警告,家庭,环境,执行结果;如选择了“设备状态”,再配置操作表达式,如“相等”“意图”“37度”,即表示配置了设备状态等于37度的意图。Add conditional options to the current handler. First select the condition type, and the parameter values include NLP, device attribute, device status, device warning, family, environment, and execution result; if "device status" is selected, then configure the operation expression, such as "equal", "intent", "37 degree" ", which means the intent is configured with a device state equal to 37 degrees.

3)回复信息3) Reply message

输入当前处理器期望受控设备条件触发时语音回复的内容。Enter the content of the voice response that the current processor expects when the controlled device condition is triggered.

4)内置处理4) Built-in processing

内置处理可选择设备状态和设备列表,当设备处理使用该处理器的时候可以选择待处理设备是否在该设备列表里信息以及设备的状态。The built-in process can select the device state and device list. When the device process uses the processor, it can select whether the device to be processed is in the device list and the state of the device.

5)动作5) Action

处理器设置动作时可选择不同的动作类型。Different action types can be selected by the processor when setting the action.

设备指令:可以配置应用类型,指令名称,指令值,如应用类型“热水器”,指令名称“开关机状态”,指令值“open”。Equipment instruction: You can configure the application type, instruction name, and instruction value, such as application type "water heater", instruction name "on-off state", instruction value "open".

互斥回复:可以配置当该设备执行到两个互斥的指令的回复信息,如“开机失败了”。Mutually exclusive reply: You can configure the reply information when the device executes two mutually exclusive commands, such as "boot failure".

查询的前置回复信息:可以配置多轮对话,当用户说打开空调时回复“温度设置为多少度”。Pre-reply information for inquiries: You can configure multiple rounds of dialogue, and when the user says to turn on the air conditioner, reply "What is the temperature set to?".

状态查询:可以配置应用类型,属性名称,回复信息,如:应用类型“空调”,属性名称:“新风打开”,回复话术:“好的,已为您打开新风模式”。Status query: You can configure the application type, attribute name, and reply information, such as: application type "air conditioner", attribute name: "fresh air on", reply phrase: "OK, fresh air mode has been turned on for you".

数据打点:可以配置场景ID和节点ID,当该场景和节点被触发时上传云端记录日志,为分析场景和节点使用情况收集数据。Data management: You can configure the scene ID and node ID. When the scene and node are triggered, upload the cloud recording log to collect data for analyzing the scene and node usage.

6)异步回调6) Asynchronous callback

异步回调是当前设备可以再配置一个处理器,配置参数同处理器的配置,当设备在完成某一个动作的时候可以触发已经配置好的命令。Asynchronous callback means that the current device can configure another processor, and the configuration parameters are the same as the configuration of the processor. When the device completes a certain action, it can trigger the configured command.

7)子处理器7) Subprocessor

子处理器是当前设备可以再配置多个处理器,每一个处理器的配置参数同处理器的配置,当设备在完成某一个动作的时候可以触发已经配置好的命令。The sub-processor means that the current device can be configured with multiple processors. The configuration parameters of each processor are the same as the configuration of the processor. When the device completes a certain action, it can trigger the configured command.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of the various embodiments of the present invention.

图4是根据本发明实施例的一种设备控制装置的结构框图;如图4所示,包括:Fig. 4 is a structural block diagram of a device control apparatus according to an embodiment of the present invention; as shown in Fig. 4, including:

显示模块401,用于显示配置页面,其中,配置页面上展示有多个配置选项,每个配置选项对应控制条件、控制指令、设备信息和回复信息中的至少一个,控制条件用于触发对应的控制指令,控制指令用于控制受控设备执行对应的动作,设备信息用于表示受控设备的状态,回复信息用于受控设备响应目标用户的请求指令;The display module 401 is used to display a configuration page, wherein a plurality of configuration options are displayed on the configuration page, each configuration option corresponds to at least one of control conditions, control instructions, device information and reply information, and the control conditions are used to trigger the corresponding Control instruction, the control instruction is used to control the controlled device to perform the corresponding action, the device information is used to indicate the state of the controlled device, and the reply information is used for the controlled device to respond to the request instruction of the target user;

调整模块402,用于响应于对配置页面上展示的目标配置选项触发的配置调整请求,调整目标配置选项对应的目标控制条件和/或目标控制指令;An adjustment module 402, configured to adjust the target control condition and/or the target control instruction corresponding to the target configuration option in response to the configuration adjustment request triggered by the target configuration option displayed on the configuration page;

配置模块403,用于基于目标控制条件和/或目标控制指令,配置目标受控设的目标回复信息。The configuration module 403 is configured to configure the target response information of the target controlled device based on the target control condition and/or the target control instruction.

通过本申请实施例提供的方案,显示配置页面,其中,配置页面上展示有多个配置选项,每个配置选项对应控制条件、控制指令、设备信息和回复信息中的至少一个,控制条件用于触发对应的控制指令,控制指令用于控制受控设备执行对应的动作,设备信息用于表示受控设备的状态,回复信息用于受控设备响应目标用户的请求指令;响应于对配置页面上展示的目标配置选项触发的配置调整请求,调整目标配置选项对应的目标控制条件和/或目标控制指令;基于目标控制条件和/或目标控制指令,配置目标受控设备的目标回复信息。采用上述技术方案,通过在配置页面中对设备功能进行调整,耗时短,效率高,解决了由于通过代码实现设备功能调整,效率比较低的技术问题。Through the solution provided by the embodiment of the present application, a configuration page is displayed, wherein a plurality of configuration options are displayed on the configuration page, and each configuration option corresponds to at least one of control conditions, control instructions, device information and reply information, and the control conditions are used for Trigger the corresponding control command, the control command is used to control the controlled device to perform the corresponding action, the device information is used to indicate the state of the controlled device, and the reply information is used for the controlled device to respond to the target user's request command; The configuration adjustment request triggered by the displayed target configuration option adjusts the target control condition and/or target control instruction corresponding to the target configuration option; based on the target control condition and/or the target control instruction, configures the target response information of the target controlled device. By adopting the above technical solution, by adjusting the device function in the configuration page, the time-consuming is short and the efficiency is high, and the technical problem of low efficiency due to realizing the device function adjustment through code is solved.

本发明的实施例还提供了一种存储介质,该存储介质包括存储的程序,其中,上述程序运行时执行上述任一项的方法。An embodiment of the present invention further provides a storage medium, where the storage medium includes a stored program, wherein the above-mentioned program executes any one of the above-mentioned methods when running.

可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Optionally, in this embodiment, the above-mentioned storage medium may be configured to store program codes for executing the following steps:

S1,显示配置页面,其中,配置页面上展示有多个配置选项,每个配置选项对应控制条件、控制指令、设备信息和回复信息中的至少一个,控制条件用于触发对应的控制指令,控制指令用于控制受控设备执行对应的动作,设备信息用于表示受控设备的状态,回复信息用于受控设备响应目标用户的请求指令;S1, display a configuration page, wherein a plurality of configuration options are displayed on the configuration page, each configuration option corresponds to at least one of control conditions, control instructions, device information and reply information, the control conditions are used to trigger the corresponding control instructions, control The instruction is used to control the controlled device to perform the corresponding action, the device information is used to represent the state of the controlled device, and the reply information is used for the controlled device to respond to the target user's request instruction;

S2,响应于对配置页面上展示的目标配置选项触发的配置调整请求,调整目标配置选项对应的目标控制条件和/或目标控制指令;S2, in response to the configuration adjustment request triggered by the target configuration option displayed on the configuration page, adjust the target control condition and/or the target control instruction corresponding to the target configuration option;

S3,基于目标控制条件和/或目标控制指令,配置目标受控设备的目标回复信息。S3 , based on the target control condition and/or the target control instruction, configure target reply information of the target controlled device.

本发明的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present invention also provides an electronic device, comprising a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any of the above method embodiments.

可选地,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。Optionally, the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.

可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the above-mentioned processor may be configured to execute the following steps through a computer program:

S1,显示配置页面,其中,配置页面上展示有多个配置选项,每个配置选项对应控制条件、控制指令、设备信息和回复信息中的至少一个,控制条件用于触发对应的控制指令,控制指令用于控制受控设备执行对应的动作,设备信息用于表示受控设备的状态,回复信息用于受控设备响应目标用户的请求指令;S1, display a configuration page, wherein a plurality of configuration options are displayed on the configuration page, each configuration option corresponds to at least one of control conditions, control instructions, device information and reply information, the control conditions are used to trigger the corresponding control instructions, control The instruction is used to control the controlled device to perform the corresponding action, the device information is used to represent the state of the controlled device, and the reply information is used for the controlled device to respond to the target user's request instruction;

S2,响应于对配置页面上展示的目标配置选项触发的配置调整请求,调整目标配置选项对应的目标控制条件和/或目标控制指令;S2, in response to the configuration adjustment request triggered by the target configuration option displayed on the configuration page, adjust the target control condition and/or the target control instruction corresponding to the target configuration option;

S3,基于目标控制条件和/或目标控制指令,配置目标受控设备的目标回复信息。S3 , based on the target control condition and/or the target control instruction, configure target reply information of the target controlled device.

可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (Read-Only Memory, referred to as ROM), a random access memory (Random Access Memory, referred to as RAM), Various media that can store program codes, such as removable hard disks, magnetic disks, or optical disks.

可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。Optionally, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementation manners, and details are not described herein again in this embodiment.

显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by a general-purpose computing device, and they can be centralized on a single computing device or distributed in a network composed of multiple computing devices Alternatively, they may be implemented in program code executable by a computing device, such that they may be stored in a storage device and executed by the computing device, and in some cases, in a different order than here The steps shown or described are performed either by fabricating them separately into individual integrated circuit modules, or by fabricating multiple modules or steps of them into a single integrated circuit module. As such, the present invention is not limited to any particular combination of hardware and software.

以上所述仅是本申请的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above are only the preferred embodiments of the present application. It should be pointed out that for those skilled in the art, without departing from the principles of the present application, several improvements and modifications can also be made. It should be regarded as the protection scope of this application.

Claims (10)

1.一种设备控制方法,其特征在于,包括:1. a device control method, is characterized in that, comprises: 显示配置页面,其中,所述配置页面上展示有多个配置选项,每个所述配置选项对应控制条件、控制指令、设备信息和回复信息中的至少一个,所述控制条件用于触发对应的所述控制指令,所述控制指令用于控制受控设备执行对应的动作,所述设备信息用于表示所述受控设备的状态,所述回复信息用于所述受控设备响应目标用户的请求指令;A configuration page is displayed, wherein a plurality of configuration options are displayed on the configuration page, each of the configuration options corresponds to at least one of control conditions, control instructions, device information and reply information, and the control conditions are used to trigger the corresponding The control instruction, the control instruction is used to control the controlled device to perform the corresponding action, the device information is used to indicate the state of the controlled device, and the reply information is used for the controlled device to respond to the target user's response. request instruction; 响应于对所述配置页面上展示的目标配置选项触发的配置调整请求,调整所述目标配置选项对应的目标控制条件和/或目标控制指令;In response to a configuration adjustment request triggered by the target configuration option displayed on the configuration page, adjust the target control condition and/or target control instruction corresponding to the target configuration option; 基于所述目标控制条件和/或目标控制指令,配置目标受控设备的目标回复信息。Based on the target control condition and/or the target control instruction, the target reply information of the target controlled device is configured. 2.根据权利要求1所述的方法,其特征在于,在所述基于所述目标控制条件和/或目标控制指令,配置目标受控设备的目标回复信息之后,包括:2. The method according to claim 1, wherein after configuring the target reply information of the target controlled device based on the target control condition and/or the target control instruction, the method comprises: 接收所述目标受控设备上传的第一控制请求指令和第二控制请求指令;receiving the first control request instruction and the second control request instruction uploaded by the target controlled device; 对所述第一控制请求指令进行解析,确定与所述第一控制请求指令对应的第一目标控制条件和/或第一目标控制指令;Parsing the first control request instruction to determine a first target control condition and/or a first target control instruction corresponding to the first control request instruction; 对所述第二控制请求指令进行解析,确定与所述第二控制请求指令对应的第二目标控制条件和/或第二目标控制指令;Parsing the second control request instruction to determine the second target control condition and/or the second target control instruction corresponding to the second control request instruction; 在所述第一目标控制条件与所述第二目标控制条件为互斥或所述第一目标控制指令与所述第二目标控制指令为互斥的情况下,向所述目标受控设备下发第一目标回复信息,其中,所述第一目标回复信息用于指示所述目标受控设备响应失败。In the case that the first target control condition and the second target control condition are mutually exclusive or the first target control instruction and the second target control instruction are mutually exclusive, send a command to the target controlled device Sending first target reply information, wherein the first target reply information is used to indicate that the target controlled device fails to respond. 3.根据权利要求1所述的方法,其特征在于,在所述基于所述目标控制条件和/或目标控制指令,配置目标受控设备的目标回复信息之后,包括:3. The method according to claim 1, wherein after configuring the target reply information of the target controlled device based on the target control condition and/or the target control instruction, the method comprises: 接收所述目标受控设备上传的第三控制请求指令;receiving a third control request instruction uploaded by the target controlled device; 对所述第三控制请求指令进行解析,判断所述第三控制请求指令是否对应有第三目标控制条件和/或第三目标控制指令;Analyzing the third control request instruction to determine whether the third control request instruction corresponds to a third target control condition and/or a third target control instruction; 在所述第三控制请求指令没有相对应的所述第三目标控制条件和/或所述第三目标控制指令的情况下,向所述目标受控设备下发第二目标回复信息,其中,所述第二目标回复信息用于确定所述第三目标控制条件和/或所述第三目标控制指令。In the case that the third control request instruction does not have the corresponding third target control condition and/or the third target control instruction, the second target reply information is sent to the target controlled device, wherein, The second target reply information is used to determine the third target control condition and/or the third target control instruction. 4.根据权利要求1所述的方法,其特征在于,在所述基于所述目标控制条件和/或目标控制指令,配置目标受控设备的目标回复信息之后,包括:4. The method according to claim 1, wherein after configuring the target reply information of the target controlled device based on the target control condition and/or the target control instruction, the method comprises: 接收所述目标受控设备上传的第四控制请求指令;receiving a fourth control request instruction uploaded by the target controlled device; 对所述第四控制请求指令进行解析,判断所述第四控制请求指令是否为状态查询指令;Parsing the fourth control request instruction to determine whether the fourth control request instruction is a status query instruction; 在所述第四控制请求指令为所述状态查询指令的情况下,向所述目标受控设备下发第三目标回复信息,其中,所述第三目标回复信息用于表示所述目标受控设备的状态。When the fourth control request instruction is the status query instruction, send third target reply information to the target controlled device, where the third target reply information is used to indicate that the target is controlled Status of the device. 5.根据权利要求1-4任一项所述的方法,其特征在于,所述调整所述目标配置选项对应的目标控制条件和/或目标控制指令,包括:5. The method according to any one of claims 1-4, wherein the adjusting the target control condition and/or the target control instruction corresponding to the target configuration option comprises: 从已有的配置选项中选择控制条件和/或控制指令;Select control conditions and/or control instructions from existing configuration options; 将选择的所述控制条件和/或控制指令作为调整后的所述目标配置选项对应的目标控制条件和/或目标控制指令。The selected control conditions and/or control instructions are used as the target control conditions and/or target control instructions corresponding to the adjusted target configuration options. 6.根据权利要求1-4任一项所述的方法,其特征在于,在所述显示配置页面之后,还包括:6. The method according to any one of claims 1-4, wherein after the displaying the configuration page, the method further comprises: 在所述配置页面中新增一个或多个处理器;adding one or more processors to the configuration page; 对所述一个或多个处理器进行参数配置,其中,所述参数包括处理器名称、所述控制条件、所述控制指令、所述设备信息和所述回复信息中的至少一个。Parameter configuration is performed on the one or more processors, wherein the parameters include at least one of a processor name, the control condition, the control instruction, the device information, and the reply information. 7.根据权利要求6所述的方法,其特征在于,所述在所述配置页面中新增一个或多个处理器,包括:7. The method according to claim 6, wherein the adding one or more processors in the configuration page comprises: 在处理器的调用方式属于异步回调的情况下,在所述配置页面中配置第二处理器,其中,所述异步回调表示在第一处理器所对应的第一受控设备执行完成第一控制指令的情况下,所述第二处理器所对应的第二受控设备执行第二控制指令;In the case where the calling method of the processor is an asynchronous callback, configure a second processor in the configuration page, where the asynchronous callback indicates that the first controlled device corresponding to the first processor executes and completes the first control In the case of an instruction, the second controlled device corresponding to the second processor executes the second control instruction; 在处理器的调用方式属于非异步回调的情况下,在所述配置页面中配置多个第三处理器,其中,所述非异步回调表示在第一处理器所对应的第一受控设备执行完成第一控制指令的情况下,所述多个第三处理器所对应的多个第三受控设备执行多个第三控制指令,所述多个第三控制指令是不同的控制指令。In the case where the calling method of the processor is a non-asynchronous callback, configure multiple third processors in the configuration page, where the non-asynchronous callback indicates that the first controlled device corresponding to the first processor executes When the first control instruction is completed, the multiple third controlled devices corresponding to the multiple third processors execute multiple third control instructions, and the multiple third control instructions are different control instructions. 8.一种设备控制装置,其特征在于,包括:8. A device control device, characterized in that, comprising: 显示模块,用于显示配置页面,其中,所述配置页面上展示有多个配置选项,每个所述配置选项对应控制条件、控制指令、设备信息和回复信息中的至少一个,所述控制条件用于触发对应的所述控制指令,所述控制指令用于控制受控设备执行对应的动作,所述设备信息用于表示所述受控设备的状态,所述回复信息用于所述受控设备响应目标用户的请求指令;A display module, configured to display a configuration page, wherein a plurality of configuration options are displayed on the configuration page, each of the configuration options corresponds to at least one of control conditions, control instructions, device information and reply information, and the control conditions Used to trigger the corresponding control instruction, the control instruction is used to control the controlled device to perform the corresponding action, the device information is used to indicate the state of the controlled device, and the reply information is used for the controlled device The device responds to the target user's request instruction; 调整模块,用于响应于对所述配置页面上展示的目标配置选项触发的配置调整请求,调整所述目标配置选项对应的目标控制条件和/或目标控制指令;an adjustment module, configured to adjust the target control condition and/or the target control instruction corresponding to the target configuration option in response to a configuration adjustment request triggered by the target configuration option displayed on the configuration page; 配置模块,用于基于所述目标控制条件和/或目标控制指令,配置目标受控设备的目标回复信息。The configuration module is configured to configure the target reply information of the target controlled device based on the target control condition and/or the target control instruction. 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.
CN202210590987.1A 2022-05-27 2022-05-27 Device control method, storage medium and electronic device Active CN115032917B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210590987.1A CN115032917B (en) 2022-05-27 2022-05-27 Device control method, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210590987.1A CN115032917B (en) 2022-05-27 2022-05-27 Device control method, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN115032917A true CN115032917A (en) 2022-09-09
CN115032917B CN115032917B (en) 2024-12-20

Family

ID=83121149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210590987.1A Active CN115032917B (en) 2022-05-27 2022-05-27 Device control method, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115032917B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309308A (en) * 2013-05-17 2013-09-18 华为技术有限公司 Equipment intelligent control method, device, system and plug-and-play equipment
JP5295467B1 (en) * 2012-12-10 2013-09-18 三菱電機株式会社 Multi-axis control system setting / adjustment function support device
US10098201B1 (en) * 2017-10-17 2018-10-09 Cooper Lighting, Llc Method and system for controlling functionality of lighting devices from a portable electronic device
CN109213035A (en) * 2018-08-27 2019-01-15 珠海格力电器股份有限公司 Instruction updating method and device and electronic equipment
CN109581938A (en) * 2019-01-08 2019-04-05 广州小鹏汽车科技有限公司 A kind of long-range control method, device, terminal device and medium
CN109947003A (en) * 2019-03-29 2019-06-28 联想(北京)有限公司 A kind of control method and equipment
US20190252134A1 (en) * 2018-02-14 2019-08-15 Schweitzer Engineering Laboratories, Inc. Point on wave switching using slow speed processing
CN110850748A (en) * 2019-11-25 2020-02-28 北京师范大学珠海分校 Device management method, device, computer device and storage medium
CN110943862A (en) * 2019-11-26 2020-03-31 北京达佳互联信息技术有限公司 Mutual exclusion service judgment method and device, electronic equipment and storage medium
CN112346366A (en) * 2020-11-03 2021-02-09 深圳Tcl新技术有限公司 Control method, device and equipment of terminal equipment and computer readable storage medium
CN112737901A (en) * 2020-12-29 2021-04-30 青岛海尔科技有限公司 Operation configuration method and device in scene, storage medium and electronic device
CN113395193A (en) * 2021-05-27 2021-09-14 深圳Tcl新技术有限公司 Equipment control method and device, computer equipment and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5295467B1 (en) * 2012-12-10 2013-09-18 三菱電機株式会社 Multi-axis control system setting / adjustment function support device
CN103309308A (en) * 2013-05-17 2013-09-18 华为技术有限公司 Equipment intelligent control method, device, system and plug-and-play equipment
US10098201B1 (en) * 2017-10-17 2018-10-09 Cooper Lighting, Llc Method and system for controlling functionality of lighting devices from a portable electronic device
US20190252134A1 (en) * 2018-02-14 2019-08-15 Schweitzer Engineering Laboratories, Inc. Point on wave switching using slow speed processing
CN109213035A (en) * 2018-08-27 2019-01-15 珠海格力电器股份有限公司 Instruction updating method and device and electronic equipment
CN109581938A (en) * 2019-01-08 2019-04-05 广州小鹏汽车科技有限公司 A kind of long-range control method, device, terminal device and medium
CN109947003A (en) * 2019-03-29 2019-06-28 联想(北京)有限公司 A kind of control method and equipment
CN110850748A (en) * 2019-11-25 2020-02-28 北京师范大学珠海分校 Device management method, device, computer device and storage medium
CN110943862A (en) * 2019-11-26 2020-03-31 北京达佳互联信息技术有限公司 Mutual exclusion service judgment method and device, electronic equipment and storage medium
CN112346366A (en) * 2020-11-03 2021-02-09 深圳Tcl新技术有限公司 Control method, device and equipment of terminal equipment and computer readable storage medium
CN112737901A (en) * 2020-12-29 2021-04-30 青岛海尔科技有限公司 Operation configuration method and device in scene, storage medium and electronic device
CN113395193A (en) * 2021-05-27 2021-09-14 深圳Tcl新技术有限公司 Equipment control method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN115032917B (en) 2024-12-20

Similar Documents

Publication Publication Date Title
CN115167164A (en) Method and device for determining equipment scene, storage medium and electronic device
CN108039989A (en) A kind of method, apparatus of Scene case, storage medium and computer equipment
CN116760567A (en) Account association methods, devices, electronic devices and storage media
CN116016002A (en) Smart home appliance distribution network method, device and electronic device
CN114115027A (en) Adjustment method, system, device, device and storage medium for target environment parameters
CN115032917A (en) Device control method, storage medium and electronic device
WO2024016539A1 (en) Device control method and apparatus, and storage medium and electronic apparatus
WO2024066089A1 (en) Cooking plan determination method and apparatus, storage medium, and electronic apparatus
WO2024001189A1 (en) Food storage information determination method and apparatus, storage medium, and electronic apparatus
CN117075508A (en) Linkage control method and device of equipment and computer equipment
WO2024021546A1 (en) Behavior preference table generation method and apparatus, storage medium and electronic apparatus
CN115482820A (en) Device control method and apparatus, storage medium, and electronic apparatus
CN115473752A (en) Method and device for sending control command, storage medium and electronic device
CN115065508A (en) Method and apparatus for processing device twin data, storage medium, and electronic apparatus
WO2024036804A1 (en) Intent instruction determining method and apparatus, storage medium, and electronic device
CN118692447A (en) A voice response testing method and device for intelligent household appliances
CN118824246A (en) Terminal device control method and device, storage medium and computer program product
CN116184886A (en) Equipment control method, device, storage medium and electronic device
CN112187701A (en) Control method and device
CN115175152B (en) Smart device binding method and device, storage medium and electronic device
WO2023206701A1 (en) Instruction execution device selection method and apparatus, and storage medium and electronic apparatus
WO2023202043A1 (en) Data tag binding method and apparatus, storage medium, and electronic apparatus
CN118890713A (en) Target device connection method, device, storage medium and electronic device
CN118778505A (en) A scene generation method and device
CN113905362A (en) Optimization method, device, electronic device and storage medium for Ble Mesh device network access

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