Movatterモバイル変換


[0]ホーム

URL:


CN106647306A - Smart device control method and device - Google Patents

Smart device control method and device
Download PDF

Info

Publication number
CN106647306A
CN106647306ACN201611242259.2ACN201611242259ACN106647306ACN 106647306 ACN106647306 ACN 106647306ACN 201611242259 ACN201611242259 ACN 201611242259ACN 106647306 ACN106647306 ACN 106647306A
Authority
CN
China
Prior art keywords
control
authority
specified
account
targeted customer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611242259.2A
Other languages
Chinese (zh)
Inventor
任桥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co LtdfiledCriticalBeijing Xiaomi Mobile Software Co Ltd
Priority to CN201611242259.2ApriorityCriticalpatent/CN106647306A/en
Publication of CN106647306ApublicationCriticalpatent/CN106647306A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本公开是关于一种智能设备的控制方法及装置,属于智能家居技术领域,该方法包括:接收目标用户账号发送的控制指令,该控制指令中携带待控制的智能设备的设备标识,基于该设备标识,判断该目标用户账号是否具有指定控制权限,该指定控制权限为控制该智能设备执行该控制指令对应的控制操作的权限,当该目标用户账号具有该指定控制权限时,向该智能设备转发该控制指令,该控制指令用于控制该智能设备执行该控制指令对应的控制操作。如此,通过限制目标用户账号对该智能设备的某个功能或者某个操作的控制权限,提高了控制操作的安全性。

The present disclosure relates to a method and device for controlling smart devices, belonging to the field of smart home technology. The method includes: receiving a control command sent by a target user account, the control command carrying the device identifier of the smart device to be controlled, based on the device identification, judging whether the target user account has the specified control authority, the specified control authority is the authority to control the smart device to execute the control operation corresponding to the control instruction, and when the target user account has the specified control authority, forward it to the smart device The control instruction is used to control the smart device to execute the control operation corresponding to the control instruction. In this way, by restricting the control authority of the target user account to a certain function or certain operation of the smart device, the security of the control operation is improved.

Description

Translated fromChinese
智能设备的控制方法及装置Intelligent device control method and device

技术领域technical field

本公开涉及智能家居技术领域,尤其涉及一种智能设备的控制方法及装置。The present disclosure relates to the technical field of smart home, and in particular, to a method and device for controlling a smart device.

背景技术Background technique

随着智能家居技术的快速发展,出现了各种各样的智能设备,例如,智能马桶、智能照明设备、智能加湿器等。目前,用户可以通过诸如手机等之类的终端来控制智能设备,例如,终端可以通过服务器向智能设备发送控制指令,该智能设备中通常配置有智能芯片,当接收到该控制指令时,通过该智能芯片执行该控制指令对应的控制操作。With the rapid development of smart home technologies, various smart devices, such as smart toilets, smart lighting devices, and smart humidifiers, have emerged. At present, users can control smart devices through terminals such as mobile phones. For example, the terminal can send control instructions to the smart device through the server. The smart device is usually equipped with a smart chip. When receiving the control command, through the The smart chip executes the control operation corresponding to the control instruction.

发明内容Contents of the invention

为克服相关技术中存在的问题,本公开提供一种智能设备的控制方法及装置。In order to overcome the problems existing in related technologies, the present disclosure provides a method and device for controlling smart devices.

第一方面,提供一种智能设备的控制方法,所述方法包括:In a first aspect, a method for controlling a smart device is provided, the method comprising:

接收目标用户账号发送的控制指令,所述控制指令中携带待控制的智能设备的设备标识;receiving a control command sent by the target user account, the control command carrying the device identifier of the smart device to be controlled;

基于所述设备标识,判断所述目标用户账号是否具有指定控制权限,所述指定控制权限为控制所述智能设备执行所述控制指令对应的控制操作的权限;Based on the device identifier, determine whether the target user account has a specified control authority, where the specified control authority is the authority to control the smart device to execute the control operation corresponding to the control instruction;

当所述目标用户账号具有所述指定控制权限时,向所述智能设备转发所述控制指令,所述控制指令用于控制所述智能设备执行所述控制指令对应的控制操作。When the target user account has the designated control authority, forward the control instruction to the smart device, where the control instruction is used to control the smart device to perform a control operation corresponding to the control instruction.

可选地,所述基于所述设备标识,判断所述目标用户账号是否具有指定控制权限,包括:Optionally, the determining whether the target user account has specified control authority based on the device identifier includes:

基于所述设备标识和所述目标用户账号,从存储的指定权限列表中查询对应的控制权限参数,所述指定权限列表用于存储设备标识、用户账号和所述用户账号对应的控制权限参数三者之间的对应关系;Based on the device identifier and the target user account, query the corresponding control authority parameters from the stored specified authority list, and the specified authority list is used to store the device identifier, the user account, and the control authority parameters corresponding to the user account. Correspondence between the three;

基于查询到的控制权限参数,判断所述目标用户账号是否具有所述指定控制权限。Based on the queried control authority parameter, it is judged whether the target user account has the specified control authority.

可选地,所述基于查询到的控制权限参数,判断所述目标用户账号是否具有所述指定控制权限,包括:Optionally, the determining whether the target user account has the specified control authority based on the queried control authority parameter includes:

当查询到的控制权限参数中包含指定控制权限参数时,确定所述目标用户账号具有所述指定控制权限,所述指定控制权限参数用于指示所述指定控制权限。When the queried control authority parameter includes the specified control authority parameter, it is determined that the target user account has the specified control authority, and the specified control authority parameter is used to indicate the specified control authority.

可选地,所述接收目标用户账号发送的控制指令之前,还包括:Optionally, before receiving the control instruction sent by the target user account, it also includes:

接收权限设置指令,所述权限设置指令中携带所述目标用户账号、所述智能设备的设备标识和所述目标用户账号对应的控制权限参数;Receiving an authority setting instruction, the authority setting instruction carrying the target user account, the device identifier of the smart device, and the control authority parameters corresponding to the target user account;

将所述权限设置指令中携带的所述目标用户账号、所述智能设备的设备标识和所述目标用户账号对应的控制权限参数对应存储至所述指定权限列表中。The target user account carried in the permission setting instruction, the device identifier of the smart device, and the control permission parameters corresponding to the target user account are correspondingly stored in the specified permission list.

可选地,所述向所述智能设备转发所述控制指令之后,还包括:Optionally, after forwarding the control instruction to the smart device, the method further includes:

向所述目标用户账号发送转发成功通知消息,所述转发成功通知消息用于指示已向所述智能设备成功转发所述控制指令。Sending a forwarding success notification message to the target user account, where the forwarding success notification message is used to indicate that the control instruction has been successfully forwarded to the smart device.

第二方面,提供一种智能设备的控制装置,所述装置包括:In a second aspect, a control device for a smart device is provided, the device comprising:

第一接收模块,用于接收目标用户账号发送的控制指令,所述控制指令中携带待控制的智能设备的设备标识;The first receiving module is configured to receive the control instruction sent by the target user account, and the control instruction carries the device identification of the smart device to be controlled;

判断模块,用于基于所述第一接收模块接收的所述设备标识,判断所述目标用户账号是否具有指定控制权限,所述指定控制权限为控制所述智能设备执行所述控制指令对应的控制操作的权限;A judging module, configured to judge whether the target user account has a specified control authority based on the device identifier received by the first receiving module, and the specified control authority is to control the smart device to execute the control corresponding to the control instruction the authority to operate;

转发模块,用于当所述判断模块确定所述目标用户账号具有所述指定控制权限时,向所述智能设备转发所述控制指令,所述控制指令用于控制所述智能设备执行所述控制指令对应的控制操作。A forwarding module, configured to forward the control instruction to the smart device when the judging module determines that the target user account has the specified control authority, and the control instruction is used to control the smart device to execute the control The control operation corresponding to the instruction.

可选地,所述判断模块包括:Optionally, the judging module includes:

查询子模块,用于基于所述设备标识和所述目标用户账号,从存储的指定权限列表中查询对应的控制权限参数,所述指定权限列表用于存储设备标识、用户账号和所述用户账号对应的控制权限参数三者之间的对应关系;A query submodule, configured to query corresponding control authority parameters from a stored specified authority list based on the device identifier and the target user account, the specified authority list being used to store the device identifier, user account, and the user account Corresponding relationship between the three corresponding control authority parameters;

判断子模块,用于基于查询到的控制权限参数,判断所述目标用户账号是否具有所述指定控制权限。The judging submodule is configured to judge whether the target user account has the specified control authority based on the queried control authority parameter.

可选地,所述判断子模块用于:Optionally, the judging submodule is used for:

当查询到的控制权限参数中包含指定控制权限参数时,确定所述目标用户账号具有所述指定控制权限,所述指定控制权限参数用于指示所述指定控制权限。When the queried control authority parameter includes the specified control authority parameter, it is determined that the target user account has the specified control authority, and the specified control authority parameter is used to indicate the specified control authority.

可选地,所述装置还包括:Optionally, the device also includes:

第二接收模块,用于接收权限设置指令,所述权限设置指令中携带所述目标用户账号、所述智能设备的设备标识和所述目标用户账号对应的控制权限参数;The second receiving module is configured to receive an authority setting instruction, where the authority setting instruction carries the target user account, the device identifier of the smart device, and the control authority parameter corresponding to the target user account;

存储模块,用于将所述权限设置指令中携带的所述目标用户账号、所述智能设备的设备标识和所述目标用户账号对应的控制权限参数对应存储至所述指定权限列表中。A storage module, configured to correspondingly store the target user account, the device identifier of the smart device, and the control authority parameters corresponding to the target user account carried in the authority setting instruction into the specified authority list.

可选地,所述装置还包括:Optionally, the device also includes:

发送模块,用于向所述目标用户账号发送转发成功通知消息,所述转发成功通知消息用于指示已向所述智能设备成功转发所述控制指令。A sending module, configured to send a forwarding success notification message to the target user account, where the forwarding success notification message is used to indicate that the control instruction has been successfully forwarded to the smart device.

第三方面,提供一种智能设备的控制装置,所述装置包括:In a third aspect, a control device for a smart device is provided, the device comprising:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

接收目标用户账号发送的控制指令,所述控制指令中携带待控制的智能设备的设备标识;receiving a control command sent by the target user account, the control command carrying the device identifier of the smart device to be controlled;

基于所述设备标识,判断所述目标用户账号是否具有指定控制权限,所述指定控制权限为控制所述智能设备执行所述控制指令对应的控制操作的权限;Based on the device identifier, determine whether the target user account has a specified control authority, where the specified control authority is the authority to control the smart device to execute the control operation corresponding to the control instruction;

当所述目标用户账号具有所述指定控制权限时,向所述智能设备转发所述控制指令,所述控制指令用于控制所述智能设备执行所述控制指令对应的控制操作。When the target user account has the designated control authority, forward the control instruction to the smart device, where the control instruction is used to control the smart device to perform a control operation corresponding to the control instruction.

本公开的实施例提供的技术方案可以包括以下有益效果:当接收到目标用户账号对智能设备的控制指令时,基于该控制指令携带的设备标识,判断该目标用户账号是否具有控制该智能设备执行该控制指令对应的控制操作的权限,只有当确定该目标用户账号具有该权限时,才将该控制指令转发给该智能设备,如此,通过限制目标用户账号对该智能设备的某个功能或者某个操作的控制权限,提高了控制操作的安全性。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: when receiving a control command from a target user account on a smart device, based on the device identification carried by the control command, it is judged whether the target user account has the ability to control the smart device to execute The authority of the control operation corresponding to the control instruction, only when it is determined that the target user account has the authority, the control instruction is forwarded to the smart device. The control authority of each operation improves the security of the control operation.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1A是根据一示例性实施例示出的一种实施环境示意图。Fig. 1A is a schematic diagram showing an implementation environment according to an exemplary embodiment.

图1B是根据一示例性实施例示出的一种智能设备的控制方法的流程图。Fig. 1B is a flowchart showing a method for controlling a smart device according to an exemplary embodiment.

图2是根据另一示例性实施例示出的一种智能设备的控制方法的流程图。Fig. 2 is a flowchart showing a method for controlling a smart device according to another exemplary embodiment.

图3A是根据一示例性实施例示出的一种智能设备的控制装置的框图。Fig. 3A is a block diagram showing an apparatus for controlling a smart device according to an exemplary embodiment.

图3B是根据一示例性实施例示出的另一种智能设备的控制装置的框图。Fig. 3B is a block diagram showing another device for controlling a smart device according to an exemplary embodiment.

图3C是根据一示例性实施例示出的另一种智能设备的控制装置的框图。Fig. 3C is a block diagram of another control device for a smart device according to an exemplary embodiment.

图4是根据一示例性实施例示出的一种智能设备的控制装置400的框图。Fig. 4 is a block diagram showing a control apparatus 400 of a smart device according to an exemplary embodiment.

具体实施方式detailed description

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

在对本公开实施例进行详细地解释说明之前,先对本公开实施例的应用场景予以说明。目前,可以通过诸如手机等之类的终端来控制智能设备,然而,在相关技术提供的智能设备的控制方法中,任一用户均可以对该智能设备进行控制,导致具有安全隐患问题。为此,本公开实施例提供了一种智能设备的控制方法,可以提高控制操作的安全性。Before explaining and describing the embodiments of the present disclosure in detail, the application scenarios of the embodiments of the present disclosure will be described first. At present, smart devices can be controlled through terminals such as mobile phones. However, in the smart device control methods provided by related technologies, any user can control the smart device, resulting in potential safety hazards. To this end, an embodiment of the present disclosure provides a control method for a smart device, which can improve the security of control operations.

请参考图1A,该图1A是根据一示例性实施例示出的一种实施环境示意图。该实施环境中主要包括终端110、服务器120(或者路由器)和智能设备130。该服务器120可以通过有线网络或者无线网络分别与该终端110和该智能设备130连接。Please refer to FIG. 1A , which is a schematic diagram of an implementation environment according to an exemplary embodiment. This implementation environment mainly includes terminal 110 , server 120 (or router) and smart device 130 . The server 120 can be connected to the terminal 110 and the smart device 130 respectively through a wired network or a wireless network.

其中,该终端110可以用于控制该智能设备130,譬如,该终端110可以通过该服务器120向该智能设备130发送控制指令,以对该智能设备120进行控制。其中,该终端110可以为诸如手机、平板电脑、计算机等之类设备,本公开实施例对此不做限定。Wherein, the terminal 110 can be used to control the smart device 130 , for example, the terminal 110 can send a control command to the smart device 130 through the server 120 to control the smart device 120 . Wherein, the terminal 110 may be a device such as a mobile phone, a tablet computer, a computer, etc., which is not limited in this embodiment of the present disclosure.

其中,该服务器120主要用于实现图1B和图2实施例所述的智能设备的控制方法,该服务器120可以为一台服务器,也可以是由多台服务器集成的服务器集群,本公开实施例对此不做限定。Wherein, the server 120 is mainly used to realize the control method of the smart device described in the embodiment of FIG. 1B and FIG. There is no limit to this.

其中,该智能设备130中可以配置有智能芯片和通信模块,或者配置有带有通信功能的智能芯片。其中,该智能设备130可以通过该智能芯片执行各种控制指令对应的控制操作,另外,该智能设备130可以通过该通信模块与其它设备之间建立连接,例如,该智能设备130可以通过该通信模块与该服务器120之间建立连接。当然,若该智能设备130配置有带有通信功能的智能芯片,则该智能设备130可以通过该通信功能与其它设备之间建立连接。其中,该智能设备130可以为智能开关、智能马桶、智能空调、智能照明设备、智能微波炉(如图1A所示)等等,本公开实施例对此不做限定。Wherein, the smart device 130 may be configured with a smart chip and a communication module, or configured with a smart chip with a communication function. Wherein, the smart device 130 can execute control operations corresponding to various control instructions through the smart chip. In addition, the smart device 130 can establish a connection with other devices through the communication module. For example, the smart device 130 can use the communication module to A connection is established between the module and the server 120 . Of course, if the smart device 130 is configured with a smart chip with a communication function, the smart device 130 can establish a connection with other devices through the communication function. Wherein, the smart device 130 may be a smart switch, a smart toilet, a smart air conditioner, a smart lighting device, a smart microwave oven (as shown in FIG. 1A ), etc., which are not limited in this embodiment of the present disclosure.

图1B是根据一示例性实施例示出的一种智能设备的控制方法的流程图,如图1B所示,该智能设备的控制方法用于服务器中,包括以下步骤。Fig. 1B is a flow chart showing a method for controlling a smart device according to an exemplary embodiment. As shown in Fig. 1B, the method for controlling a smart device is used in a server and includes the following steps.

在步骤101中,接收目标用户账号发送的控制指令,该控制指令中携带待控制的智能设备的设备标识。In step 101, a control command sent by a target user account is received, and the control command carries a device identifier of a smart device to be controlled.

在步骤102中,基于该设备标识,判断该目标用户账号是否具有指定控制权限,该指定控制权限为控制该智能设备执行该控制指令对应的控制操作的权限。In step 102, based on the device identifier, it is judged whether the target user account has a specified control authority, and the specified control authority is the authority to control the smart device to execute the control operation corresponding to the control instruction.

在步骤103中,当该目标用户账号具有该指定控制权限时,向该智能设备转发该控制指令,该控制指令用于控制该智能设备执行该控制指令对应的控制操作。In step 103, when the target user account has the specified control authority, the control instruction is forwarded to the smart device, and the control instruction is used to control the smart device to perform the control operation corresponding to the control instruction.

在本公开实施例中,当接收到目标用户账号对智能设备的控制指令时,基于该控制指令携带的设备标识,判断该目标用户账号是否具有控制该智能设备执行该控制指令对应的控制操作的权限,只有当确定该目标用户账号具有该权限时,才将该控制指令转发给该智能设备,如此,通过限制目标用户账号对该智能设备的某个功能或者某个操作的控制权限,提高了控制操作的安全性。In an embodiment of the present disclosure, when receiving a control command from a target user account to a smart device, based on the device identifier carried in the control command, it is judged whether the target user account has the ability to control the smart device to perform the control operation corresponding to the control command. Authority, only when it is determined that the target user account has the authority, the control command is forwarded to the smart device. In this way, by limiting the control authority of the target user account to a certain function or an operation of the smart device, the Control the security of operations.

可选地,基于该设备标识,判断该目标用户账号是否具有指定控制权限,包括:Optionally, based on the device identifier, judging whether the target user account has specified control authority includes:

基于该设备标识和该目标用户账号,从存储的指定权限列表中查询对应的控制权限参数,该指定权限列表用于存储设备标识、用户账号和该用户账号对应的控制权限参数三者之间的对应关系;Based on the device identifier and the target user account, query the corresponding control authority parameters from the stored specified authority list, and the specified authority list is used to store the relationship between the device identifier, the user account, and the control authority parameters corresponding to the user account. corresponding relationship;

基于查询到的控制权限参数,判断该目标用户账号是否具有该指定控制权限。Based on the queried control authority parameter, it is judged whether the target user account has the specified control authority.

可选地,基于查询到的控制权限参数,判断该目标用户账号是否具有该指定控制权限,包括:Optionally, based on the queried control authority parameters, judging whether the target user account has the specified control authority includes:

当查询到的控制权限参数中包含指定控制权限参数时,确定该目标用户账号具有该指定控制权限,该指定控制权限参数用于指示该指定控制权限。When the queried control authority parameter includes the specified control authority parameter, it is determined that the target user account has the specified control authority, and the specified control authority parameter is used to indicate the specified control authority.

可选地,接收目标用户账号发送的控制指令之前,还包括:Optionally, before receiving the control instruction sent by the target user account, the method further includes:

接收权限设置指令,该权限设置指令中携带该目标用户账号、该智能设备的设备标识和该目标用户账号对应的控制权限参数;Receive an authority setting instruction, the authority setting instruction carries the target user account, the device identifier of the smart device, and the control authority parameters corresponding to the target user account;

将该权限设置指令中携带的该目标用户账号、该智能设备的设备标识和该目标用户账号对应的控制权限参数对应存储至该指定权限列表中。The target user account carried in the permission setting instruction, the device identifier of the smart device, and the control permission parameters corresponding to the target user account are correspondingly stored in the specified permission list.

可选地,向该智能设备转发该控制指令之后,还包括:Optionally, after forwarding the control instruction to the smart device, it also includes:

向该目标用户账号发送转发成功通知消息,该转发成功通知消息用于指示已向该智能设备成功转发该控制指令。A forwarding success notification message is sent to the target user account, and the forwarding success notification message is used to indicate that the control instruction has been successfully forwarded to the smart device.

上述所有可选技术方案,均可按照任意结合形成本公开的可选实施例,本公开实施例对此不再一一赘述。All the above optional technical solutions may be combined in any way to form optional embodiments of the present disclosure, which will not be described in detail in the embodiments of the present disclosure.

图2是根据另一示例性实施例示出的一种智能设备的控制方法的流程图,如图2所示,该智能设备的控制方法用于服务器中,该智能设备的控制方法包括以下步骤:Fig. 2 is a flowchart of a method for controlling a smart device according to another exemplary embodiment. As shown in Fig. 2, the method for controlling a smart device is used in a server, and the method for controlling a smart device includes the following steps:

在步骤201中,接收目标用户账号发送的控制指令,该控制指令中携带待控制的智能设备的设备标识。In step 201, a control command sent by a target user account is received, and the control command carries a device identifier of a smart device to be controlled.

其中,该设备标识可以用于唯一标识一个智能设备。Wherein, the device identifier can be used to uniquely identify a smart device.

如前文所述,该控制指令可以由终端发送,进一步地,该控制指令可以是由该终端在接收到第一发送指令后向该服务器发送。其中,该第一发送指令可以由用户触发,该用户可以通过指定操作触发,该指定操作可以为点击操作、滑动操作等等,本公开实施例对此不做限定。As mentioned above, the control instruction may be sent by the terminal, further, the control instruction may be sent by the terminal to the server after receiving the first sending instruction. Wherein, the first sending instruction may be triggered by a user, and the user may trigger it through a specified operation, and the specified operation may be a click operation, a slide operation, etc., which is not limited in this embodiment of the present disclosure.

例如,在一种可能的实现方式中,该终端中可以安装有智能设备控制应用,用户可以通过该目标用户账号登录至该智能设备控制应用中。该智能设备控制应用可以显示智能设备列表,该智能设备列表用于存储各种智能设备的设备标识。用户可以根据实际需求从该智能设备列表中选择想要控制的智能设备,当终端检测到用户选择某智能设备后,显示所选择的该智能设备的多个功能控制选项,该多个功能控制选项中的每个功能控制选项与该智能设备的每种功能一一对应。用户可以根据实际想要控制该智能设备执行的功能点击任一功能控制选项以触发上述第一发送指令。该终端接收到该第一发送指令后,向该服务器发送该控制指令。For example, in a possible implementation manner, a smart device control application may be installed in the terminal, and the user may log in to the smart device control application through the target user account. The smart device control application can display a smart device list, and the smart device list is used to store device identifiers of various smart devices. The user can select the smart device that he wants to control from the list of smart devices according to actual needs. When the terminal detects that the user has selected a smart device, it displays multiple function control options of the selected smart device. The multiple function control options Each function control option in corresponds to each function of the smart device. The user may click on any function control option according to the actual function to be controlled by the smart device to trigger the above-mentioned first sending instruction. After receiving the first sending instruction, the terminal sends the control instruction to the server.

再如,若上述智能设备控制应用显示的智能设备列表中包括智能开关、智能马桶和智能微波炉,且用户想要对其中的智能开关进行控制,则可以从该智能设备列表中选择该智能开关,其中,该智能开关可能具有开启功能、关闭功能和状态读取功能。之后,终端显示智能开关的多个功能控制选项,该多个功能选项包括开启选项、关闭选项和状态查询选项。假如用户想要通过终端来开启该智能开关,则可以点击该开启选项以触发上述第一发送指令。相应地,当终端接收到该第一发送指令后,向服务器发送该控制指令。例如,该控制指令可以为{"params":["on"],"id":1,"method":"set_power"},其中,"params":["on"]表示当前的控制指令是用于指示开启该智能开关,"method":"set_power"表示该控制指令是针对智能开关的,"id":1可以用于表示该智能开关的设备标识。For another example, if the list of smart devices displayed by the above-mentioned smart device control application includes smart switches, smart toilets and smart microwave ovens, and the user wants to control the smart switches among them, the smart switch can be selected from the list of smart devices. Wherein, the smart switch may have an opening function, an closing function and a status reading function. Afterwards, the terminal displays a plurality of function control options of the smart switch, and the plurality of function options include an on option, an off option and a status query option. If the user wants to turn on the smart switch through the terminal, he can click on the turn-on option to trigger the above-mentioned first sending instruction. Correspondingly, after receiving the first sending instruction, the terminal sends the control instruction to the server. For example, the control instruction can be {"params":["on"],"id":1,"method":"set_power"}, where "params":["on"] indicates that the current control instruction is It is used to indicate to turn on the smart switch, "method": "set_power" indicates that the control command is for the smart switch, and "id": 1 can be used to indicate the device ID of the smart switch.

当然,需要说明的是,上述仅是以终端中安装有智能设备控制应用并通过该智能设备控制应用来控制该智能设备为例进行举例说明,在另一实施例中,还可以通过其它方式来控制该智能设备,本公开实施例对此不做限定。Of course, it should be noted that the above is only an example of the smart device control application installed in the terminal and the smart device is controlled by the smart device control application. In another embodiment, other methods can also be used to control the smart device. The smart device is controlled, which is not limited in the embodiments of the present disclosure.

在步骤202中,基于该设备标识,判断该目标用户账号是否具有指定控制权限,该指定控制权限为控制该智能设备执行该控制指令对应的控制操作的权限。In step 202, based on the device identifier, it is judged whether the target user account has a specified control authority, and the specified control authority is the authority to control the smart device to execute the control operation corresponding to the control instruction.

在本公开实施例中,为了控制操作的安全性,服务器在接收到目标用户账号发送的控制指令后,不会立即将该控制指令转发给该智能设备,而是对该目标用户账号进行校验,即判断该目标用户账号是否具有控制该智能设备执行该控制指令对应的控制操作的权限。In the embodiment of the present disclosure, in order to control the security of the operation, after receiving the control command sent by the target user account, the server will not immediately forward the control command to the smart device, but will verify the target user account , that is, it is judged whether the target user account has the authority to control the smart device to execute the control operation corresponding to the control instruction.

在本公开实施例中,可以由指定用户在该服务器中可以事先以该智能设备具有的功能或能够执行的操作为粒度来设置不同用户账号的控制权限。其中,该指定用户可以为该智能设备的拥有者。In the embodiment of the present disclosure, the designated user can set the control rights of different user accounts in the server in advance based on the functions or operations that the smart device has or can perform as a granularity. Wherein, the specified user may be the owner of the smart device.

例如,对于智能开关来说,智能开关通常具有开启功能、关闭功能、状态读取功能等,对于不同用户账号,可以根据该智能开关的功能为粒度,为各个用户账号分配不同的控制权限。例如,对于用户账号A和用户账号B,可以分配给用户账号A的控制权限为:即可以开启该智能开关,又可以关闭该智能开关,且还可以读取该智能开关的状态,而分配给用户账号B的控制权限可以为:只能够开启该智能开关。For example, for a smart switch, the smart switch usually has the function of opening, closing, and status reading. For different user accounts, different control rights can be assigned to each user account according to the granularity of the function of the smart switch. For example, for user account A and user account B, the control authority that can be assigned to user account A is: that is, the smart switch can be turned on, the smart switch can be turned off, and the status of the smart switch can be read, while the control authority assigned to the The control authority of the user account B may be: only the smart switch can be turned on.

如此,服务器可以根据事先设置的不同用户账号对该智能设备的不同功能或操作的控制权限,基于控制指令中携带的设备标识,判断该目标用户账号是否具有控制该智能设备执行该控制指令对应的控制操作的权限。In this way, the server can determine whether the target user account has the control authority corresponding to controlling the smart device to execute the control command based on the control authority of different user accounts set in advance for different functions or operations of the smart device and based on the device identification carried in the control command. Permissions to control actions.

其中,基于该设备标识,判断该目标用户账号是否具有指定控制权限可以包括如下(1)-(2)实现过程:Wherein, based on the device identification, judging whether the target user account has specified control authority may include the following (1)-(2) implementation process:

(1)基于该设备标识和该目标用户账号,从存储的指定权限列表中查询对应的控制权限参数,该指定权限列表用于存储设备标识、用户账号和该用户账号对应的控制权限参数三者之间的对应关系。(1) Based on the device identifier and the target user account, query the corresponding control authority parameters from the stored specified authority list, and the specified authority list is used to store the device identifier, user account, and control authority parameters corresponding to the user account. the corresponding relationship between them.

该服务器中可以事先设置设备标识、用户账号和该用户账号对应的控制权限参数三者之间的对应关系,并存储至指定权限列表中。另外,该服务器可以以设备标识和用户账号作为索引,如此,服务器即可以基于控制指令中携带的设备标识和目标用户账号,从存储的该指定权限列表中查询对应的控制权限参数。例如,该指定权限列表可以如表1所示:The corresponding relationship between the device identifier, the user account and the control authority parameter corresponding to the user account can be set in advance in the server, and stored in the specified authority list. In addition, the server can use the device identifier and user account as an index, so that the server can query the corresponding control authority parameters from the stored specified authority list based on the device identifier and target user account carried in the control command. For example, the specified permission list may be as shown in Table 1:

表1Table 1

例如,若该智能设备的设备标识为EP1,该目标用户账号为UE1,则基于该设备标识EP1和目标用户账号UE1,从该指定权限列表中可以查询到对应的控制权限参数包括“on”,“off”和“read”。For example, if the device identifier of the smart device is EP1 and the target user account is UE1, then based on the device identifier EP1 and the target user account UE1, the corresponding control permission parameters can be found from the specified permission list including "on", "off" and "read".

表1仅是示例性地示出了一种指定权限列表,在实际应用中,该指定权限列表还可以以其它形式存在,本公开实施例对此不做限定。Table 1 only exemplarily shows a specified permission list. In practical applications, the specified permission list may also exist in other forms, which are not limited in this embodiment of the present disclosure.

(2)基于查询到的控制权限参数,判断该目标用户账号是否具有该指定控制权限。(2) Based on the queried control authority parameter, it is judged whether the target user account has the specified control authority.

进一步地,当查询到的控制权限参数中包含指定控制权限参数时,确定该目标用户账号具有该指定控制权限,该指定控制权限参数用于指示该指定控制权限。Further, when the queried control authority parameter includes the specified control authority parameter, it is determined that the target user account has the specified control authority, and the specified control authority parameter is used to indicate the specified control authority.

基于该设备标识和该目标用户账号,从存储的指定权限列表中查询对应的控制权限参数可能包括一个,也可能包括多个,服务器可以从查询到的控制权限参数中查询是否包含有用于指示该指定控制权限的指定控制权限参数。如果查询到的控制权限参数中包含有该指定控制权限参数,则可以确定该目标用户账号具有该指定控制权限,反之,如果查询到的控制权限参数中不包含有该指定控制权限参数,则可以确定该目标用户账号不具有该指定控制权限。Based on the device identifier and the target user account, querying the corresponding control permission parameter from the stored specified permission list may include one or more, and the server may query from the queried control permission parameter Specifies the control permission parameter for the specified control permission. If the queried control authority parameter contains the specified control authority parameter, it can be determined that the target user account has the specified control authority; otherwise, if the queried control authority parameter does not contain the specified control authority parameter, you can It is determined that the target user account does not have the specified control authority.

例如,若从存储的指定权限列表中查询对应的控制权限参数包括“on”,“off”和“read”,且用于指示该指定控制权限的指定控制权限参数为“on”,则可以确定该目标用户账号具有该指定控制权限。For example, if querying the corresponding control authority parameters from the stored specified authority list includes "on", "off" and "read", and the specified control authority parameter used to indicate the specified control authority is "on", it can be determined The target user account has the designated control authority.

进一步地,如前文所述,在接收目标用户账号发送的控制指令之前,可以由指定用户在该服务器中可以事先以该智能设备具有的功能或能够执行的操作为粒度来设置不同用户账号的控制权限,其具体实现过程包括:接收权限设置指令,该权限设置指令中携带该目标用户账号、该智能设备的设备标识和该目标用户账号对应的控制权限参数,将该权限设置指令中携带的该目标用户账号、该智能设备的设备标识和该目标用户账号对应的控制权限参数对应存储至该指定权限列表中。Furthermore, as mentioned above, before receiving the control instruction sent by the target user account, the specified user can set the control of different user accounts in the server in advance based on the functions that the smart device has or the operations that can be performed. Permissions, the specific implementation process includes: receiving a permission setting instruction, the permission setting instruction carries the target user account, the device identifier of the smart device, and the control permission parameter corresponding to the target user account, and the permission setting instruction carries the The target user account, the device identifier of the smart device, and the control authority parameters corresponding to the target user account are correspondingly stored in the specified authority list.

其中,该权限设置指令可以由终端向该服务器发送,进一步地,该终端可以在接收到第二发送指令时,向该服务器发送该权限设置指令,其中,该第二发送指令可以由指定用户触发,该指定用户可以通过上述指定操作触发。Wherein, the permission setting instruction may be sent by the terminal to the server, further, the terminal may send the permission setting instruction to the server when receiving the second sending instruction, wherein the second sending instruction may be triggered by a designated user , the specified user can be triggered by the above specified operation.

例如,该指定用户可以通过指定用户账号登录至智能设备控制应用中,该智能设备控制应用提供智能设备列表,该智能设备列表用于存储各种智能设备的设备标识。另外,该智能设备控制应用还可以提供有多个权限设置选项,各个权限设置选项与各个智能设备一一对应。用户可以根据实际需求点击上述智能设备对应的权限设置选项以触发设置界面展示指令,当该智能设备控制应用接收到该设置界面展示指令时,展示权限设置界面,如此,该指定用户即可在该权限设置界面中,针对不同用户账号,设置各个用户账号对该智能设备的各个功能的控制权限。For example, the designated user may log in to the smart device control application through a designated user account, and the smart device control application provides a smart device list, and the smart device list is used to store device identifiers of various smart devices. In addition, the smart device control application may also provide multiple permission setting options, and each permission setting option corresponds to each smart device one by one. The user can click the permission setting option corresponding to the above-mentioned smart device according to actual needs to trigger the setting interface display instruction. When the smart device control application receives the setting interface display instruction, the permission setting interface will be displayed. In the authority setting interface, for different user accounts, set the control authority of each user account for each function of the smart device.

进一步地,该权限设置界面中可以提供有该智能设备的多个控制权限参数和该目标用户账号,该指定用户可以根据实际需求,为该目标用户账号添加控制权限参数。另外,该权限设置界面中还提供有确认设置选项,该指定用户为该目标用户账号添加控制权限参数后,可以点击该确认设置选项以触发该第二发送指令。Further, multiple control authority parameters of the smart device and the target user account may be provided in the authority setting interface, and the specified user may add control authority parameters for the target user account according to actual needs. In addition, the authority setting interface also provides a confirmation setting option, after the designated user adds control authority parameters for the target user account, he can click on the confirmation setting option to trigger the second sending instruction.

终端接收到该第二发送指令后,向该服务器发送权限设置指令,该权限设置指令中携带该目标用户账号、该智能设备的设备标识和该目标用户账号对应的控制权限参数。例如,若该智能设备为智能开关,该目标用户账号为UE1,该智能开关的设备标识为EP1,为该目标用户账号设置的控制权限参数包括“on”、“off”和“read”,其中,“read”用于指示对该智能开关具有状态读取的权限。则该服务器将该UE1、EP1以及“on”、“off”和“read”对应存储至上述指定权限列表中,其存在形式可以参见上述表1。After receiving the second sending instruction, the terminal sends an authority setting instruction to the server, and the authority setting instruction carries the target user account, the device identifier of the smart device, and the control authority parameters corresponding to the target user account. For example, if the smart device is a smart switch, the target user account is UE1, and the device identifier of the smart switch is EP1, the control permission parameters set for the target user account include "on", "off" and "read", where , "read" is used to indicate the permission to read the status of the smart switch. Then the server correspondingly stores UE1, EP1, "on", "off" and "read" in the above-mentioned specified permission list, and its existence form can be referred to the above-mentioned Table 1.

该服务器接收到该权限设置指令后,将该权限设置指令中携带的该目标用户账号、该智能设备的设备标识和该目标用户账号对应的控制权限参数对应存储至该指定权限列表中。After receiving the authority setting instruction, the server stores the target user account, the device identifier of the smart device, and the control authority parameter corresponding to the target user account carried in the authority setting instruction into the designated authority list.

本公开实施例仅是以该控制权限参数包括“on”、“off”和“read”为例进行举例说明,在实际实现过程中,该控制权限参数还可能包括其它参数,例如,还可能包括有“none”、“write”等,其中,“none”用于表示无权限对该智能设备进行读取或者写入,“write”用于表示对该智能设备具有读取或者写入的控制权限。The embodiment of the present disclosure is only illustrated by taking the control permission parameter including "on", "off" and "read" as an example. In the actual implementation process, the control permission parameter may also include other parameters, for example, it may also include There are "none", "write", etc., among which, "none" is used to indicate that there is no permission to read or write to the smart device, and "write" is used to indicate that the smart device has the control permission to read or write .

在实际实现过程中,可以对上述各种参数的数据类型进行设置,例如,可以将上述各种参数的数据类型设置为枚举型(enum),本公开实施例对此不做限定。In the actual implementation process, the data types of the above various parameters may be set, for example, the data types of the above various parameters may be set as an enumeration type (enum), which is not limited in this embodiment of the present disclosure.

另外,还需要说明的是,上述指定用户触发该第二发送指令的实现过程仅是示例性的,在另一实施例中,还可能通过其它实现过程来触发该第二发送指令,本公开实施例对此不做限定。In addition, it should also be noted that the implementation process of the designated user triggering the second sending instruction is only exemplary. In another embodiment, the second sending instruction may also be triggered through other implementation processes. The implementation of the present disclosure Examples are not limited to this.

在步骤203中,当该目标用户账号具有该指定控制权限时,向该智能设备转发该控制指令,该控制指令用于控制该智能设备执行该控制指令对应的控制操作。In step 203, when the target user account has the designated control authority, the control instruction is forwarded to the smart device, and the control instruction is used to control the smart device to perform the control operation corresponding to the control instruction.

当该目标用户账号具有该指定控制权限时,说明该目标用户账号可以控制该智能设备执行该控制指令对应的控制操作,因此,服务器将该控制指令转发给该智能设备。如前文所述,智能设备配置有智能芯片,该智能设备接收该控制指令后,通过该智能芯片执行该控制指令对应的控制操作。When the target user account has the specified control authority, it means that the target user account can control the smart device to perform the control operation corresponding to the control instruction, and therefore, the server forwards the control instruction to the smart device. As mentioned above, the smart device is equipped with a smart chip, and after receiving the control command, the smart device executes the control operation corresponding to the control command through the smart chip.

例如,以上文所述为例,假如该智能设备为智能开关,该控制指令用于指示查询该智能开关当前的状态,则当该目标用户账号具有该指定控制权限时,将该控制指令转发给该智能开关。相应地,当该智能开关接收到服务器转发的控制指令后,通过自身配置的智能芯片读取当前的状态,并将读取的状态通过该服务器反馈给该终端。For example, taking the above as an example, if the smart device is a smart switch, and the control instruction is used to inquire about the current status of the smart switch, when the target user account has the specified control authority, the control instruction is forwarded to The smart switch. Correspondingly, when the smart switch receives the control instruction forwarded by the server, it reads the current state through the smart chip configured by itself, and feeds back the read state to the terminal through the server.

在一种可能的实现方式中,该智能开关可以通过上报消息的形式反馈当前的状态,例如,该上报消息可以为{"method":"prop.power","id":1,"params":["on"]},其中,由“"params":["on"]”可知,该智能开关当前的状态为开启状态。In a possible implementation, the smart switch can feed back the current state in the form of a report message, for example, the report message can be {"method":"prop.power","id":1,"params" :["on"]}, where, from ""params":["on"]", we can know that the current state of the smart switch is on.

这里需要说明的是,在实际应用过程中,为了提高显示的直观性,该终端接收到上述上报消息后,可以对该上报消息进行分析,并根据分析结果直接显示当前的状态对应的文字提示消息,例如,该终端可以直接显示诸如“开启状态”之类的文字提示消息。What needs to be explained here is that in the actual application process, in order to improve the intuitiveness of the display, the terminal can analyze the reported message after receiving the above reported message, and directly display the text prompt message corresponding to the current state according to the analysis result , for example, the terminal can directly display a text prompt message such as "open state".

至此,已实现了本公开实施例提供的智能设备的控制方法。另外,在实际应用场景中,为了便于用户了解是否已经成功将该控制指令转发给智能设备,本公开实施例还提供了如下步骤204实现方式。So far, the smart device control method provided by the embodiments of the present disclosure has been implemented. In addition, in an actual application scenario, in order to facilitate the user to know whether the control instruction has been successfully forwarded to the smart device, the embodiment of the present disclosure also provides the implementation manner of step 204 as follows.

在步骤204中,向该目标用户账号发送转发成功通知消息,该转发成功通知消息用于指示已向该智能设备成功转发该控制指令。In step 204, a forwarding success notification message is sent to the target user account, and the forwarding success notification message is used to indicate that the control instruction has been successfully forwarded to the smart device.

也即是,为了便于用户了解是否已经成功将该控制指令转发给该智能设备,当服务器确定该目标用户账号具有指定控制权限并成功将该控制指令转发给该智能设备后,可以向该目标用户账号发送转发成功通知消息,例如,该转发成功通知消息中包括“OK”参数。That is, in order for the user to know whether the control command has been successfully forwarded to the smart device, when the server determines that the target user account has the specified control authority and successfully forwards the control command to the smart device, it can send the target user account The account sends a forwarding success notification message, for example, the forwarding success notification message includes an "OK" parameter.

相应地,终端通过该目标用户账号接收该转发成功通知消息,在一种可能的实现方式中,终端可以通过上述智能设备控制应用显示该转发成功通知消息,如此,使得用户可以获知已向该智能设备成功转发了该控制指令。Correspondingly, the terminal receives the forwarding success notification message through the target user account. In a possible implementation manner, the terminal can control the application to display the forwarding success notification message through the smart device, so that the user can know that the forwarding success notification message has been sent to the smart device. The device successfully forwarded the control command.

当然,在实际实现过程中,如果服务器确定该目标用户账号不具有该指定控制权限时,也可以向该目标用户账号发送转发失败通知消息,该转发失败通知消息用于指示未能成功将该控制指令转发给该智能设备。如此,也可以使得用户及时了解服务器对该控制指令的处理情况。Of course, in the actual implementation process, if the server determines that the target user account does not have the specified control authority, it may also send a forwarding failure notification message to the target user account, and the forwarding failure notification message is used to indicate that the control failed. Instructions are forwarded to the smart device. In this way, the user can also know the processing status of the control instruction by the server in a timely manner.

在本公开实施例中,当接收到目标用户账号对智能设备的控制指令时,基于该控制指令携带的设备标识,判断该目标用户账号是否具有控制该智能设备执行该控制指令对应的控制操作的权限,只有当确定该目标用户账号具有该权限时,才将该控制指令转发给该智能设备,如此,通过限制目标用户账号对该智能设备的某个功能或者某个操作的控制权限,提高了控制操作的安全性。In an embodiment of the present disclosure, when receiving a control command from a target user account to a smart device, based on the device identifier carried in the control command, it is judged whether the target user account has the ability to control the smart device to perform the control operation corresponding to the control command. Authority, only when it is determined that the target user account has the authority, the control command is forwarded to the smart device. In this way, by limiting the control authority of the target user account to a certain function or an operation of the smart device, the Control the security of operations.

图3A是根据一示例性实施例示出的一种智能设备的控制装置的框图。参照图3A,该装置包括第一接收模块310,判断模块320和转发模块330。Fig. 3A is a block diagram showing an apparatus for controlling a smart device according to an exemplary embodiment. Referring to FIG. 3A , the device includes a first receiving module 310 , a judging module 320 and a forwarding module 330 .

第一接收模块310,用于接收目标用户账号发送的控制指令,该控制指令中携带待控制的智能设备的设备标识;The first receiving module 310 is configured to receive the control instruction sent by the target user account, the control instruction carrying the device identifier of the smart device to be controlled;

判断模块320,用于基于该第一接收模块310接收的该设备标识,判断该目标用户账号是否具有指定控制权限,该指定控制权限为控制该智能设备执行该控制指令对应的控制操作的权限;A judging module 320, configured to judge whether the target user account has a specified control authority based on the device identifier received by the first receiving module 310, and the specified control authority is the authority to control the smart device to execute the control operation corresponding to the control instruction;

转发模块330,用于当该判断模块320确定该目标用户账号具有该指定控制权限时,向该智能设备转发该控制指令,该控制指令用于控制该智能设备执行该控制指令对应的控制操作。The forwarding module 330 is configured to forward the control instruction to the smart device when the judging module 320 determines that the target user account has the specified control authority, and the control instruction is used to control the smart device to execute the control operation corresponding to the control instruction.

可选地,该判断模块320包括:Optionally, the judging module 320 includes:

查询子模块,用于基于该设备标识和该目标用户账号,从存储的指定权限列表中查询对应的控制权限参数,该指定权限列表用于存储设备标识、用户账号和该用户账号对应的控制权限参数三者之间的对应关系;The query sub-module is configured to query the corresponding control authority parameters from the stored specified authority list based on the device identifier and the target user account, and the specified authority list is used to store the device identifier, the user account, and the control authority corresponding to the user account Correspondence among the three parameters;

判断子模块,用于基于查询到的控制权限参数,判断该目标用户账号是否具有该指定控制权限。The judging sub-module is configured to judge whether the target user account has the specified control authority based on the queried control authority parameter.

可选地,该判断子模块用于:Optionally, the judging submodule is used for:

当查询到的控制权限参数中包含指定控制权限参数时,确定该目标用户账号具有该指定控制权限,该指定控制权限参数用于指示该指定控制权限。When the queried control authority parameter includes the specified control authority parameter, it is determined that the target user account has the specified control authority, and the specified control authority parameter is used to indicate the specified control authority.

可选地,请参考图3B,该装置还包括:Optionally, referring to Figure 3B, the device also includes:

第二接收模块340,用于接收权限设置指令,该权限设置指令中携带该目标用户账号、该智能设备的设备标识和该目标用户账号对应的控制权限参数;The second receiving module 340 is configured to receive an authority setting instruction, where the authority setting instruction carries the target user account, the device identifier of the smart device, and the control authority parameters corresponding to the target user account;

存储模块350,用于将该权限设置指令中携带的该目标用户账号、该智能设备的设备标识和该目标用户账号对应的控制权限参数对应存储至该指定权限列表中。The storage module 350 is configured to correspondingly store the target user account carried in the permission setting instruction, the device identifier of the smart device, and the control permission parameters corresponding to the target user account into the specified permission list.

可选地,请参考图3C,该装置还包括:Optionally, referring to Figure 3C, the device also includes:

发送模块360,用于向该目标用户账号发送转发成功通知消息,该转发成功通知消息用于指示已向该智能设备成功转发该控制指令。The sending module 360 is configured to send a forwarding success notification message to the target user account, and the forwarding success notification message is used to indicate that the control instruction has been successfully forwarded to the smart device.

在本公开实施例中,当接收到目标用户账号对智能设备的控制指令时,基于该控制指令携带的设备标识,判断该目标用户账号是否具有控制该智能设备执行该控制指令对应的控制操作的权限,只有当确定该目标用户账号具有该权限时,才将该控制指令转发给该智能设备,如此,通过限制目标用户账号对该智能设备的某个功能或者某个操作的控制权限,提高了控制操作的安全性。In an embodiment of the present disclosure, when receiving a control command from a target user account to a smart device, based on the device identifier carried in the control command, it is judged whether the target user account has the ability to control the smart device to perform the control operation corresponding to the control command. Authority, only when it is determined that the target user account has the authority, the control command is forwarded to the smart device. In this way, by limiting the control authority of the target user account to a certain function or an operation of the smart device, the Control the security of operations.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.

图4是根据一示例性实施例示出的一种智能设备的控制装置400的框图。例如,装置400可以被提供为一服务器。参照图4,装置400包括处理组件422,其进一步包括一个或多个处理器,以及由存储器432所代表的存储器资源,用于存储可由处理组件422的执行的指令,例如应用程序。存储器432中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件422被配置为执行指令,以执行上述图1B或图2实施例所述的智能设备的控制方法。Fig. 4 is a block diagram showing a control apparatus 400 of a smart device according to an exemplary embodiment. For example, the apparatus 400 may be provided as a server. Referring to FIG. 4 , apparatus 400 includes processing component 422 , which further includes one or more processors, and a memory resource represented by memory 432 for storing instructions executable by processing component 422 , such as application programs. The application program stored in memory 432 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 422 is configured to execute instructions, so as to execute the method for controlling the smart device described in the embodiment of FIG. 1B or FIG. 2 .

装置400还可以包括一个电源组件426被配置为执行装置400的电源控制,一个有线或无线网络接口450被配置为将装置400连接到网络,和一个输入输出(I/O)接口458。装置400可以操作基于存储在存储器432的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。Device 400 may also include a power component 426 configured to perform power control of device 400 , a wired or wireless network interface 450 configured to connect device 400 to a network, and an input-output (I/O) interface 458 . The apparatus 400 may operate based on an operating system stored in the memory 432, such as Windows Server , Mac OS X , Unix , Linux , FreeBSD or the like.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (11)

CN201611242259.2A2016-12-292016-12-29Smart device control method and devicePendingCN106647306A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201611242259.2ACN106647306A (en)2016-12-292016-12-29Smart device control method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201611242259.2ACN106647306A (en)2016-12-292016-12-29Smart device control method and device

Publications (1)

Publication NumberPublication Date
CN106647306Atrue CN106647306A (en)2017-05-10

Family

ID=58836323

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201611242259.2APendingCN106647306A (en)2016-12-292016-12-29Smart device control method and device

Country Status (1)

CountryLink
CN (1)CN106647306A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107612941A (en)*2017-10-312018-01-19广东小天才科技有限公司Authority management method, device, equipment and storage medium
CN107965024A (en)*2017-11-242018-04-27厦门优胜卫厨科技有限公司Server communications method and intellectual water closet control method and device
CN108491174A (en)*2018-02-012018-09-04西安万像电子科技有限公司Picture transmission method, apparatus and system
CN109101797A (en)*2018-08-202018-12-28珠海格力电器股份有限公司Intelligent device control method, intelligent device and server
CN109445291A (en)*2018-10-192019-03-08珠海格力电器股份有限公司Remote control method and device, intelligent closestool and storage medium
CN109525537A (en)*2017-09-192019-03-26中兴通讯股份有限公司A kind of control method and device accessing smart home system
WO2019101129A1 (en)*2017-11-242019-05-31厦门优胜卫厨科技有限公司Control method and device for smart seated toilet
CN109871677A (en)*2019-03-192019-06-11苏州迈荣祥信息科技有限公司 Intelligent switch control system and method
CN110333663A (en)*2019-07-022019-10-15珠海格力电器股份有限公司Method and system for setting intelligent household management authority and computer storage medium
CN111611564A (en)*2020-04-292020-09-01西安万像电子科技有限公司 Image management method, device and system
CN113282895A (en)*2021-05-292021-08-20河北红岸基地科技有限公司Double-person-based lamp control method
WO2021207942A1 (en)*2020-04-142021-10-21Oppo广东移动通信有限公司Method and apparatus for controlling device in internet of things, and gateway device and storage medium
CN114244591A (en)*2021-12-072022-03-25大连九锁网络有限公司Method and system for shutting down operating system with intelligent terminal safety protection
CN115242425A (en)*2022-05-312022-10-25北京北信源软件股份有限公司Household equipment control method and device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104283745A (en)*2014-09-122015-01-14小米科技有限责任公司Method, device and system for controlling intelligent household equipment
CN104615004A (en)*2014-12-312015-05-13北京海尔广科数字技术有限公司Intelligent household electrical appliance operating authorization control method and device
CN104808501A (en)*2015-03-312015-07-29小米科技有限责任公司Intelligent scene deleting method and device
CN105353629A (en)*2015-11-162016-02-24西宁家家慧电子科技有限公司Smart household controller
CN105629744A (en)*2015-04-302016-06-01宇龙计算机通信科技(深圳)有限公司Control method of smart home, control system, terminal and smart home system
CN106161385A (en)*2015-04-152016-11-23腾讯科技(上海)有限公司The long-range control method of a kind of equipment and device
CN106209800A (en)*2016-06-302016-12-07北京小米移动软件有限公司Equipment Authority sharing method and apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104283745A (en)*2014-09-122015-01-14小米科技有限责任公司Method, device and system for controlling intelligent household equipment
CN104615004A (en)*2014-12-312015-05-13北京海尔广科数字技术有限公司Intelligent household electrical appliance operating authorization control method and device
CN104808501A (en)*2015-03-312015-07-29小米科技有限责任公司Intelligent scene deleting method and device
CN106161385A (en)*2015-04-152016-11-23腾讯科技(上海)有限公司The long-range control method of a kind of equipment and device
CN105629744A (en)*2015-04-302016-06-01宇龙计算机通信科技(深圳)有限公司Control method of smart home, control system, terminal and smart home system
CN105353629A (en)*2015-11-162016-02-24西宁家家慧电子科技有限公司Smart household controller
CN106209800A (en)*2016-06-302016-12-07北京小米移动软件有限公司Equipment Authority sharing method and apparatus

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王志良编著: "《物联网控制基础》", 31 March 2014, 西安电子科技大学出版社*
黄瑞编著: "《电工电子实用技能训练教程》", 31 January 2012, 同济大学出版社*

Cited By (22)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109525537A (en)*2017-09-192019-03-26中兴通讯股份有限公司A kind of control method and device accessing smart home system
CN107612941A (en)*2017-10-312018-01-19广东小天才科技有限公司Authority management method, device, equipment and storage medium
CN107612941B (en)*2017-10-312021-01-29广东小天才科技有限公司Authority management method, device, equipment and storage medium
US11587431B2 (en)2017-11-242023-02-21Xiamen Axent Corporation LimitedControl method and device for smart seated toilet
CN107965024A (en)*2017-11-242018-04-27厦门优胜卫厨科技有限公司Server communications method and intellectual water closet control method and device
WO2019101130A1 (en)*2017-11-242019-05-31厦门优胜卫厨科技有限公司Server communication method, intelligent toilet control method, and apparatuses
WO2019101129A1 (en)*2017-11-242019-05-31厦门优胜卫厨科技有限公司Control method and device for smart seated toilet
CN108491174A (en)*2018-02-012018-09-04西安万像电子科技有限公司Picture transmission method, apparatus and system
CN109101797A (en)*2018-08-202018-12-28珠海格力电器股份有限公司Intelligent device control method, intelligent device and server
CN109445291B (en)*2018-10-192020-11-24珠海格力电器股份有限公司Remote control method and device, intelligent closestool and storage medium
CN109445291A (en)*2018-10-192019-03-08珠海格力电器股份有限公司Remote control method and device, intelligent closestool and storage medium
CN109871677A (en)*2019-03-192019-06-11苏州迈荣祥信息科技有限公司 Intelligent switch control system and method
CN109871677B (en)*2019-03-192022-10-25珠海微褀科技有限公司Intelligent switch control system and method
CN110333663A (en)*2019-07-022019-10-15珠海格力电器股份有限公司Method and system for setting intelligent household management authority and computer storage medium
CN110333663B (en)*2019-07-022021-04-23珠海格力电器股份有限公司Method and system for setting intelligent household management authority and computer storage medium
WO2021207942A1 (en)*2020-04-142021-10-21Oppo广东移动通信有限公司Method and apparatus for controlling device in internet of things, and gateway device and storage medium
CN111611564A (en)*2020-04-292020-09-01西安万像电子科技有限公司 Image management method, device and system
CN113282895A (en)*2021-05-292021-08-20河北红岸基地科技有限公司Double-person-based lamp control method
CN114244591A (en)*2021-12-072022-03-25大连九锁网络有限公司Method and system for shutting down operating system with intelligent terminal safety protection
CN114244591B (en)*2021-12-072024-03-26大连九锁网络有限公司Method and system for shutting down operation system with intelligent terminal safety protection function
CN115242425A (en)*2022-05-312022-10-25北京北信源软件股份有限公司Household equipment control method and device, computer equipment and storage medium
CN115242425B (en)*2022-05-312024-03-26北京北信源软件股份有限公司Household equipment control method and device, computer equipment and storage medium

Similar Documents

PublicationPublication DateTitle
CN106647306A (en)Smart device control method and device
US12309856B2 (en)Binding method and system for device network configuration, and mobile terminal and storage medium
US11131976B2 (en)Device control system, method and apparatus, and gateways
CN112737899B (en)Intelligent device management method and device, storage medium and electronic device
CN105471686B (en)Terminal control method, device and system
WO2020223854A1 (en)Device network configuration method and apparatus, electronic device and storage medium
WO2016058366A1 (en)Smart home appliance control method and home control center
EP3905671A1 (en)Method and device for processing request
TW201513710A (en)A method, apparatus and system of configuring equipments for joining a network group
US20220022022A1 (en)Device discovery method and apparatus, control terminal, and internet of things auxiliary device
EP3007385B1 (en)Terminal peripheral control method, m2m gateway, and communications system
CN113615141B (en) Account association method, device, system, server and storage medium
CN106452989A (en)Method and device for establishing intelligent scene
CN108199931A (en)A kind of household electric appliance control method and system
CN109974206B (en)Air conditioning system, control method thereof, control terminal and storage medium
WO2019223100A1 (en)Device information deletion method and apparatus, household appliance, mobile terminal and server
CN106856430A (en)The long-range control method and device of smart home, system
WO2015000379A1 (en)Method for remotely controlling air conditioner and remote control system for air conditioner
CN105791454A (en) Binding method and device for an intelligent terminal
EP2386959B1 (en)Communication device based on usb interface and method for implementing service configuration
WO2023045611A1 (en)Device control method, apparatus and system, storage medium, and electronic apparatus
CN113595839B (en)Device binding method, terminal device and storage medium
CN113132958A (en)Fusion networking method, device, system and computer readable storage medium
CN115113534A (en)Scene execution method and device, storage medium and electronic device
CN112333062A (en)Control method and control device for household equipment and computer readable storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20170510


[8]ページ先頭

©2009-2025 Movatter.jp