Control method and electronic deviceTechnical Field
The present invention relates to electronic device control technologies, and in particular, to a control method and an electronic device.
Background
The intelligent control of electronic devices such as home equipment (including televisions, air conditioners and the like) is in a trend, but no effective technical scheme is available at present for solving the problem of realizing the rapid control of a plurality of electronic devices; for example, when a user leaves home for work or other reasons and no other member is at home in a home, all running electronic devices in the home may need to be turned off from the perspective of safety and energy saving, and due to the intercommunication connection of smart homes, the user may turn off multiple devices through a mobile phone, but the user needs to control multiple electronic devices one by one, wherein multiple operations are often required to be performed, and the operation efficiency is low.
Disclosure of Invention
The embodiment of the invention provides a control method and electronic equipment, which can realize the rapid control of at least two pieces of electronic equipment and improve the operation efficiency.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a control method, which comprises the following steps:
detecting operation when an object corresponding to the second electronic device is presented in the display area of the first electronic device;
judging whether the detected operation is a first operation meeting a preset condition or not;
and sending a control instruction to second electronic equipment corresponding to at least two objects based on the judgment result, wherein the control instruction is used for updating the state of the second electronic equipment.
An embodiment of the present invention provides a first electronic device, including:
a display unit configured to present an object corresponding to the second electronic device in a display area;
a detection unit configured to detect an operation when an object corresponding to a second electronic device is presented in the display area;
a judging unit configured to judge whether the detected operation is a first operation that satisfies a preset condition;
and the control unit is used for sending a control instruction to second electronic equipment corresponding to at least two objects based on the judgment result obtained by the judgment unit, wherein the control instruction is used for updating the state of the second electronic equipment.
In the embodiment of the invention, the user is supported to send the control instruction to the second electronic device corresponding to at least two objects (for example, all objects in the display area or the identified objects corresponding to the second electronic device with the predetermined state) by implementing the first operation meeting the preset condition, and the user does not need to operate the objects one by one to update the state of the second electronic device, so that the operation efficiency is improved.
Drawings
FIG. 1 is a first schematic flow chart illustrating an implementation of a control method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a second implementation flow of the control method in the embodiment of the present invention;
FIG. 3 is a third schematic flow chart illustrating an implementation of the control method according to an embodiment of the present invention;
FIG. 4 is a first diagram illustrating operations performed in a display area of an electronic device according to an embodiment of the present invention;
FIG. 5 is a second schematic diagram illustrating operations performed in a display area of an electronic device according to an embodiment of the present invention;
FIG. 6 is a third schematic diagram illustrating operations performed in a display area of an electronic device according to an embodiment of the present invention;
FIG. 7 is a schematic diagram illustrating a fourth implementation flow of the control method in the embodiment of the present invention;
FIG. 8 is a diagram illustrating an embodiment of displaying an object in a display interface by using a display area;
FIG. 9 is a fifth flowchart illustrating an implementation of the control method according to an embodiment of the present invention;
FIG. 10 is a diagram illustrating operation progress information according to an embodiment of the present invention;
FIG. 11 is a diagram illustrating a control progress message according to an embodiment of the present invention;
fig. 12 is a functional structure diagram of a first electronic device in an embodiment of the invention.
Detailed Description
The invention is described in further detail below with reference to the figures and specific examples.
Example one
As shown in fig. 1, the control method described in this embodiment includes the following steps:
step S101, the first electronic device presents an object corresponding to the second electronic device in a display area.
The object corresponds to an electronic device that supports receiving control of the first electronic device, that is, a second electronic device, where the second electronic device is an electronic device that supports updating a state according to a control instruction of the first electronic device (the second electronic device may often have a plurality of different operating states, such as an operating state and an off state, and different power consumption states during operation), and is not particularly limited to a certain electronic device, that is, a home environment, for example, and the second electronic device may be a television, a refrigerator, and an air conditioner.
The objects presented in the display area can be used for representing the whole second electronic equipment, the objects and the second electronic equipment are in one-to-one correspondence, each object represents one second electronic equipment, and the second electronic equipment represented by any two objects in the display interface is different; alternatively, the object presented in the display area may represent a function of the second electronic device (e.g., object 1 represents a cooling function of an air conditioner, and object 2 represents a heating function of the air conditioner), and the object and the second electronic device are in a two-to-one or many-to-one relationship; in practical application, the objects presented in the display area adopt the above one-to-one correspondence, two-to-one correspondence and three-to-one correspondence at the same time, that is, a part of the objects are in one-to-one correspondence with the second electronic device, another part of the objects are in two-to-one correspondence with the second electronic device, and the rest of the objects are in many-to-one correspondence with the second electronic device.
Step S102, detecting operation.
The types of operations supported by the first electronic device may be touch operations (detecting touch operations performed by a user through a set touch display screen and outputting data representing characteristics of the touch operations), shaking operations (detecting shaking operations through a set sensor such as a gyroscope and outputting sensing data) for changing the pose of the first electronic device, and voice operations (detecting characteristics of voice operations of the user through a set voice recognition function module).
In step S103, it is determined whether the detected operation is a first operation that satisfies a preset condition.
The preset condition of the actual application can be set by using habits of a user, and taking touch operation as an example, the preset condition can be that the detected track of the operation is matched with a preset track, including whether the track is a track of single-point touch or a track of multi-point touch; taking the swing operation as an example, the preset condition may be that the detected characteristics (including the swing speed and direction) of operating and swinging the first electronic device are matched with preset characteristics; taking voice operation as an example, the preset condition may be that a feature (e.g. voiceprint) of a voice given by the user matches a preset voice feature.
And step S104, sending a control instruction to second electronic equipment corresponding to at least two objects based on the judgment result, wherein the control instruction is used for updating the state of the second electronic equipment.
When the judgment result represents that the detected operation meets the preset condition, the determined at least two objects are at least two objects in the objects displayed in the display area (for example, all objects or an identified object corresponding to the second electronic device with a predetermined state), and a control instruction is sent to the second electronic device corresponding to the at least two objects to update the states of the second electronic device corresponding to the at least two objects, where the update of the states of the second electronic device may be a switch between an operating state and a closed state, or a switch between different operating states (for example, a switch between a high-power-consumption operating state and a low-power-consumption sleep state of a computer);
the control instruction may be sent in a wireless compatibility authentication (WiFi) manner (at this time, the first electronic device and the second electronic device are in the same local area network), or may be sent in a General Packet Radio Service (GPRS)/third generation (3G)/fourth generation (4G) communication manner (at this time, a communication module supporting cellular communication needs to be set in the second electronic device).
The following are exemplified:
example 1) when a user leaves home, a display interface in a mobile phone (corresponding to a first electronic device) is used for checking that a second electronic device corresponding to an object 1 (representing a television) and an object 2 (representing an air conditioner) is in an operating state, and a first operation is implemented to trigger the mobile phone to send a control instruction to the television and the air conditioner and turn off the television and the air conditioner.
Example 2) when a user leaves home, the user checks that the object 1 (representing the playing function of the television) and the object 2 (representing the cooling function of the air conditioner) are in the running state through a display interface in the mobile phone (corresponding to the first electronic device), and then, by implementing the first operation, triggers the mobile phone to send a control instruction to the television and the air conditioner, and closes the playing function of the television and the intelligent function of the air conditioner, and at this time, the television and the air conditioner are in a low-power consumption standby state.
The second operation is a one-time continuous operation (including a touch operation and a flick operation)
As shown in fig. 2, the control method described in this embodiment includes the following steps:
in step S201, the first electronic device presents an object corresponding to the second electronic device in the display area.
The object corresponds to an electronic device that supports receiving control of the first electronic device, that is, a second electronic device, where the second electronic device is an electronic device that supports updating a state according to a control instruction of the first electronic device (the second electronic device may often have a plurality of different operating states, such as an operating state and an off state, and different power consumption states during operation), and is not particularly limited to a certain electronic device, that is, a home environment, for example, and the second electronic device may include a television, a refrigerator, and an air conditioner.
The objects presented in the display area can be used for representing the whole second electronic equipment, the objects and the second electronic equipment are in one-to-one correspondence, each object represents one second electronic equipment, and the second electronic equipment represented by any two objects in the display interface is different; alternatively, the object presented in the display area may represent a function of the second electronic device (e.g., object 1 represents a cooling function of an air conditioner, and object 2 represents a heating function of the air conditioner), and the object and the second electronic device are in a two-to-one or many-to-one relationship; in practical application, the objects presented in the display area adopt the above one-to-one correspondence, two-to-one correspondence and three-to-one correspondence at the same time, that is, a part of the objects are in one-to-one correspondence with the second electronic device, another part of the objects are in two-to-one correspondence with the second electronic device, and the rest of the objects are in many-to-one correspondence with the second electronic device.
Step S202, detecting operation.
The types of operations supported by the first electronic device may be touch operations (detecting touch operations performed by a user through a set touch display screen and outputting data representing characteristics of the touch operations), shaking operations (detecting shaking operations through a set sensor such as a gyroscope and outputting sensing data) for changing the pose of the first electronic device, and voice operations (detecting characteristics of voice operations of the user through a set voice recognition function module).
Step S203, determining whether the detected operation satisfies the following preset conditions:
continuously acquiring sensing data corresponding to the detected operation between the first time and the second time; the first time is the starting time of the detected operation, and the second time is the ending time of the detected operation;
if yes, judging the detected operation as the first operation, and executing step S204; otherwise, return to step S202.
That is, the detected operation is a one-time continuous operation, not a plurality of discrete operations, and the following operations are described as touch operations and flick operations as examples.
1) The detected operation is a touch operation
When the touch operation is detected, after a first time (that is, a time when the touch operation is detected), whether touch areas of the display area detected by the adjacent times are adjacent is judged, and if the touch areas of the display area detected by the adjacent times are adjacent, the detected operation is represented as a continuous touch operation performed on the display area, so as to be the first operation meeting a preset condition, wherein a track of the touch operation is not limited in this embodiment (the track may be preset as a straight line or an arbitrary curve).
2) The detected operation is a flick operation
When the swing operation is detected, after a first moment (namely the moment when the swing operation is detected), judging whether the first electronic equipment is detected to change the operation trigger generation pose at an adjacent moment based on sensing data output by a sensor (such as a gyroscope), and if the first electronic equipment is detected to change the operation trigger generation pose between the first moment and a second moment, representing that the detected operation is continuous swing operation carried out on the first electronic equipment so as to be the first operation meeting a preset condition; the trajectory of the swing operation is not limited in this embodiment (the trajectory may be preset to be a straight line or an arbitrary curve).
Step S204, a control instruction is sent to second electronic equipment corresponding to at least two objects, and the control instruction is used for updating the state of the second electronic equipment.
When the judgment result represents that the detected operation is the first operation meeting the preset condition, the determined at least two objects are at least two objects in the objects displayed in the display area (for example, all objects in the display area), and a control instruction is sent to the second electronic device corresponding to the at least two objects to update the states of the second electronic device corresponding to the at least two objects, where the update of the states of the second electronic device may be switching between an operating state and a closed state, or switching between different operating states (for example, switching between a high-power-consumption operating state and a low-power-consumption sleep state of a computer).
The control instruction may be sent in a WiFi manner (at this time, the first electronic device and the second electronic device are in the same local area network), or may be sent in a GPRS/3G/4G communication manner (at this time, a communication module supporting cellular communication needs to be set in the second electronic device).
The following are exemplified:
example 1) when a user leaves home, a display interface in a mobile phone (corresponding to a first electronic device) is used for checking that a second electronic device corresponding to an object 1 (representing a television) and an object 2 (representing an air conditioner) is in an operating state, and a display area of the first electronic device is used for performing continuous sliding operation to trigger the mobile phone to send a control instruction to the television and the air conditioner, so that the television and the air conditioner are turned off.
Example 2) when a user leaves home, the user checks that the object 1 (representing the playing function of the television) and the object 2 (representing the cooling function of the air conditioner) are in the running state through a display interface in the mobile phone (corresponding to the first electronic device), and then triggers the mobile phone to send a control instruction to the television and the air conditioner through continuous shaking operation performed on the first electronic device, so that the playing function of the television and the intelligent function of the air conditioner are turned off, and at this time, the television and the air conditioner are in a low-power-consumption standby state.
Third embodiment (the first operation is a continuous operation in which the touch area exceeds the area threshold; the update result of the state of the second electronic device caused by the first operation is the same as the update result of the second electronic device caused by at least two second operations)
As shown in fig. 3, the control method described in this embodiment includes the following steps:
in step S301, the first electronic device presents an object corresponding to the second electronic device in the display area.
The object corresponds to an electronic device that supports receiving control of the first electronic device, that is, a second electronic device, where the second electronic device is an electronic device that supports updating a state according to a control instruction of the first electronic device (the second electronic device may often have a plurality of different operating states, such as an operating state and an off state, and different power consumption states during operation), and is not particularly limited to a certain electronic device, that is, a home environment, for example, and the second electronic device may include a television, a refrigerator, and an air conditioner.
The objects presented in the display area can be used for representing the whole second electronic equipment, the objects and the second electronic equipment are in one-to-one correspondence, each object represents one second electronic equipment, and the second electronic equipment represented by any two objects in the display interface is different; alternatively, the object presented in the display area may represent a function of the second electronic device (e.g., object 1 represents a cooling function of an air conditioner, and object 2 represents a heating function of the air conditioner), and the object and the second electronic device are in a two-to-one or many-to-one relationship; in practical application, the objects presented in the display area adopt the above one-to-one correspondence, two-to-one correspondence and three-to-one correspondence at the same time, that is, a part of the objects are in one-to-one correspondence with the second electronic device, another part of the objects are in two-to-one correspondence with the second electronic device, and the rest of the objects are in many-to-one correspondence with the second electronic device.
Step S302, detecting operation.
The types of operations supported by the first electronic device may be touch operations (detecting touch operations performed by a user through a set touch display screen and outputting data representing characteristics of the touch operations), shaking operations (detecting shaking operations through a set sensor such as a gyroscope and outputting sensing data) for changing the pose of the first electronic device, and voice operations (detecting characteristics of voice operations of the user through a set voice recognition function module).
Step S303, determining whether the detected operation satisfies the following preset conditions:
continuously acquiring sensing data corresponding to the detected operation between a first time and a second time, and representing that the detected operation is performed in a specific direction (such as from top to bottom) for a specific distance (such as the longitudinal size of the corresponding display area); sensing that the area of the touch area of the detected operation exceeds an area threshold in the display area; the first time is the starting time of the detected operation, and the second time is the ending time of the detected operation;
if yes, judging the detected operation as the first operation, and executing step S304; otherwise, return to step S302.
That is, the first operation is a one-time continuous operation, and the area of the touch area of the operation exceeds an area threshold, rather than a plurality of discrete operations;
the area threshold value may be set to be smaller than an area value of a touch area corresponding to a conventional point touch operation, so that when a user performs a continuous sliding operation with one finger and a trajectory matches a preset trajectory, the first electronic device recognizes the detected operation of the user as a first operation satisfying a preset condition;
the area threshold may be set to be greater than an area value of the touch region corresponding to the normal point touch operation, for example, the area threshold may be set to be three or four times the area value of the touch region corresponding to the normal point touch operation, so that, when the user performs a continuous sliding operation on the display region of the first electronic device using the palm and the trajectory matches the preset trajectory, the first electronic device recognizes the detected operation of the user as a first operation satisfying the preset condition.
The following examples are given.
As shown in fig. 4, when the user performs a continuous touch operation of a single-finger sliding on the display area from top to bottom, and the first electronic device detects the touch operation, after a first time (that is, a time when the touch operation is detected), it is determined whether the touch areas of the display area detected at adjacent times are adjacent, and if the touch areas of the display area detected at any adjacent time between the first time and a second time are adjacent, the touch area where the operation is detected is greater than an area threshold (where the area threshold is smaller than an area value of the touch area corresponding to a conventional point touch operation), and a trajectory of the touch operation matches a preset trajectory (a straight trajectory from top to bottom), it is determined that the detected operation is the first operation that satisfies a preset condition.
As shown in fig. 5, when the user performs a continuous palm sliding touch operation on the display area from top to bottom, and the first electronic device detects the touch operation, after a first time (that is, a time when the touch operation is detected), it is determined whether the touch areas of the display area detected at adjacent times are adjacent, and if the touch areas of the display area detected at any adjacent time between the first time and a second time are adjacent, the touch area where the operation is detected is greater than an area threshold (where the area threshold is four times an area value of the touch area corresponding to the conventional point touch operation), and a trajectory of the touch operation matches a preset trajectory (a straight trajectory from top to bottom), it is determined that the detected operation is the first operation that satisfies a preset condition.
Step S304, sending a control instruction to a second electronic device corresponding to at least two objects, where the control instruction is used to update the state of the second electronic device.
When the judgment result represents that the detected operation is the first operation meeting the preset condition, the determined at least two objects are at least two objects in the objects displayed in the display area (for example, all objects in the display area), and a control instruction is sent to the second electronic device corresponding to the at least two objects to update the states of the second electronic device corresponding to the at least two objects, where the update of the states of the second electronic device may be switching between an operating state and a closed state, or switching between different operating states (for example, switching between a high-power-consumption operating state and a low-power-consumption sleep state of a computer).
The control instruction may be sent in a WiFi manner (at this time, the first electronic device and the second electronic device are in the same local area network), or may be sent in a GPRS/3G/4G communication manner (at this time, a communication module supporting cellular communication needs to be set in the second electronic device).
The following are exemplified:
example 1) as shown in fig. 4, when a user leaves home, a display interface in a mobile phone (corresponding to a first electronic device) is used to check that a second electronic device corresponding to an object 1 (representing a television) and an object 2 (representing an air conditioner) is in an operating state, and then a single-finger top-down continuous sliding operation is performed on a display area of the first electronic device, so that the mobile phone is triggered to recognize the operation performed by the user as a first operation, and a control instruction is sent to the second electronic devices corresponding to all objects in the display area, that is, to the television and the air conditioner, and the television and the air conditioner are turned off.
Example 2) as shown in fig. 5, when a user leaves home, the user checks that an object 1 (representing a playing function of a television) and an object 2 (representing a cooling function of an air conditioner) are in an operating state through a display interface in a mobile phone (corresponding to a first electronic device), and then the user performs a top-down continuous sliding operation on a display area of the first electronic device by using a palm, so as to trigger the mobile phone to recognize the operation performed by the user as a first operation, and thus, a control instruction is sent to all second electronic devices corresponding to the objects in the display area, that is, to the television and the air conditioner, and the playing function of the television and the intelligent function of the air conditioner are turned off, and at this time, the television and the air conditioner are in a low-power standby state.
The result of updating the states of the second electronic devices corresponding to the at least two objects by the control instruction described in this embodiment and the foregoing embodiments is the same as the result of receiving the second operation at least two times corresponding to the at least two objects and updating the states of the second electronic devices corresponding to the at least two objects; that is, the first electronic device supports updating the state of the second electronic device corresponding to the object receiving the second operation according to the second operation received by each object presented in the display area, taking the object shown in fig. 4 as an example, referring to fig. 6, when the object 1 (representing the television) and the object 2 (representing the air conditioner) presented in the first electronic device respectively receive the second operation (taking the point touch operation as an example in fig. 6), the first electronic device will respectively respond to the received two times of the second operation and correspondingly send a control instruction to the television and the air conditioner to correspondingly update the states of the television and the air conditioner; when there are many objects in the display area (only two objects are shown in fig. 6), if the user needs to update the state of the second electronic device by performing the second operation, the second operation needs to be performed multiple times, which results in low efficiency.
In an embodiment, the first operation is a one-time continuous operation (including a touch operation and a flick operation), and the at least two objects are at least two of display areas or display interface objects
As shown in fig. 7, the control method described in this embodiment includes the following steps:
in step S401, the first electronic device presents an object corresponding to the second electronic device in the display area.
The object corresponds to an electronic device that supports receiving control of the first electronic device, that is, a second electronic device, where the second electronic device is an electronic device that supports updating a state according to a control instruction of the first electronic device (the second electronic device may often have a plurality of different operating states, such as an operating state and an off state, and different power consumption states during operation), and is not particularly limited to a certain electronic device, that is, a home environment, for example, and the second electronic device may include a television, a refrigerator, and an air conditioner.
The objects presented in the display area can be used for representing the whole second electronic equipment, the objects and the second electronic equipment are in one-to-one correspondence, each object represents one second electronic equipment, and the second electronic equipment represented by any two objects in the display interface is different; alternatively, the object presented in the display area may represent a function of the second electronic device (e.g., object 1 represents a cooling function of an air conditioner, and object 2 represents a heating function of the air conditioner), and the object and the second electronic device are in a two-to-one or many-to-one relationship; in practical application, the objects presented in the display area adopt the above one-to-one correspondence, two-to-one correspondence and three-to-one correspondence at the same time, that is, a part of the objects are in one-to-one correspondence with the second electronic device, another part of the objects are in two-to-one correspondence with the second electronic device, and the rest of the objects are in many-to-one correspondence with the second electronic device.
The first electronic device supports updating the state of the second electronic device corresponding to the object receiving the second operation according to the second operation received by each object presented in the display area, the second operation may be a point-and-touch operation for the object, the operation target of each second operation is one object in the display area, and when the user performs the second operation on one object in the display area, the first electronic device may be triggered to send a control instruction to the second electronic device corresponding to the object receiving the second operation, so as to update the state of the second electronic device.
Step S402, an operation is detected.
The types of operations supported by the first electronic device may be touch operations (detecting touch operations performed by a user through a set touch display screen and outputting data representing characteristics of the touch operations), shaking operations (detecting shaking operations through a set sensor such as a gyroscope and outputting sensing data) for changing the pose of the first electronic device, and voice operations (detecting characteristics of voice operations of the user through a set voice recognition function module).
Step S403, determining whether the detected operation satisfies the following preset conditions:
continuously acquiring sensing data corresponding to the detected operation between the first time and the second time; the first time is the starting time of the detected operation, and the second time is the ending time of the detected operation;
if yes, judging the detected operation as the first operation, and executing a step S404; otherwise, return to step S402.
That is, the first operation is a one-time continuous operation, not a plurality of discrete operations, and the following operations are described as touch operations and flick operations as examples.
1) The detected operation is a touch operation
When the touch operation is detected, after a first time (that is, a time when the touch operation is detected), whether touch areas of the display area detected by the adjacent times are adjacent is judged, and if the touch areas of the display area detected by the adjacent times are adjacent, the detected operation is represented as a continuous touch operation performed on the display area, so as to be the first operation meeting a preset condition, wherein a track of the touch operation is not limited in this embodiment (the track may be preset as a straight line or an arbitrary curve).
2) The detected operation is a flick operation
When the swing operation is detected, after a first moment (namely the moment when the swing operation is detected), judging whether the first electronic equipment is detected to change the operation trigger generation pose at an adjacent moment based on sensing data output by a sensor (such as a gyroscope), and if the first electronic equipment is detected to change the operation trigger generation pose between the first moment and a second moment, representing that the detected operation is continuous swing operation carried out on the first electronic equipment so as to be the first operation meeting a preset condition; the trajectory of the swing operation is not limited in this embodiment (the trajectory may be preset to be a straight line or an arbitrary curve).
Step S404, detecting the states of the second electronic device corresponding to the at least two objects in the display area.
Wherein the at least two objects are at least two (e.g., all) of the objects displayed in the display area; or the at least two objects are at least two (for example, all) objects in the display interface, and the display area carries part of or all the objects in the display interface;
the display area is an area used for displaying graphics in the display unit of the first electronic device, the display interface is an interface which needs to be displayed by using the display area of the display unit of the first electronic device, an object in the display interface needs to be displayed by using the display area, and when the number of the objects in the display interface is small, the object in the display interface can be displayed at one time by using the display interface of the display area of the first electronic device; as shown in fig. 8, when there are many objects in the display interface, the objects in the display interface need to switch the display in the display interface of the display area of the first electronic device
In step S405, the second electronic device in the predetermined state is determined based on the detection result.
The predetermined state here may be an off state or an on state; and may be a specific operation state such as a cooling state and a heating state of the air conditioner.
Step S406, sending a control instruction to the second electronic device in a predetermined state, where the control instruction is used to update the state of the second electronic device.
For example, the second electronic device in the operating state may be switched to an off state (or a low power consumption standby state); the second electronic device in the off state may also be switched to an operating state, and the second electronic device may also be switched in a different operating state.
The control instruction may be sent in a WiFi manner (at this time, the first electronic device and the second electronic device are in the same local area network), or may be sent in a GPRS/3G/4G communication manner (at this time, a communication module supporting cellular communication needs to be set in the second electronic device).
The following are exemplified:
when a user leaves home, continuous sliding operation is implemented in a display area of first electronic equipment, the mobile phone is triggered to recognize the operation implemented by the user as a first operation meeting preset conditions, states of second electronic equipment corresponding to an object 1 to an object 16 in a display interface shown in fig. 8 are obtained, an instruction is sent to the second electronic equipment in a running state (the preset state is the running state), the second electronic equipment in the running state is switched to a closed state, and the second electronic equipment in the running state can be closed by implementing the first operation for one time.
EXAMPLE five (displaying operation progress and/or control progress)
As shown in fig. 9, the control method described in this embodiment includes the following steps:
in step S501, the first electronic device presents an object corresponding to the second electronic device in the display area.
The object corresponds to an electronic device that supports receiving control of the first electronic device, that is, a second electronic device, where the second electronic device is an electronic device that supports updating a state according to a control instruction of the first electronic device (the second electronic device may often have a plurality of different operating states, such as an operating state and an off state, and different power consumption states during operation), and is not particularly limited to a certain electronic device, that is, a home environment, for example, and the second electronic device may include a television, a refrigerator, and an air conditioner.
The objects presented in the display area can be used for representing the whole second electronic equipment, the objects and the second electronic equipment are in one-to-one correspondence, each object represents one second electronic equipment, and the second electronic equipment represented by any two objects in the display interface is different; alternatively, the object presented in the display area may represent a function of the second electronic device (e.g., object 1 represents a cooling function of an air conditioner, and object 2 represents a heating function of the air conditioner), and the object and the second electronic device are in a two-to-one or many-to-one relationship; in practical application, the objects presented in the display area adopt the above one-to-one correspondence, two-to-one correspondence and three-to-one correspondence at the same time, that is, a part of the objects are in one-to-one correspondence with the second electronic device, another part of the objects are in two-to-one correspondence with the second electronic device, and the rest of the objects are in many-to-one correspondence with the second electronic device.
Step S502, detecting operation.
The types of operations supported by the first electronic device may be touch operations (detecting touch operations performed by a user through a set touch display screen and outputting data representing characteristics of the touch operations), shaking operations (detecting shaking operations through a set sensor such as a gyroscope and outputting sensing data) for changing the pose of the first electronic device, and voice operations (detecting characteristics of voice operations of the user through a set voice recognition function module).
Step S503, determining whether the detected operation satisfies the following preset conditions, and displaying corresponding operation progress information.
Continuously acquiring sensing data corresponding to the detected operation between a first time and a second time, and representing that the detected operation is subjected to specific displacement (such as the longitudinal size of a corresponding display area) in a specific direction (such as from top to bottom); sensing that the area of the touch area of the detected operation exceeds an area threshold in the display area; the first time is the starting time of the detected operation, and the second time is the ending time of the detected operation;
if yes, judging the detected operation as the first operation, and executing step S504; otherwise, return to step S502.
The operation progress information is determined based on at least one of the following characteristic information of the detected operation: operating time; operating displacement; the operation progress information is used to represent the progress of the first operation that is to be identified as meeting the preset condition by the operation currently performed by the user, the first operation meeting the preset condition in this embodiment requires the user to continuously perform a certain period of continuous operation (forming a certain displacement) on the display area, that is, the operation meeting the preset condition has a threshold of operation time and/or operation displacement, when the threshold of operation time and/or operation displacement is exceeded, the first electronic device identifies the detected operation as the first operation meeting the preset condition, and it is avoided that the first operation is too simple to identify the misoperation of the user as the first operation, so that the state of the second electronic device is unnecessarily updated.
Assuming that the first operation is a sliding operation of a specific displacement (the size of the displacement corresponds to the longitudinal dimension of the display area) in a specific direction (from top to bottom) of the display area, for example, as shown in fig. 10, when a user desires to implement the first operation in the display interface, the operation progress information may be represented in the display area as operation progress information based on the ratio of the detected displacement of the operation to the specific displacement, and may be a numerical percentage or a gradient graph (for example, the process of changing a circle from a point to a complete circle represents the operation progress information); the operation progress information may be displayed superimposed on the object in the display area or displayed in a blank area of the display area.
The first operation is one-time continuous operation, and the area of the touch area of the operation exceeds an area threshold value instead of multiple discrete operations; the area threshold value may be set to be smaller than an area value of a touch area corresponding to a conventional point touch operation, so that when a user performs a continuous sliding operation with one finger and a trajectory matches a preset trajectory, the first electronic device recognizes the detected operation of the user as a first operation satisfying a preset condition;
the area threshold may be set to be greater than an area value of the touch region corresponding to the normal point touch operation, for example, the area threshold may be set to be three or four times the area value of the touch region corresponding to the normal point touch operation, so that, when the user performs a continuous sliding operation on the display region of the first electronic device using the palm and the trajectory matches the preset trajectory, the first electronic device recognizes the detected operation of the user as a first operation satisfying the preset condition.
Step S504, sending a control instruction to a second electronic device corresponding to at least two objects, where the control instruction is used to update the state of the second electronic device.
And step S505, presenting control progress information.
The control progress information represents an update progress for updating the states of the second electronic devices corresponding to the at least two objects (the second electronic devices corresponding to all the objects, or the second electronic devices in a predetermined state), and the control progress information may be a numerical percentage or a gradient graph (for example, a process of changing a circle from a point to a complete circle represents operation progress information); the control progress information may be displayed in a display area superimposed on the object, or displayed in a blank area of the display area, an example of the display control progress information is shown in fig. 11, after the first electronic device sends the control instruction, information indicating whether the status update of the second electronic device is completed may be periodically obtained (or the second electronic device actively reports to the first electronic device after the status update is completed in response to the control instruction), so as to immediately display the progress of the status update of the second electronic device that receives the status update.
When the judgment result represents that the detected operation is the first operation meeting the preset condition, the determined at least two objects are at least two objects in the objects displayed in the display area (for example, all objects in the display area), and a control instruction is sent to the second electronic device corresponding to the at least two objects to update the states of the second electronic device corresponding to the at least two objects, where the update of the states of the second electronic device may be switching between an operating state and a closed state, or switching between different operating states (for example, switching between a high-power-consumption operating state and a low-power-consumption sleep state of a computer).
The control instruction may be sent in a WiFi manner (at this time, the first electronic device and the second electronic device are in the same local area network), or may be sent in a GPRS/3G/4G communication manner (at this time, a communication module supporting cellular communication needs to be set in the second electronic device).
It should be noted that, in this embodiment, it is described by taking an example that the operation progress information and the control progress information are both displayed, and in practical application, only one of the control progress information and the operation progress information may be displayed.
EXAMPLE six
For details that are not described in the present embodiment, please refer to the description of the above method embodiment for a first electronic device 100 for executing the above control method.
As shown in fig. 12, the first electronic device 100 according to the present embodiment includes:
a display unit 110, configured to present an object corresponding to the second electronic device in a display area, where the display unit 110 may be implemented by a display screen (touch display screen) and a related display driving circuit module in the first electronic device;
a detection unit 120, configured to detect an operation when an object corresponding to the second electronic device is present in the display area, where the detection unit 120 may be implemented by a Microprocessor (MCU), a processor (CPU), an Application Specific Integrated Circuit (ASIC), or a logic programmable gate array (FPGA) in the first electronic device;
the determining unit 130 is configured to determine whether the detected operation is a first operation that meets a preset condition, and the determining unit 130 may be implemented by an MCU, a CPU, and an ASIC FPGA in the first electronic device;
a control unit 140, configured to send a control instruction to a second electronic device corresponding to at least two objects based on the determination result obtained by the determination unit 130, where the control instruction is used to update the state of the second electronic device.
As an example, the judging unit 130 is further configured to determine that the detected operation is the first operation when the following preset conditions are met: continuously acquiring sensing data corresponding to the detected operation between the first time and the second time;
the first time is the starting time of the detected operation, and the second time is the ending time of the detected operation.
As an example, the preset condition further includes:
the touch areas of the display area are adjacent to each other when the operation is detected at any adjacent time between the first time and the second time.
As an example, the preset condition further includes:
sensing that the area of the touch area of the detected operation exceeds an area threshold in the display area.
As an example, the control instruction updates the state of the second electronic device corresponding to the at least two objects, which is the same as the state of the second electronic device corresponding to the at least two objects that receives the at least two second operations and updates the state of the second electronic device corresponding to the at least two objects.
As an example, the at least two objects are at least two of the objects displayed in the display area; or,
the at least two objects are at least two of the objects in the display interface, and the display area bears part of or all of the objects in the display interface.
As an example, the control unit 140 includes:
a detection module 1401, configured to detect states of the second electronic device corresponding to the at least two objects, where the detection module may be implemented by an MCU, a CPU, and an ASIC FPGA in the first electronic device;
the determining module 1402 is connected to the detecting module 1401, and is configured to determine, based on the detection result, the second electronic device in a predetermined state, where the determining module may be implemented by an MCU, a CPU, and an ASIC FPGA in the first electronic device;
the sending module 1403 is connected to the determining module 1402, and configured to send the control instruction to the second electronic device in the predetermined state, which may be implemented by a cellular communication ASIC or a WiFi communication ASIC in the first electronic device 100.
As an example, the display unit 110 is further configured to present operation progress information corresponding to the detected operation;
wherein the operation progress information is determined based on at least one of the following characteristic information of the detected operation: operating time; and (4) operating the displacement.
As an example, the display unit 110 is further configured to present control progress information corresponding to a first operation when the determination unit 130 determines that the operation detected by the detection unit 120 is the first operation satisfying the preset condition; and the control progress information represents the completion progress of updating the states of the second electronic equipment corresponding to the at least two objects.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.