Device control method, electronic device, system, storage medium and computer program product
By setting up multiple interaction areas and animations in electronic devices and generating device control instructions, the problem of single interaction methods of traditional touch screen devices is solved, diversified home equipment control is achieved, and costs are reduced.
Patent Information
- Application Number
- CN202411002779.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-11-12
AI Technical Summary
The traditional 86-box touch screen device interaction method is single, with high cost, and cannot effectively meet the diverse home equipment control needs.
By setting a first control area and a second control area in the electronic device, respectively, for displaying and interacting the controls and animations of the home device, device control instructions are generated based on touch operations, and multiple interactive methods are supported to control the home device, including obtaining configurations Information to determine the device matching relationship and generate corresponding control instructions and animations in the event of matching or mismatch.
It improves the diversity of interactive operation of electronic devices, reduces equipment costs, provides flexible home equipment control methods, and meets the operation needs of different equipment.
Smart Images

Figure CN118938699A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a device control method, electronic equipment, system, apparatus, storage medium and computer program product. Background Art
[0002] With the development of Internet of Things technology, the rapid development of smart home and other industries, there are more and more smart home devices in modern homes, and touch screen devices in the form of 86 boxes are gradually being used in modern homes to operate various smart home devices. Users can control different smart home devices by touching the icons, buttons or texts displayed on the screen of the touch screen device.
[0003] In the traditional technology, the 86-box touch screen device is usually in the form of a full screen, but the cost of the full screen is high, and the interaction method of the full screen is relatively single. Therefore, the traditional full screen touch screen device has the technical defect of a single interaction method. Summary of the invention
[0004] Based on this, it is necessary to provide an improved device control method, electronic device, system, apparatus, computer-readable storage medium and computer program product to address the above technical problems.
[0005] In a first aspect, the present application provides a device control method. The method comprises:
[0006] Displaying, via the first control area, a first device control of a first home device associated with the electronic device;
[0007] Displaying a second household device associated with the electronic device through the second control area; the first household device is the same as or different from the second household device;
[0008] Based on the touch operation of the first device control and / or the touch operation of the second control area, a device control instruction is generated; the device control instruction is used to instruct the first home device and / or the second home device to perform a corresponding action.
[0009] In one of the embodiments, before generating the device control instruction based on the touch operation of the first device control and / or the touch operation of the second control area, the method further includes:
[0010] Acquire preset configuration information; the configuration information is used to indicate an operation matching relationship between the first control area and the second control area;
[0011] According to the operation matching relationship, it is determined whether the first household device is the same as the second household device.
[0012] In one embodiment, generating a device control instruction based on the touch operation of the first device control and / or the touch operation of the second control area includes:
[0013] If the operation matching relationship indicates a match, it is confirmed that the first household device is the same as the second household device;
[0014] generating the device control instruction and the device control animation of the first home device according to the first touch operation of the first device control, or generating the device control instruction and the device control animation of the second home device according to the second touch operation of the second control area; the first touch operation is the same as or different from the second touch operation;
[0015] The device control animation is displayed in the second control area.
[0016] In one embodiment, generating a device control instruction based on the touch operation of the first device control and / or the touch operation of the second control area includes:
[0017] If the operation matching relationship representation does not match, confirming that the first home appliance is different from the second home appliance;
[0018] generating the device control instruction of the first home device according to the first touch operation of the first device control;
[0019] A target animation of the second home appliance is generated according to the information to be displayed of the second home appliance, and the target animation is displayed in the second control area; the target animation represents an animation that is unrelated to the first touch operation.
[0020] In one embodiment, generating the device control instruction of the first home device according to the first touch operation of the first device control includes:
[0021] If there are multiple first household devices, acquiring a touch position corresponding to the first touch operation of the first device control;
[0022] According to the number of devices, determining a target home device corresponding to the touch position from the plurality of first home devices;
[0023] The device control instruction of the target home device is generated according to the operation information of the first touch operation.
[0024] In a second aspect, the present application further provides an electronic device. The electronic device comprises a first control area and a second control area; the first control area and the second control area are arranged on the same layer;
[0025] The first control area is used to display a first device control of a first household device associated with the electronic device;
[0026] The second control area is used to display a second home appliance associated with the electronic device; the first home appliance is the same as or different from the second home appliance; a device control instruction is generated based on a touch operation of the first device control or a touch operation of the second control area; the device control instruction is used to instruct the first home appliance or the second home appliance to perform a corresponding action.
[0027] In one of the embodiments, a conductive medium is further provided on the outer layer of the first control area; the conductive medium is used to feedback the touch operation triggered in the first control area.
[0028] In one of the embodiments, the electronic device further comprises at least one screen cover;
[0029] At least one of the screen covers covers the first control area and the second control area; or,
[0030] One of the screen covers covers the second control area, and a screen cover different from the screen cover above the second control area covers the first control area;
[0031] The screen cover covering the second control area is used to obtain a wake-up operation for the second control area; the wake-up operation is used to wake up the second control area for interface display.
[0032] In a third aspect, the present application also provides a device control system. The system includes an electronic device, a first home device and a second home device; the electronic device is associated with the first home device and the second home device; the first home device and the second home device are the same or different; the electronic device includes a first control area and a second control area;
[0033] The electronic device is used to display a first device control of the first household device through the first control area; and display the second household device through the second control area; and generate a device control instruction based on a touch operation of the first device control or the second control area; and the device control instruction is used to instruct the first household device or the second household device to perform a corresponding action;
[0034] The first home device or the second home device is used to perform a corresponding action according to the device control instruction.
[0035] In one embodiment, the system further includes a server or a cloud;
[0036] The electronic device is further used to send the device control instruction to the server or the cloud;
[0037] The server or the cloud is used to forward the received device control instruction to the first home device or the second home device;
[0038] The first home device or the second home device is further configured to execute corresponding actions according to the received device control instruction.
[0039] In a fourth aspect, the present application also provides a device control apparatus. The apparatus comprises:
[0040] A first control module, configured to display a first device control of a first household device associated with the electronic device through a first control area;
[0041] A second control module, configured to display a second household device associated with the electronic device through a second control area; the first household device is the same as or different from the second household device;
[0042] An instruction generation module is used to generate a device control instruction based on the touch operation of the first device control and / or the touch operation of the second control area; the device control instruction is used to instruct the first home device and / or the second home device to perform a corresponding action.
[0043] In one of the embodiments, the device control apparatus further includes an information acquisition module for acquiring preset configuration information; the configuration information is used to indicate an operation matching relationship between the first control area and the second control area; and based on the operation matching relationship, determining whether the first home appliance and the second home appliance are the same.
[0044] In one embodiment, the instruction generation module is also used to confirm that the first household device is the same as the second household device if the operation matching relationship representation matches; generate the device control instruction and the device control animation of the first household device according to the first touch operation of the first device control, or generate the device control instruction and the device control animation of the second household device according to the second touch operation of the second control area; the first touch operation is the same as or different from the second touch operation; and display the device control animation in the second control area.
[0045] In one of the embodiments, the instruction generation module is also used to confirm that the first household device is different from the second household device if the operation matching relationship representation does not match; generate the device control instruction of the first household device according to the first touch operation of the first device control; generate the target animation of the second household device according to the information to be displayed of the second household device, and display the target animation in the second control area; the target animation representation is an animation unrelated to the first touch operation.
[0046] In one of the embodiments, the instruction generation module is further used to obtain the touch position corresponding to the first touch operation of the first device control if there are multiple first home appliances; determine the target home appliance corresponding to the touch position from the multiple first home appliances according to the number of devices; and generate the device control instruction of the target home appliance according to the operation information of the first touch operation.
[0047] In a fifth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0048] Displaying, via the first control area, a first device control of a first home device associated with the electronic device;
[0049] Displaying a second household device associated with the electronic device through the second control area; the first household device is the same as or different from the second household device;
[0050] Based on the touch operation of the first device control and / or the touch operation of the second control area, a device control instruction is generated; the device control instruction is used to instruct the first home device and / or the second home device to perform a corresponding action.
[0051] In a sixth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0052] Displaying, via the first control area, a first device control of a first home device associated with the electronic device;
[0053] Displaying a second household device associated with the electronic device through the second control area; the first household device is the same as or different from the second household device;
[0054] Based on the touch operation of the first device control and / or the touch operation of the second control area, a device control instruction is generated; the device control instruction is used to instruct the first home device and / or the second home device to perform a corresponding action.
[0055] The above-mentioned device control method, apparatus, computer device, storage medium and computer program product display the first device control of the first home appliance associated with the electronic device through the first control area; display the second home appliance associated with the electronic device through the second control area; the first home appliance is the same as or different from the second home appliance; based on the touch operation of the first device control and / or the touch operation of the second control area, the device control instruction is generated; the device control instruction is used to instruct the first home appliance and / or the second home appliance to perform a corresponding action. By adopting this method, a variety of interaction modes can be provided through the first control area and / or the second control area to control the first home appliance and / or the second home appliance to perform a corresponding action, thereby improving the diversity of the interactive operations of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 An application environment diagram of a device control method in an embodiment;
[0057] Figure 2 A schematic diagram of a flow chart of a device control method in one embodiment;
[0058] Figure 3 A schematic diagram of an interface for setting configuration information for a user terminal in an embodiment;
[0059] Figure 4 A schematic diagram of an interface for setting configuration information through an electronic device in an embodiment;
[0060] Figure 5 A schematic diagram of a flow chart of steps for generating a device control instruction in an embodiment;
[0061] Figure 6 It is a schematic diagram of the linkage display of the first device control and the second control area in one embodiment;
[0062] Figure 7 It is a schematic diagram of another first device control and a second control area being displayed in linkage in one embodiment;
[0063] Figure 8 It is a schematic diagram of another first device control and a second control area being displayed in linkage in an embodiment;
[0064] Fig. 9 is a flow chart of a device control method in another embodiment;
[0065] Fig.10is a flow chart of a device control method in yet another embodiment;
[0066] Fig.11 is a structural block diagram of a device control device in an embodiment;
[0067] Fig.12 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0068] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0069] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0070] The device control method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the application environment can be a smart home system, which can include: a router, a gateway, an electronic device 101 (such as a smart home controller), a server or a cloud 102, a first home device 103 (such as a lamp, a curtain, a socket, an air conditioner, a door lock, a switch) and a second home device 104 (such as a lamp, a curtain, a socket, an air conditioner, a door lock, a switch), etc. In the smart home system, the first home device 103 and the second home device 104 can be connected to the gateway via ZIGBEE / Bluetooth / WiFi, and the gateway and the electronic device 101 can be connected to the router via WiFi respectively. In addition, the electronic device 101 can also establish a network connection with the server or the cloud 102 via 2G / 3G / 4G / 5G, WiFi, etc., so as to obtain data sent by the server or the cloud 102.
[0071] The electronic device includes a first control area with a touch function and a second control area with a display and interaction function. The server can be implemented by an independent server or a server cluster composed of multiple servers, or by a cloud server.
[0072] In one embodiment, Figure 2 As shown, a device control method is provided, which is applied to Figure 1 The electronic device in the example is used to illustrate, and the following steps are included:
[0073] Step S201: displaying a first device control of a first home device associated with the electronic device through a first control area.
[0074] The first control area is an area of the electronic device used for human-computer interaction and home control, and the second control area is another area of the electronic device used for human-computer interaction and home control. The first control area does not have a display function, while the second control area has a display function.
[0075] Specifically, the first control area is provided with a first device control, and the user can control the first home device associated with the electronic device by performing a touch operation on the first device control.
[0076] Step S202: displaying a second home appliance associated with the electronic device through the second control area; the first home appliance and the second home appliance are the same or different.
[0077] Specifically, the second control area has a display function, for example, a display screen may be provided in the second control area, and the second home appliance associated with the electronic device may be displayed through the display screen. The user may touch the display screen based on the content displayed on the display screen of the second control area to control the second home appliance.
[0078] In actual application, the user can set the first control area and the second control area of the electronic device to control different furniture devices respectively, in which case the first home device and the second home device belong to different furniture devices. The user can also set the first control area and the second control area of the electronic device to control the same furniture device, in which case the first home device and the second home device belong to the same furniture device.
[0079] Step S203: Generate a device control instruction based on the touch operation of the first device control and / or the touch operation of the second control area; the device control instruction is used to instruct the first home device and / or the second home device to perform a corresponding action.
[0080] Specifically, the user can interact with the first device control, such as click, long press, slide and other touch operations; the electronic device generates a device control instruction according to the touch operation; the electronic device can directly send the device control instruction to the corresponding first home device; the electronic device can also first send the device control instruction to the gateway, and the gateway forwards the device control instruction to the corresponding first home device; the electronic device can also first send the device control instruction to the server or the cloud, and then the server or the cloud forwards the device control instruction to the corresponding first home device. The first home device performs a corresponding action according to the received device control instruction. For example, assuming that the first home device is an air conditioner, the air conditioner can perform a cooling action according to the received device control instruction.
[0081] Similarly, the user can also interact with the second control area, such as click, long press, slide and other touch operations; the electronic device generates a device control instruction according to the touch operation; the electronic device can directly send the device control instruction to the corresponding second home device; the electronic device can also first send the device control instruction to the gateway, and the gateway forwards the device control instruction to the corresponding second home device; the electronic device can also first send the device control instruction to the server or the cloud, and then the server or the cloud forwards the device control instruction to the corresponding second home device. For another example, assuming that the second home device is a smart light, the smart light can perform the light-on action according to the received device control instruction.
[0082] In the above device control method, various interaction modes can be provided through the first control area and / or the second control area to control the first home device and / or the second home device to perform corresponding actions, thereby improving the diversity of interactive operations of electronic devices.
[0083] In one embodiment, in the above step S203, before generating the device control instruction based on the touch operation of the first device control and / or the touch operation of the second control area, it also includes: obtaining preset configuration information; the configuration information is used to indicate the operation matching relationship between the first control area and the second control area; according to the operation matching relationship, determining whether the first home device and the second home device are the same.
[0084] Specifically, the user can set the operation matching relationship between the first control area and the second control area through the user terminal used by the user, that is, set the configuration information. Then the user terminal can upload the set configuration information to the server or the cloud, and the server or the cloud will send the configuration information to the electronic device, and the electronic device will obtain the configuration information; the user terminal can also send the configuration information directly to the electronic device.
[0085] For example, a user can set configuration information through an application (Application, App) in a user terminal. Figure 3 This is a schematic diagram of the interface for setting configuration information through the user terminal, such as Figure 3 As shown, the user terminal can display options for multiple operation modes of the first control area and the second control area in the interface, such as the "matching operation" option and the "separate operation" option; wherein the "matching operation" option indicates that the operation matching relationship between the first control area (such as the display screen of the electronic device) and the second control area (such as the bottom touch area of the electronic device) is matched, while the "separate operation" option indicates that the operation matching relationship between the first control area and the second control area is not matched. The user terminal generates configuration information according to the option selected by the user in the displayed interface.
[0086] Furthermore, the user may also directly set the operation matching relationship between the first control area and the second control area in the electronic device, that is, set the configuration information.
[0087] For example, Figure 4 This is a schematic diagram of an interface for setting configuration information through an electronic device. The second control area of the electronic device can also display options for various operation modes of the first control area and the second control area, such as the above-mentioned "matching control" option and "separate control" option. The electronic device generates configuration information according to the option selected by the user in the displayed interface.
[0088] Finally, the electronic device determines whether the first home appliance and the second home appliance belong to the same furniture appliance according to the operation matching relationship indicated by the configuration information.
[0089] In this embodiment, the operation matching relationship between the first control area and the second control area is set through configuration information; according to the operation matching relationship indicated by the configuration information, it is determined whether the first home appliance and the second home appliance are the same, so that subsequent users can control different or the same home appliances through the first control area and the second control area of the electronic device, which is conducive to improving the flexibility and diversification of the control functions of the first control area and the second control area.
[0090] In one embodiment, Figure 5 As shown, the above step S203 generates a device control instruction based on the touch operation of the first device control and / or the touch operation of the second control area, which specifically includes the following contents:
[0091] Step S501: If the operation matching relationship representation matches, it is confirmed that the first home appliance is the same as the second home appliance.
[0092] Specifically, if the operation matching relationship represents a match, it can be confirmed that the first home appliance and the second home appliance belong to the same furniture appliance, that is, the first home appliance controlled by the first device control and the second home appliance controlled by the second control area are the same furniture appliance.
[0093] Step S502, generating a device control instruction and a device control animation for a first home device according to a first touch operation of a first device control, or generating a device control instruction and a device control animation for a second home device according to a second touch operation of a second control area; the first touch operation is the same as or different from the second touch operation.
[0094] Specifically, when the first home device is the same as the second home device, the user can interact with the first device control, such as clicking, tapping, sliding, long pressing, and other touch operations on the first device control; the user can also interact with the second control area, such as clicking, tapping, sliding, long pressing, and other touch operations on the content displayed in the second control area; for easy distinction, the touch operation with the first device control can be marked as the first touch operation, and the touch operation with the second control area can be marked as the second touch operation. Then the electronic device generates a device control instruction and a device control animation for the first home device according to the first touch operation, or generates a device control instruction and a device control animation for the second home device according to the second touch operation.
[0095] Step S503: display the device control animation in the second control area.
[0096] The device control animation is an animation representing a control action on the first home device or the second home device.
[0097] For example, in the case where the first home device is the same as the second home device, assuming that the first home device or the second home device is a curtain, the electronic device can display the curtain in the second control area, and the user can control the opening and closing of the curtain by sliding the first device control left and right. When the curtain is fully open, the curtain fabric displayed in the second control area is on the left. At this time, sliding the first device control from left to right closes the curtain, and the device control animation displayed in the second control area will follow the sliding direction of the first device control to display the animation of the curtain sliding left or right. That is, the animation of closing the curtain displayed by the device control animation is consistent with the direction of the sliding operation of the first device control and has the same sliding position. Figure 6It is a schematic diagram of the linkage display of the first device control and the second control area. The electronic device can also display the percentage of the current opening and closing scale of the curtain in the second control area. When the part (such as a finger) of the user performing the sliding operation leaves the first device control, the electronic device generates a device control instruction and sends it to the curtain, and the curtain automatically performs the corresponding action. Of course, the electronic device can also generate a device control instruction in real time according to the sliding operation and send it to the curtain, so that the curtain can synchronously perform the corresponding action during the user's sliding operation. It can be understood that the curtain can also be directly controlled through the second control area. The user can control the opening and closing scale of the curtain by sliding the curtain displayed in the second control area left and right. For example, when the curtain is fully open, the curtain cloth of the curtain displayed in the second control area is on the left. At this time, sliding the curtain displayed in the second control area from left to right is to close the curtain. At the same time, the device control animation displayed in the second control area will also display the animation of the curtain sliding in the direction of its sliding, that is, the animation of closing the curtain displayed by the device control animation is consistent with the direction of the sliding operation of the second control area, and the sliding position is the same. The electronic device can also display the percentage of the current opening and closing scale of the curtain in the second control area. When the part of the user performing the sliding operation (such as a finger) leaves the second control area, the electronic device generates a device control instruction and sends it to the curtain, and the curtain automatically performs the corresponding action. Of course, the electronic device can also generate a device control instruction in real time according to the sliding operation and send it to the curtain, so that the curtain can synchronously perform the corresponding action during the user's sliding operation.
[0098] For another example, in the case where the first home appliance and the second home appliance are the same, assuming that the first home appliance or the second home appliance is a switch, the electronic device may display the switch in the second control area. Figure 7 Another schematic diagram of the linkage display of the first device control and the second control area. The user can click on the switch displayed in the second control area to turn on or off the corresponding switch device, and the user can also click on a certain position in the first device control to turn on or off the switch device corresponding to the clicked position. It should be noted that the switch device corresponding to the clicked position in the first device control corresponds to the display position of each switch device in the second control area; for example, Figure 7 As shown, if you click on the left side of the first device control, the switch device displayed on the left side of the second control area will be turned on; if you click on the middle of the first device control, the switch device displayed in the middle of the second control area will be turned on; if you click on the right side of the first device control, the switch device displayed on the right side of the second control area will be turned on.
[0099] For example, in the case where the first home device and the second home device are the same, assuming that the first home device or the second home device is a smart speaker, the electronic device can display the local weather and / or the volume of the smart speaker read by the smart speaker in the second control area. Figure 8 Another schematic diagram showing the linkage between the first device control and the second control area. The user can adjust the volume of the smart speaker by sliding the first device control. For example, when the first device control is slid to the left, the volume of the smart speaker decreases, and when the first device control is slid to the right, the volume of the smart speaker increases. The second control area can synchronously display the volume of the smart speaker after the volume adjustment. It is understandable that the user can also adjust the volume of the smart speaker through the second control area, for example, the volume can be adjusted through the volume button displayed in the second control area. The interaction between the user and the volume button includes clicks, combos, slides and other interaction actions; for example, when the user slides the volume button to the left, the volume of the smart speaker decreases, and when the volume button is slid to the right, the volume of the smart speaker increases; for another example, the volume button includes a volume increase button and a volume decrease button. When the user clicks the volume increase button, the volume of the smart speaker increases, and when the user clicks the volume decrease button, the volume of the smart speaker decreases.
[0100] In this embodiment, if the operation matching relationship representation matches, it means that the first home appliance and the second home appliance belong to the same home appliance; then, the device control instruction and device control animation of the first home appliance can be generated according to the first touch operation of the first device control, or the device control instruction and device control animation of the second home appliance can be generated according to the second touch operation of the second control area, thereby realizing the linkage control of the first device control and the second control area and the display of the device control animation.
[0101] In one embodiment, the above step S203 generates a device control instruction based on the touch operation of the first device control and / or the touch operation of the second control area, and specifically includes the following contents: if the operation matching relationship representation does not match, it is confirmed that the first home appliance and the second home appliance are different; according to the first touch operation of the first device control, a device control instruction of the first home appliance is generated; according to the information to be displayed of the second home appliance, a target animation of the second home appliance is generated, and the target animation is displayed in the second control area; the target animation represents an animation unrelated to the first touch operation.
[0102] It should be noted that the target animation is different from the device control animation. The target animation may be pre-set or generated according to the information to be displayed of the second home device. The content of the target animation is irrelevant to the first touch operation.
[0103] Specifically, if the operation matching relationship representation does not match, it can be confirmed that the first home appliance and the second home appliance belong to different home appliances, that is, the first home appliance controlled by the first device control and the second home appliance controlled by the second control area are different home appliances. The electronic device generates a target animation for the second home appliance based on the information to be displayed on the second home appliance, and displays the target animation in the second control area. At this time, if the user triggers the first touch operation on the first device control, the electronic device generates a device control instruction for the first home appliance based on the first touch operation, and at this time the second control area continues to display the target animation, that is, continues to display the target animation of the second home appliance, and does not generate and display the device control animation corresponding to the first home appliance.
[0104] For example, Figure 7 As shown, in the case where the operation matching relationship representation does not match, assuming that the first home appliance is a curtain and the second home appliance is a smart speaker, if the user slides the first device control, the electronic device adjusts the opening and closing scale and opening and closing direction of the curtain according to the sliding distance and sliding direction corresponding to the sliding operation; while the second control area still displays content related to the smart speaker, such as showing the weather information read by the smart speaker, and does not display the device control animation of the curtain. If the user adjusts the volume of the smart speaker through the second control area, for example, the volume adjustment operation can be performed through the volume button displayed in the second control area, the electronic device adjusts the volume of the smart speaker according to the volume adjustment operation, and the curtain will not open or close accordingly, and the first device control and the curtain continue to maintain their original state.
[0105] In this embodiment, when the operation matching relationship representation does not match, the function control of the first home appliance can be independently realized through the first device control; the target animation of the second home appliance can also be independently displayed in the second control area. While realizing independent control of the first home appliance and the second home appliance, there is no need to expand the components of the electronic device, thereby saving the cost of controlling the home appliance with the electronic device and increasing the diversity of the control methods of the home appliance.
[0106] In one embodiment, a device control instruction for a first home appliance is generated according to a first touch operation of a first device control, specifically including the following contents: if there are multiple first home appliances, a touch position corresponding to the first touch operation of the first device control is obtained; according to the number of devices, a target home appliance corresponding to the touch position is determined from multiple first home appliances; and according to the operation information of the first touch operation, a device control instruction for the target home appliance is generated.
[0107] Specifically, if there are multiple first home appliances, the electronic device can calculate the control position corresponding to each first home appliance on the first device control according to the number of appliances; if the touch position corresponding to the user's first touch operation on the first device control is obtained, the target home appliance corresponding to the touch position is determined according to the control position corresponding to each first home appliance on the first device control, and then the device control instruction of the target home appliance is generated based on the operation information of the first touch operation.
[0108] For example, assuming that the first home appliance includes switch 1, switch 2, and switch 3, the first 34% of the control positions of the first device control are used to control switch 1, the 34%-67% of the control positions of the first device control are used to control switch 2, and the 67%-100% of the control positions of the first device control are used to control switch 3. If the user clicks on the 40% position of the first device control, the electronic device obtains a touch position of 40%, and then the electronic device generates a device control instruction for switch 2. For another example, assuming that the first home appliance includes curtain 1, curtain 2, and curtain 3, the first 34% of the control positions of the first device control are used to control curtain 1, the 34%-67% of the control positions of the first device control are used to control curtain 2, and the 67%-100% of the control positions of the first device control are used to control curtain 3. If the user clicks on the 69% position of the first device control, the electronic device obtains a touch position of 69%, and then the electronic device generates a device control instruction for curtain 3.
[0109] In this embodiment, when there are multiple first home appliances, the electronic device can also accurately determine the target home appliance to be controlled based on the number of appliances and the touch position, and then generate a device control instruction for the target home appliance to control the target home appliance through the device control instruction.
[0110] In one embodiment, Fig. 9 As shown, another device control method is provided, which is applied to Figure 1 The electronic device in the example is used to illustrate, and the following steps are included:
[0111] Step S901: displaying a first device control of a first home device associated with the electronic device through a first control area.
[0112] Step S902: displaying a second home appliance associated with the electronic device through the second control area; the first home appliance and the second home appliance are the same or different.
[0113] Step S903, obtaining preset configuration information; the configuration information is used to indicate the operation matching relationship between the first control area and the second control area.
[0114] Step S904: determining whether the first home appliance and the second home appliance are the same according to the operation matching relationship.
[0115] Step S905: If the operation matching relationship representation matches, it is confirmed that the first home appliance is the same as the second home appliance.
[0116] Step S906, generating a device control instruction and a device control animation for a first home device according to a first touch operation of a first device control, or generating a device control instruction and a device control animation for a second home device according to a second touch operation of a second control area; the first touch operation is the same as or different from the second touch operation.
[0117] Step S907: display the device control animation in the second control area.
[0118] Step S908: If the operation matching relationship representation does not match, it is confirmed that the first home appliance and the second home appliance are different.
[0119] Step S909: Generate a device control instruction for the first home device according to the first touch operation of the first device control.
[0120] Step S910, generating a target animation of the second home appliance according to the information to be displayed of the second home appliance, and displaying the target animation in the second control area; the target animation represents an animation unrelated to the first touch operation.
[0121] The above-mentioned device control method can achieve the following beneficial effects: it can provide various interaction modes through the first control area and / or the second control area to control the first home device and / or the second home device to perform corresponding actions, thereby improving the diversity of interactive operations of electronic devices.
[0122] In order to more clearly illustrate the device control method provided by the embodiment of the present disclosure, the device control method is specifically described below with a specific embodiment. Fig.10 As shown, another device control method is provided, which can be applied to Figure 1 The electronic equipment in the system includes the following:
[0123] The user sets configuration information on the electronic device or the user terminal according to actual conditions. The configuration information is shown in Table 1 and Table 2.
[0124] Table 1
[0125]
[0126] Table 2
[0127]
[0128] like Fig.10 As shown, when the operation matching relationship between the first control area and the second control area represents a match, the electronic device can display the percentage of the current opening and closing scale of the curtain in the second control area. The user slides on the first device control without letting go, and the device control animation in the second control area also slides synchronously. If the user lets go, the electronic device reports the curtain percentage at the moment the user lets go to the cloud, and the cloud sends it to the curtain to execute the command. After the curtain is executed, the curtain uploads the real data to the cloud, and the cloud forwards the real data to the electronic device. The electronic device adjusts according to the real curtain percentage. In order to prevent the curtain animation from shaking and affecting the user experience, if the difference between the real data and the current device control animation of the curtain is within ±5, no change will be made to prevent shaking.
[0129] In this embodiment, the user's sliding operation is acquired through the first device control, and the device control animation is displayed through the second control area, which effectively improves the diversity of interactive operations of the electronic device.
[0130] In one embodiment, an electronic device is provided, which includes a first control area and a second control area; the first control area and the second control area are arranged on the same layer; the first control area is used to display a first device control of a first household device associated with the electronic device; the second control area is used to display a second household device associated with the electronic device; the first household device is the same as or different from the second household device; based on a touch operation of the first device control or a touch operation of the second control area, a device control instruction is generated; the device control instruction is used to instruct the first household device or the second household device to perform a corresponding action.
[0131] The first control area and the second control area are structurally in the same layer, so that a screen cover is arranged above the first control area and the second control area to protect the first control area and the second control area at the same time. In practical applications, the first control area and the second control area are arranged in the same layer, which can also facilitate users to flexibly switch to interact with the first control area or the second control area, thereby improving the user's interactive experience.
[0132] Specifically, the first device control of the first control area of the electronic device is used to provide a touch function, and the first device control does not have a display function. The second control area has a display function and a touch function, but the cost of the first control area is lower than that of the second control area. For example, the first control area can be a touchpad, and the second control area can be a display screen; assuming that the size of the electronic device is 4 inches, the electronic device can be composed of a 3-inch display screen and a 1-inch touchpad. This method is lower in cost than the electronic device composed of a 4-inch full screen in traditional technology, and is more flexible than the interaction method of the electronic device composed of a display screen and buttons in traditional technology. For the specific processing flow between the first control area and the second control area, please refer to the above embodiment, which will not be repeated here.
[0133] In this embodiment, various interaction methods can be provided through the first control area and / or the second control area to control the first home appliance and / or the second home appliance to perform corresponding actions, which not only improves the diversity of interactive operations of electronic devices, but also effectively reduces the manufacturing cost of electronic devices.
[0134] In one embodiment, the outer layer of the first control area is further provided with a conductive medium; the conductive medium is used to feedback the touch operation triggered in the first control area.
[0135] The conductive medium may be silk screen.
[0136] Specifically, a silk screen may be provided on the outer layer of the first control area, for example, a silk screen in the form of vertical bars, and the touch operation triggered by the user in the first control area may be transmitted and fed back through the silk screen.
[0137] In this embodiment, by providing a conductive medium on the outer layer of the first control area, the conductive medium can be used to better indicate the user's touch operation, thereby improving the interaction effect between the user and the first control area.
[0138] In one embodiment, the electronic device also includes at least one screen cover; at least one screen cover covers the first control area and the second control area; or, one of the screen covers covers the second control area, and a screen cover different from that above the second control area covers the first control area; the screen cover covering the second control area is used to obtain a wake-up operation for the second control area; the wake-up operation is used to wake up the second control area for interface display.
[0139] The screen cover may be a glass cover.
[0140] Specifically, a screen cover is provided above the first control area and the second control area, which may be covered by one screen cover at the same time, or by different screen covers respectively. The screen cover is used to protect the second control area and collect wake-up operations for the second control area. For example, when the second control area is dormant, the user can double-click the screen cover, and the electronic device responds to the user's double-click operation, wakes up the second control area from the dormant state and controls the second control area to display the interface. It should be noted that no matter whether the user double-clicks the screen cover located above the first control area or the screen cover located above the second control area, the second control area can be woken up for interface display.
[0141] In this embodiment, by setting a screen cover above the first control area and the second control area, on the one hand, the second control area can be protected, and on the other hand, the appearance effects of the first control area and the second control area can be unified, thereby improving the aesthetics of the electronic device.
[0142] In one embodiment, a device control system is also provided, which includes an electronic device, a first household device and a second household device; the electronic device is associated with the first household device and the second household device; the first household device and the second household device are the same as or different; the electronic device includes a first control area and a second control area; the electronic device is used to display a first device control of the first household device through the first control area; and to display the second household device through the second control area; based on a touch operation of the first device control or the second control area, a device control instruction is generated; the device control instruction is used to instruct the first household device or the second household device to perform a corresponding action; the first household device or the second household device is used to perform a corresponding action according to the device control instruction.
[0143] The specific implementation method is shown in the above embodiment and will not be described in detail here.
[0144] In this embodiment, various interaction methods can be provided through the first control area and / or the second control area of the electronic device to control the first home device and / or the second home device to perform corresponding actions, thereby improving the diversity of interactive operations of the electronic device.
[0145] In one embodiment, the above-mentioned device control system also includes a server or a cloud; the electronic device is also used to send device control instructions to the server or the cloud; the server or the cloud is used to forward the received device control instructions to the first home device or the second home device; the first home device or the second home device is also used to perform corresponding actions according to the received device control instructions.
[0146] Specifically, in addition to directly sending the device control instruction to the first home device or the second home device, the electronic device can also first send the device control instruction to the server or the cloud, and then the server or the cloud forwards the received device control instruction to the first home device or the second home device; and then the first home device or the second home device performs corresponding actions according to the received device control instruction.
[0147] In this embodiment, the transmission of the device control instruction can be achieved through a server or a cloud, which improves the diversity of the device control instruction transmission methods and ensures that the device control instruction can be reliably transmitted to the first home device or the second home device.
[0148] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0149] Based on the same inventive concept, the embodiment of the present application also provides a device control device for implementing the device control method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more device control device embodiments provided below can refer to the limitations on the device control method above, and will not be repeated here.
[0150] In one embodiment, Fig.11 As shown, a device control apparatus 1100 is provided, comprising: a first control module 1101, a second control module 1102 and an instruction generation module 1103, wherein:
[0151] The first control module 1101 is used to display a first device control of a first home device associated with the electronic device through a first control area.
[0152] The second control module 1102 is used to display a second household device associated with the electronic device through a second control area; the first household device is the same as or different from the second household device.
[0153] The instruction generation module 1103 is used to generate a device control instruction based on the touch operation of the first device control and / or the touch operation of the second control area; the device control instruction is used to instruct the first home device and / or the second home device to perform a corresponding action.
[0154] In one embodiment, the device control apparatus 1100 further includes an information acquisition module for acquiring preset configuration information; the configuration information is used to indicate an operation matching relationship between the first control area and the second control area; and based on the operation matching relationship, determining whether the first home appliance and the second home appliance are the same.
[0155] In one embodiment, the instruction generation module 1103 is also used to confirm that the first home appliance is the same as the second home appliance if the operation matching relationship represents a match; generate a device control instruction and a device control animation for the first home appliance according to a first touch operation of the first device control, or generate a device control instruction and a device control animation for the second home appliance according to a second touch operation of the second control area; the first touch operation is the same as or different from the second touch operation; and display the device control animation in the second control area.
[0156] In one embodiment, the instruction generation module 1103 is also used to confirm that the first home appliance and the second home appliance are different if the operation matching relationship representation does not match; generate a device control instruction for the first home appliance according to the first touch operation of the first device control; generate a target animation for the second home appliance according to the information to be displayed of the second home appliance, and display the target animation in the second control area; the target animation representation is an animation unrelated to the first touch operation.
[0157] In one embodiment, the instruction generation module 1103 is further used to obtain the touch position corresponding to the first touch operation of the first device control if there are multiple first home appliances; determine the target home appliance corresponding to the touch position from the multiple first home appliances according to the number of appliances; and generate a device control instruction for the target home appliance according to the operation information of the first touch operation.
[0158] Each module in the above-mentioned device control device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.
[0159] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.12As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a device control method is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0160] Those skilled in the art will understand that Fig.12 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0161] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0162] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0163] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0164] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0165] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0166] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A device control method, characterized in that: The method comprises: Displaying, via the first control area, a first device control of a first home device associated with the electronic device; Displaying a second household device associated with the electronic device through the second control area; the first household device is the same as or different from the second household device; Based on the touch operation of the first device control and / or the touch operation of the second control area, a device control instruction is generated; the device control instruction is used to instruct the first home device and / or the second home device to perform a corresponding action.
2. The method according to claim 1, characterized in that Before generating a device control instruction based on the touch operation of the first device control and / or the touch operation of the second control area, the method further includes: Acquire preset configuration information; the configuration information is used to indicate an operation matching relationship between the first control area and the second control area; According to the operation matching relationship, it is determined whether the first household device is the same as the second household device.
3. The method according to claim 2, characterized in that The generating of a device control instruction based on the touch operation of the first device control and / or the touch operation of the second control area includes: If the operation matching relationship indicates a match, it is confirmed that the first household device is the same as the second household device; generating the device control instruction and the device control animation of the first home device according to the first touch operation of the first device control, or generating the device control instruction and the device control animation of the second home device according to the second touch operation of the second control area; the first touch operation is the same as or different from the second touch operation; The device control animation is displayed in the second control area.
4. The method according to claim 2, characterized in that: The generating of a device control instruction based on the touch operation of the first device control and / or the touch operation of the second control area includes: If the operation matching relationship representation does not match, confirming that the first home appliance is different from the second home appliance; generating the device control instruction of the first home device according to the first touch operation of the first device control; A target animation of the second home appliance is generated according to the information to be displayed of the second home appliance, and the target animation is displayed in the second control area; the target animation represents an animation that is unrelated to the first touch operation.
5. The method according to claim 4, characterized in that The generating the device control instruction of the first home device according to the first touch operation of the first device control includes: If there are multiple first household devices, acquiring a touch position corresponding to the first touch operation of the first device control; According to the number of devices, determining a target home device corresponding to the touch position from the plurality of first home devices; The device control instruction of the target home device is generated according to the operation information of the first touch operation.
6. An electronic device, characterized in that: The electronic device comprises a first control area and a second control area; the first control area and the second control area are arranged on the same layer; The first control area is used to display a first device control of a first household device associated with the electronic device; The second control area is used to display a second home device associated with the electronic device; The first home appliance is the same as or different from the second home appliance; a device control instruction is generated based on a touch operation of the first device control or a touch operation of the second control area; the device control instruction is used to instruct the first home appliance or the second home appliance to perform a corresponding action.
7. The electronic device according to claim 6, characterized in that: The outer layer of the first control area is also provided with a conductive medium; the conductive medium is used to feedback the touch operation triggered in the first control area.
8. The electronic device according to claim 6, characterized in that: The electronic device further comprises at least one screen cover; At least one of the screen covers covers the first control area and the second control area; or, One of the screen covers covers the second control area, and a screen cover different from the screen cover above the second control area covers the first control area; The screen cover covering the second control area is used to obtain a wake-up operation for the second control area; the wake-up operation is used to wake up the second control area for interface display.
9. A device control system, characterized in that: The system includes an electronic device, a first household device and a second household device; the electronic device is associated with the first household device and the second household device; the first household device is the same as or different from the second household device; the electronic device includes a first control area and a second control area; The electronic device is configured to display a first device control of the first household device through the first control area; and display the second household device through the second control area; Generate a device control instruction based on the touch operation of the first device control or the second control area; the device control instruction is used to instruct the first home device or the second home device to perform a corresponding action; The first home device or the second home device is used to perform a corresponding action according to the device control instruction.
10. The system according to claim 9, characterized in that The system also includes a server or cloud; The electronic device is further used to send the device control instruction to the server or the cloud; The server or the cloud is used to forward the received device control instruction to the first home device or the second home device; The first home device or the second home device is further configured to execute corresponding actions according to the received device control instruction.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Cited By
Equipment control method and device, electronic equipment and readable storage medium
CN121092247A
