CN106933111A - A kind of method and device of control device - Google Patents
A kind of method and device of control device Download PDFInfo
- Publication number
- CN106933111A CN106933111A CN201710116598.4A CN201710116598A CN106933111A CN 106933111 A CN106933111 A CN 106933111A CN 201710116598 A CN201710116598 A CN 201710116598A CN 106933111 A CN106933111 A CN 106933111A
- Authority
- CN
- China
- Prior art keywords
- control command
- identifier
- key
- identification
- button
- 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
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B15/00—Systems controlled by a computer
- G05B15/02—Systems controlled by a computer electric
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/418—Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72415—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/26—Pc applications
- G05B2219/2642—Domotique, domestic, home control, automation, smart house
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Manufacturing & Machinery (AREA)
- Quality & Reliability (AREA)
- Selective Calling Equipment (AREA)
- Telephonic Communication Services (AREA)
Abstract
本公开是关于一种控制设备的方法及装置,属于通信领域。所述方法包括:获取终端在锁屏状态下被按下的至少一个按键中的每个按键的按键标识并将所述每个按键的按键标识组成第一按键标识集合;根据所述第一按键标识集合,从按键标识集合、设备标识与控制命令的对应关系中获取对应的设备标识和控制命令;根据所述设备标识,向所述设备标识对应的设备发送所述控制命令,以控制所述设备执行所述控制命令对应的操作。所述装置包括第一获取模块、第二获取模块和发送模块。本公开能够提高控制设备的效率。
The disclosure relates to a method and device for controlling equipment, and belongs to the communication field. The method includes: obtaining the key ID of each key in at least one key pressed by the terminal in the lock screen state and forming the key ID of each key into a first key identification set; according to the first key An identification set, obtaining a corresponding device identification and a control command from a key identification set, a corresponding relationship between a device identification and a control command; according to the equipment identification, sending the control command to the device corresponding to the equipment identification to control the The device executes an operation corresponding to the control command. The device includes a first acquiring module, a second acquiring module and a sending module. The present disclosure can improve the efficiency of control equipment.
Description
技术领域technical field
本公开涉及通信领域,特别涉及一种控制设备的方法及装置。The present disclosure relates to the communication field, and in particular to a method and device for controlling equipment.
背景技术Background technique
随着智能家居业务的发展,目前出现很多智能的用于家居的设备,为了方便用户使用这些设备,用户可以使用手机等移动终端对这些设备进行控制。例如,用户可以使用手机控制家里的智能电灯开启或关闭等。With the development of the smart home business, there are currently many smart home devices. In order to facilitate users to use these devices, users can use mobile terminals such as mobile phones to control these devices. For example, users can use their mobile phones to control the smart lights at home to turn on or off.
相关技术,用户想要在手机上控制设备,首先打开手机,在手机中找到用于控制该设备的客户端;然后启动该客户端并打开客户端中用于控制该设备的控制界面,该控制界面包括用于控制该设备的各控制命令;最后,用户可以选择某条控制命令,移动终端向该设备发送用户选择的控制命令,以让该设备执行用户选择的控制命令。In the related technology, if the user wants to control the device on the mobile phone, he first turns on the mobile phone, finds the client for controlling the device in the mobile phone; then starts the client and opens the control interface for controlling the device in the client, the control The interface includes various control commands for controlling the device; finally, the user can select a certain control command, and the mobile terminal sends the control command selected by the user to the device, so that the device executes the control command selected by the user.
发明内容Contents of the invention
为了提高控制设备的效率,本公开实施例提供了一种控制设备的方法及装置。所述技术方案如下:In order to improve the efficiency of controlling equipment, the embodiments of the present disclosure provide a method and an apparatus for controlling equipment. Described technical scheme is as follows:
根据本公开实施例的第一方面,提供一种控制设备的方法,所述方法包括:According to a first aspect of an embodiment of the present disclosure, there is provided a method for controlling a device, the method including:
获取终端在锁屏状态下被按下的至少一个按键中的每个按键的按键标识并将所述每个按键的按键标识组成第一按键标识集合;Acquiring the key identification of each key in at least one key pressed by the terminal in the lock screen state and forming the key identification set of each key into a first key identification set;
根据所述第一按键标识集合,从按键标识集合、设备标识与控制命令的对应关系中获取对应的设备标识和控制命令;According to the first button identifier set, obtain the corresponding device identifier and control command from the corresponding relationship between the button identifier set, the device identifier and the control command;
根据所述设备标识,向所述设备标识对应的设备发送所述控制命令,以控制所述设备执行所述控制命令对应的操作。According to the device identifier, the control command is sent to a device corresponding to the device identifier, so as to control the device to perform an operation corresponding to the control command.
可选的,所述根据所述第一按键标识集合,从按键标识集合、设备标识与控制命令的对应关系中获取对应的设备标识和控制命令,包括:Optionally, according to the first button identifier set, obtaining the corresponding device identifier and control command from the button identifier set, the corresponding relationship between the device identifier and the control command includes:
向服务器发送查询请求消息,所述查询请求消息携带用户账号和所述第一按键标识集合,所述查询请求消息用于所述服务器根据所述第一按键标识集合,从所述用户账号对应的按键标识集合、设备标识与控制命令的对应关系中获取对应的设备标识和控制命令;Sending a query request message to the server, the query request message carrying the user account and the first button identification set, the query request message is used by the server to select the user account corresponding to the user account according to the first button identification set Obtain the corresponding device identification and control command from the corresponding relationship between the key identification set, the equipment identification and the control command;
接收所述服务器发送的查询响应消息,所述查询响应消息携带所述服务器获取的设备标识和控制命令。Receive a query response message sent by the server, where the query response message carries the device identifier and control command acquired by the server.
可选的,所述方法还包括:Optionally, the method also includes:
获取用户选择的设备标识和控制命令,以及获取终端被按下的至少一个按键中的每个按键的按键标识并组成第二按键标识集合;Obtain the device identification and control command selected by the user, and obtain the key identification of each key in at least one key pressed by the terminal and form a second key identification set;
将所述第二按键标识集合、所述用户选择的设备标识和控制命令对应保存在按键标识集合、设备标识与控制命令的对应关系中。The second button identifier set, the device identifier selected by the user, and the control command are correspondingly stored in the corresponding relationship between the button identifier set, the device identifier, and the control command.
可选的,所述获取用户选择的设备标识和控制命令之前,还包括:Optionally, before obtaining the device identification and control command selected by the user, it also includes:
获取用户账号,获取与所述用户账号绑定的设备的设备标识和所述设备包括的控制命令;Obtaining a user account, obtaining a device identifier of a device bound to the user account and a control command included in the device;
显示所述与所述用户账号绑定的设备的设备标识和所述设备包括的控制命令。Displaying the device identifier of the device bound to the user account and the control commands included in the device.
可选的,所述获取与所述用户账号绑定的设备的设备标识和所述设备包括的控制命令,包括:Optionally, the obtaining the device identifier of the device bound to the user account and the control command included in the device includes:
获取并显示与所述用户账号绑定的设备的设备标识和设备类型;Obtaining and displaying the device identifier and device type of the device bound to the user account;
获取用户选择的设备的设备标识和设备类型;Obtain the device ID and device type of the device selected by the user;
根据所述用户选择的设备的设备类型,获取并显示所述用户选择的设备包括的控制命令。According to the device type of the device selected by the user, control commands included in the device selected by the user are acquired and displayed.
根据本公开实施例的第二方面,提供一种控制设备的装置,所述装置包括:According to a second aspect of an embodiment of the present disclosure, there is provided an apparatus for controlling a device, the apparatus including:
第一获取模块,被配置为获取终端在锁屏状态下被按下的至少一个按键中的每个按键的按键标识并将所述每个按键的按键标识组成第一按键标识集合;The first obtaining module is configured to obtain the key identification of each key in at least one key pressed by the terminal in the lock screen state and form the key identification of each key into a first key identification set;
第二获取模块,被配置为根据所述第一按键标识集合,从按键标识集合、设备标识与控制命令的对应关系中获取对应的设备标识和控制命令;The second obtaining module is configured to obtain the corresponding device identifier and control command from the corresponding relationship between the button identifier set, the device identifier and the control command according to the first button identifier set;
发送模块,被配置为根据所述设备标识,向所述设备标识对应的设备发送所述控制命令,以控制所述设备执行所述控制命令对应的操作。The sending module is configured to send the control command to a device corresponding to the device identifier according to the device identifier, so as to control the device to perform an operation corresponding to the control command.
可选的,所述第二模块模块包括:Optionally, the second module includes:
发送单元,用于向服务器发送查询请求消息,所述查询请求消息携带用户账号和所述第一按键标识集合,所述查询请求消息用于所述服务器根据所述第一按键标识集合,从所述用户账号对应的按键标识集合、设备标识与控制命令的对应关系中获取对应的设备标识和控制命令;A sending unit, configured to send a query request message to a server, where the query request message carries a user account and the first button identifier set, and the query request message is used by the server to select from the first button identifier set according to the first button identifier set. Obtain the corresponding device identification and control command from the corresponding relationship between the button identification set corresponding to the user account, the equipment identification and the control command;
接收单元,用于接收所述服务器发送的查询响应消息,所述查询响应消息携带所述服务器获取的设备标识和控制命令。The receiving unit is configured to receive a query response message sent by the server, where the query response message carries the device identification and the control command obtained by the server.
可选的,所述装置还包括:Optionally, the device also includes:
第三获取模块,被配置为获取用户选择的设备标识和控制命令,以及获取终端被按下的至少一个按键中的每个按键的按键标识并组成第二按键标识集合;The third obtaining module is configured to obtain the device identification and control command selected by the user, and obtain the key identification of each key in the at least one key pressed by the terminal and form a second key identification set;
保存模块,被配置为将所述第二按键标识集合、所述用户选择的设备标识和控制命令对应保存在按键标识集合、设备标识与控制命令的对应关系中。The saving module is configured to correspondingly save the second set of button identifiers, the device identifier selected by the user, and the control command in the corresponding relationship between the button identifier set, the device identifier, and the control command.
可选的,所述装置还包括:Optionally, the device also includes:
第四获取模块,被配置为获取用户账号,获取与所述用户账号绑定的设备的设备标识和所述设备包括的控制命令;The fourth obtaining module is configured to obtain a user account, obtain a device identifier of a device bound to the user account and a control command included in the device;
显示模块,被配置为显示所述与所述用户账号绑定的设备的设备标识和所述设备包括的控制命令。A display module configured to display the device identifier of the device bound to the user account and the control commands included in the device.
可选的,所述第四获取模块包括:Optionally, the fourth acquisition module includes:
获取显示单元,用于获取并显示与所述用户账号绑定的设备的设备标识和设备类型;Obtaining a display unit, configured to acquire and display the device identifier and device type of the device bound to the user account;
获取单元,用于获取用户选择的设备的设备标识和设备类型;根据所述用户选择的设备的设备类型,获取并显示所述用户选择的设备包括的控制命令。The obtaining unit is configured to obtain the device identifier and device type of the device selected by the user; obtain and display the control command included in the device selected by the user according to the device type of the device selected by the user.
根据本公开实施例的第三方面,提供一种控制设备的装置,包括:According to a third aspect of an embodiment of the present disclosure, there is provided an apparatus for controlling a device, including:
处理器;processor;
用于存储所述处理器的可执行指令的存储器;memory for storing executable instructions of the processor;
其中,所述处理器被配置为:Wherein, the processor is configured as:
获取终端在锁屏状态下被按下的至少一个按键中的每个按键的按键标识并将所述每个按键的按键标识组成第一按键标识集合;Acquiring the key identification of each key in at least one key pressed by the terminal in the lock screen state and forming the key identification set of each key into a first key identification set;
根据所述第一按键标识集合,从按键标识集合、设备标识与控制命令的对应关系中获取对应的设备标识和控制命令;According to the first button identifier set, obtain the corresponding device identifier and control command from the corresponding relationship between the button identifier set, the device identifier and the control command;
根据所述设备标识,向所述设备标识对应的设备发送所述控制命令,以控制所述设备执行所述控制命令对应的操作。According to the device identifier, the control command is sent to a device corresponding to the device identifier, so as to control the device to perform an operation corresponding to the control command.
本公开实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
在终端处于锁屏状态下,通过获取用户按下终端上的至少一个按键中的每个按键标识并组成按键标识集合,根据该按键标识集合获取对应的需要控制的设备和控制命令,向该设备发送该控制命令,以使该设备执行该控制命令对应的操作,相比现有方案,本公开可以减少用户操作,提高控制效率。When the terminal is in the screen-locked state, by obtaining each button identifier of at least one button pressed by the user on the terminal and forming a button identifier set, according to the button identifier set, the corresponding device to be controlled and a control command are obtained, and sent to the device The control command is sent to make the device execute the operation corresponding to the control command. Compared with the existing solution, the present disclosure can reduce user operations and improve control efficiency.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。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.
图1是根据一示例性实施例示出的一种控制设备的方法的流程图;Fig. 1 is a flow chart showing a method for controlling a device according to an exemplary embodiment;
图2-1是根据另一示例性实施例示出的一种配置按键标识集合、设备标识与控制命令的对应关系的流程图;Fig. 2-1 is a flow chart of configuring the corresponding relationship between a set of button identifiers, device identifiers and control commands according to another exemplary embodiment;
图2-2是根据另一示例性实施例示出的一种设备选择界面示意图;Fig. 2-2 is a schematic diagram of a device selection interface shown according to another exemplary embodiment;
图2-3是根据另一示例性实施例示出的一种命令选择界面示意图;Fig. 2-3 is a schematic diagram of a command selection interface according to another exemplary embodiment;
图3是根据另一示例性实施例示出的一种控制设备的方法的流程图;Fig. 3 is a flowchart showing a method for controlling a device according to another exemplary embodiment;
图4-1是根据一示例性实施例示出的一种控制设备的装置的框图;Fig. 4-1 is a block diagram of an apparatus for controlling a device according to an exemplary embodiment;
图4-2是根据一示例性实施例示出的一种第二获取模块的结构框图;Fig. 4-2 is a structural block diagram of a second acquisition module according to an exemplary embodiment;
图4-3是根据另一示例性实施例示出的一种控制设备的装置的框图;Fig. 4-3 is a block diagram of an apparatus for controlling a device according to another exemplary embodiment;
图4-4是根据另一示例性实施例示出的一种控制设备的装置的框图;Fig. 4-4 is a block diagram of an apparatus for controlling a device according to another exemplary embodiment;
图4-5是根据一示例性实施例示出的一种第四获取模块的结构框图;Fig. 4-5 is a structural block diagram of a fourth acquisition module according to an exemplary embodiment;
图5是根据一示例性实施例示出的一种控制设备的装置的框图。Fig. 5 is a block diagram of an apparatus for controlling a device according to an exemplary embodiment.
通过上述附图,已示出本公开明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本公开构思的范围,而是通过参考特定实施例为本领域技术人员说明本公开的概念。By means of the above-mentioned drawings, certain embodiments of the present disclosure have been shown and will be described in more detail hereinafter. These drawings and written description are not intended to limit the scope of the disclosed concept in any way, but to illustrate the disclosed concept for those skilled in the art by referring to specific embodiments.
具体实施方式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.
图1是根据一示例性实施例示出的一种控制设备的方法的流程图,该方法可以包括如下几个步骤:Fig. 1 is a flow chart showing a method for controlling a device according to an exemplary embodiment, and the method may include the following steps:
在步骤101中:获取终端在锁屏状态下被按下的至少一个按键中的每个按键的按键标识并将每个按键的按键标识组成第一按键标识集合。In step 101: Acquire the key ID of each key in at least one key pressed by the terminal in the lock screen state, and form the key ID of each key into a first key ID set.
在步骤102中:根据第一按键标识集合,从按键标识集合、设备标识与控制命令的对应关系中获取对应的设备标识和控制命令。In step 102: According to the first key identification set, the corresponding device identification and control command are obtained from the key identification set, the corresponding relationship between the equipment identification and the control command.
在步骤103中:根据该设备标识,向该设备标识对应的设备发送该控制命令,以控制该设备执行该控制命令对应的操作。In step 103: according to the device identifier, send the control command to the device corresponding to the device identifier, so as to control the device to perform the operation corresponding to the control command.
其中,终端可以为手机或平板电脑等移动终端。Wherein, the terminal may be a mobile terminal such as a mobile phone or a tablet computer.
在本实施例中,在终端处于锁屏状态下,用户直接按下终端上的至少一个按键,终端获取该至少一个按键,并根据该至少一个按键获取用户家庭中需要控制的设备和控制命令,向该设备发送该控制命令,以使该设备执行该控制命令对应的操作,相比现有方案,本公开可以减少用户操作,提高控制效率。In this embodiment, when the terminal is in the screen-locked state, the user directly presses at least one button on the terminal, the terminal obtains the at least one button, and obtains the device and control command to be controlled in the user's home according to the at least one button, The control command is sent to the device, so that the device executes the operation corresponding to the control command. Compared with the existing solution, the present disclosure can reduce user operations and improve control efficiency.
用户使用终端控制其家庭中的设备,需要先配置按键标识集合、设备标识与控制命令的对应关系,然后再通过按键标识集合、设备标识与控制命令的对应关系控制其家庭中的设备执行操作。其中,可以通过如下图2-1所示的流程来配置按键标识集合、设备标识与控制命令的对应关系,以及通过如下图3所示的流程来控制家庭中的设备执行操作。When a user uses a terminal to control devices in his home, he needs to first configure the corresponding relationship between the button ID set, device ID and control command, and then control the devices in his home to perform operations through the corresponding relationship between the button ID set, device ID and control command. Among them, you can configure the corresponding relationship between the button ID set, device ID and control command through the flow shown in Figure 2-1 below, and control the devices in the home to perform operations through the flow shown in Figure 3 below.
参见图2-1,本公开实施例提供了一种配置按键标识集合、设备标识与控制命令的对应关系的流程,该流程的执行主体可以为手机或平板电脑等移动终端,包括:Referring to Fig. 2-1, the embodiment of the present disclosure provides a process for configuring the corresponding relationship between a set of button identifiers, device identifiers, and control commands. The execution subject of this process can be a mobile terminal such as a mobile phone or a tablet computer, including:
在步骤201中:根据用户账号获取与该用户账号绑定的各设备的设备标识和设备类型。In step 201: Obtain the device identifier and device type of each device bound to the user account according to the user account.
本步骤是为了让用户配置终端上的至少一个按键用于控制家庭中的某个设备执行某个控制命令对应的操作。例如,对于智能灯泡,用户可以配置终端上的音量增加键用于控制智能灯泡增加亮度,配置终端上的音量减小键用于控制智能灯泡减小亮度。This step is to allow the user to configure at least one button on the terminal to control a certain device in the home to perform an operation corresponding to a certain control command. For example, for a smart light bulb, the user can configure the volume up key on the terminal to control the smart light bulb to increase brightness, and configure the volume down key on the terminal to control the smart light bulb to decrease brightness.
用户在配置时需要先向终端输入用户账号,以让终端根据该用户账号获取该用户家庭中包括的各设备的设备标识和设备类型。本步骤可以为:When configuring, the user needs to first input a user account to the terminal, so that the terminal can obtain the device identification and device type of each device included in the user's family according to the user account. This step can be:
终端获取用户提供的用户账号,向服务器发送获取请求,该获取请求携带该用户账号;服务器接收该获取请求,根据该获取请求携带的用户账号,从用户账号、设备标识与设备类型的对应关系中获取与该用户账号绑定的各设备的设备标识和设备类型,服务器向终端发送获取响应,该获取响应携带与该用户账号绑定的各设备的设备标识和设备类型;终端接收该获取响应,从该获取响应中提取与该用户账号绑定的各设备的设备标识和设备类型。The terminal acquires the user account provided by the user, and sends an acquisition request to the server, and the acquisition request carries the user account; the server receives the acquisition request, and according to the user account carried in the acquisition request, obtains the corresponding relationship between the user account, the device identifier and the device type. Obtain the device identification and device type of each device bound to the user account, the server sends an acquisition response to the terminal, and the acquisition response carries the device identification and device type of each device bound to the user account; the terminal receives the acquisition response, The device identification and device type of each device bound to the user account are extracted from the obtaining response.
对于用户家庭中的每个设备,用户可以事先在服务器中将该设备与其用户账号绑定,绑定过程可以为:For each device in the user's family, the user can bind the device to its user account in the server in advance, and the binding process can be as follows:
对于需要绑定的设备,用户可以向该设备输入用户账号和绑定指令;该设备接收该绑定指令和该用户账号,获取自身的设备标识和设备类型,向服务器发送绑定请求,该绑定请求携带该用户账号、该设备的设备标识和设备类型;服务器接收该绑定请求,将该绑定请求携带的用户账号、设备标识和设备类型对应保存在用户账号、设备标识与设备类型的对应关系中。For a device that needs to be bound, the user can input a user account and a binding command to the device; the device receives the binding command and the user account, obtains its own device ID and device type, and sends a binding request to the server. The request carries the user account, the device ID and device type of the device; the server receives the binding request, and stores the user account, device ID, and device type carried in the binding request in the user account, device ID, and device type correspondingly. in the corresponding relationship.
在步骤202中:获取用户选择的设备标识和控制命令,以及获取终端被按下的至少一个按键中的每个按键的按键标识并将每个按键的按键标识组成第二按键标识集合。In step 202: Obtain the device identification and control command selected by the user, and obtain the key identification of each key in at least one key pressed by the terminal and form the key identification of each key into a second key identification set.
在本步骤中:终端可以与该用户账号绑定的各设备的设备标识和设备类型显示给用户,以让用户选择需要配置的设备的设备标识和设备类型;终端获取用户选择的设备的设备标识和设备类型,根据用户选择的设备的设备类型获取用户选择的设备包括的各控制命令,显示获取的各控制命令,以让用户选择控制命令,并获取用户选择的控制命令;当检测到终端上至少一个按键被按下时,获该取少一个按键中的每个按键的按键标识并将每个按键的按键标识组成第二按键标识集合。In this step: the terminal can display the device ID and device type of each device bound to the user account to the user, so that the user can select the device ID and device type of the device to be configured; the terminal obtains the device ID of the device selected by the user and device type, obtain the control commands included in the device selected by the user according to the device type of the device selected by the user, display the obtained control commands, so that the user can select the control command, and obtain the control command selected by the user; when the terminal is detected When at least one button is pressed, the button identifier of each button in the less than one button is obtained and the button identifier of each button is formed into a second button identifier set.
其中,可以在终端本地或服务器上保存一个配置文件,该配置文件用于存储设备类型与控制命令的对应关系。该配置文件可能由设备生产厂商配置的,设备生产厂商每当设计出新类型的设备时,可以将该设备的设备类型和该设备包括的控制命令对应保存在该配置文件中,然后利用该配置文件更新服务器中保存的配置文件。同样终端可以从服务器中获取该配置文件并更新本地保存的配置文件。Wherein, a configuration file may be saved locally on the terminal or on the server, and the configuration file is used to store the corresponding relationship between the device type and the control command. The configuration file may be configured by the device manufacturer. Whenever the device manufacturer designs a new type of device, it can store the device type of the device and the control commands included in the device in the configuration file, and then use the configuration The file updates the configuration file saved in the server. Similarly, the terminal can obtain the configuration file from the server and update the locally saved configuration file.
在实际实现时,终端可以显示设备选择界面,该设备选择界面中包括与该用户账号绑定的各设备的设备标识和设备类型,用户可以在该设备选择界面中选择一个设备的设备标识和设备类型。终端根据用户选择的设备类型从本地保存的配置文件或服务器保存的配置文件中查询出用户选择的设备包括的各控制命令;显示命令选择界面,该命令选择界面包括用户选择的设备的设备标识和用户选择的设备包括的各控制命令;用户可以在命令选择界面中选择一控制命令,终端获取用户选择的控制命令。用户选择了控制命令之后可以按下终端上的至少一个按键,相应的,终端当检测到至少一个按键被按下时,获该取少一个按键中的每个按键的按键标识并将每个按键的按键标识组成第二按键标识集合。In actual implementation, the terminal can display a device selection interface, which includes the device ID and device type of each device bound to the user account, and the user can select the device ID and device type of a device in the device selection interface. Types of. According to the device type selected by the user, the terminal queries the control commands included in the device selected by the user from the configuration file saved locally or the configuration file saved by the server; displays the command selection interface, which includes the device identification and the device ID of the device selected by the user. Each control command included in the device selected by the user; the user can select a control command in the command selection interface, and the terminal obtains the control command selected by the user. After selecting the control command, the user can press at least one button on the terminal. Correspondingly, when the terminal detects that at least one button is pressed, it obtains the button identifier of each button in the one less button and stores each button The button identifiers form the second button identifier set.
例如,假设与用户账号绑定的设备包括智能灯泡、智能电视和智能冰箱,智能灯泡的设备标识为TID1、设备类型为灯泡,智能电视的设备标识为TID2、设备类型为电视,以及智能冰箱的设备标识为TID3、设备类型为冰箱。终端显示如图2-2所示的设备选择界面,该设备选择界面包括智能灯泡的设备标识TID1和设备类型“灯泡”,智能电视的设备标识TID2和设备类型“电视”以及智能冰箱的设备标识TID3和设备类型“冰箱”。For example, assume that the devices bound to the user account include smart light bulbs, smart TVs, and smart refrigerators. The device ID of the smart light bulb is TID1, and the device type is light bulb. The device ID is TID3, and the device type is refrigerator. The terminal displays the device selection interface as shown in Figure 2-2. The device selection interface includes the device ID TID1 and device type "light bulb" of the smart light bulb, the device ID TID2 and device type "TV" of the smart TV, and the device ID of the smart refrigerator TID3 and device type "refrigerator".
然后用户在如图2-2所示的设备选择界面中选择了智能灯泡的设备标识TID1和设备类型“灯泡”。终端从如图2-2所示的设备选择界面中获取智能灯泡的设备标识TID1和设备类型“灯泡”,根据该设备类型“灯泡”获取智能灯泡的控制命令,假设该控制命令包括用于增加亮度的增加命令、用于减小亮度的减小命令、用于打开灯泡的打开命令和用于关闭灯泡的关闭命令,将获取的控制命令显示在如图2-3的命令选择界面。用户可以在如图2-3所示的命令选择界面中选择一个控制命令,假设选择了增加命令;终端从如图2-3所示的命令选择界面中获取该增加命令,并当检测到用户按下终端的按键时获取按下的按键的按键标识,假设用户按下音量增加键,且音量增加键的按键标识为EID1,即的按键标识为EID1并组成第二按键标识集合。Then the user selects the device ID TID1 of the smart light bulb and the device type "light bulb" in the device selection interface shown in Figure 2-2. The terminal obtains the device ID TID1 of the smart light bulb and the device type "light bulb" from the device selection interface shown in Figure 2-2, and obtains the control command of the smart light bulb according to the device type "light bulb". The increase command for brightness, the decrease command for decreasing brightness, the open command for turning on the light bulb, and the close command for turning off the light bulb, display the obtained control commands on the command selection interface as shown in Figure 2-3. The user can select a control command in the command selection interface shown in Figure 2-3, assuming that the add command is selected; the terminal obtains the add command from the command selection interface shown in Figure 2-3, and when it detects that the user When a key of the terminal is pressed, the key ID of the pressed key is obtained. Assuming that the user presses the volume up key, and the key ID of the volume up key is EID1, that is, the key ID of the key is EID1 and forms a second key ID set.
在步骤203中:将第二按键标识集合、用户选择的设备标识和控制命令对应保存在按键标识集合、设备标识与控制命令的对应关系中。In step 203: store the second button identifier set, the device identifier selected by the user, and the control command correspondingly in the corresponding relationship between the button identifier set, the device identifier, and the control command.
按键标识集合、设备标识与控制命令的对应关系可以保存在终端本地,也可以保存服务器。当按键标识集合、设备标识与控制命令的对应关系保存在服务器时用户可以通过不同的终端来控制设备。The corresponding relationship between the button identification set, the device identification and the control command can be saved locally in the terminal, or can be saved in the server. When the corresponding relationship between the button identification set, the device identification and the control command is stored in the server, the user can control the device through different terminals.
当按键标识集合、设备标识与控制命令的对应关系保存在服务器时,终端向服务器发送保存请求,该保存请求携带用户账号、第二按键标识集合、用户选择的设备标识和控制命令。服务器接收该保存请求,根据该保存请求携带的用户账号,获取该用户账号对应的按键标识集合、设备标识与控制命令的对应关系,然后将该保存请求携带的第二按键标识集合、设备标识和控制命令对应保存在该用户账号对应的按键标识集合、设备标识与控制命令的对应关系中。When the correspondence between the button identifier set, the device identifier and the control command is saved in the server, the terminal sends a save request to the server, and the save request carries the user account, the second button identifier set, the device identifier selected by the user, and the control command. The server receives the save request, and according to the user account carried in the save request, acquires the corresponding relationship between the key identification set, the device identification and the control command corresponding to the user account, and then the second key identification set, the device identification and the control command carried in the save request. The control command is correspondingly stored in the key identification set corresponding to the user account, and the corresponding relationship between the device identification and the control command.
例如,终端可以将第二按键标识集合EID1、设备标识TID1和增加命令对应保存在如表1所示的按键标识集合、设备标识与控制命令的对应关系中。For example, the terminal may store the second button identifier set EID1, the device identifier TID1, and the add command in the corresponding relationship between the button identifier set, the device identifier, and the control command as shown in Table 1.
表1Table 1
用户配置完一个设备对应的至少一个按键后,用户可以继续按上述方式配置其他设备对应的按键。配置结束后,可以使用按键标识集合、设备标识与控制命令的对应关系控制设备。详细控制过程可以参见图3所示的流程。After the user configures at least one button corresponding to one device, the user may continue to configure buttons corresponding to other devices in the above manner. After the configuration is completed, the device can be controlled by using the corresponding relationship between the button ID set, the device ID and the control command. For the detailed control process, refer to the flow chart shown in FIG. 3 .
参见图3,图3是本公开实施例提供了一种控制设备的方法流程,该流程的执行主体可以为手机或平板电脑等移动终端,包括:Referring to FIG. 3, FIG. 3 is a flow of a method for controlling a device provided by an embodiment of the present disclosure. The execution subject of the flow may be a mobile terminal such as a mobile phone or a tablet computer, including:
在步骤301中:确定终端是否处于锁屏状态下,如果处于锁屏状态下,执行步骤302。In step 301: determine whether the terminal is in a screen-locked state, and if it is in a screen-locked state, execute step 302.
由于终端在锁屏状态下,用户不需要使用终端上的按键来控制终端本身,所以可以定义终端在锁屏状态下终端的各按键是用于控制用户家庭中的各设备。Since the terminal is in the locked screen state, the user does not need to use the buttons on the terminal to control the terminal itself, so it can be defined that each button of the terminal in the locked screen state is used to control each device in the user's home.
在步骤302中:获取终端被按下的至少一个按键中的每个按键的按键标识并将该每个按键的按键标识组成第一按键标识集合。In step 302: Acquire the key ID of each key in at least one key pressed on the terminal and form the key ID of each key into a first key ID set.
用户想要控制某个设备执行某个控制命令,可以在其终端处于锁屏状态下按下该设备和该控制命令对应该终端上的至少一个按键。相应的,终端获取被用户按下的至少一个按键中的每个按键的按键标识。If a user wants to control a certain device to execute a certain control command, he may press at least one button on the terminal corresponding to the device and the control command when the terminal is in a locked screen state. Correspondingly, the terminal obtains the key identifier of each key in the at least one key pressed by the user.
例如,用户想控制智能灯泡执行增加命令对应的增加亮度的操作,在终端处于锁屏状态时用户可以在其终端上按下音量增加键。终端获取用户按下的音量增加键的按键标识EID1并组成第一按键标识集合。For example, if the user wants to control the smart light bulb to perform the operation of increasing the brightness corresponding to the increase command, the user can press the volume up key on the terminal when the terminal is in the locked screen state. The terminal acquires the key ID EID1 of the volume up key pressed by the user and forms the first key ID set.
在步骤303中:根据第一按键标识集合,从按键标识集合、设备标识与控制命令的对应关系中获取对应的设备标识和控制命令。In step 303: According to the first key identification set, the corresponding device identification and control command are obtained from the key identification set, the corresponding relationship between the equipment identification and the control command.
当按键标识集合、设备标识与控制命令的对应关系存储在终端本地,终端直接根据第一按键标识集合,从本地保存的按键标识集合、设备标识与控制命令的对应关系获取对应的设备标识和控制命令。When the corresponding relationship between the button identifier set, device identifier and control command is stored locally in the terminal, the terminal directly obtains the corresponding device identifier and control command from the locally stored button identifier set, the corresponding relationship between the device identifier and the control command according to the first button identifier set. Order.
当按键标识集合、设备标识与控制命令的对应关系存储在服务器,终端可以获取用户账号,向服务器发送查询请求消息,该查询请求消息携带该用户账号和第一按键标识集合;服务器接收该查询请求消息,根据该查询请求消息携带的用户账号,获取该用户账号对应的按键标识集合、设备标识与控制命令的对应关系;根据该查询请求消息携带的第一按键标识集合,从该用户账号对应的按键标识集合、设备标识与控制命令的对应关系中获取对应的设备标识和控制命令,向终端发送查询响应消息,该查询响应消息携带获取的设备标识和控制命令;终端接收服务器发送的查询响应消息,提取该查询响应消息携带的设备标识和控制命令。When the corresponding relationship between the button identification set, the device identification and the control command is stored in the server, the terminal can obtain the user account and send a query request message to the server, the query request message carries the user account and the first button identification set; the server receives the query request message, according to the user account carried by the query request message, to obtain the key identification set corresponding to the user account, the corresponding relationship between the device identification and the control command; according to the first key identification set carried by the query request message, from the user account corresponding to Obtain the corresponding device identifier and control command from the corresponding relationship between the button identifier set, device identifier and control command, and send a query response message to the terminal, the query response message carries the obtained device identifier and control command; the terminal receives the query response message sent by the server to extract the device identification and control command carried in the query response message.
例如,假设如表1所示的按键标识集合、设备标识与控制命令的对应关系存储在终端本地,所以终端可以将获取的音量增加键的按键标识EID1组成第一按键标识集合,根据第一按键标识集合,从如表1所示的按键标识集合、设备标识与控制命令的对应关系中获取对应的设备标识为“TID1”和控制命令为“增加命令”。For example, assuming that the key identification set shown in Table 1, the corresponding relationship between the device identification and the control command is stored locally in the terminal, so the terminal can form the obtained key identification EID1 of the volume up key into the first key identification set, according to the first key For the identification set, obtain the corresponding device identification as "TID1" and the control command as "increase command" from the corresponding relationship between the button identification set, device identification and control command as shown in Table 1.
在步骤304中:根据该设备标识,向该设备标识对应的设备发送该控制命令,以控制该设备执行该控制命令对应的操作。In step 304: according to the device identifier, send the control command to the device corresponding to the device identifier, so as to control the device to perform the operation corresponding to the control command.
例如,根据设备标识TID1向智能灯泡发送增加命令,智能灯泡接收该增加命令,根据该增加命令增加自身的发光亮度。For example, an increase command is sent to the smart light bulb according to the device identifier TID1, and the smart light bulb receives the increase command, and increases its own luminance according to the increase command.
在本实施例中,在终端处于锁屏状态下,获取用户按下终端上的至少一个按键中的每个按键标识并组成按键标识集合,根据该按键标识集合获取对应的需要控制的设备和控制命令,向该设备发送该控制命令,以使该设备执行该控制命令对应的操作,相比现有方案,本公开可以减少用户操作,提高控制效率。In this embodiment, when the terminal is in the screen-locked state, each button identifier of at least one button pressed by the user on the terminal is obtained and a button identifier set is formed, and the corresponding device and control device to be controlled are obtained according to the button identifier set. The command is used to send the control command to the device, so that the device executes the operation corresponding to the control command. Compared with the existing solution, the present disclosure can reduce user operations and improve control efficiency.
下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。The following are device embodiments of the present disclosure, which can be used to implement the method embodiments of the present disclosure. For details not disclosed in the disclosed device embodiments, please refer to the disclosed method embodiments.
图4-1是根据一示例性实施例示出的一种控制设备的装置400的框图,该装置400可以通过软件、硬件或者两者的结合实现成为终端的部分或者全部。该装置400可以包括:Fig. 4-1 is a block diagram showing an apparatus 400 for controlling a device according to an exemplary embodiment, and the apparatus 400 may be implemented as part or all of a terminal through software, hardware or a combination of both. The device 400 may include:
第一获取模块401,被配置为获取终端在锁屏状态下被按下的至少一个按键中的每个按键的按键标识并将每个按键的按键标识组成第一按键标识集合。The first acquiring module 401 is configured to acquire the key ID of each key in at least one key pressed by the terminal in the lock screen state and form the key ID of each key into a first key ID set.
第二获取模块402,被配置为根据所述第一按键标识集合,从按键标识集合、设备标识与控制命令的对应关系中获取对应的设备标识和控制命令。The second acquiring module 402 is configured to acquire the corresponding device identifier and control command from the corresponding relationship between the button identifier set, the device identifier and the control command according to the first button identifier set.
发送模块403,被配置为根据所述设备标识,向所述设备标识对应的设备发送所述控制命令,以控制所述设备执行所述控制命令对应的操作。The sending module 403 is configured to send the control command to a device corresponding to the device identifier according to the device identifier, so as to control the device to perform an operation corresponding to the control command.
可选的,参见图4-2,所述第二模块模块402包括:Optionally, referring to FIG. 4-2, the second module module 402 includes:
发送单元4021,用于向服务器发送查询请求消息,所述查询请求消息携带用户账号和所述第一按键标识集合,所述查询请求消息用于所述服务器根据所述第一按键标识集合,从所述用户账号对应的按键标识集合、设备标识与控制命令的对应关系中获取对应的设备标识和控制命令;The sending unit 4021 is configured to send a query request message to the server, where the query request message carries a user account and the first button identifier set, and the query request message is used by the server to retrieve from the first button identifier set according to the first button identifier set. Obtain the corresponding device identifier and control command from the corresponding relationship between the button identifier set corresponding to the user account, the device identifier and the control command;
接收单元4022,用于接收所述服务器发送的查询响应消息,所述查询响应消息携带所述服务器获取的设备标识和控制命令。The receiving unit 4022 is configured to receive a query response message sent by the server, where the query response message carries the device identifier and the control command obtained by the server.
可选的,参见图4-3,所述装置400还包括:Optionally, referring to FIG. 4-3, the device 400 further includes:
第三获取模块404,被配置为获取用户选择的设备标识和控制命令,以及获取终端被按下的至少一个按键中的每个按键的按键标识并组成第二按键标识集合;The third obtaining module 404 is configured to obtain the device identification and control command selected by the user, and obtain the key identification of each key in the at least one key pressed by the terminal and form a second key identification set;
保存模块405,被配置为将所述第二按键标识集合、所述用户选择的设备标识和控制命令对应保存在按键标识集合、设备标识与控制命令的对应关系中。The saving module 405 is configured to store the second set of button identifiers, the device identifier selected by the user, and the control command correspondingly in the corresponding relationship between the button identifier set, the device identifier, and the control command.
可选的,参见图4-4,所述装置400还包括:Optionally, referring to FIG. 4-4, the device 400 further includes:
第四获取模块406,被配置为获取用户账号,获取与所述用户账号绑定的设备的设备标识和所述设备包括的控制命令;The fourth obtaining module 406 is configured to obtain a user account, obtain a device identifier of a device bound to the user account and a control command included in the device;
显示模块407,被配置为显示所述与所述用户账号绑定的设备的设备标识和所述设备包括的控制命令。The display module 407 is configured to display the device identifier of the device bound to the user account and the control commands included in the device.
可选的,参见图4-5,所述第四获取模块406包括:Optionally, referring to FIG. 4-5, the fourth obtaining module 406 includes:
获取显示单元4061,用于获取并显示与所述用户账号绑定的设备的设备标识和设备类型;An acquisition and display unit 4061, configured to acquire and display the device identifier and device type of the device bound to the user account;
获取单元4062,用于获取用户选择的设备的设备标识和设备类型;根据所述用户选择的设备的设备类型,获取并显示所述用户选择的设备包括的控制命令。The obtaining unit 4062 is configured to obtain the device identifier and device type of the device selected by the user; obtain and display the control commands included in the device selected by the user according to the device type of the device selected by the user.
在本实施例中,在终端处于锁屏状态下,获取用户按下终端上的至少一个按键中的每个按键标识并组成按键标识集合,根据该按键标识集合获取对应的需要控制的设备和控制命令,向该设备发送该控制命令,以使该设备执行该控制命令对应的操作,相比现有方案,本公开可以减少用户操作,提高控制效率。In this embodiment, when the terminal is in the screen-locked state, each button identifier of at least one button pressed by the user on the terminal is obtained and a button identifier set is formed, and the corresponding device and control device to be controlled are obtained according to the button identifier set. The command is used to send the control command to the device, so that the device executes the operation corresponding to the control command. Compared with the existing solution, the present disclosure can reduce user operations and improve control efficiency.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。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.
图5是根据一示例性实施例示出的一种用于控制设备的装置500的框图。例如,装置500可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 5 is a block diagram of an apparatus 500 for controlling a device according to an exemplary embodiment. For example, the apparatus 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
参照图5,装置500可以包括以下一个或多个组件:处理组件502,存储器504,电源组件506,多媒体组件508,音频组件510,输入/输出(I/O)的接口512,传感器组件514,以及通信组件516。5, device 500 may include one or more of the following components: processing component 502, memory 504, power supply component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and communication component 516 .
处理组件502通常控制装置500的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件502可以包括一个或多个处理器520来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件502可以包括一个或多个模块,便于处理组件502和其他组件之间的交互。例如,处理组件502可以包括多媒体模块,以方便多媒体组件508和处理组件502之间的交互。The processing component 502 generally controls the overall operations of the device 500, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 502 may include one or more modules that facilitate interaction between processing component 502 and other components. For example, processing component 502 may include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502 .
存储器504被配置为存储各种类型的数据以支持在装置500的操作。这些数据的示例包括用于在装置500上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器504可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 504 is configured to store various types of data to support operations at the device 500 . Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and the like. The memory 504 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电源组件506为装置500的各种组件提供电力。电源组件506可以包括电源管理系统,一个或多个电源,及其他与为装置500生成、管理和分配电力相关联的组件。The power supply component 506 provides power to various components of the device 500 . Power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 500 .
多媒体组件508包括在所述装置500和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件508包括一个前置摄像头和/或后置摄像头。当装置500处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 508 includes a front camera and/or a rear camera. When the device 500 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件510被配置为输出和/或输入音频信号。例如,音频组件510包括一个麦克风(MIC),当装置500处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器504或经由通信组件516发送。在一些实施例中,音频组件510还包括一个扬声器,用于输出音频信号。The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a microphone (MIC), which is configured to receive external audio signals when the device 500 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 504 or sent via communication component 516 . In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.
I/O接口512为处理组件502和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 512 provides an interface between the processing component 502 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
传感器组件514包括一个或多个传感器,用于为装置500提供各个方面的状态评估。例如,传感器组件514可以检测到装置500的打开/关闭状态,组件的相对定位,例如所述组件为装置500的显示器和小键盘,传感器组件514还可以检测装置500或装置500一个组件的位置改变,用户与装置500接触的存在或不存在,装置500方位或加速/减速和装置500的温度变化。传感器组件514可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件514还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件514还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 514 includes one or more sensors for providing status assessments of various aspects of device 500 . For example, the sensor component 514 can detect the open/closed state of the device 500, the relative positioning of components, such as the display and keypad of the device 500, and the sensor component 514 can also detect a change in the position of the device 500 or a component of the device 500 , the presence or absence of user contact with the device 500 , the device 500 orientation or acceleration/deceleration and the temperature change of the device 500 . Sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
通信组件516被配置为便于装置500和其他设备之间有线或无线方式的通信。装置500可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件516经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件516还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 516 is configured to facilitate wired or wireless communication between the apparatus 500 and other devices. The device 500 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置500可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 500 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器504,上述指令可由装置500的处理器520执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 504 including instructions, which can be executed by the processor 520 of the device 500 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由装置500的处理器执行时,使得装置500能够执行一种控制设备的方法,所述方法包括:A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the device 500, the device 500 is enabled to execute a method for controlling a device, the method comprising:
获取终端在锁屏状态下被按下的至少一个按键中的每个按键的按键标识并将所述每个按键的按键标识组成第一按键标识集合;Acquiring the key identification of each key in at least one key pressed by the terminal in the lock screen state and forming the key identification set of each key into a first key identification set;
根据所述第一按键标识集合,从按键标识集合、设备标识与控制命令的对应关系中获取对应的设备标识和控制命令;According to the first button identifier set, obtain the corresponding device identifier and control command from the corresponding relationship between the button identifier set, the device identifier and the control command;
根据所述设备标识,向所述设备标识对应的设备发送所述控制命令,以控制所述设备执行所述控制命令对应的操作。According to the device identifier, the control command is sent to a device corresponding to the device identifier, so as to control the device to perform an operation corresponding to the control command.
可选的,所述根据所述第一按键标识集合,从按键标识集合、设备标识与控制命令的对应关系中获取对应的设备标识和控制命令,包括:Optionally, according to the first button identifier set, obtaining the corresponding device identifier and control command from the button identifier set, the corresponding relationship between the device identifier and the control command includes:
向服务器发送查询请求消息,所述查询请求消息携带用户账号和所述第一按键标识集合,所述查询请求消息用于所述服务器根据所述第一按键标识集合,从所述用户账号对应的按键标识集合、设备标识与控制命令的对应关系中获取对应的设备标识和控制命令;Sending a query request message to the server, the query request message carrying the user account and the first button identification set, the query request message is used by the server to select the user account corresponding to the user account according to the first button identification set Obtain the corresponding device identification and control command from the corresponding relationship between the key identification set, the equipment identification and the control command;
接收所述服务器发送的查询响应消息,所述查询响应消息携带所述服务器获取的设备标识和控制命令。Receive a query response message sent by the server, where the query response message carries the device identifier and control command acquired by the server.
可选的,所述方法还包括:Optionally, the method also includes:
获取用户选择的设备标识和控制命令,以及获取终端被按下的至少一个按键中的每个按键的按键标识并组成第二按键标识集合;Obtain the device identification and control command selected by the user, and obtain the key identification of each key in at least one key pressed by the terminal and form a second key identification set;
将所述第二按键标识集合、所述用户选择的设备标识和控制命令对应保存在按键标识集合、设备标识与控制命令的对应关系中。The second button identifier set, the device identifier selected by the user, and the control command are correspondingly stored in the corresponding relationship between the button identifier set, the device identifier, and the control command.
可选的,所述获取用户选择的设备标识和控制命令之前,还包括:Optionally, before obtaining the device identification and control command selected by the user, it also includes:
获取用户账号,获取与所述用户账号绑定的设备的设备标识和所述设备包括的控制命令;Obtaining a user account, obtaining a device identifier of a device bound to the user account and a control command included in the device;
显示所述与所述用户账号绑定的设备的设备标识和所述设备包括的控制命令。Displaying the device identifier of the device bound to the user account and the control commands included in the device.
可选的,所述获取与所述用户账号绑定的设备的设备标识和所述设备包括的控制命令,包括:Optionally, the obtaining the device identifier of the device bound to the user account and the control command included in the device includes:
获取并显示与所述用户账号绑定的设备的设备标识和设备类型;Obtaining and displaying the device identifier and device type of the device bound to the user account;
获取用户选择的设备的设备标识和设备类型;Obtain the device ID and device type of the device selected by the user;
根据所述用户选择的设备的设备类型,获取并显示所述用户选择的设备包括的控制命令。According to the device type of the device selected by the user, control commands included in the device selected by the user are acquired and displayed.
本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。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 disclosure 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)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710116598.4A CN106933111B (en) | 2017-02-28 | 2017-02-28 | A method and device for controlling equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710116598.4A CN106933111B (en) | 2017-02-28 | 2017-02-28 | A method and device for controlling equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106933111A true CN106933111A (en) | 2017-07-07 |
| CN106933111B CN106933111B (en) | 2020-10-30 |
Family
ID=59423948
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710116598.4A Active CN106933111B (en) | 2017-02-28 | 2017-02-28 | A method and device for controlling equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106933111B (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107995355A (en) * | 2017-11-08 | 2018-05-04 | 浙江凯耀照明股份有限公司 | A kind of fast simple mobile phone control light method |
| CN108494580A (en) * | 2018-02-07 | 2018-09-04 | 海尔优家智能科技(北京)有限公司 | A kind of method, medium, terminal and the equipment of update facility information |
| CN110196671A (en) * | 2018-02-27 | 2019-09-03 | 杭州海康威视数字技术股份有限公司 | A kind of device management method, apparatus and system |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103312526A (en) * | 2012-03-07 | 2013-09-18 | 施耐德电气东南亚(总部)有限公司 | Binding and pairing method, control system and control equipment |
| CN104111727A (en) * | 2014-06-24 | 2014-10-22 | 联想(北京)有限公司 | Information processing method and electronic equipment |
| CN104346100A (en) * | 2014-10-17 | 2015-02-11 | 广东欧珀移动通信有限公司 | A shortcut operation method and device for an intelligent mobile terminal in a black screen state |
| CN104503688A (en) * | 2014-12-31 | 2015-04-08 | 小米科技有限责任公司 | Method and device for realizing control of intelligent hardware equipment |
| US20150370272A1 (en) * | 2014-06-23 | 2015-12-24 | Google Inc. | Intelligent configuration of a smart environment based on arrival time |
| US20160178226A1 (en) * | 2013-12-11 | 2016-06-23 | International Business Machines Corporation | Intelligent thermostat control system |
| CN106303004A (en) * | 2016-08-04 | 2017-01-04 | 北京奇虎科技有限公司 | The way of recording, device and mobile terminal under screen lock state |
-
2017
- 2017-02-28 CN CN201710116598.4A patent/CN106933111B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103312526A (en) * | 2012-03-07 | 2013-09-18 | 施耐德电气东南亚(总部)有限公司 | Binding and pairing method, control system and control equipment |
| US20160178226A1 (en) * | 2013-12-11 | 2016-06-23 | International Business Machines Corporation | Intelligent thermostat control system |
| US20150370272A1 (en) * | 2014-06-23 | 2015-12-24 | Google Inc. | Intelligent configuration of a smart environment based on arrival time |
| US20160261425A1 (en) * | 2014-06-23 | 2016-09-08 | Google Inc. | Methods and apparatus for using smart environment devices via application program interfaces |
| CN104111727A (en) * | 2014-06-24 | 2014-10-22 | 联想(北京)有限公司 | Information processing method and electronic equipment |
| CN104346100A (en) * | 2014-10-17 | 2015-02-11 | 广东欧珀移动通信有限公司 | A shortcut operation method and device for an intelligent mobile terminal in a black screen state |
| CN104503688A (en) * | 2014-12-31 | 2015-04-08 | 小米科技有限责任公司 | Method and device for realizing control of intelligent hardware equipment |
| CN106303004A (en) * | 2016-08-04 | 2017-01-04 | 北京奇虎科技有限公司 | The way of recording, device and mobile terminal under screen lock state |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107995355A (en) * | 2017-11-08 | 2018-05-04 | 浙江凯耀照明股份有限公司 | A kind of fast simple mobile phone control light method |
| CN108494580A (en) * | 2018-02-07 | 2018-09-04 | 海尔优家智能科技(北京)有限公司 | A kind of method, medium, terminal and the equipment of update facility information |
| CN108494580B (en) * | 2018-02-07 | 2022-02-25 | 海尔优家智能科技(北京)有限公司 | Method, medium, terminal and device for updating device information |
| CN110196671A (en) * | 2018-02-27 | 2019-09-03 | 杭州海康威视数字技术股份有限公司 | A kind of device management method, apparatus and system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106933111B (en) | 2020-10-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105487389A (en) | Method and device for controlling intelligent equipment | |
| WO2018040063A1 (en) | Device control method and apparatus | |
| CN108040360A (en) | The method and apparatus of screen display control | |
| JP2017507437A (en) | Method for adjusting operating state of smart home equipment, apparatus, program, and recording medium | |
| WO2017008398A1 (en) | Smart device control method and device | |
| CN108810866B (en) | Method and device for connecting intelligent equipment and storage medium | |
| CN107154868A (en) | Smart machine control method and device | |
| CN107608561A (en) | Touch-screen control method and device | |
| WO2017113666A1 (en) | Application interface switching method and device | |
| CN106356060A (en) | Voice communication method and device | |
| CN107817929A (en) | The quick control method and device of smart machine | |
| CN106371327A (en) | Control right sharing method and device | |
| CN106547216A (en) | The method and device of intelligent scene trigger condition is set | |
| CN106507166A (en) | Smart TV startup animation configuration method and device | |
| CN107371052A (en) | Equipment control method and device | |
| CN115175279A (en) | Screen-turning control method and device and storage medium | |
| CN106095281A (en) | Screen control method, device and electronic equipment | |
| CN106708519A (en) | Operation control adding method and device | |
| CN106604230A (en) | Region configuration method and region configuration device | |
| CN106296775B (en) | Icon generation method and device | |
| CN106453032B (en) | Information-pushing method and device, system | |
| CN105759628A (en) | Intelligent device arrangement method and device | |
| CN104461358B (en) | Light the method and device of screen | |
| CN106933111B (en) | A method and device for controlling equipment | |
| CN111541922B (en) | Method, device and storage medium for displaying interface input information |
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 |