CN110136424B - Equipment control method and equipment - Google Patents

Equipment control method and equipment Download PDF

Info

Publication number
CN110136424B
CN110136424B CN201910302587.4A CN201910302587A CN110136424B CN 110136424 B CN110136424 B CN 110136424B CN 201910302587 A CN201910302587 A CN 201910302587A CN 110136424 B CN110136424 B CN 110136424B
Authority
CN
China
Prior art keywords
infrared emission
emission power
controlled
equipment
infrared
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910302587.4A
Other languages
Chinese (zh)
Other versions
CN110136424A (en
Inventor
董明珠
李绍斌
宋德超
陈道远
周宝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201910302587.4A priority Critical patent/CN110136424B/en
Publication of CN110136424A publication Critical patent/CN110136424A/en
Application granted granted Critical
Publication of CN110136424B publication Critical patent/CN110136424B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

Abstract

The invention provides a device control method and device, which are used for solving the problems that in the prior art, a plurality of devices of the same type are arranged in the same area, the reachable range of a control command is fixed, the user requirements cannot be met, manual control needs to be carried out on the devices of the same type manually, and the operation complexity is increased. According to the method, a first device adjusts infrared emission power according to a received infrared emission power parameter corresponding to a controlled device; and the first equipment transmits an infrared code according to the adjusted infrared transmitting power to control the corresponding controlled equipment, wherein the infrared code is obtained by converting a control command for controlling the controlled equipment. The infrared transmitting power for transmitting the infrared code can be adjusted according to the infrared transmitting power parameter, so that the reachable range of the control command can be adjusted according to the infrared transmitting power of the infrared code, a user does not need to manually control the same type of equipment, and the operation complexity is reduced.

Description

Equipment control method and equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for controlling an apparatus.
Background
Household appliances, electronic devices and the like have become an indispensable part in life, and conventional household appliances are provided with a remote controller and are controlled by infrared rays emitted by the remote controller. Generally, only one household appliance of the same type is installed or placed at home, so that the command sent by the remote controller can not interfere with other household appliances, each type of household appliance corresponds to one infrared code, and the infrared codes of the household appliances of different types are different.
With the expansion of living places, multiple home appliances of the same type may be placed in the same area, for example, multiple air conditioners of the same type are installed in a large shopping mall. When the air conditioner is controlled according to the remote controller matched with the air conditioner, the remote controller sends a control command, the air conditioners which are within the reach range of the control command and matched with the control command sent by the remote controller respond, and at the moment, a plurality of air conditioners of the same type in the same area respond, wherein some air conditioners of the same type which do not need to respond do blind response, so that manual control needs to be carried out on the air conditioners of the same type which do not need to respond manually; or the same type of air conditioners in the same area are not within the control command reach range, but the user wants to control the same type of air conditioners which are not within the control command reach range, and manual control needs to be performed on the same type of air conditioners which are not within the control command reach range manually.
In summary, when the device control is implemented, if a plurality of devices of the same type are arranged in the same area, the reachable range of the control command is fixed, so that the user requirements cannot be met, manual control needs to be manually performed on the devices of the same type, and the operation complexity is increased.
Disclosure of Invention
The invention provides a device control method and device, which are used for solving the problems that in the prior art, a plurality of devices of the same type are arranged in the same area, the reachable range of a control command is fixed, the user requirements cannot be met, manual control needs to be carried out on the devices of the same type manually, and the operation complexity is increased.
In a first aspect, an embodiment of the present invention provides a device control method, where the method includes:
the first equipment adjusts the infrared emission power according to the received infrared emission power parameter corresponding to the controlled equipment;
and the first equipment transmits an infrared code according to the adjusted infrared transmitting power so as to control the corresponding controlled equipment, wherein the infrared code is obtained by converting a control command for controlling the controlled equipment.
According to the method, the first device adjusts the infrared emission power according to the received infrared emission power parameter corresponding to the controlled device and emits the infrared code according to the adjusted infrared emission power to control the corresponding controlled device, the infrared emission power for emitting the infrared code can be adjusted according to the infrared emission power parameter, so that the reachable range of the control command can be adjusted according to the infrared emission power of the infrared code, when the infrared code emitted at the current infrared emission power cannot meet the requirements of a user, the infrared emission power of the infrared code can be continuously adjusted, manual control by the user is not needed, and the operation complexity is reduced.
In a possible implementation manner, when the first device adjusts the infrared emission power according to the received infrared emission power parameter corresponding to the controlled device:
the first equipment adjusts the infrared emission power according to the infrared emission power parameter in the received setting instruction; or
And the first equipment adjusts the infrared emission power according to the infrared emission power parameter in the received adjusting instruction.
According to the method, when the first equipment adjusts the infrared emission power according to the infrared emission power parameter, the infrared emission power is adjusted according to the infrared emission power parameter in the setting instruction, or the infrared emission power parameter is adjusted according to the infrared emission power parameter in the adjusting instruction, and the mode that the first equipment determines the infrared emission power parameter is definitely given, so that the infrared emission power for emitting the infrared code is more accurate, the same type of equipment in the area is accurately controlled, and the operation complexity is reduced.
In a possible implementation manner, before the first device adjusts the infrared emission power according to the infrared emission power parameter in the received setting instruction, the first device receives the setting instruction including the infrared emission power parameter corresponding to the controlled device and the control command for controlling the controlled device.
In a second aspect, an embodiment of the present invention provides a method for device control, where the method includes:
the second equipment determines the infrared emission power parameter corresponding to the controlled equipment according to the trigger instruction;
and the second equipment sends the infrared emission power parameter corresponding to the controlled equipment to the first equipment so that the first equipment can adjust the infrared emission power according to the infrared emission power parameter and then emit an infrared code, wherein the infrared code is obtained by converting a control command for controlling the controlled equipment by the first equipment.
According to the method, the second device determines the infrared emission power parameter corresponding to the controlled device according to the trigger instruction and sends the infrared emission power parameter to the first device, so that the first device adjusts the infrared emission power of the infrared code according to the infrared emission power parameter.
In a possible implementation manner, the sending, by the second device, the infrared transmission power parameter corresponding to the controlled device to the first device includes:
the second equipment sends a setting instruction containing an infrared emission power parameter corresponding to the controlled equipment and a control command for controlling the controlled equipment to the first equipment; or
And the second equipment sends an adjusting instruction containing the infrared emission power parameter corresponding to the controlled equipment to the first equipment.
According to the method, two modes of sending the infrared emission power parameter to the first equipment by the second equipment are provided, so that the first equipment can accurately receive the infrared emission power parameter, the infrared emission power for emitting the infrared code is determined according to the infrared emission power parameter, the determined infrared emission power is more accurate, the same type of equipment in the area is accurately controlled, and the operation complexity is reduced.
In a possible implementation manner, the second device determines the controlled device according to the trigger instruction;
the second equipment judges whether the second equipment stores a control command set for controlling the controlled equipment or not;
if the control command is stored, determining a control command for controlling the controlled equipment in the control command set according to the trigger command;
otherwise, acquiring a control command set for controlling the controlled equipment from the server according to the brand and the model of the controlled equipment, and determining a control command for controlling the controlled equipment from the acquired control command set according to the trigger instruction.
According to the method, the control command for controlling the controlled equipment is determined according to the trigger instruction and the brand and model of the controlled equipment, so that the determined control command for controlling the controlled equipment is more accurate.
In a third aspect, an embodiment of the present invention provides an apparatus controlled apparatus, where the apparatus includes: the processing unit comprises at least one processing unit and at least one storage unit, wherein the storage unit stores program codes, and when the program codes are executed by the processing unit, the processing unit is specifically used for:
adjusting the infrared emission power according to the received infrared emission power parameter corresponding to the controlled equipment;
and transmitting an infrared code according to the adjusted infrared transmitting power to control the corresponding controlled equipment, wherein the infrared code is obtained by converting a control command for controlling the controlled equipment.
In a fourth aspect, an embodiment of the present invention provides an apparatus controlled apparatus, where the apparatus includes: the processing unit comprises at least one processing unit and at least one storage unit, wherein the storage unit stores program codes, and when the program codes are executed by the processing unit, the processing unit is specifically used for:
determining an infrared emission power parameter corresponding to the controlled equipment according to the trigger instruction;
and sending the infrared emission power parameter corresponding to the controlled equipment to the first equipment so that the first equipment can adjust the infrared emission power according to the infrared emission power parameter and then emit an infrared code, wherein the infrared code is obtained by converting a control command for controlling the controlled equipment by the first equipment.
In a fifth aspect, an embodiment of the present invention provides an apparatus controlled apparatus, where the apparatus includes: the device comprises an adjusting module and a transmitting module;
the adjustment module is used for: adjusting the infrared emission power according to the received infrared emission power parameter corresponding to the controlled equipment;
the transmitting module is used for: and transmitting an infrared code according to the adjusted infrared transmitting power to control the corresponding controlled equipment, wherein the infrared code is obtained by converting a control command for controlling the controlled equipment.
In a sixth aspect, an embodiment of the present invention provides an apparatus controlled apparatus, where the apparatus includes: the device comprises a determining module and a sending module;
the determination module is to: determining an infrared emission power parameter corresponding to the controlled equipment according to the trigger instruction;
the sending module is used for: and sending the infrared emission power parameter corresponding to the controlled equipment to the first equipment so that the first equipment can adjust the infrared emission power according to the infrared emission power parameter and then emit an infrared code, wherein the infrared code is obtained by converting a control command for controlling the controlled equipment by the first equipment.
In a seventh aspect, the present invention also provides a computer storage medium having a computer program stored thereon, which when executed by a processing unit, performs the steps of the method of the first or second aspect.
In addition, for technical effects brought by any one implementation manner of the second aspect to the seventh aspect, reference may be made to technical effects brought by different implementation manners of the first aspect and the second aspect, and details are not described here.
These and other aspects of the invention are apparent from and will be elucidated with reference to the embodiments described hereinafter.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic diagram of a plurality of homogeneous devices present in an area;
FIG. 2 is a system architecture diagram of a device control according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a first apparatus control provided by an embodiment of the present invention;
FIG. 4 is a diagram illustrating a second apparatus control provided by an embodiment of the present invention;
FIG. 5 is a flowchart of an overall method for controlling a device according to an embodiment of the present invention;
fig. 6 is a diagram illustrating a structure of a first device controlled by the device according to the embodiment of the present invention;
fig. 7 is a diagram illustrating an apparatus structure controlled by a second apparatus according to an embodiment of the present invention;
fig. 8 is a diagram illustrating an apparatus structure controlled by a third apparatus according to an embodiment of the present invention;
fig. 9 is a diagram illustrating an apparatus structure controlled by a fourth apparatus according to an embodiment of the present invention;
fig. 10 is a flowchart of a first method for controlling a device according to an embodiment of the present invention;
fig. 11 is a flowchart of a second method for controlling a device according to an embodiment of the present invention.
Detailed Description
The application scenario described in the embodiment of the present invention is for more clearly illustrating the technical solution of the embodiment of the present invention, and does not form a limitation on the technical solution provided in the embodiment of the present invention, and it can be known by a person skilled in the art that with the occurrence of a new application scenario, the technical solution provided in the embodiment of the present invention is also applicable to similar technical problems. In the description of the present invention, the term "plurality" means two or more unless otherwise specified.
A plurality of devices of the same type may exist in places such as shopping malls, supermarkets, and stadiums, taking a stadium as an example, a plurality of air conditioners of the same type exist in the stadium and are distributed in corners or other positions of the stadium, as shown in fig. 1, which is a schematic diagram that a plurality of devices of the same type exist in one area, and the air conditioners in fig. 1 are air conditioners of the same type; since there are multiple air conditioners of the same type in one area, when one of the air conditioners (for example, air conditioner a in fig. 1) is controlled, all the air conditioners in the area respond, which results in waste of resources.
Based on the above scenario, an embodiment of the present invention provides an apparatus control method, in which a received control command is converted into an infrared code, the infrared code is transmitted by using set infrared transmission power to control an apparatus to be controlled, and the same type of apparatus in the same area is gradually controlled by changing the transmission range of the infrared code controlled by using the set infrared transmission power, so that the apparatus receiving the infrared code in the same area responds, and the same type of apparatus in the same area is prevented from responding completely, thereby saving resources.
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 2, a system structure diagram for controlling devices according to an embodiment of the present invention includes a first device 20, a second device 21:
the first device 20 is configured to: adjusting the infrared emission power according to the received infrared emission power parameter corresponding to the controlled equipment; and transmitting an infrared code according to the adjusted infrared transmitting power to control the corresponding controlled equipment, wherein the infrared code is obtained by converting a control command for controlling the controlled equipment.
The second device 21 is configured to: determining an infrared emission power parameter corresponding to the controlled equipment according to the trigger instruction; and sending the infrared emission power parameter corresponding to the controlled equipment to first equipment so that the first equipment can adjust the infrared emission power according to the infrared emission power parameter and then emit an infrared code, wherein the infrared code is obtained by converting a control command for controlling the controlled equipment by the first equipment.
According to the scheme, the first device adjusts the infrared emission power according to the received infrared emission power parameter corresponding to the controlled device, and emits the infrared code according to the adjusted infrared emission power so as to control the corresponding controlled device.
In the embodiment of the present invention, the first device includes at least one of a WiFi (wireless local area network) module, a bluetooth module, and a zigbee (wireless communication) module, and includes a plurality of diodes for the infrared emission module, and a mirror or a baffle may be further disposed at the diodes for the infrared emission module to control the infrared emission direction; the first device may be a smart jack;
the WiFi (wireless local area network) module, the Bluetooth module and the zigbee (wireless communication) module are mainly used for wirelessly connecting with the second equipment and the controlled equipment, receiving a control command which is sent by the second equipment and used for controlling the controlled equipment, and performing control command set transmission;
the mirror surface or the baffle can be used for selecting the diodes to control the infrared emission direction, for example, three diodes face to three directions, and one or two or three diodes can be selected to emit infrared codes by adding the baffle, so that the circular emission of the infrared codes, the fan-shaped emission of the infrared codes or the linear emission of the infrared codes can be realized.
The second device comprises at least one of a WiFi (wireless local area network) module, a Bluetooth module and a zigbee (wireless communication) module, and a touch module; the second device can be a mobile phone, a computer and other devices;
the WiFi (wireless local area network) module, the Bluetooth module and the zigbee (wireless communication) module are mainly used for being connected with the first equipment and sending a control command for controlling the controlled equipment to the first equipment; the touch control module is used for receiving a trigger instruction of a user.
The controlled equipment is equipment capable of receiving infrared codes, such as household appliances like air conditioners and televisions.
In this embodiment of the present invention, before the first device receives a control command sent by the second device for controlling a controlled device, the first device and the second device should be in the same network, so as to ensure that the transmission of the control command between the first device and the second device is possible; that is, after the first device and the second device are networked, the second device can send a control command for controlling the controlled device and an infrared emission power parameter corresponding to the controlled device to the first device; the first device can receive the control command for controlling the controlled device and the infrared emission power parameter corresponding to the controlled device, which are sent by the second device.
The controlled equipment, the infrared emission power parameter corresponding to the controlled equipment and the control command for controlling the controlled equipment are determined according to a trigger instruction of a user;
when a user determines that a certain device in the area needs to be controlled, a trigger instruction is sent to the second device; the trigger instruction may be a voice instruction (for example, a voice prompt turns on the air conditioning device a, at this time, it is determined that the controlled device is the air conditioning device a, and the control command for controlling the controlled device is on), and the trigger instruction may also be a touch instruction (for example, a second device is a mobile phone, the controlled device is selected by manually touching a page of the mobile phone, and a button for controlling the controlled device is further selected).
In the embodiment of the present invention, the control command for controlling the controlled device is determined according to the brand and the signal of the controlled device after the controlled device is determined by receiving the trigger instruction.
Firstly, the second equipment judges whether a control command set which is corresponding to the brand and the signal of the controlled equipment and is used for controlling the controlled equipment is stored in the second equipment;
and if the control command set corresponding to the controlled equipment and used for controlling the controlled equipment is stored, determining a control command used for controlling the controlled equipment in the control command set used for controlling the controlled equipment according to the received trigger instruction.
Wherein the control command set for controlling the controlled device includes control commands of all functions in the device; taking an air conditioner as an example, the functions of turning on/off, cooling/heating, adjusting air humidity, adjusting air cleanliness, adjusting air flow rate and the like of the air conditioner correspond to corresponding control commands. For example, if the control command corresponding to the turn-on is "000", the instruction corresponding to the turn-off is "111", and when it is determined that the trigger instruction is to turn on the air conditioner, it is determined that the control command for controlling the controlled device is "000" in the control command set for controlling the controlled device according to the trigger instruction.
If the control command set which is used for controlling the controlled equipment and corresponds to the controlled equipment is not stored in the server, sending a command for acquiring the control command set used for controlling the controlled equipment to the server according to the determined brand and model of the controlled equipment, so that the server determines the corresponding control command set used for controlling the controlled equipment in an infrared code library according to the brand and model of the controlled equipment and sends the determined control command set used for controlling the controlled equipment to the second equipment, wherein a code library calling mode is mainly adopted in the process;
and after receiving the control command set for controlling the controlled equipment returned by the server, the second equipment stores the control command set for controlling the controlled equipment, and determines a control command for controlling the controlled equipment in the control command set for controlling the controlled equipment according to a trigger instruction.
The storage of the acquired control command set for controlling the controlled device is to reduce the delay of calling a server and acquire the control command for controlling the controlled device more quickly.
In the embodiment of the present invention, after determining the control command for controlling the controlled device, when the second device sends the control command for controlling the controlled device to the first device, the second device sends the control command for controlling the controlled device and the infrared emission power parameter corresponding to the controlled device, which are carried in the setting instruction.
And after receiving a setting instruction sent by the second equipment, the first equipment determines infrared emission power according to the infrared emission power parameter corresponding to the controlled equipment in the setting instruction, converts a control command for controlling the controlled equipment in the setting instruction into an infrared code, and emits the infrared code according to the determined infrared emission power.
When the control command for controlling the controlled equipment is converted into the infrared code, 0 or 1 in the command is converted into a form of 38K pulse and low level duration for representation, and the infrared code is emitted through a diode of the infrared emission module.
It should be noted that the infrared emission power parameter corresponding to the controlled device in the setting instruction may also be preconfigured by the second device for multiple types of controlled devices. Specifically, one infrared emission power parameter may be set to correspond to one type of controlled device individually, or one infrared emission power parameter may correspond to a plurality of types of controlled devices. If the infrared emission power parameter is configured in advance for the controlled equipment, the infrared emission power parameter corresponding to the controlled equipment is determined while the second equipment determines the controlled equipment.
When the first device receives a control command for controlling the controlled device for the first time and transmits the infrared code converted by the control command for controlling the controlled device through a diode of the infrared transmission module, the infrared transmission power adjusted according to the infrared transmission power parameter in the setting instruction transmits the infrared code converted by the control command, and only the device capable of receiving the infrared code in the same type of device as the controlled device in the time zone responds.
The device capable of receiving the infrared code is in a controlled area which takes the first device as a center and takes a controlled distance determined according to the infrared emission power as a radius, and is the same device as the controlled device; it should be noted that the controlled distance is proportional to the infrared emission power.
Fig. 3 is a schematic diagram of a first device control provided in an embodiment of the present invention, taking infrared code circular transmission as an example; the device 1, the device 2, the device 3, the device 4, the device 5, the device 6, the device 7, the device 8, the device 9 and the controlled device are contained in the same area, the device 1, the device 2, the device 3, the device 4 and the controlled device are the same type of device, but only the device 1 is in the controlled area (circular area), so that only the device 1 can receive infrared emission power; although the devices 5 and 6 are also in the controlled area, the devices 5 and 6 do not respond because the devices 5 and 6 are not of the same type as the controlled device.
In the embodiment of the invention, after the device receives the infrared emission instruction, the device sends out a prompt tone to enable a user to determine the responded device and determine whether the infrared emission power needs to be adjusted according to the responded device.
When the infrared emission power needs to be adjusted, sending a re-triggering instruction to the second equipment, so that the second equipment determines an infrared emission power parameter according to the received triggering instruction, and sending an adjusting instruction containing the infrared emission power parameter to the first equipment;
further, the first device adjusts the current infrared transmitting power according to the power adjusting parameter in the received adjusting instruction, and transmits the infrared code according to the adjusted infrared transmitting power.
The triggering instruction sent again by the user may be a voice instruction (sending a power adjustment parameter to the second device in a voice form, for example, increasing a step length on the basis of the infrared emission power parameter, or directly adjusting the infrared emission power to a value), or a touch instruction (controlling the second device to send the power adjustment parameter in a touch form; taking the second device as a mobile phone for example, a function software for controlling the device exists in the mobile phone, an infrared emission power adjustment button is displayed on a page of the function software, and the infrared emission power is determined to be adjusted according to the user touch adjustment button).
Wherein, the condition of sending the trigger instruction again to the second device to adjust the infrared emission power parameter is as follows:
if equipment which does not need to be controlled exists at the edge of the controlled area, and the difference value between the distance between the equipment which needs to be controlled and the first equipment in the controlled area and the distance between the equipment which does not need to be controlled and the first equipment reaches a threshold value, determining that the infrared emission power needs to be adjusted (the infrared emission power is reduced), and sending a trigger instruction to the second equipment again at the moment so as to reduce the current infrared emission power parameter; or
The device needing to be controlled is not in the controlled area, the infrared emission power needs to be adjusted (the infrared emission power is adjusted to be larger) at the moment, and the triggering instruction is sent to the second device again at the moment so as to improve the current infrared emission power parameter.
Taking the increase of the infrared emission power as an example: fig. 4 is a schematic diagram of a second device control provided in the embodiment of the present invention;
the device 1, the device 2, the device 3, the device 4, the device 5, the device 6, the device 7, the device 8, the device 9 and the controlled device are in the same type, after the controlled device responds, the device 1 and the device 2 are determined to be required to be controlled, but the device 1 and the device 2 are not in a controlled area (a dotted circular area), at the moment, a trigger instruction is required to be sent to the second device to determine an infrared emission power adjustment parameter, an adjustment instruction containing the infrared emission power adjustment parameter is sent to the first device, after the first device receives the adjustment parameter, the current infrared emission power is adjusted, an infrared code is emitted according to the adjusted infrared emission power, if the device 1 and the device 2 respond, the adjustment is not required again, otherwise, the infrared emission power adjustment parameter is determined again according to the trigger instruction, and adjusting the infrared emission power according to the adjustment parameters, and transmitting an infrared code according to the adjusted infrared emission power until the equipment 1 and the equipment 2 respond.
In the embodiment of the invention, when the infrared code is not transmitted for the first time according to the infrared transmission power, the infrared code can be periodically transmitted or transmitted after receiving the control command again.
It should be noted that, in the embodiment of the present invention, when the second device sends the infrared emission power parameter for the first time, the control command for controlling the controlled device and the infrared emission power parameter corresponding to the controlled device may also be sent to the first device respectively;
if the first device receives a setting instruction containing an infrared emission power parameter corresponding to the controlled device before receiving the setting instruction containing a control command for controlling the controlled device, converting the infrared emission power parameter into an infrared code according to the infrared emission power parameter determined by the received infrared emission power parameter; or
If the first device does not receive the setting instruction containing the infrared emission power parameter corresponding to the controlled device before receiving the setting instruction containing the control command for controlling the controlled device, determining that the infrared emission power parameter in the setting instruction containing the infrared emission power parameter corresponding to the controlled device is the first infrared emission power parameter after the setting instruction containing the control command for the controlled device, and transmitting the infrared code according to the infrared emission power adjusted by the determined first infrared emission power parameter.
In this embodiment of the present invention, the second device may further send, to the first device, only a setting instruction including a control command for controlling the controlled device, and does not send, to the first device, a setting instruction including an infrared emission power parameter corresponding to the controlled device. For such a situation, an initial infrared emission power parameter needs to be set in the first device, and when a setting instruction of a control command for controlling the controlled device is received for the first time, an infrared code is emitted according to the infrared emission power determined by the initial infrared emission power parameter set by the first device, the initial infrared emission power parameter set in the first device is irrelevant to the controlled device and is only set for the first device, that is, when the first device controls any controlled device, the infrared code is emitted at the infrared emission power determined by the initial infrared emission power parameter before the adjustment instruction is not received. In this case, the second device knows the initial infrared transmission power parameter of the first device for subsequent determination of the infrared transmission power parameter in the adjustment instruction.
The embodiment of the invention is also suitable for a scene that the second equipment is connected with a plurality of first equipment;
when the second equipment is connected with a plurality of first equipment, after the equipment needing to be controlled is determined by a user, the first equipment closest to the controlled equipment is determined, and the identification information of the first equipment is determined at the same time;
the method comprises the steps that a second device receives a trigger instruction of a user, wherein the trigger instruction comprises controlled devices, information for determining control commands for controlling the controlled devices and identification information of a first device; the second equipment determines controlled equipment according to the trigger instruction, determines a control command for controlling the controlled equipment according to the trigger instruction and the brand and the model of the controlled equipment, sends the control command and the identification information of the first equipment to the server, and forwards the control command for controlling the controlled equipment to the first equipment corresponding to the identification information through the router; further, the first device converts the received control command into an infrared code and sends the infrared code.
As shown in fig. 5, a flowchart of an overall method for controlling a device according to an embodiment of the present invention specifically includes the following steps:
step 500, the second device determines to be networked with the first device;
step 501, the second device determines a controlled device, a control command for controlling the controlled device, and an infrared emission power parameter corresponding to the controlled device according to a trigger instruction of a user;
step 502, the second device sends a setting instruction containing the control command for controlling the controlled device and the infrared emission power parameter corresponding to the controlled device to the first device;
step 503, the first device converts the control command for controlling the controlled device in the received setting instruction into an infrared code, and sets the infrared emission power according to the infrared emission power parameter in the received setting instruction;
step 504, the first device transmits the infrared code according to the set infrared transmitting power;
step 505, the second device determines the infrared emission power parameter corresponding to the controlled device according to the trigger instruction again;
step 506, the second device sends an adjusting instruction containing the re-determined infrared emission power parameter to the first device;
step 507, the first device adjusts the current infrared emission power according to the infrared emission power parameter in the received adjustment instruction;
and step 508, the first step is that the equipment transmits the infrared code again according to the adjusted infrared transmission power.
It should be noted that, after the first device transmits the infrared code according to the set infrared transmission power in step 505, if all the devices responding within the range of the infrared transmission power include exactly all the controlled devices selected by the user, it is not necessary to continuously determine the infrared transmission power parameter, that is, it is not necessary to execute steps 505 to 508; otherwise, the infrared emission power parameter needs to be determined again according to the trigger instruction, and the adjusting instruction containing the infrared emission power parameter determined again is sent to the first device, so that the first device adjusts the infrared emission power according to the infrared emission power parameter in the adjusting instruction.
In the embodiment of the invention, when the infrared emission power parameter is continuously determined according to the trigger instruction and the infrared emission power is adjusted according to the infrared emission power parameter, the infrared emission power can be adjusted to be larger according to the infrared emission power parameter so as to control more devices, or the infrared emission power can be adjusted to be smaller according to the infrared emission power parameter so as to reduce the control on devices which do not need to respond; mainly according to the current response equipment, if the equipment which does not need to respond exists in the current response equipment, the infrared emission power is over high, the infrared emission power is reduced, and the infrared emission power parameter is reduced; if the current responding equipment does not contain all equipment needing responding, the infrared transmitting power is over low, the infrared transmitting power is increased, and the infrared transmitting power parameter is increased.
As shown in fig. 6, an embodiment of the present invention provides a structure diagram of a device controlled by a first device, where the device includes: at least one processing unit 600 and at least one storage unit 601, where the storage unit 601 stores program code, and when the program code is executed by the processing unit 600, the processing unit 600 is specifically configured to:
adjusting the infrared emission power according to the received infrared emission power parameter corresponding to the controlled equipment;
and transmitting an infrared code according to the adjusted infrared transmitting power to control the corresponding controlled equipment, wherein the infrared code is obtained by converting a control command for controlling the controlled equipment.
Optionally, the processing unit 600 is specifically configured to:
adjusting the infrared emission power according to the infrared emission power parameter in the received setting instruction; or
And adjusting the infrared emission power according to the infrared emission power parameter in the received adjusting instruction.
Optionally, the processing unit 600 is further configured to:
and receiving a setting instruction which comprises an infrared emission power parameter corresponding to the controlled equipment and the control command for controlling the controlled equipment.
As shown in fig. 7, a diagram of a device structure controlled by a second device according to an embodiment of the present invention includes: an adjusting module 700, a transmitting module 710;
the adjustment module 700 is configured to: adjusting the infrared emission power according to the received infrared emission power parameter corresponding to the controlled equipment;
the transmitting module 710 is configured to: and transmitting an infrared code according to the adjusted infrared transmitting power to control the corresponding controlled equipment, wherein the infrared code is obtained by converting a control command for controlling the controlled equipment.
Optionally, the adjusting module 700 is specifically configured to:
adjusting the infrared emission power according to the infrared emission power parameter in the received setting instruction; or
And adjusting the infrared emission power according to the infrared emission power parameter in the received adjusting instruction.
Optionally, the adjusting module 700 is further configured to:
and receiving a setting instruction which comprises an infrared emission power parameter corresponding to the controlled equipment and the control command for controlling the controlled equipment.
As shown in fig. 8, a structure diagram of a device controlled by a third device provided in the embodiment of the present invention includes: at least one processing unit 800 and at least one memory unit 801, wherein the memory unit 801 stores program code, and when the program code is executed by the processing unit 800, the processing unit 800 is specifically configured to:
determining an infrared emission power parameter corresponding to the controlled equipment according to the trigger instruction;
and sending the infrared emission power parameter corresponding to the controlled equipment to first equipment so that the first equipment can adjust the infrared emission power according to the infrared emission power parameter and then emit an infrared code, wherein the infrared code is obtained by converting a control command for controlling the controlled equipment by the first equipment.
Optionally, the processing unit 800 is specifically configured to:
sending a setting instruction containing an infrared emission power parameter corresponding to the controlled equipment and the control command for controlling the controlled equipment to the first equipment; or
And sending an adjusting instruction containing the infrared emission power parameter corresponding to the controlled equipment to the first equipment.
Optionally, the processing unit 800 is specifically configured to:
determining controlled equipment according to the trigger instruction;
judging whether the control command set for controlling the controlled equipment is stored by the control command set;
if the control command is stored, determining a control command for controlling the controlled equipment in the control command set according to the trigger command;
otherwise, acquiring the control command set for controlling the controlled equipment from a server according to the brand and the model of the controlled equipment, and determining a control command for controlling the controlled equipment from the acquired control command set according to the trigger command.
As shown in fig. 9, a diagram of a device structure controlled by a fourth device provided in the embodiment of the present invention includes: a determining module 900, a sending module 910;
the determining module 900 is configured to: determining an infrared emission power parameter corresponding to the controlled equipment according to the trigger instruction;
the sending module 910 is configured to: and sending the infrared emission power parameter corresponding to the controlled equipment to first equipment so that the first equipment can adjust the infrared emission power according to the infrared emission power parameter and then emit an infrared code, wherein the infrared code is obtained by converting a control command for controlling the controlled equipment by the first equipment.
Optionally, the sending module 910 is specifically configured to:
sending a setting instruction containing an infrared emission power parameter corresponding to the controlled equipment and the control command for controlling the controlled equipment to the first equipment; or
And sending an adjusting instruction containing the infrared emission power parameter corresponding to the controlled equipment to the first equipment.
Optionally, the apparatus is further configured to:
determining controlled equipment according to the trigger instruction;
judging whether the control command set for controlling the controlled equipment is stored by the control command set;
if the control command is stored, determining a control command for controlling the controlled equipment in the control command set according to the trigger command;
otherwise, acquiring the control command set for controlling the controlled equipment from a server according to the brand and the model of the controlled equipment, and determining a control command for controlling the controlled equipment from the acquired control command set according to the trigger command.
Based on the same inventive concept, the embodiment of the present invention further provides a device control method, and since the method corresponds to the device controlled by the device in the embodiment of the present invention, and the principle of the method for solving the problem is similar to the device principle, the method can be implemented by referring to the device implementation, and repeated details are not repeated.
As shown in fig. 10, a flowchart of a method for controlling a first device provided in the embodiment of the present invention specifically includes the following steps:
step 1000, the first device adjusts the infrared emission power according to the received infrared emission power parameter corresponding to the controlled device;
step 1010, the first device transmits an infrared code according to the adjusted infrared transmission power to control the corresponding controlled device, wherein the infrared code is obtained by converting a control command for controlling the controlled device.
Optionally, the adjusting, by the first device, the infrared emission power according to the received infrared emission power parameter corresponding to the controlled device includes:
the first equipment adjusts the infrared emission power according to the infrared emission power parameter in the received setting instruction; or
And the first equipment adjusts the infrared emission power according to the infrared emission power parameter in the received adjusting instruction.
Optionally, before the first device adjusts the infrared emission power according to the infrared emission power parameter in the received setting instruction, the method further includes:
and the first equipment receives a setting instruction which comprises an infrared emission power parameter corresponding to the controlled equipment and the control command for controlling the controlled equipment.
As shown in fig. 11, a flowchart of a method for controlling a first device provided in the embodiment of the present invention specifically includes the following steps:
1100, the second equipment determines an infrared emission power parameter corresponding to the controlled equipment according to the trigger instruction;
step 1110, the second device sends the infrared emission power parameter corresponding to the controlled device to the first device, so that the first device transmits an infrared code after adjusting the infrared emission power according to the infrared emission power parameter, where the infrared code is obtained by converting a control command for controlling the controlled device by the first device.
Optionally, the sending, by the second device, the infrared emission power parameter corresponding to the controlled device to the first device includes:
the second equipment sends a setting instruction containing the infrared emission power parameter corresponding to the controlled equipment and the control command for controlling the controlled equipment to the first equipment; or
And the second equipment sends an adjusting instruction containing the infrared emission power parameter corresponding to the controlled equipment to the first equipment.
Optionally, the second device determines the controlled device according to the trigger instruction;
the second device judges whether to store the control command set for controlling the controlled device;
if the control command is stored, determining a control command for controlling the controlled equipment in the control command set according to the trigger command;
otherwise, acquiring the control command set for controlling the controlled equipment from a server according to the brand and the model of the controlled equipment, and determining a control command for controlling the controlled equipment from the acquired control command set according to the trigger command.
Embodiments of the present invention further provide a computer-readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the methods described in fig. 10 and 11 above.
The present invention is described above with reference to block diagrams and/or flowchart illustrations of methods, apparatus (systems) and/or computer program products according to embodiments of the invention. It will be understood that one block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, and/or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer and/or other programmable data processing apparatus, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks.
Accordingly, the present invention may also be embodied in hardware and/or in software (including firmware, resident software, micro-code, etc.). Furthermore, the invention can take the form of a computer program product on a computer-usable or computer-readable storage medium having computer-usable or computer-readable program code embodied in the medium for use by or in connection with an instruction execution system. In the context of this document, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A method of device control, the method comprising:
the intelligent socket adjusts infrared emission power according to received infrared emission power parameters corresponding to controlled equipment, wherein the infrared emission power parameters corresponding to the controlled equipment are sent by second equipment in the same network with the intelligent socket, and the intelligent socket is determined in at least one intelligent socket connected with the second equipment on the basis of the distance between the intelligent socket and the controlled equipment;
the intelligent socket transmits an infrared code through a diode according to the adjusted infrared transmitting power and an infrared transmitting direction determined by a mirror surface or a baffle plate arranged in the intelligent socket so as to control corresponding controlled equipment, wherein the infrared code is obtained by converting a control command for controlling the controlled equipment;
wherein, the smart jack adjusts infrared emission power according to the infrared emission power parameter that the controlled equipment that receives corresponds, includes:
the intelligent socket adjusts the infrared emission power according to the infrared emission power parameter in the received setting instruction; or
And the intelligent socket adjusts the infrared emission power according to the infrared emission power parameter in the received adjusting instruction.
2. The method of claim 1, wherein before the smart socket adjusts the infrared emission power according to the infrared emission power parameter in the received setting instruction, the method further comprises:
and the intelligent socket receives a setting instruction which comprises an infrared emission power parameter corresponding to the controlled equipment and the control command for controlling the controlled equipment.
3. A method of device control, the method comprising:
the second equipment determines the infrared emission power parameter corresponding to the controlled equipment according to the trigger instruction;
the second device sends the infrared emission power parameter corresponding to the controlled device to an intelligent socket in the same network, so that the intelligent socket adjusts the infrared emission power according to the infrared emission power parameter and then emits an infrared code through a diode according to the infrared emission direction determined by a mirror surface or a baffle plate arranged in the intelligent socket, wherein the infrared code is obtained by converting a control command for controlling the controlled device by the intelligent socket, and the intelligent socket is determined based on the distance between the intelligent socket and the controlled device in at least one intelligent socket connected with the second device.
4. The method of claim 3, wherein the second device sending the infrared transmission power parameter corresponding to the controlled device to a smart socket comprises:
the second equipment sends a setting instruction containing the infrared emission power parameter corresponding to the controlled equipment and the control command for controlling the controlled equipment to the intelligent socket; or
And the second equipment sends an adjusting instruction containing the infrared emission power parameter corresponding to the controlled equipment to the intelligent socket.
5. The method of claim 3, further comprising:
the second equipment determines controlled equipment according to the trigger instruction;
the second device judges whether to store the control command set for controlling the controlled device;
if the control command is stored, determining a control command for controlling the controlled equipment in the control command set according to the trigger command;
otherwise, acquiring the control command set for controlling the controlled equipment from a server according to the brand and the model of the controlled equipment, and determining a control command for controlling the controlled equipment from the acquired control command set according to the trigger command.
6. An appliance controlled smart jack, comprising: at least one processing unit and at least one storage unit, wherein the storage unit stores program code, and when the program code is executed by the processing unit, the processing unit is specifically configured to:
adjusting infrared emission power according to a received infrared emission power parameter corresponding to a controlled device, wherein the infrared emission power parameter corresponding to the controlled device is sent by a second device in the same network with the smart socket, and the smart socket is determined based on a distance between the smart socket and the controlled device in at least one smart socket connected with the second device;
according to the adjusted infrared emission power and the infrared emission direction determined by a mirror surface or a baffle plate arranged in the intelligent socket, emitting an infrared code through a diode to control the corresponding controlled equipment, wherein the infrared code is obtained by converting a control command for controlling the controlled equipment;
wherein the processing unit is specifically configured to:
adjusting the infrared emission power according to the infrared emission power parameter in the received setting instruction; or
And adjusting the infrared emission power according to the infrared emission power parameter in the received adjusting instruction.
7. The smart jack of claim 6, wherein the processing unit is further configured to:
and receiving a setting instruction which comprises an infrared emission power parameter corresponding to the controlled equipment and the control command for controlling the controlled equipment.
8. A second device controlled by a device, the second device comprising: at least one processing unit and at least one storage unit, wherein the storage unit stores program code, and when the program code is executed by the processing unit, the processing unit is specifically configured to:
determining an infrared emission power parameter corresponding to the controlled equipment according to the trigger instruction;
and sending the infrared emission power parameter corresponding to the controlled equipment to an intelligent socket in the same network, so that the intelligent socket adjusts the infrared emission power according to the infrared emission power parameter and then emits an infrared code through a diode according to the infrared emission direction determined by a mirror surface or a baffle plate arranged in the intelligent socket, wherein the infrared code is obtained by converting a control command for controlling the controlled equipment by the intelligent socket, and the intelligent socket is determined in at least one intelligent socket connected with the second equipment based on the distance between the intelligent socket and the controlled equipment.
9. The second device of claim 8, wherein the processing unit is specifically configured to:
sending a setting instruction containing an infrared emission power parameter corresponding to the controlled equipment and the control command for controlling the controlled equipment to the intelligent socket; or
And sending an adjusting instruction containing the infrared emission power parameter corresponding to the controlled equipment to the intelligent socket.
10. The second device of claim 8, wherein the processing unit is specifically configured to:
determining controlled equipment according to the trigger instruction;
judging whether the control command set for controlling the controlled equipment is stored by the control command set;
if the control command is stored, determining a control command for controlling the controlled equipment in the control command set according to the trigger command;
otherwise, acquiring the control command set for controlling the controlled equipment from a server according to the brand and the model of the controlled equipment, and determining a control command for controlling the controlled equipment from the acquired control command set according to the trigger command.
CN201910302587.4A 2019-04-16 2019-04-16 Equipment control method and equipment Active CN110136424B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910302587.4A CN110136424B (en) 2019-04-16 2019-04-16 Equipment control method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910302587.4A CN110136424B (en) 2019-04-16 2019-04-16 Equipment control method and equipment

Publications (2)

Publication Number Publication Date
CN110136424A CN110136424A (en) 2019-08-16
CN110136424B true CN110136424B (en) 2021-09-21

Family

ID=67570174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910302587.4A Active CN110136424B (en) 2019-04-16 2019-04-16 Equipment control method and equipment

Country Status (1)

Country Link
CN (1) CN110136424B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111161522B (en) * 2020-01-08 2021-02-02 深圳市沃特沃德股份有限公司 Method for processing remote control data, storage medium, computer device and remote control system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104483841A (en) * 2014-12-22 2015-04-01 深圳市高为通信技术有限公司 Intelligent home furnishing network system and intelligent home furnishing control method
CN108111222A (en) * 2017-12-13 2018-06-01 广州捷宝电子科技股份有限公司 infrared emission control device and method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6781519B1 (en) * 2000-05-23 2004-08-24 Alpine Electronics, Inc. Method and vehicle system for remote-controlling vehicle audio system
CN103941653B (en) * 2013-01-21 2017-10-31 广东美的制冷设备有限公司 The master and slave control method of intelligent appliance and system
CN104270806B (en) * 2014-09-11 2017-12-05 小米科技有限责任公司 Transmission power adjustment method and device
CN105608861B (en) * 2015-10-29 2019-08-30 小米科技有限责任公司 Control method of electronic device and device
CN106781402B (en) * 2017-02-21 2019-09-20 青岛海信移动通信技术股份有限公司 Remote control method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104483841A (en) * 2014-12-22 2015-04-01 深圳市高为通信技术有限公司 Intelligent home furnishing network system and intelligent home furnishing control method
CN108111222A (en) * 2017-12-13 2018-06-01 广州捷宝电子科技股份有限公司 infrared emission control device and method

Also Published As

Publication number Publication date
CN110136424A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
US11690157B2 (en) Commissioning and controlling load control devices
CN110568771B (en) System and method for intelligently and cooperatively controlling intelligent household equipment
CN103813039A (en) Home appliance control method, home server and home appliance control system
US10724755B2 (en) Controlling rapid working mode of an air conditioner coupled with a smart socket
CN106647295B (en) Smart home system and cooperative operation method thereof
CN104122999A (en) Intelligent device interaction method and system
CN110136424B (en) Equipment control method and equipment
CN112751734A (en) Household appliance control method based on cleaning robot, cleaning robot and chip
CN104615172A (en) Intelligent temperature control method, device and mobile terminal
CN110324217B (en) Equipment triggering control method and device, electronic equipment and storage medium
CN108156659B (en) Household appliance positioning method and device, household appliance and storage medium
CN112128951A (en) Control equipment, method and device
CN114302328B (en) Control method, device and system of intelligent equipment
CN113606744B (en) Control method, control equipment and storage medium
CN111010322B (en) Information configuration method and device, electronic equipment and storage medium
CN112178883B (en) Equipment control method and device
CN109595760B (en) Operation control method, operation control device and computer readable storage medium
CN112152885B (en) Equipment control method and device, household appliance and remote control equipment
CN112882393A (en) Electrical device, method of controlling electrical device, and controller
CN107454133B (en) Control system and control method
CN112039738B (en) Intelligent device control method, terminal device and readable storage medium
CN109861890B (en) Control method, ZigBee node equipment, gateway and ZigBee network system
KR102120016B1 (en) System and method for controlling multi-drop network device, and server and computer program for the same
CN113114583B (en) Intelligent gateway control method and device and computer readable storage medium
CN109194553B (en) Remote control method and system with adjustable control frequency for intelligent household appliance

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