WO2014187221A1 - 设备控制方法、服务器、系统及计算机存储介质 - Google Patents

设备控制方法、服务器、系统及计算机存储介质 Download PDF

Info

Publication number
WO2014187221A1
WO2014187221A1 PCT/CN2014/076025 CN2014076025W WO2014187221A1 WO 2014187221 A1 WO2014187221 A1 WO 2014187221A1 CN 2014076025 W CN2014076025 W CN 2014076025W WO 2014187221 A1 WO2014187221 A1 WO 2014187221A1
Authority
WO
WIPO (PCT)
Prior art keywords
infrared
device control
identifier
user terminal
control instruction
Prior art date
Application number
PCT/CN2014/076025
Other languages
English (en)
French (fr)
Inventor
高健
颜学伦
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to US15/100,340 priority Critical patent/US9836958B2/en
Priority to EP14800787.5A priority patent/EP3065013B1/en
Publication of WO2014187221A1 publication Critical patent/WO2014187221A1/zh

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C23/00Non-electrical signal transmission systems, e.g. optical systems
    • G08C23/04Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6418Hybrid transport
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C2201/00Transmission systems of control signals via wireless link
    • G08C2201/90Additional features
    • G08C2201/92Universal remote control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Definitions

  • the present invention relates to communications technologies, and in particular, to a device control method, a server, a system, and a computer storage medium.
  • BACKGROUND With the development of mobile internet technology, remote control of devices in a family living environment has become a reality, and control of current devices (such as air conditioners, televisions, automatic switch window devices, etc.) is mostly realized by a short-range infrared remote control mechanism, This kind of infrared remote control mechanism, because the infrared transmission power cannot be increased to increase the transmission distance of the control signal, the remote control is limited by the effective transmission distance of the infrared control signal.
  • Embodiments of the present invention provide a device control method, a server, a system, and a computer storage medium, which are capable of breaking the limitation of an effective transmission distance of an infrared control signal, implementing remote control on the device, and reducing the cost of remotely controlling the device.
  • An embodiment of the present invention provides a device control method, including:
  • the infrared pulse parameter is used by the universal infrared controller to generate an infrared pulse command
  • the infrared pulse instruction is used to control a device corresponding to the device identifier to perform a corresponding operation.
  • the receiving the account information, the device identifier, and the device control command sent by the user terminal including:
  • the device control information is parsed to obtain the account information, device identification, and device control instructions.
  • the receiving account information, the device identifier, and the device control command sent by the user terminal include:
  • the method further includes:
  • a universal infrared controller identifier Receiving, by the home gateway, a universal infrared controller identifier, a device identifier, and attribute information of the device that are bound to the home gateway;
  • the device identifier corresponding to the account information and the attribute information of the device are determined according to the correspondence between the account information and the home gateway, and the device identifier and the attribute information of the device bound to the home gateway.
  • the method before the receiving the account information, the device identifier, and the device control command sent by the user terminal, the method further includes:
  • Registering the device storing, according to the attribute information of the device, a device control instruction of the device, and an infrared pulse parameter corresponding to the device control instruction.
  • the registering the device, storing the device control instruction of the device, and the infrared pulse parameter corresponding to the device control instruction according to the attribute information of the device including:
  • Receiving attribute information of the device sent by the user terminal, and a device control instruction acquiring, by the home gateway, an infrared pulse parameter from the universal infrared controller, where the infrared pulse parameter is controlled by the universal infrared controller according to the device
  • the infrared pulse command corresponding to the instruction is generated, and the infrared pulse command is obtained by the universal infrared controller from the infrared control remote control; storing attribute information of the device, a device control instruction, and an infrared pulse parameter corresponding to the device control instruction .
  • the method before the receiving the attribute information of the device sent by the user terminal, and the device control instruction, the method further includes:
  • the attribute information of the device includes a type of the device, a manufacturer of the device, and a model of the device.
  • the embodiment of the invention further provides a server, including:
  • the first receiving module is configured to receive account information, a device identifier, and a device control command sent by the user terminal;
  • a first acquiring module configured to acquire a general infrared controller identifier corresponding to the device identifier, and an infrared pulse parameter corresponding to the device control instruction;
  • the first sending module is configured to send, by using a home gateway corresponding to the account information, the infrared pulse parameter to a universal infrared controller corresponding to the universal infrared controller identifier, where the infrared pulse parameter is used for the universal infrared
  • the controller generates an infrared pulse command, and the infrared pulse command is used to control a device corresponding to the device identifier to perform a corresponding operation.
  • the first receiving module includes:
  • the first receiving unit is configured to receive the device control information sent by the user terminal, and the first analyzing unit is configured to parse the device control information to obtain the account information, the device identifier, and the device control instruction.
  • the first receiving module includes:
  • a second receiving unit configured to receive account information sent by the user terminal
  • a first sending unit configured to send, to the user terminal, a device identifier corresponding to the account information, and a device control command, where the user terminal determines a device identifier corresponding to the target device, and a device that needs to be executed by the target device Control instruction;
  • the third receiving unit is configured to receive a device identifier of the target device sent by the user terminal, and a device control instruction.
  • the server further includes:
  • a first registration module configured to register a home gateway, and store a correspondence between the account information and the home gateway
  • the second receiving module is configured to receive the universal infrared controller identifier, the device identifier, and the attribute information of the device that are sent by the home gateway and are bound to the home gateway.
  • the server further includes:
  • the second registration module is configured to register the device, and store, according to the attribute information of the device, a device control instruction of the device, and an infrared pulse parameter corresponding to the device control instruction.
  • the second registration module includes:
  • a fourth receiving unit configured to receive attribute information of the device sent by the user terminal, and a device control instruction
  • a fifth receiving unit configured to acquire an infrared pulse parameter from the universal infrared controller through a home gateway, and the infrared pulse parameter acquired by the fifth receiving unit is used by the universal infrared control
  • the controller generates according to an infrared pulse instruction corresponding to the device control instruction
  • a storage unit configured to store attribute information of the device, a device control instruction, and an infrared pulse parameter corresponding to the device control instruction.
  • the second registration module further includes:
  • a sixth receiving unit configured to receive a device control instruction customization request sent by the user terminal
  • the second sending unit is configured to send the stored device control command to the user terminal, where the user terminal determines the user-defined device control instruction according to the device control instruction and the operation of the user.
  • An embodiment of the present invention further provides a device control system, including: a server, a home gateway, and a universal infrared controller;
  • the server is configured to receive account information, a device identifier, and a device control command sent by the user terminal, obtain a general infrared controller identifier corresponding to the device identifier, and an infrared pulse parameter corresponding to the device control instruction;
  • the home gateway corresponding to the account information, sending the infrared pulse parameter to a general infrared controller corresponding to the universal infrared controller identifier;
  • the home gateway is configured to receive a general infrared controller identifier sent by the server, and an infrared pulse parameter, and send the infrared pulse parameter to a universal infrared controller corresponding to the universal infrared controller;
  • the universal infrared controller is configured to generate an infrared pulse command according to the infrared pulse parameter sent by the home gateway, and send the generated infrared pulse command to a device corresponding to the device identifier, so that the device performs operating.
  • the server comprises: a first receiving module, a first obtaining module and a first sending module; the functions of each module are the same as described above.
  • the home gateway is further configured to bind a universal infrared controller identifier and a device label. And the attribute information of the device; sending, to the server, a general infrared controller identifier, a device identifier, and attribute information of the device bound to the home gateway.
  • the home gateway is further configured to send the infrared pulse parameters acquired from the universal infrared controller to the server.
  • the system further comprises:
  • An infrared control remote controller configured to send an infrared pulse command corresponding to the device control instruction to the universal infrared controller
  • the universal infrared controller is further configured to generate an infrared pulse parameter according to the received infrared pulse command and send the parameter to the home gateway.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the device control method described above.
  • the home gateway is disposed between the user terminal and the device to be controlled, and the infrared pulse parameter of the user control device is transmitted to the universal infrared controller through the home gateway
  • the general infrared controller is configured according to the infrared
  • the pulse generates an infrared control command and transmits it to the device to enable the device to execute the instruction; thus, the user can control the device at any position through the user terminal, so that the distance between the user and the device exceeds the space limit of the effective transmission distance of the infrared control signal, without
  • the purchase of a new device that supports remote control enables remote control based on existing equipment, greatly reducing the cost of remote control of the device.
  • FIG. 1 is a flowchart of implementing a device control method according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a device control system according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of implementing registration of a home gateway according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of implementing binding of a home gateway and a universal infrared controller according to the present invention
  • FIG. FIG. 6 is a flowchart 1 of an implementation of remotely controlling a device according to an embodiment of the present invention
  • FIG. 7 is a flowchart 2 for implementing remote control of a device according to an embodiment of the present invention
  • FIG. 8 is a remote implementation of a device according to an embodiment of the present invention
  • Control implementation flow chart three
  • FIG. 1 is a flowchart of implementing a device control method according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
  • Step S101 Receive account information, a device identifier, and a device control instruction sent by the user terminal.
  • the execution body of step S101 to step S103 is a server (which may also be understood as an infrared remote control server), and the server communicates with the user terminal to acquire account information, device identifier, and device indicated by the client program run by the user in the user terminal.
  • Control device instruction; the device identifier sent by the user terminal is used to uniquely represent the device that the user desires to control, that is, the target device, and the device control command sent by the user terminal represents the operation that the user expects the target device to perform, such as power on, power off, and the like.
  • the step S101 may be: receiving the account information, the device identifier, and the device control command sent by the client; wherein the client may run in the user terminal or may run in the home gateway; that is, the user may pass
  • the user terminal sends the account information, the device identifier, and the device control command to the server to control the device, and may also send the account information, the device identifier, and the device control command to the server through the home gateway to control the device.
  • Step S102 Acquire a general infrared controller identifier corresponding to the device identifier, and an infrared pulse parameter corresponding to the device control instruction.
  • Step S103 the infrared pulse parameter is passed through a home gateway corresponding to the account information, Sending to the universal infrared controller corresponding to the universal infrared controller.
  • the universal infrared controller identifies a general infrared controller, and the universal infrared controller supports transmitting an infrared pulse command corresponding to the infrared pulse parameter to the target device; the infrared pulse parameter is used by the universal infrared controller to generate an infrared pulse command, the infrared pulse The command is used to control the device corresponding to the device identifier, so that the device performs corresponding operations, such as power-on, power-off, etc.
  • the server always supports receiving the user through the user terminal (or regardless of where the user is located) (or
  • the client sends the account information, the device identifier, and the device control command, and obtains the general infrared controller identifier corresponding to the device identifier, and the infrared pulse parameter corresponding to the device control instruction, and sends the infrared pulse parameter to the home gateway through the home gateway.
  • the universal infrared controller identifies a corresponding universal infrared controller, and the infrared controller generates an infrared pulse command according to the infrared pulse parameter to control the device to perform corresponding operations; here, since the infrared pulse parameter can be performed through the home gateway Transmission, which overcomes the transmission distance limitation of the infrared pulse command (ie, infrared control signal) in the infrared control mechanism of the related art, realizes remote control of the device, which eliminates the need to re-purchase a new device supporting remote control, and reduces the device The cost of remote control.
  • the infrared pulse parameter can be performed through the home gateway Transmission, which overcomes the transmission distance limitation of the infrared pulse command (ie, infrared control signal) in the infrared control mechanism of the related art, realizes remote control of the device, which eliminates the need to re-purchase a new device supporting remote control, and reduces the device The cost of remote control.
  • the receiving the account information, the device identifier, and the device control command sent by the user terminal including: receiving device control information sent by the user terminal; parsing the device control information, and obtaining account information, device identifier, and device control instruction
  • the device identifier obtained by the parsing is an identifier of the device that the user desires to remotely control, that is, the target device, and the control command obtained after parsing is an instruction that the user desires the target device to execute;
  • the user may send a short message by using a mobile phone, where the short message includes information such as account information, device identification, and device control instructions.
  • the server parses the short message to obtain account information, device identifier, And information such as device control instructions.
  • the receiving the account information, the device identifier, and the device control command sent by the user terminal including: receiving account information sent by the user terminal; and identifying the device identifier and device corresponding to the account information
  • the control instruction is sent to the user terminal, so that the user selects the device identifier corresponding to the target device, and the device control instruction required by the target device, and receives the device identifier sent by the user terminal, and the device control instruction; wherein, the server receives the The device identifier is a device identifier of the target device determined by the user terminal according to the operation of the user, and the device control command received by the server is an instruction that is performed by the user terminal according to the operation of the user, and is required to be executed by the target device.
  • the user terminal can also be a client, and the client can run in the user terminal or the home gateway, that is, the user can send the account information to the server through the user terminal or the home gateway;
  • the server after receiving the account information sent by the user through the user terminal (or the client), the server sends the device identifier corresponding to the account information and the device control command to the user terminal (or the client).
  • the user identifier is selected by the user, and the device control instruction required by the target device is required; and the device identifier and the device control command sent by the user terminal (or the client) are received. Therefore, the user does not need to memorize a large number of device identifications, as well as device control instructions and the like, thereby improving the user experience during the implementation of the device remote control.
  • the corresponding relationship between the account information and the device identifier may be pre-stored. However, when a new user needs to remotely control the device, the corresponding relationship between the account information of the new user and the device needs to be created.
  • the receiving account information Before the device identifier and the device control command, the method further includes: registering the home gateway, and storing a correspondence between the account information and the home gateway; according to the stored correspondence, and the obtained from the home gateway and the The general infrared controller identifier, the device identifier, and the attribute information of the device that are bound by the home gateway determine the correspondence between the account information of the user and the device identifier, and the correspondence between the account information of the user and the device attribute information.
  • the home gateway registers by sending a registration request to the server, and the registration request carries the account information, so that the server stores the correspondence between the home gateway and the account information.
  • the registration request carries the account information, so that the server stores the correspondence between the home gateway and the account information.
  • the home gateway needs to be registered to create account information and The correspondence between the home gateway and the general infrared controller identifier, the device identifier, and the attribute information of the device obtained from the home gateway, and the correspondence between the account information and the device identifier, and the account information of the user may be created.
  • the server may send the device identifier corresponding to the user account information to the user terminal (or the client described above) according to the account information sent by the user terminal, according to the account information of
  • the attribute information of the device determines a device control instruction corresponding to the account information, and sends the device identifier and the device control instruction corresponding to the account information to the user terminal for the user to select.
  • the server stores the correspondence between the device control command and the infrared pulse parameter according to the attribute information of the device, and in the corresponding relationship, the device control command and the infrared pulse parameter corresponding to the attribute information of the device may be missing, so
  • the server needs to register the device, and correspondingly, before receiving the account information, the device identifier, and the device control command sent by the user terminal, the method may further include: registering the device, and storing the device of the device according to the attribute information of the device a control instruction, and an infrared pulse parameter corresponding to the device control instruction; that is, a correspondence between the attribute information of the storage device, the control instruction of the device, and the infrared pulse parameter corresponding to the control instruction of the device;
  • the device control instruction and the corresponding infrared pulse parameter may be stored according to the attribute information of the device, and the device control instruction corresponding to the device is determined, so as to implement the device control instruction. remote control.
  • the device registers according to the attribute information of the device, saves
  • the device control instruction for storing the device and the infrared pulse parameter corresponding to the device control instruction may be implemented by: receiving attribute information of the device sent by the user terminal, and device control instruction; acquiring from the infrared controller through the home gateway Infrared pulse parameter, the acquired infrared pulse parameter is generated by a general infrared controller according to an infrared pulse command corresponding to a device control instruction, and the infrared pulse command is obtained by the universal infrared controller from an infrared control remote controller; storing the device Attribute information, device control instructions, and infrared pulse parameters corresponding to device control instructions;
  • the device control command of the device can be determined based on the obtained correspondence.
  • the infrared pulse parameters can be obtained by the infrared control remote controller provided by the equipment manufacturer and supplied by other means, for example, the relevant infrared pulse parameters can be obtained directly from the equipment manufacturer.
  • control instructions of different devices are similar, for example, most devices have device control commands that are turned on and off. If all custom device control commands are completely defined by the user, the operation of the user-defined device control commands is too complicated.
  • the method may further include: receiving a device control instruction custom request sent by the user terminal (also sent by the client described above) Transmitting the stored device control instruction to the user terminal; for the user terminal (or the client described above) to determine the user-defined device control instruction according to the received device control instruction and the operation of the user;
  • the pre-stored device control instruction when receiving a message that needs to be customized for the device control instruction, the pre-stored device control instruction may be sent to the user terminal (or the client described above), and the user may control the received device.
  • the device control instruction required by the user On the basis of the instruction, the device control instruction required by the user is defined, so that the pre-stored device control instruction can be multiplexed, or the simple modification can be performed on the basis of the pre-stored device control instruction, and the operation of the custom device control instruction can be completed. .
  • the problem that all device control instructions need to be completely defined by the user is avoided, resulting in an operation that is too complicated.
  • the same device control command such as power-on for controlling different devices
  • infrared pulse parameters this needs to be determined according to the device manufacturer and model.
  • Infrared pulse parameter correspondingly, as an embodiment, the device information is used to describe the device, and the attribute information of the device includes the type of the device, the manufacturer of the device, and the model of the device; thus, the device according to the type and device of the device
  • the infrared pulse parameter corresponding to the control command.
  • the device control command and the corresponding infrared pulse parameters first classify according to the type of the device, divide the air conditioner into category A, divide the television into category B, and divide the infrared automatic switch window meter into category C;
  • the manufacturer classifies the same type of equipment.
  • Gree air conditioners provided by Gree air conditioners are classified into categories Al.
  • Midea air conditioners provided by US air conditioners are classified into categories A.2; finally, the same brands are based on the model of the equipment.
  • the similar equipment is classified and stored.
  • Gree air-conditioning for example, the equipment control command of Gree air-conditioner T1 is classified into category A ⁇ 1, and the equipment control command of Gree air-conditioner type T2 is classified into category A ⁇ 2.
  • the embodiment of the invention further describes a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the device control method shown in FIG.
  • FIG. 2 is a schematic diagram of a structure of a server according to an embodiment of the present invention.
  • the server 21 includes:
  • the first receiving module 22 is configured to receive account information, a device identifier, and a device control command sent by the user terminal;
  • the first obtaining module 23 is configured to acquire a general infrared controller identifier corresponding to the device identifier, and an infrared pulse parameter corresponding to the device control instruction;
  • the first sending module 24 is configured to send, by using a home gateway corresponding to the account information, the infrared pulse parameter to a universal infrared controller corresponding to the universal infrared controller identifier,
  • the infrared pulse parameter is used by the universal infrared controller to generate an infrared pulse command, and the infrared pulse command is used to control a device corresponding to the device identifier to perform a corresponding operation.
  • the first acquiring module 23 acquires the general infrared controller identifier and the device control command corresponding to the device identifier.
  • the first sending module 24 sends the infrared pulse parameter to the corresponding universal infrared controller through the home gateway according to the universal infrared controller identifier, and the universal infrared controller generates an infrared pulse command control device according to the infrared pulse parameter to perform corresponding Operation, because the user can control the device at any position through the user terminal, the distance between the user and the device breaks through the space limitation of the effective transmission distance of the infrared control signal, thereby realizing remote control of the device, and eliminating the need to re-purchase the device, reducing The cost of remote control of the device.
  • the first receiving module 22 may include: a first receiving unit and a first analyzing unit (not shown in FIG. 2);
  • the first receiving unit is configured to receive device control information sent by the user terminal, and the first analyzing unit is configured to parse the device control information to obtain the account information, the device identifier, and the device control instruction.
  • the first receiving module 22 may include: a second receiving unit, a first sending unit, and a third receiving unit (not shown in FIG. 2);
  • the second receiving unit is configured to receive account information sent by the user terminal
  • the first sending unit is configured to send the device identifier corresponding to the account information and the device control command to the user terminal, so that the user terminal determines the device identifier corresponding to the target device, and the device that needs to be executed by the target device.
  • Control instruction ;
  • the third receiving unit is configured to receive a device identifier of the target device and a device control instruction sent by the user terminal.
  • the server 21 may further include: a first registration module and a second a receiving module (not shown in FIG. 2); wherein
  • the first registration module is configured to register a home gateway, and store a correspondence between the account information and the home gateway;
  • the second receiving module is configured to receive a general infrared controller identifier, a device identifier, and attribute information of the device that are sent by the home gateway and are bound to the home gateway.
  • the server 21 may further include:
  • the second registration module is configured to register the device, and store the device control instruction of the device and the infrared pulse parameter corresponding to the device control instruction according to the attribute information of the device.
  • the second registration module may include: a fourth receiving unit, a fifth receiving unit, and a storage unit (not shown in FIG. 2);
  • the fourth receiving unit is configured to receive attribute information of the device sent by the user terminal, and a device control instruction
  • the fifth receiving unit is configured to acquire an infrared pulse parameter from the universal infrared controller through the home gateway, the acquired infrared pulse parameter, and the infrared pulse command corresponding to the device control instruction by the universal infrared controller Generate
  • the storage unit is configured to store attribute information of the device, a device control instruction, and an infrared pulse parameter corresponding to the device control instruction.
  • the second registration module may further include: a sixth receiving unit and a second sending unit (not shown in FIG. 2);
  • the sixth receiving unit is configured to receive a device control instruction customization request sent by the user terminal;
  • the second sending unit is configured to send the stored device control command to the user terminal, so that the user terminal determines a user-defined device control command according to the device control instruction and the user operation.
  • the fourth receiving unit may be implemented by a chip supporting the Control Protocol/Internet Protocol (TCP/IP) stack in the server 21;
  • the storage unit in the server 21 may be implemented by a non-volatile storage medium in the server 21;
  • the first in the server 21 The obtaining module 23, the first parsing unit, the first registering module and the second registering module may be a central processing unit (CPU), a digital signal processor (DSP) or a field programmable gate in the server 21.
  • Array FPGA, Field Programmable Gate Array
  • FIG. 3 is a schematic structural diagram of a device control system according to an embodiment of the present invention.
  • the device control system 31 includes: a server 32, a home gateway 33, and a general Infrared controller 34; wherein
  • the server 32 is configured to receive the account information, the device identifier, and the device control command sent by the user terminal, obtain the identifier of the universal infrared controller 34 corresponding to the device identifier, and the infrared pulse parameter corresponding to the device control command;
  • the infrared pulse parameter is sent to the universal infrared controller 34 to identify the corresponding universal infrared controller 34 through the home gateway 33 corresponding to the account information;
  • the home gateway 33 is configured to receive the general infrared controller 34 identifier sent by the server 32, and an infrared pulse parameter, and send the infrared pulse parameter to the universal infrared controller corresponding to the universal infrared controller 34 34;
  • the general-purpose infrared controller 34 is configured to generate an infrared pulse command according to the infrared pulse parameter sent by the home gateway 33, and send the generated infrared pulse command to the device corresponding to the device identifier, so that the The device performs the operation.
  • the server 32 is further configured to receive device control information sent by the user terminal;
  • the device control information is parsed to obtain the account information, device identification, and device control instructions.
  • the server 32 is further configured to receive the user terminal to send Account information
  • the server 32 is further configured to register the home gateway, and store a correspondence between the account information and the home gateway;
  • a universal infrared controller identifier Receiving, by the home gateway, a universal infrared controller identifier, a device identifier, and attribute information of the device that are bound to the home gateway;
  • the device identifier corresponding to the account information and the attribute information of the device are determined according to the correspondence between the account information and the home gateway, and the device identifier and the attribute information of the device bound to the home gateway.
  • the server 32 is further configured to register the device before receiving the account information, the device identifier, and the device control command sent by the user terminal, and store the device according to the attribute information of the device. a device control command and an infrared pulse parameter corresponding to the device control command.
  • the server 32 is further configured to receive attribute information of the device sent by the user terminal, and a device control instruction;
  • an infrared pulse parameter from the universal infrared controller through a home gateway, where the infrared pulse parameter is generated by the universal infrared controller according to an infrared pulse instruction corresponding to the device control instruction, where the infrared pulse instruction is
  • the universal infrared controller is obtained from the infrared control remote control;
  • the attribute information of the device, the device control instruction, and the infrared pulse parameter corresponding to the device control instruction are stored.
  • the server 32 is further configured to be sent by the receiving user terminal. Receiving a device control instruction custom request sent by the user terminal before the attribute information of the device and the device control instruction;
  • the attribute information of the device includes a type of the device, a manufacturer of the device, and a model of the device.
  • the home gateway 33 is further configured to bind the general infrared controller 34 identifier, the device identifier, and the attribute information of the device; and send the general infrared control bound to the home gateway 33 to the server 32.
  • the identifier of the device 34, the device identification, and the attribute information of the device are further configured to bind the general infrared controller 34 identifier, the device identifier, and the attribute information of the device.
  • the home gateway 33 is further configured to send the infrared pulse parameters acquired from the universal infrared controller 34 to the server 32.
  • the server 32 and the home gateway 33 can be configured by a client/server (C/S, Client/Server) architecture, by Hypertext Transfer Protocol (HTTP), or by a general packet radio service technology (GPRS, General).
  • the Packet Radio Service mode establishes a communication connection, based on the server 32 interacting with the private protocol established by the home gateway 33.
  • the universal infrared controller 34 can establish a proprietary protocol for application layer two-way communication on the basis of Transmission Control Protocol/Internet Protocol (TCP/IP) to communicate with the home gateway 33.
  • TCP/IP Transmission Control Protocol/Internet Protocol
  • the device control system 31 further includes: an infrared control remote controller (not shown in FIG. 4) configured to send an infrared pulse command corresponding to the device control command to the universal infrared controller 34;
  • the universal infrared controller 34 is further configured to generate an infrared pulse parameter according to the received infrared pulse command and send it to the home gateway 33.
  • the home gateway 33 can send the infrared pulse parameter to the pass using the 433 MHz frequency band.
  • the infrared controller 34 is used; the universal infrared controller 34 can transmit the infrared pulse command to the target device using the 38KHZ frequency band.
  • FIG. 4 is a flowchart of registering a home gateway by a server according to an embodiment of the present invention. As shown in FIG. 4, the method includes the following steps:
  • Step S401 The server receives a registration request sent by the home gateway.
  • a new user When a new user needs to remotely control the device, it needs to initiate registration with the home gateway, and the account information of the new user will be sent to the home gateway, and the home gateway sends a registration request to the server, and the registration request sent by the home gateway carries a new one. User's account information.
  • Step S402 it is judged whether the authentication of the home gateway is passed; if the authentication is passed, the process proceeds to step S403; otherwise, the process proceeds to step S405.
  • the server receives the registration request of the home gateway, and authenticates the home gateway according to the account information carried in the registration request.
  • Step S403 storing a correspondence between the account information and the home gateway.
  • the account information and the device identifier of the new user may also be determined according to the stored correspondence and the general infrared controller identifier, the device identifier, and the attribute information of the device that are bound to the home gateway acquired from the home gateway. Correspondence relationship, and the correspondence between the account information of the new user and the device attribute information.
  • Step S404 the server sends a registration success response to the home gateway.
  • Step S405 the server sends a registration failure response to the home gateway.
  • FIG. 5 is a flowchart of binding a home gateway to a universal infrared controller according to an embodiment of the present invention. As shown in FIG. 5, the method includes the following steps:
  • Step S501 The home gateway sends a code message to the universal infrared controller.
  • the home gateway sends a code message to the corresponding universal infrared controller according to the infrared controller identifier sent by the user through the user terminal and the infrared controller identifier.
  • Step S502 After receiving the code message sent by the home gateway, the universal infrared controller performs Pair code.
  • the universal infrared controller performs a pairing according to the received pair code message to determine whether the home gateway transmitting the code message is a home gateway pre-associated with the universal infrared controller.
  • Step S503 The universal infrared controller sends a code result to the home gateway.
  • the binding process may be ended. If the code is unsuccessful, the binding process may be ended. If the code is successful, the device feedback information carries the device identifier of the device controlled by the universal infrared controller and the attribute information of the device controlled by the infrared controller.
  • Step S504 The home gateway is bound to the general infrared controller identifier, the device identifier, and the attribute information of the device.
  • the home gateway establishes a correspondence between the home gateway itself and the general infrared controller identifier, the device identifier, and the attribute information of the device.
  • Step S505 The home gateway sends the general infrared controller identifier, the device identifier, and the attribute information of the device to the server.
  • Step S506 the server saves the general infrared controller identifier, the device identifier, and the attribute information of the device.
  • the server saves the correspondence between the home gateway and the general infrared controller identifier, the device identifier, and the attribute information of the device.
  • Step S507 the server sends feedback information to the home gateway.
  • the feedback information is used to confirm that the home gateway is bound to the universal infrared controller, that is, the correspondence between the home gateway and the general infrared controller identifier, the device identifier, and the attribute information of the device is saved.
  • FIG. 6 is a flowchart of the implementation of the device control in the embodiment of the present invention. The following steps:
  • Step S601 The mobile phone (corresponding to the user terminal) sends the device control short message to the server.
  • Step S602 the server parses the received device control short message, and obtains account information, device identifier, and device control instruction.
  • Step S603 the server acquires a general infrared controller identifier corresponding to the device identifier, and an infrared pulse parameter corresponding to the device control instruction.
  • Step S604 the server sends the general infrared controller identifier and the infrared pulse parameter corresponding to the device control instruction to the home gateway corresponding to the account information.
  • Step S605 The home gateway uses the 433 MHz frequency band to send the received infrared pulse parameters to the general infrared controller corresponding to the general infrared controller identifier.
  • Step S606 the home gateway returns a response message to the server.
  • the home gateway After the home gateway sends the infrared pulse parameter to the general infrared controller, it returns a response message to the server.
  • Step S607 After receiving the return response sent by the home gateway, the server returns a message sending success message to the user's mobile phone.
  • Step S608 the universal infrared controller generates an infrared pulse command according to the infrared pulse parameter.
  • Step S609 the universal infrared controller uses the 38KHZ frequency band to send an infrared pulse command to the target device.
  • Step S610 the target device executes the received infrared pulse command according to the execution.
  • FIG. 7 is a device control device according to an embodiment of the present invention.
  • the implementation of the second flowchart, as shown in Figure 7, includes the following steps:
  • Step S701 The user terminal sends the account information to the server.
  • Step S702 the server sends the device identifier corresponding to the account information and the device control instruction to the user terminal.
  • Step S703 the user terminal sends the device identifier of the target device and the device control instruction required to be executed by the target device to the server.
  • the user terminal user selects the identity of the control device, that is, the target device, and the device control command that needs to be executed by the target device, and sends it to the server.
  • Step S704 the server acquires an identifier of the universal infrared controller corresponding to the device identifier (ie, an identifier of the universal infrared controller), and an infrared pulse parameter corresponding to the device control instruction.
  • Step S705 The server sends the general infrared controller identifier and the infrared pulse parameter corresponding to the device control instruction to the home gateway corresponding to the account information.
  • Step S706 The home gateway sends the received infrared pulse parameter to the universal infrared controller corresponding to the general infrared controller identifier by using the 433 MHz frequency band.
  • Step S707 The home gateway sends the infrared pulse parameter to the universal infrared controller, and returns a response message to the server.
  • Step S708 After receiving the return response sent by the home gateway, the server returns a message sending success message to the user terminal.
  • Step S709 the universal infrared controller generates an infrared pulse command according to the infrared pulse parameter.
  • Step S710 the universal infrared controller sends the infrared pulse command to the corresponding device by using 38KHZ.
  • Step S711 the target device executes the received infrared pulse instruction.
  • FIG. 8 is a flowchart 3 of implementing device control according to an embodiment of the present invention, as shown in FIG. , including the following steps:
  • Step S801 the universal infrared controller enters a learning mode.
  • the universal infrared controller When the universal infrared controller is in the learning mode, it can receive the infrared pulse command sent by the infrared control remote controller and parse it into the corresponding infrared pulse parameter. Step S802, the user terminal sends the account information to the server.
  • the user terminal When the user needs to remotely control the device, the user terminal sends the account information to obtain the device identifier and device control command of the target device.
  • Step S803 the server sends the device identifier corresponding to the account information and the device control command to the user terminal.
  • Step S804 the user terminal sends the attribute information of the target device and the customized device control command to the server.
  • the target device is a device that the user desires to remotely control.
  • the user finds that the device identifier and the device control instruction received by the user terminal are missing the target device control instruction, the user triggers the user terminal to set the attribute information of the target device, and the customized The target device control command is sent to the server.
  • Step S805 the server sends an infrared pulse parameter acquisition request to the home gateway corresponding to the account information (account information received in step S802).
  • the server After receiving the attribute information of the target device sent by the user terminal and the customized target device control command, the server sends an infrared pulse parameter acquisition request to the home gateway corresponding to the account information.
  • Step S806 the home gateway sends an infrared pulse parameter acquisition request to the corresponding universal infrared controller.
  • Step S807 the universal infrared controller prompts the user to operate the infrared control remote controller to input an infrared pulse command. For example, after receiving the infrared pulse parameter request, the universal infrared controller emits a beep, prompting the user to operate the infrared control remote controller to input an infrared pulse command.
  • Step S808 the infrared control remote controller sends the infrared pulse command to the universal infrared controller, and the infrared pulse command sent by the infrared control remote controller corresponds to the user-defined device control command.
  • Step S809 the universal infrared controller receives the infrared pulse command, and decodes and generates the infrared pulse parameter. Number.
  • Step S810 the universal infrared controller sends the infrared pulse parameter to the home gateway.
  • Step S811 the home gateway sends the infrared pulse parameter to the server.
  • Step S812 the server stores the infrared pulse parameter.
  • step S812 the general infrared controller identifier corresponding to the device (characterized by the device identifier) and the infrared pulse parameter corresponding to the device control command supported by the device are already stored in the server; therefore, after step 812, the method may be performed by using FIG. 6 or The steps shown in Figure 7 remotely control the device and will not be described here.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment of a combination of software and hardware. Moreover, the invention can be embodied in the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps that are configured to implement the functions specified in one or more blocks of the flowchart or in a block or blocks of the flowchart.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Selective Calling Equipment (AREA)
  • Telephonic Communication Services (AREA)

Abstract

提供了一种设备控制方法、服务器、系统及计算机存储介质,方法包括:接收用户终端发送的账户信息、设备标识、以及设备控制指令(S101);获取与设备标识对应的通用红外控制器标识、以及与设备控制指令对应的红外脉冲参数(S102);通过与账户信息对应的家庭网关,将红外脉冲参数发送给通用红外控制器标识对应的通用红外控制器,红外脉冲参数供通用红外控制器生成红外脉冲指令,红外脉冲指令用于控制与设备标识对应的设备执行相应的操作(S103)。

Description

设备控制方法、 服务器、 系统及计算积 储介质 技术领域 本发明涉及通信技术, 尤其涉及一种设备控制方法、 服务器、 系统及 计算机存储介质。 背景技术 随着移动互联网技术的发展, 远程控制家庭居住环境中的设备已经成 为现实, 当前设备(如空调、 电视、 自动开关窗仪等) 的控制多数通过近 距离的红外遥控机制来实现, 对于这种红外遥控机制, 由于无法通过增加 红外发射功率的方式来增加控制信号的发射距离, 因此远程控制受到红外 控制信号有效传输距离的限制, 为了实现对设备更远距离的远程控制, 用 户还需要购买一套全新的支持远程控制的设备, 这样大大增加了远程控制 的实施成本。 发明内容 本发明实施例提供一种设备控制方法、 服务器、 系统及计算机存储介 质, 能够突破红外控制信号有效传输距离的限制, 对设备实施远程控制, 降低对设备进行远程控制的成本。
本发明实施例提供一种设备控制方法, 包括:
接收用户终端发送的账户信息、 设备标识及设备控制指令;
获取与所述设备标识对应的通用红外控制器标识、 以及与所述设备控 制指令对应的红外脉冲参数;
通过与所述账户信息对应的家庭网关, 将所述红外脉冲参数发送给所 述通用红外控制器标识对应的通用红外控制器, 所述红外脉冲参数供所述 通用红外控制器生成红外脉冲指令, 所述红外脉冲指令用于控制与所述设 备标识对应的设备执行相应的操作。 优选地, 所述接收用户终端发送的账户信息、 设备标识及设备控制指 令, 包括:
接收用户终端发送的设备控制信息;
解析所述设备控制信息, 得到所述账户信息、 设备标识、 以及设备控 制指令。
优选地, 所述接收用户终端发送的账户信息、 设备标识及设备控制指 令, 包括:
接收所述用户终端发送的账户信息;
将与所述账户信息对应的设备标识、 以及设备控制指令发送给所述用 户终端, 以供所述用户终端确定目标设备对应的设备标识、 以及需要目标 设备执行的设备控制指令;
接收所述用户终端发送的目标设备的设备标识、 以及设备控制指令。 优选地, 所述接收用户终端发送的账户信息、 设备标识、 以及设备控 制指令之前, 所述方法还包括:
对所述家庭网关进行注册, 存储所述账户信息与所述家庭网关的对应 关系;
接收所述家庭网关发送的与所述家庭网关绑定的通用红外控制器标 识、 设备标识、 以及设备的属性信息;
根据所述账户信息与所述家庭网关的对应关系, 以及与所述家庭网关 绑定的设备标识及设备的属性信息, 确定与所述账户信息对应的设备标识、 以及设备的属性信息。
优选地, 所述接收用户终端发送的账户信息、 设备标识及设备控制指 令之前, 所述方法还包括:
对所述设备进行注册, 根据所述设备的属性信息, 存储所述设备的设 备控制指令、 以及与所述设备控制指令对应的红外脉冲参数。 优选地, 所述对所述设备进行注册, 根据所述设备的属性信息, 存储 所述设备的设备控制指令、 以及与所述设备控制指令对应的红外脉冲参数, 包括:
接收所述用户终端发送的设备的属性信息、 以及设备控制指令; 通过家庭网关从所述通用红外控制器获取红外脉冲参数, 所述红外脉 冲参数由所述通用红外控制器根据与所述设备控制指令对应的红外脉冲指 令生成, 所述红外脉冲指令由所述通用红外控制器从红外控制遥控获取; 存储所述设备的属性信息、 设备控制指令、 以及与所述设备控制指令 对应的红外脉冲参数。
优选地, 所述接收用户终端发送的设备的属性信息、 以及设备控制指 令之前, 所述方法还包括:
接收所述用户终端发送的设备控制指令自定义请求;
将存储的设备控制指令发送给所述用户终端, 以供所述用户终端根据 所述设备控制指令、 以及用户的操作、 确定用户自定义的设备控制指令。
优选地, 所述设备的属性信息包括所述设备的类型、 所述设备的生产 厂商、 以及所述设备的型号。
本发明实施例还提供一种服务器, 包括:
第一接收模块, 配置为接收用户终端发送的账户信息、 设备标识及设 备控制指令;
第一获取模块, 配置为获取与所述设备标识对应的通用红外控制器标 识、 以及与所述设备控制指令对应的红外脉冲参数;
第一发送模块, 配置为通过与所述账户信息对应的家庭网关, 将所述 红外脉冲参数发送给所述通用红外控制器标识对应的通用红外控制器, 所 述红外脉冲参数供所述通用红外控制器生成红外脉冲指令, 所述红外脉冲 指令用于控制与所述设备标识对应的设备执行相应的操作。 优选地, 所述第一接收模块包括:
第一接收单元, 配置为接收所述用户终端发送的设备控制信息; 第一解析单元, 配置为解析所述设备控制信息, 得到所述账户信息、 设备标识、 以及设备控制指令。
优选地, 所述第一接收模块包括:
第二接收单元, 配置为接收所述用户终端发送的账户信息;
第一发送单元, 配置为将与所述账户信息对应的设备标识、 以及设备 控制指令发送给所述用户终端, 以供所述用户终端确定目标设备对应的设 备标识、 以及需要目标设备执行的设备控制指令;
第三接收单元, 配置为接收所述用户终端发送的目标设备的设备标识、 以及设备控制指令。
优选地, 所述服务器还包括:
第一注册模块, 配置为对家庭网关进行注册, 存储所述账户信息与所 述家庭网关的对应关系;
第二接收模块, 配置为接收所述家庭网关发送的与所述家庭网关绑定 的通用红外控制器标识、 设备标识、 以及设备的属性信息。
优选地, 所述服务器还包括:
第二注册模块, 配置为对所述设备进行注册, 根据所述设备的属性信 息, 存储所述设备的设备控制指令、 以及与所述设备控制指令对应的红外 脉冲参数。
优选地, 所述第二注册模块包括:
第四接收单元, 配置为接收所述用户终端发送的设备的属性信息、 以 及设备控制指令;
第五接收单元, 配置为通过家庭网关从所述通用红外控制器获取红外 脉冲参数, 所述第五接收单元所获取的红外脉冲参数, 由所述通用红外控 制器根据与所述设备控制指令对应的红外脉冲指令生成;
存储单元, 配置为存储所述设备的属性信息、 设备控制指令、 以及与 设备控制指令对应的红外脉冲参数。
优选地, 所述第二注册模块还包括:
第六接收单元, 配置为接收所述用户终端发送的设备控制指令自定义 请求;
第二发送单元, 配置为将存储的设备控制指令发送给所述用户终端, 以供所述用户终端根据所述设备控制指令、 以及用户的操作、 确定用户自 定义的设备控制指令。
本发明实施例还提供一种设备控制系统, 包括: 服务器、 家庭网关和 通用红外控制器; 其中,
所述服务器, 配置为接收用户终端发送的账户信息、 设备标识、 以及 设备控制指令; 获取与所述设备标识对应的通用红外控制器标识、 以及与 所述设备控制指令对应的红外脉冲参数; 通过与所述账户信息对应的家庭 网关, 将所述红外脉冲参数发送给所述通用红外控制器标识对应的通用红 外控制器;
所述家庭网关, 配置为接收所述服务器发送的通用红外控制器标识、 以及红外脉冲参数, 并将所述红外脉冲参数发送给所述通用红外控制器标 对应的通用红外控制器;
所述通用红外控制器, 配置为根据所述家庭网关发送的所述红外脉冲 参数生成红外脉冲指令, 并将所生成的红外脉冲指令发送给所述设备标识 对应的设备, 以使所述设备执行操作。
优选地, 所述服务器包括: 第一接收模块、 第一获取模块和第一发送 模块; 各模块的功能与以上所述相同。
优选地, 所述家庭网关, 还配置为绑定通用红外控制器标识、 设备标 识、 以及设备的属性信息; 向所述服务器发送与所述家庭网关绑定的通用 红外控制器标识、 设备标识、 以及设备的属性信息。
优选地, 所述家庭网关, 还配置为将从所述通用红外控制器获取的红 外脉冲参数发送给所述服务器。
优选地, 所述系统还包括:
红外控制遥控器, 配置为将与设备控制指令对应的红外脉冲指令发送 给所述通用红外控制器;
所述通用红外控制器, 还配置为根据接收到的红外脉冲指令生成红外 脉冲参数, 并发送给所述家庭网关。
本发明实施例还提供一种计算机存储介质, 所述计算机存储介质中存 储有计算机可执行指令, 所述计算机可执行指令用于执行以上所述的设备 控制方法。
本发明实施例提供的技术方案中, 由于家庭网关设置于用户终端与待 控制的设备之间, 且用户控制设备的红外脉冲参数通过家庭网关传输至通 用红外控制器, 由通用红外控制器根据红外脉冲生成红外控制指令, 并传 输至设备以使设备执行指令; 这样, 用户可以通过用户终端在任意位置对 设备进行控制, 使用户与设备的距离突破了红外控制信号有效传输距离的 空间限制, 无需购买新的支持远程控制的设备, 在现有设备的基础上即可 实现远程控制, 大大降低了对设备进行远程控制的成本。 附图说明
图 1为本发明实施例中设备控制方法的实现流程图;
图 2为本发明实施例中服务器的结构示意图;
图 3为本发明实施例中设备控制系统的结构示意图;
图 4为本发明实施例中对家庭网关进行注册的实现流程图;
图 5为本发明中家庭网关与通用红外控制器进行绑定的实现流程图; 图 6为本发明实施例中对设备进行远程控制的实现流程图一; 图 7为本发明实施例中对设备进行远程控制的实现流程图二; 图 8为本发明实施例中对设备进行远程控制的实现流程图三。 具体实施方式
为使本发明要解决的技术问题、 技术方案和优点更加清楚, 下面将结 合附图及具体实施例对本发明进行详细描述。
本发明实施例记载一种设备控制方法, 支持对设备进行远程控制, 图 1 为本发明实施例中设备控制方法的实现流程图, 如图 1 所示, 包括以下步 骤:
步骤 S101, 接收用户终端发送的账户信息、 设备标识、 以及设备控制 指令。
步骤 S101至步骤 S103的执行主体为服务器(也可以理解为红外远程 控制服务器), 服务器与用户终端进行通信, 以获取用户通过用户终端中运 行的客户端程序指示的账户信息、 设备标识、 以及设备控制指令; 用户终 端发送的设备标识用于唯一表征用户期望控制的设备即目标设备, 用户终 端发送的设备控制指令表征用户期望目标设备执行的操作, 如开机、 关机 等。
步骤 S101也可以为: 接收客户端发送的账户信息、 设备标识、 以及设 备控制指令; 其中, 所述客户端可以运行于用户终端中, 也可以运行于家 庭网关中; 也就是说, 用户可以通过用户终端向服务器发送账户信息、 设 备标识、 以及设备控制指令, 对设备进行控制, 也可以通过家庭网关向服 务器发送账户信息、 设备标识、 以及设备控制指令, 对设备进行控制。
步骤 S102, 获取与所述设备标识对应的通用红外控制器标识、 以及与 所述设备控制指令对应的红外脉冲参数。
步骤 S103,将所述红外脉冲参数通过与所述账户信息对应的家庭网关, 发送给所述通用红外控制器标识对应的通用红外控制器。
通用红外控制器标识表征通用红外线控制器, 通用红外线控制器支持 向目标设备发射红外脉冲参数对应的红外脉冲指令; 所述红外脉冲参数供 所述通用红外控制器生成红外脉冲指令, 所述红外脉冲指令用于控制与所 述设备标识对应的设备, 使设备执行相应的操作, 如开机、 关机等操作; 在本实施方式中, 无论用户处于何处, 服务器始终支持通过接收用户 通过用户终端 (或客户端)发送的账户信息、 设备标识及设备控制指令, 并获取与所述设备标识对应的通用红外控制器标识、 以及与设备控制指令 对应的红外脉冲参数, 将红外脉冲参数通过家庭网关发送给通用红外控制 器标识对应的通用红外控制器, 由红外控制器根据红外脉冲参数生成红外 脉冲指令, 以控制设备进行相应的操作; 这里, 由于红外脉冲参数可以通 过家庭网关进行网络传输, 克服了相关技术中红外控制机制中红外脉冲指 令(即红外控制信号) 的传输距离限制, 实现了对设备的远程控制, 这就 无需重新购买新的支持远程控制的设备, 减少了对设备进行远程控制的成 本。
作为一个实施方式, 所述接收用户终端发送的账户信息、 设备标识及 设备控制指令, 包括: 接收用户终端发送的设备控制信息; 解析所述设备 控制信息, 得到账户信息、 设备标识和设备控制指令; 经过解析所得到的 设备标识为用户期望远程控制的设备即目标设备的标识, 经过解析所得到 的控制指令为用户期望目标设备执行的指令;
例如, 用户可以使用手机发送短信息, 短信息中包含有账户信息、 设 备标识及设备控制指令等信息, 服务器在接收到该短信息后, 对该短信息 进行解析, 得到账户信息、 设备标识、 以及设备控制指令等信息。
当需要远程控制的设备比较多时, 用户如果通过用户终端发送设备控 制信息, 则需要记住所有设备的设备标识、 设备控制指令等信息, 不利于 用户使用。
为了解决上述问题, 作为一个实施方式, 所述接收用户终端发送的账 户信息、 设备标识及设备控制指令, 包括: 接收用户终端发送的账户信息; 将与所述账户信息对应的设备标识、 以及设备控制指令发送给所述用户终 端, 以供用户选择目标设备对应的设备标识、 以及需要目标设备执行的设 备控制指令, 并接收用户终端发送的设备标识、 以及设备控制指令; 其中, 服务器所接收的设备标识为用户终端根据用户的操作所确定的目标设备的 设备标识、 服务器所接收的设备控制指令为用户终端根据用户的操作所确 定的需要目标设备执行的指令; 本实施例方式中所述的用户终端也可以为 客户端, 所述客户端可以运行于用户终端或家庭网关中, 即用户可以通过 用户终端或家庭网关向服务器发送账户信息;
在本实施方式中, 服务器在接收到用户通过用户终端 (或客户端)发 送的账户信息后, 将与所述账户信息对应的设备标识、 以及设备控制指令 发送给用户终端 (或客户端), 以供用户选择目标设备对应的设备标识、 以 及需要目标设备执行的设备控制指令; 并接收用户终端 (或客户端)发送 的设备标识及设备控制指令。 从而, 用户无需记忆繁多的设备标识以、 以 及设备控制指令等信息, 提升了设备远程控制实施过程中的用户体验。
账户信息与设备标识的对应关系可以预先存储, 但是当有新用户需要 对设备进行远程控制时, 则需要创建新用户的账户信息与设备的对应关系, 作为一个实施方式, 所述接收账户信息、 设备标识及设备控制指令之前, 还可以包括: 对家庭网关进行注册, 存储所述账户信息与所述家庭网关的 对应关系; 根据所存储的对应关系、 以及从所述家庭网关获取的与所述家 庭网关绑定的通用红外控制器标识、 设备标识、 以及设备的属性信息, 确 定用户的账户信息与设备标识的对应关系, 以及用户的账户信息与设备属 性信息之间的对应关系; 实际应用中, 家庭网关通过向服务器发送注册请求进行注册, 注册请 求中携带账户信息, 以使服务器存储家庭网关与账户信息的对应关系; 在本实施方式中, 当用户首次对设备进行远程控制时, 需要创建用户 的账户信息与设备的对应关系, 因此在接收到用户通过用户终端发送(也 可以通过以上所述的客户端发送) 的账户信息后, 需要对家庭网关进行注 册, 创建账户信息与家庭网关的对应关系, 而通过从家庭网关获得的与家 庭网关绑定的通用红外控制器标识、 设备标识、 以及设备的属性信息, 可 以创建账户信息与设备标识的对应关系, 以及用户的账户信息与设备属性 信息之间的对应关系; 这样, 服务器可以根据用户终端发送的账户信息, 将与用户账户信息对应的设备标识发送给用户终端 (或以上所述的客户 端), 根据与账户信息对应的设备的属性信息, 确定与账户信息对应的设备 控制指令, 并将与账户信息对应的设备标识、 设备控制指令发送至用户终 端, 供用户选择。
作为一个实施方式, 服务器根据设备的属性信息, 存储设备控制指令 与红外脉冲参数的对应关系, 在该对应关系中, 可能会缺少某一设备的属 性信息对应的设备控制指令及红外脉冲参数, 因此服务器需要对设备进行 注册, 相应地, 在接收用户终端发送的账户信息、 设备标识及设备控制指 令之前, 还可以包括: 对设备进行注册, 根据所述设备的属性信息, 存储 所述设备的设备控制指令、 以及所述设备控制指令对应的红外脉冲参数; 也就是说, 存储设备的属性信息、 设备的控制指令、 设备的控制指令对应 的红外脉冲参数之间的对应关系;
本实施方式中, 在当某一设备对应的设备控制指令不存在时, 可以根 据设备的属性信息, 存储设备控制指令以及对应的红外脉冲参数, 确定设 备对应的设备控制指令, 以实现对设备的远程控制。
作为一个实施方式, 所述对设备进行注册, 根据设备的属性信息, 存 储所述设备的设备控制指令、 以及与设备控制指令对应的红外脉冲参数, 可以通过以下方式实现: 接收用户终端发送的设备的属性信息、 以及设备 控制指令; 通过家庭网关从通过红外控制器获取红外脉冲参数, 所获取的 红外脉冲参数由通用红外控制器根据与设备控制指令对应的红外脉冲指令 生成, 所述红外脉冲指令由所述通用红外控制器从红外控制遥控器获取; 存储所述设备的属性信息、 设备控制指令、 以及与设备控制指令对应的红 外脉冲参数;
在本实施方式中, 可以基于所得到的对应关系确定设备的设备控制指 令。 红外脉冲参数可以通过设备厂商提供的与设备配套的红外控制遥控器 获取, 也可以通过其他方式获取, 例如直接从设备厂商处获取相关红外脉 冲参数。
由于不同设备的控制指令相似, 例如大部分设备都有开、 关的设备控 制指令, 如果所有的自定义设备控制指令完全由用户来进行定义, 会使得 用户自定义设备控制指令的操作过于复杂。
作为一个实施方式, 所述接收用户终端发送的设备的属性信息、 以及 设备控制指令之前, 还可以包括: 接收用户终端发送(也可以通过以上所 述的客户端发送) 的设备控制指令自定义请求; 将存储的设备控制指令发 送给用户终端; 以供用户终端 (或以上所述的客户端)根据接收的设备控 制指令、 以及用户的操作、 确定用户自定义的设备控制指令;
在本实施方式中, 在接收到需要对设备控制指令进行自定义的消息时, 可以将预存的设备控制指令发送给用户终端(或以上所述的客户端), 用户 可以在接收到的设备控制指令的基础上来自定义用户所需的设备控制指 令, 这样就可以复用预存的设备控制指令, 或者在预存的设备控制指令的 基础上进行简单的修改, 即可完成自定义设备控制指令的操作。 从而, 避 免了所有设备控制指令都需要完全由用户定义, 导致操作过于复杂的问题。 实际应用中, 由于设备的生产厂商、 型号的差异性, 同一设备控制指 令如开机用于控制不同设备时, 所对应的红外脉冲参数往往不同; 这就需 要根据设备生产厂商、 型号, 确定对应的红外脉冲参数; 相应地, 作为一 个实施方式, 使用设备的属性信息来描述设备, 设备的属性信息包括设备 的类型、 设备的生产厂商及设备的型号; 从而, 可以根据设备的类型、 设 的设备控制指令对应的红外脉冲参数。
例如, 在存储设备控制指令及对应的红外脉冲参数时, 首先根据设备 的类型进行分类, 将空调划分到类别 A, 将电视划分到类别 B, 将红外自动 开关窗仪划分到类别 C; 然后根据生产厂商对于同一类型的设备再进行分 类, 以空调为例, 格力空调厂商提供的格力空调划分到类别 A.l, 美的空调 厂商提供的美的空调划分到类别 A.2;最后根据设备的型号对相同品牌的同 类设备进行分类存储, 以格力空调为例, 格力空调型号为 T1的设备控制指 令划分到类别 A丄 1,格力空调型号为 T2的设备控制指令划分到类别 A丄 2。
本发明实施例还记载一种计算机存储介质, 所述计算机存储介质中存 储有计算机可执行指令, 所述计算机可执行指令用于执行图 1 所示的设备 控制方法。
本发明实施例还记载一种服务器, 图 2 为本发明实施例中服务器的结 构示意图。 如图 2所示, 所述服务器 21包括:
第一接收模块 22, 配置为接收用户终端发送的账户信息、 设备标识及 设备控制指令;
第一获取模块 23, 配置为获取与所述设备标识对应的通用红外控制器 标识、 以及与所述设备控制指令对应的红外脉冲参数;
第一发送模块 24, 配置为通过与所述账户信息对应的家庭网关, 将所 述红外脉冲参数发送给所述通用红外控制器标识对应的通用红外控制器, 所述红外脉冲参数供所述通用红外控制器生成红外脉冲指令, 所述红外脉 冲指令用于控制与所述设备标识对应的设备执行相应的操作。
在上述技术方案中, 第一接收模块 22接收用户终端发送的账户信息、 设备标识及设备控制指令后, 第一获取模块 23获取与所述设备标识对应的 通用红外控制器标识及与设备控制指令对应的红外脉冲参数, 第一发送模 块 24根据通用红外控制器标识将红外脉冲参数通过家庭网关发送给对应的 通用红外控制器, 通用红外控制器根据红外脉冲参数生成红外脉冲指令控 制设备进行相应的操作, 由于用户可以通过用户终端在任意位置对设备进 行控制, 使用户与设备的距离突破了红外控制信号有效传输距离的空间限 制, 从而实现了对设备的远程控制, 且无需重新购买设备, 减少了对设备 进行远程控制的成本。
作为一个实施方式, 所述第一接收模块 22可以包括: 第一接收单元和 第一解析单元(图 2中未示出); 其中,
所述第一接收单元, 配置为接收用户终端发送的设备控制信息; 所述第一解析单元, 配置为解析所述设备控制信息, 得到所述账户信 息、 设备标识、 以及设备控制指令。
作为一个实施方式, 所述第一接收模块 22可以包括: 第二接收单元、 第一发送单元和第三接收单元(图 2中未示出); 其中,
所述第二接收单元, 配置为接收用户终端发送的账户信息;
所述第一发送单元, 配置为将与所述账户信息对应的设备标识、 以及 设备控制指令发送给所述用户终端, 以供用户终端确定目标设备对应的设 备标识、 以及需要目标设备执行的设备控制指令;
所述第三接收单元, 配置为接收所述用户终端发送的目标设备的设备 标识、 以及设备控制指令。
作为一个实施方式, 所述服务器 21还可以包括: 第一注册模块和第二 接收模块(图 2中未示出); 其中,
所述第一注册模块, 配置为对家庭网关进行注册, 存储所述账户信息 与所述家庭网关的对应关系;
所述第二接收模块, 配置为接收所述家庭网关发送的与所述家庭网关 绑定的通用红外控制器标识、 设备标识、 以及设备的属性信息。
作为一个实施方式, 所述服务器 21还可以包括:
第二注册模块, 配置为对设备进行注册, 根据设备的属性信息, 存储 所述设备的设备控制指令及与设备控制指令对应的红外脉冲参数。
作为一个实施方式, 所述第二注册模块可以包括: 第四接收单元、 第 五接收单元和存储单元(图 2中未示出); 其中,
所述第四接收单元, 配置为接收所述用户终端发送的设备的属性信息、 以及设备控制指令;
所述第五接收单元, 配置为通过家庭网关从所述通用红外控制器获取 红外脉冲参数, 所获取的红外脉冲参数, 由所述通用红外控制器根据与所 述设备控制指令对应的红外脉冲指令生成;
所述存储单元, 配置为存储所述设备的属性信息、 设备控制指令、 以 及与设备控制指令对应的红外脉冲参数。
作为一个实施方式, 所述第二注册模块还可以包括: 第六接收单元和 第二发送单元(图 2中未示出); 其中,
所述第六接收单元, 配置为接收用户终端发送的设备控制指令自定义 请求;
所述第二发送单元, 配置为将存储的设备控制指令发送给所述用户终 端, 以供所述用户终端根据所述设备控制指令、 以及用户的操作、 确定用 户自定义的设备控制指令。
实际应用中, 服务器 21中用于收发的模块或单元, 如第二发送单元、 第四接收单元, 可由服务器 21中支持控制协议 /网际协议(TCP/IP )栈的芯 片实现; 服务器 21 中的存储单元可由服务器 21 中的非易失性存储介质实 现; 服务器 21中的第一获取模块 23、 第一解析单元、 第一注册模块和第二 注册模块可由服务器 21中的中央处理器 ( CPU, Central Processing Unit )、 数字信号处理器 (DSP, Digital Signal Processor ) 或现场可编程门阵列 ( FPGA, Field Programmable Gate Array ) 实现。
本发明实施例还记载一种设备控制系统, 图 3 为本发明实施例记载的 设备控制系统的结构示意图, 如图 3所示, 所述设备控制系统 31包括: 服 务器 32、 家庭网关 33和通用红外控制器 34; 其中,
所述服务器 32, 配置为接收用户终端发送的账户信息、 设备标识及设 备控制指令; 获取与所述设备标识对应的通用红外控制器 34标识、 以及与 所述设备控制指令对应的红外脉冲参数; 通过与所述账户信息对应的家庭 网关 33,将所述红外脉冲参数发送给所述通用红外控制器 34标识对应的通 用红外控制器 34;
所述家庭网关 33, 配置为接收所述服务器 32发送的通用红外控制器 34标识、 以及红外脉冲参数, 并将所述红外脉冲参数发送给所述通用红外 控制器 34标对应的通用红外控制器 34;
所述通用红外控制器 34,配置为根据所述家庭网关 33发送的所述红外 脉冲参数生成红外脉冲指令, 并将所生成的红外脉冲指令发送给所述设备 标识对应的设备, 以使所述设备执行操作。
作为一个实施方式, 所述服务器 32, 还配置为接收用户终端发送的设 备控制信息;
解析所述设备控制信息, 得到所述账户信息、 设备标识、 以及设备控 制指令。
作为一个实施方式, 所述服务器 32, 还配置为接收所述用户终端发送 的账户信息;
将与所述账户信息对应的设备标识、 以及设备控制指令发送给所述用 户终端, 以供用户终端确定目标设备对应的设备标识、 以及需要目标设备 执行的设备控制指令;
接收所述用户终端发送的目标设备的设备标识、 以及设备控制指令。 作为一个实施方式, 所述服务器 32, 还配置为对所述家庭网关进行注 册, 存储所述账户信息与所述家庭网关的对应关系;
接收所述家庭网关发送的与所述家庭网关绑定的通用红外控制器标 识、 设备标识、 以及设备的属性信息;
根据所述账户信息与所述家庭网关的对应关系, 以及与所述家庭网关 绑定的设备标识及设备的属性信息, 确定与所述账户信息对应的设备标识、 以及设备的属性信息。
作为一个实施方式, 所述服务器 32, 还配置为在接收用户终端发送的 账户信息、 设备标识及设备控制指令之前, 对所述设备进行注册, 根据所 述设备的属性信息, 存储所述设备的设备控制指令、 以及与所述设备控制 指令对应的红外脉冲参数。
作为一个实施方式, 所述服务器 32, 还配置为在接收所述用户终端发 送的设备的属性信息、 以及设备控制指令;
通过家庭网关从所述通用红外控制器获取红外脉冲参数, 所述红外脉 冲参数, 由所述通用红外控制器根据与所述设备控制指令对应的红外脉冲 指令生成, 所述红外脉冲指令, 由所述通用红外控制器从红外控制遥控获 取;
存储所述设备的属性信息、 设备控制指令、 以及与设备控制指令对应 的红外脉冲参数。
作为一个实施方式, 所述服务器 32, 还配置为在接收用户终端发送的 设备的属性信息、 以及设备控制指令之前, 接收所述用户终端发送的设备 控制指令自定义请求;
将存储的设备控制指令发送给所述用户终端, 以供所述用户终端根据 所述设备控制指令、 以及用户的操作、 确定用户自定义的设备控制指令。
作为一个实施方式, 所述设备的属性信息包括所述设备的类型、 所述 设备的生产厂商、 以及所述设备的型号。
作为一个实施方式, 所述家庭网关 33, 还配置为绑定通用红外控制器 34标识、 设备标识、 以及设备的属性信息; 向所述服务器 32发送与所述家 庭网关 33绑定的通用红外控制器 34标识、 设备标识、 以及设备的属性信 息。
作为一个实施方式, 所述家庭网关 33, 还配置为将从所述通用红外控 制器 34获取的红外脉冲参数发送给所述服务器 32。
服务器 32 与家庭网关 33 之间可以通过客户端 /服务器 (C/S, Client/Server )架构方式、 通过超文本传输协议( HTTP, HyperText Transfer Protocol ) 方式、 或通用分组无线服务技术(GPRS, General Packet Radio Service ) 方式建立通信连接, 基于服务器 32与家庭网关 33制定的私有协 议进行消息交互。
通用红外控制器 34可以在传输控制协议 /网际协议 ( TCP/IP )基础上建 立应用层双向通信的私有协议, 与家庭网关 33进行通信。
作为一个实施方式,所述设备控制系统 31还包括:红外控制遥控器(图 4 中未示出), 配置为将与设备控制指令对应的红外脉冲指令发送给所述通 用红外控制器 34;
所述通用红外控制器 34, 还配置为根据接收到的红外脉冲指令生成红 外脉冲参数, 并发送给所述家庭网关 33。
所述家庭网关 33可以使用 433MHZ频段将所述红外脉冲参数发送给通 用红外控制器 34; 通用红外控制器 34可以使用 38KHZ频段, 将红外脉冲 指令发送给目标设备。
图 4 为本发明实施例中服务器对家庭网关进行注册的流程图, 如图 4 所示, 包括以下步骤:
步骤 S401, 服务器接收家庭网关发送的注册请求。
当新用户需要对设备进行远程控制时, 需要向家庭网关发起注册, 将 将新用户的账户信息发送至家庭网关, 并由家庭网关向服务器发送注册请 求, 家庭网关发送的注册请求中携带有新用户的账户信息。
步骤 S402, 判断对家庭网关的鉴权是否通过; 如果鉴权通过, 进入步 骤 S403 ; 否则进入步骤 S405。
服务器收到家庭网关的注册请求, 根据注册请求中携带的账户信息, 对家庭网关进行鉴权。
步骤 S403, 存储账户信息与家庭网关的对应关系。
步骤 S403中, 还可以根据所存储的对应关系、 以及从家庭网关获取的 与家庭网关绑定的通用红外控制器标识、 设备标识、 以及设备的属性信息, 确定新用户的账户信息与设备标识的对应关系, 以及新用户的账户信息与 设备属性信息之间的对应关系。
步骤 S404, 服务器发送注册成功响应给家庭网关。
步骤 S405, 服务器发送注册失败响应给家庭网关。
图 5为本发明实施例中家庭网关与通用红外控制器进行绑定的流程图, 如图 5所示, 包括以下步骤:
步骤 S501, 家庭网关向通用红外控制器发送对码消息。
家庭网关根据用户通过用户终端发送的红外控制器标识, 并向红外控 制器标识向对应的通用红外控制器发送对码消息。
步骤 S502, 通用红外控制器接收到家庭网关发送的对码消息后, 进行 对码。
在此步骤中, 通用红外控制器根据接收到的对码消息进行对码, 以判 断发送对码消息的家庭网关是否为与所述通用红外控制器预关联的家庭网 关。
步骤 S503, 通用红外控制器向家庭网关发送对码结果。
如果对码不成功, 则可以结束此次绑定过程; 如果对码成功, 则在对 码反馈信息中携带通用红外控制器所控制设备的设备标识、 以及红外控制 器所控制设备的属性信息。
步骤 S504, 家庭网关绑定通用红外控制器标识、 设备标识、 以及设备 的属性信息。
即家庭网关建立家庭网关自身与通用红外控制器标识、 设备标识及设 备的属性信息的对应关系。
步骤 S505, 家庭网关将所述通用红外控制器标识、 设备标识及设备的 属性信息发送给服务器。
步骤 S506, 服务器保存所述通用红外控制器标识、 设备标识及设备的 属性信息。
即服务器保存家庭网关与通用红外控制器标识、 设备标识以及设备的 属性信息的对应关系。
步骤 S507, 服务器向家庭网关发送反馈信息。
反馈信息用于确认已绑定家庭网关与通用红外控制器, 即保存家庭网 关与通用红外控制器标识、 设备标识以及设备的属性信息的对应关系。
下面以用户通过手机发送短信的方式进行远程设备控制为例, 对本发 明实施例记载的技术方案进行说明, 图 6 为本发明实施例中设备控制的实 现流程图一, 如图 6所示, 包括以下步骤:
步骤 S601, 手机(对应用户终端)将设备控制短信发送至服务器。 步骤 S602, 服务器解析收到的设备控制短信, 获取账户信息、 设备标 识及设备控制指令。
步骤 S603, 服务器获取与设备标识对应的通用红外控制器标识、 以及 与设备控制指令对应的红外脉冲参数。
步骤 S604, 服务器将通用红外控制器标识、 以及与设备控制指令对应 的红外脉冲参数, 发送给与账户信息对应的家庭网关。
步骤 S605, 家庭网关使用 433MHZ频段, 将接收到的红外脉冲参数发 送给通用红外控制器标识对应的通用红外控制器。
步骤 S606, 家庭网关向服务器返回响应消息。
家庭网关将红外脉冲参数发送给通用红外控制器后, 向服务器返回响 应消息。
步骤 S607, 服务器收到家庭网关发送的返回响应后, 向用户手机返回 信息发送成功短信。
步骤 S608, 通用红外控制器根据红外脉冲参数生成红外脉冲指令。 步骤 S609,通用红外控制器使用 38KHZ频段,将红外脉冲指令发送给 目标设备。
步骤 S610, 目标设备根据执行所接收的红外脉冲指令。
如此, 实现了通过发送短信方式对设备的远程控制。
下面对釆用网络( Web )方式或无线应用协议( WAP, Wireless Application Protocol )方式进行远程控制为例, 对本发明实施例记载的技术方案进行说 明, 图 7为本发明实施例中设备控制的实现流程图二, 如图 7所示, 包括 以下步骤:
步骤 S701, 用户终端将账户信息发送至服务器。
步骤 S702, 服务器将与账户信息对应的设备标识、 以及设备控制指令 发送至用户终端。 步骤 S703, 用户终端将目标设备的设备标识、 以及需要目标设备执行 的设备控制指令, 发送至服务器
用户终端用户选择的需要进行控制设备即目标设备的标识、 以及需要 目标设备执行的设备控制指令, 并发送至服务器。
步骤 S704, 服务器获取与设备标识对应的通用红外控制器的标识(即 通用红外控制器的标识)、 以及与设备控制指令对应的红外脉冲参数。
步骤 S705, 服务器将通用红外控制器标识、 以及与设备控制指令对应 的红外脉冲参数, 发送给与账户信息对应的家庭网关。
步骤 S706, 家庭网关使用 433MHZ频段, 将接收到的红外脉冲参数发 送给通用红外控制器标识对应的通用红外控制器。
步骤 S707, 家庭网关将红外脉冲参数发送给通用红外控制器后, 向服 务器返回响应消息。
步骤 S708, 服务器收到家庭网关发送的返回响应后, 向用户终端返回 信息发送成功消息。
步骤 S709, 通用红外控制器根据红外脉冲参数生成红外脉冲指令。 步骤 S710,通用红外控制器使用 38KHZ将红外脉冲指令发送给对应的 设备。
步骤 S711, 目标设备执行所接收的红外脉冲指令。
如此, 实现了通过发送短信方式对设备的远程控制。
下面以将某一设备设置为远程控制的目标设备的处理为例, 对本发明 实施例记载的技术方案进行说明, 图 8 为本发明实施例中设备控制的实现 流程图三, 如图 8所示, 包括以下步骤:
步骤 S801, 通用红外控制器进入学习模式。
通用红外控制器处于学习模式时, 可以接收红外控制遥控器发送的红 外脉冲指令, 并解析为对应的红外脉冲参数。 步骤 S802, 用户终端将账户信息发送至服务器。
用户需要对设备进行远程控制时, 通过用户终端发送账户信息, 以获 取目标设备的设备标识和设备控制指令。
步骤 S803, 服务器将与账户信息对应的设备标识、 以及设备控制指令 发送至用户终端。
步骤 S804, 用户终端将目标设备的属性信息及自定义设备控制指令发 送至服务器
所述目标设备为用户期望远程控制的设备, 当用户发现用户终端接收 到的设备标识及设备控制指令中缺少针对目标设备控制指令时, 用户触发 用户终端将目标设备的属性信息、 以及自定义的目标设备控制指令发送至 服务器。
步骤 S805, 服务器向与账户信息 (步骤 S802所接收的账户信息)对应 的家庭网关发送红外脉冲参数获取请求。
服务器接收到用户终端发送的目标设备的属性信息、 以及自定义目标 设备控制指令后, 向与账户信息对应的家庭网关发送红外脉冲参数获取请 求。
步骤 S806, 家庭网关将红外脉冲参数获取请求发送给对应的通用红外 控制器。
步骤 S807, 通用红外控制器提示用户操作红外控制遥控器输入红外脉 冲指令, 例如通用红外控制器接收到红外脉冲参数请求后, 发出蜂鸣, 提 示用户操作红外控制遥控器输入红外脉冲指令。
步骤 S808, 红外控制遥控器将红外脉冲指令发送至通用红外控制器, 红外控制遥控器所发送的红外脉冲指令与用户自定义的设备控制指令对 应。
步骤 S809, 通用红外控制器接收红外脉冲指令, 解码生成红外脉冲参 数。
步骤 S810, 通用红外控制器将红外脉冲参数发送至家庭网关。
步骤 S811, 家庭网关将红外脉冲参数发送至服务器。
步骤 S812, 服务器存储红外脉冲参数。
步骤 S812之后, 由于服务器中已经存储了设备(以设备标识表征 )对 应的通用红外控制器标识、 以及设备支持的设备控制指令对应的红外脉冲 参数; 因此, 步骤 812之后, 可以通过图 6或图 7所示的步骤对设备进行 远程控制, 这里不再赘述。
本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、 或计算机程序产品。 因此, 本发明可釆用硬件实施例、 软件实施例、 或结 合软件和硬件方面的实施例的形式。 而且, 本发明可釆用在一个或多个其 中包含有计算机可用程序代码的计算机可用存储介质 (包括但不限于磁盘 存储器和光学存储器等 )上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、 设备(系统)、 和计算机程序 产品的流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流程 图和 /或方框图中的每一流程和 /或方框、以及流程图和 /或方框图中的流程和 /或方框的结合。 可提供这些计算机程序指令到通用计算机、 专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器, 使得 通过计算机或其他可编程数据处理设备的处理器执行的指令产生配置为实 现在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的 功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理 设备以特定方式工作的计算机可读存储器中, 使得存储在该计算机可读存 储器中的指令产生包括指令装置的制造品, 该指令装置实现在流程图一个 流程或多个流程和 /或方框图一个方框或多个方框中指定的功能。 这些计算机程序指令也可装载到计算机或其他可编程数据处理设备 上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机 实现的处理, 从而在计算机或其他可编程设备上执行的指令提供配置为实 现在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的 功能的步骤。
以上所述仅是本发明的优选实施方式, 应当指出, 对于本技术领域的 普通技术人员来说, 在不脱离本发明原理的前提下, 还可以做出若干改进 和润饰, 这些改进和润饰也应视为本发明的保护范围。

Claims

权利要求书
1. 一种设备控制方法, 包括:
接收用户终端发送的账户信息、 设备标识及设备控制指令;
获取与所述设备标识对应的通用红外控制器标识、 以及与所述设备控 制指令对应的红外脉冲参数;
通过与所述账户信息对应的家庭网关, 将所述红外脉冲参数发送给所 述通用红外控制器标识对应的通用红外控制器, 所述红外脉冲参数供所述 通用红外控制器生成红外脉冲指令, 所述红外脉冲指令用于控制与所述设 备标识对应的设备执行相应的操作。
2. 如权利要求 1所述的方法, 其中, 所述接收用户终端发送的账户信 息、 设备标识及设备控制指令, 包括:
接收用户终端发送的设备控制信息;
解析所述设备控制信息, 得到所述账户信息、 设备标识、 以及设备控 制指令。
3. 如权利要求 1所述的方法, 其中, 所述接收用户终端发送的账户信 息、 设备标识及设备控制指令, 包括:
接收所述用户终端发送的账户信息;
将与所述账户信息对应的设备标识、 以及设备控制指令发送给所述用 户终端, 以供用户终端确定目标设备对应的设备标识、 以及需要目标设备 执行的设备控制指令;
接收所述用户终端发送的目标设备的设备标识、 以及设备控制指令。
4. 如权利要求 1所述的方法, 其中, 所述接收用户终端发送的账户信 息、 设备标识及设备控制指令之前, 所述方法还包括:
对所述家庭网关进行注册, 存储所述账户信息与所述家庭网关的对应 关系; 接收所述家庭网关发送的与所述家庭网关绑定的通用红外控制器标 识、 设备标识、 以及设备的属性信息;
根据所述账户信息与所述家庭网关的对应关系, 以及与所述家庭网关 绑定的设备标识及设备的属性信息, 确定与所述账户信息对应的设备标识、 以及设备的属性信息。
5. 如权利要求 1至 4任一项所述的方法, 其中, 所述接收用户终端发 送的账户信息、 设备标识及设备控制指令之前, 所述方法还包括:
对所述设备进行注册, 根据所述设备的属性信息, 存储所述设备的设 备控制指令、 以及与所述设备控制指令对应的红外脉冲参数。
6. 如权利要求 5所述的方法, 其中, 所述对所述设备进行注册, 根据 所述设备的属性信息, 存储所述设备的设备控制指令、 以及与所述设备控 制指令对应的红外脉冲参数, 包括:
接收所述用户终端发送的设备的属性信息、 以及设备控制指令; 通过家庭网关从所述通用红外控制器获取红外脉冲参数, 所述红外脉 冲参数, 由所述通用红外控制器根据与所述设备控制指令对应的红外脉冲 指令生成, 所述红外脉冲指令, 由所述通用红外控制器从红外控制遥控获 取;
存储所述设备的属性信息、 设备控制指令、 以及与设备控制指令对应 的红外脉冲参数。
7. 如权利要求 6所述的方法, 其中, 所述接收用户终端发送的设备的 属性信息、 以及设备控制指令之前, 所述方法还包括:
接收所述用户终端发送的设备控制指令自定义请求;
将存储的设备控制指令发送给所述用户终端, 以供所述用户终端根据 所述设备控制指令、 以及用户的操作、 确定用户自定义的设备控制指令。
8. 如权利要求 6所述的方法, 其中, 所述设备的属性信息包括所述设 备的类型、 所述设备的生产厂商、 以及所述设备的型号。
9. 一种服务器, 包括:
第一接收模块, 配置为接收用户终端发送的账户信息、 设备标识及设 备控制指令;
第一获取模块, 配置为获取与所述设备标识对应的通用红外控制器标 识、 以及与所述设备控制指令对应的红外脉冲参数;
第一发送模块, 配置为通过与所述账户信息对应的家庭网关, 将所述 红外脉冲参数发送给所述通用红外控制器标识对应的通用红外控制器, 所 述红外脉冲参数供所述通用红外控制器生成红外脉冲指令, 所述红外脉冲 指令用于控制与所述设备标识对应的设备执行相应的操作。
10. 如权利要求 9所述的服务器, 其中, 所述第一接收模块包括: 第一接收单元, 配置为接收所述用户终端发送的设备控制信息; 第一解析单元, 配置为解析所述设备控制信息, 得到所述账户信息、 设备标识、 以及设备控制指令。
11. 如权利要求 9所述的服务器, 其中, 所述第一接收模块包括: 第二接收单元, 配置为接收所述用户终端发送的账户信息;
第一发送单元, 配置为将与所述账户信息对应的设备标识、 以及设备 控制指令发送给所述用户终端, 以供用户终端确定目标设备对应的设备标 识、 以及需要目标设备执行的设备控制指令;
第三接收单元, 配置为接收所述用户终端发送的目标设备的设备标识、 以及设备控制指令。
12. 如权利要求 9所述的服务器, 其中, 所述服务器还包括: 第一注册模块, 配置为对家庭网关进行注册, 存储所述账户信息与所 述家庭网关的对应关系;
第二接收模块, 配置为接收所述家庭网关发送的与所述家庭网关绑定 的通用红外控制器标识、 设备标识、 以及设备的属性信息。
13. 如权利要求 9至 12任一项所述的服务器, 其中, 所述服务器还包 括:
第二注册模块, 配置为对所述设备进行注册, 根据所述设备的属性信 息, 存储所述设备的设备控制指令、 以及与所述设备控制指令对应的红外 脉冲参数。
14. 如权利要求 13所述的服务器, 其中, 所述第二注册模块包括: 第四接收单元, 配置为接收所述用户终端发送的设备的属性信息、 以 及设备控制指令;
第五接收单元, 配置为通过家庭网关从所述通用红外控制器获取红外 脉冲参数, 所获取的红外脉冲参数, 由所述通用红外控制器根据与所述设 备控制指令对应的红外脉冲指令生成;
存储单元, 配置为存储所述设备的属性信息、 设备控制指令、 以及与 设备控制指令对应的红外脉冲参数。
15. 如权利要求 13所述的服务器, 其中, 所述第二注册模块还包括: 第六接收单元, 配置为接收所述用户终端发送的设备控制指令自定义 请求;
第二发送单元, 配置为将存储的设备控制指令发送给所述用户终端, 以供所述用户终端根据所述设备控制指令、 以及用户的操作、 确定用户自 定义的设备控制指令。
16. 一种设备控制系统, 包括: 服务器、 家庭网关和通用红外控制器; 其中,
所述服务器, 配置为接收用户终端发送的账户信息、 设备标识及设备 控制指令; 获取与所述设备标识对应的通用红外控制器标识、 以及与所述 设备控制指令对应的红外脉冲参数; 通过与所述账户信息对应的家庭网关, 将所述红外脉冲参数发送给所述通用红外控制器标识对应的通用红外控制 器;
所述家庭网关, 配置为接收所述服务器发送的通用红外控制器标识、 以及红外脉冲参数, 并将所述红外脉冲参数发送给所述通用红外控制器标 对应的通用红外控制器;
所述通用红外控制器, 配置为根据所述家庭网关发送的所述红外脉冲 参数生成红外脉冲指令, 并将所生成的红外脉冲指令发送给所述设备标识 对应的设备, 以使所述设备执行操作。
17. 如权利要求 16所述的系统, 其中,
所述家庭网关, 还配置为绑定通用红外控制器标识、 设备标识、 以及 设备的属性信息; 向所述服务器发送与所述家庭网关绑定的通用红外控制 器标识、 设备标识、 以及设备的属性信息。
18. 如权利要求 16所述的系统, 其中,
所述家庭网关, 还配置为将从所述通用红外控制器获取的红外脉冲参 数发送给所述服务器。
19. 如权利要求 16至 18所述的系统, 其中, 所述系统还包括: 红外控制遥控器, 配置为将与设备控制指令对应的红外脉冲指令发送 给所述通用红外控制器;
所述通用红外控制器, 还配置为根据接收到的红外脉冲指令生成红外 脉冲参数, 并发送给所述家庭网关。
20. 一种计算机存储介质, 所述计算机存储介质中存储有计算机可执 行指令, 所述计算机可执行指令用于执行权利要求 1至 8任一项所述的设 备控制方法。
PCT/CN2014/076025 2013-12-12 2014-04-23 设备控制方法、服务器、系统及计算机存储介质 WO2014187221A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US15/100,340 US9836958B2 (en) 2013-12-12 2014-04-23 Device control method, server, system and computer storage medium
EP14800787.5A EP3065013B1 (en) 2013-12-12 2014-04-23 Device control method, server, system and computer storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310681181.4 2013-12-12
CN201310681181.4A CN104714421A (zh) 2013-12-12 2013-12-12 一种红外家居远程控制方法、服务器及系统

Publications (1)

Publication Number Publication Date
WO2014187221A1 true WO2014187221A1 (zh) 2014-11-27

Family

ID=51932812

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/076025 WO2014187221A1 (zh) 2013-12-12 2014-04-23 设备控制方法、服务器、系统及计算机存储介质

Country Status (4)

Country Link
US (1) US9836958B2 (zh)
EP (1) EP3065013B1 (zh)
CN (1) CN104714421A (zh)
WO (1) WO2014187221A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812875A (zh) * 2016-03-18 2016-07-27 深圳Tcl数字技术有限公司 红外自适应遥控方法和装置
CN107294793B (zh) * 2017-07-26 2021-04-02 北京小米移动软件有限公司 智能家居设备的替换方法、装置、设备及存储介质
CN109946980B (zh) * 2017-12-20 2022-05-13 中国电信股份有限公司 智能设备管理方法、平台、系统和计算机可读存储介质
CN111830836A (zh) * 2019-04-17 2020-10-27 百度在线网络技术(北京)有限公司 家电设备的控制方法、装置、音箱及计算机存储介质
CN112988254B (zh) * 2019-11-29 2023-08-22 腾讯科技(深圳)有限公司 管理硬件设备的方法、装置和设备
CN113757941A (zh) * 2021-09-16 2021-12-07 广东省智能家电研究院 一种空调通用识别电控方法、装置、设备及存储介质
CN115134391A (zh) * 2022-05-30 2022-09-30 青岛海尔智慧生活电器有限公司 非物联网设备的设备控制方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030038849A1 (en) * 2001-07-10 2003-02-27 Nortel Networks Limited System and method for remotely interfacing with a plurality of electronic devices
CN101378341A (zh) * 2007-08-31 2009-03-04 海尔集团公司 一种协议转换器及家庭网络系统
CN102420784A (zh) * 2011-10-13 2012-04-18 中国电力科学研究院 一种家庭网关、智能系统及其能源控制方法
CN103237058A (zh) * 2013-04-02 2013-08-07 南京物联传感技术有限公司 红外控制的学习方法
CN103379154A (zh) * 2012-04-23 2013-10-30 中兴通讯股份有限公司 家电控制方法、云端系统、家庭网关总控器和家电控制器

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105374192A (zh) 2009-09-01 2016-03-02 Lg电子株式会社 用于控制外部装置及其远程控制器的方法
US8885552B2 (en) 2009-12-11 2014-11-11 At&T Intellectual Property I, L.P. Remote control via local area network
US9294800B2 (en) 2010-05-10 2016-03-22 Comcast Cable Communications, Llc Intelligent remote control
CN102130802A (zh) * 2010-08-23 2011-07-20 安徽省皖江质检科技有限公司 物联网家电管理系统及其管理方法
ES2388096B1 (es) * 2010-12-28 2013-05-08 Telefónica, S.A. Sistema de control remoto por infrarrojos.

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030038849A1 (en) * 2001-07-10 2003-02-27 Nortel Networks Limited System and method for remotely interfacing with a plurality of electronic devices
CN101378341A (zh) * 2007-08-31 2009-03-04 海尔集团公司 一种协议转换器及家庭网络系统
CN102420784A (zh) * 2011-10-13 2012-04-18 中国电力科学研究院 一种家庭网关、智能系统及其能源控制方法
CN103379154A (zh) * 2012-04-23 2013-10-30 中兴通讯股份有限公司 家电控制方法、云端系统、家庭网关总控器和家电控制器
CN103237058A (zh) * 2013-04-02 2013-08-07 南京物联传感技术有限公司 红外控制的学习方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3065013A4 *

Also Published As

Publication number Publication date
US20160300483A1 (en) 2016-10-13
EP3065013B1 (en) 2017-09-27
CN104714421A (zh) 2015-06-17
EP3065013A1 (en) 2016-09-07
EP3065013A4 (en) 2016-11-23
US9836958B2 (en) 2017-12-05

Similar Documents

Publication Publication Date Title
WO2014187221A1 (zh) 设备控制方法、服务器、系统及计算机存储介质
KR102010295B1 (ko) 가전기기 관리 시스템 및 이의 푸시 서비스 방법
EP3314977B1 (en) Systems, methods, and apparatus to configure embedded devices
WO2014187240A1 (zh) 一种家电远程控制方法、服务器及家电远程控制系统
WO2015165350A1 (zh) 智能电视移动端切换、电视端信息获取方法和装置、系统
JP2002186058A (ja) 家電機器ネットワーク制御装置及び方法
WO2021258777A1 (zh) 控制方法、控制装置和云端控制系统
KR102312994B1 (ko) 홈 네트워크 서비스를 제공하기 위한 장치 및 그 방법
US11462067B2 (en) In-vehicle transmitter training
WO2016058368A1 (zh) 家电的控制方法、控制装置及家庭数据终端
JP4698129B2 (ja) 制御装置
CN104122999A (zh) 智能设备交互方法及系统
US10489055B2 (en) Z-wave controller shift in thermostats
US9923769B2 (en) Methods and systems for verifying installation of a device
KR101989828B1 (ko) 휴대용 단말기를 이용한 홈 네트워크 서비스 제공 시스템
TWI571132B (zh) Connection setting device and method
JP6694461B2 (ja) 接続ルータ判定方法、および、機器制御システム
EP3096505B1 (en) Method and apparatus for processing interactions between devices
CN105376336A (zh) 一种基于二维码绑定ip的地暖设备匹配方法
JP2002278902A (ja) 電子メールを利用した機器制御システム
WO2021189207A1 (zh) 信息发送的方法、装置、设备及存储介质
JP2012182852A (ja) 遠隔制御装置
WO2017031830A1 (zh) 用户域的运行方法、用户域的运行系统和终端设备
JP7308118B2 (ja) ネットワークシステム、情報処理方法、通信端末、およびプログラム
WO2016130140A1 (en) Network device registration

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14800787

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15100340

Country of ref document: US

REEP Request for entry into the european phase

Ref document number: 2014800787

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014800787

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE