Equipment control method and device, electronic equipment and storage medium
By combining device cards in smart home applications and generating target device cards, the problem of users' cumbersome operations in multi-device control is solved, and quick control and synchronous management of multiple terminal devices is realized.
Patent Information
- Application Number
- CN202411203057.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2025-01-07
AI Technical Summary
In smart home applications, users need to frequently find and operate multiple device cards, resulting in cumbersome and redundant control processes, especially when there are many devices in the home, and there is a lack of quick control methods.
By presenting cards of multiple terminal devices in the image display interface of the application, and allowing users to merge cards through touch operations to generate target device cards, so as to perform unified control of multiple terminal devices, supporting linkage control and scene saving.
It realizes quick control of multiple terminal devices, simplifies the operation process, and improves user experience, especially when the device type is the same, synchronous control and parameter adjustment can be achieved.
Smart Images

Figure CN119270689A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of device control, and in particular to a device control method and apparatus, electronic equipment, and storage medium. Background Art
[0002] In recent years, with the development of smart home, smart home applications have gradually become popular, and the number of smart devices in users' homes has gradually increased. Users can see the cards of all smart devices in the home on the homepage of the application (APP) and operate them. At present, most of the device cards on the market have the functions of status display and power on / off operation, and need to enter the device control page for more operations.
[0003] When using smart home APP to control devices, you usually need to find different device cards and make separate settings for each device. This operation is repetitive, cumbersome and redundant, and not fast for users who have many devices at home. Summary of the invention
[0004] In view of the above problems, a device control method and apparatus, electronic device, and storage medium are proposed to overcome the above problems or at least partially solve the above problems, including:
[0005] A device control method, applied to an application, wherein the application is used to control a plurality of terminal devices, the method comprising:
[0006] Starting the application, and presenting a first device card corresponding to a first terminal device among the multiple terminal devices and a second device card corresponding to a second terminal device among the multiple terminal devices in an image display interface of the application;
[0007] In response to a first touch operation on the first device card, selecting the first device card;
[0008] In response to a second touch operation of moving the first device card from a first position of the first device card to a second position of the second device card, the first device card and the second device card are merged, and the merged target device card is presented in the image display interface of the application so as to control the first terminal device and the second terminal device through the target device card.
[0009] Optionally, the target device card includes a title bar area and a device information display area, the title bar area includes a first subtitle of the first terminal device and a second subtitle of the second terminal device, and further includes:
[0010] When the first subtitle is selected in the image display interface of the application, first device information corresponding to the first terminal device is displayed in the device information display area;
[0011] When the first subtitle is selected in the image display interface of the application, the first device information displayed in the device information display area is switched to the second device information corresponding to the second terminal device.
[0012] Optionally, it also includes:
[0013] In response to a third touch operation on the target device card, a first control for activating a multi-device linkage control function is presented in the target device card.
[0014] In response to a fourth touch operation on the first control, a linkage condition setting area corresponding to the multi-device linkage control function is presented in the target device card.
[0015] Optionally, it also includes:
[0016] In response to a fifth touch operation on the target device card, presenting a second control for releasing a multi-device linkage control function in the target device card;
[0017] In response to a sixth touch operation on the second control, the target device card is restored to an unlinked state.
[0018] Optionally, it also includes:
[0019] In response to a fifth touch operation on the target device card, a third control for saving the linkage scene is presented in the target device card.
[0020] Optionally, it also includes:
[0021] In response to a sixth touch operation of selecting and moving the first subtitle to the linkage condition setting area, setting the first subtitle and a device information display area corresponding to the first terminal device as the linkage condition setting area;
[0022] Configure the first device parameter of the first terminal device in the linkage condition setting area, and configure the second device parameter of the second terminal device in the non-linkage condition setting area;
[0023] When the current real-time device parameters of the first terminal device are the first device parameters, the device parameters of the second terminal device are adjusted according to the second device parameters.
[0024] Optionally, it also includes:
[0025] When the first terminal device and the second terminal device have the same device type, the device parameters of the first terminal device are adjusted according to the real-time device parameters of the second terminal device.
[0026] Optionally, it also includes:
[0027] In response to a seventh touch operation on the first subtitle, generating a thumbnail card of the first terminal device;
[0028] In response to an eighth touch operation of moving the thumbnail card out of the first position of the target device card, the target device card is restored to the first device card and the second device card.
[0029] Optionally, it also includes:
[0030] After the target device card is restored to the first device card and the second device card, the first device parameter is controlled to restore the current device parameter to the real-time device parameter before the card is merged.
[0031] A device control apparatus, applied to an application, wherein the application is used to control a plurality of terminal devices, the apparatus comprising:
[0032] an interface display module, configured to start the application and present, in an image display interface of the application, a first device card corresponding to a first terminal device among the multiple terminal devices and a second device card corresponding to a second terminal device among the multiple terminal devices;
[0033] a card selection module, configured to select the first device card in response to a first touch operation on the first device card;
[0034] A card merging module, for merging the first device card and the second device card in response to a second touch operation of moving the first device card from a first position of the first device card to a second position of the second device card, and presenting the merged target device card in the image display interface of the application, so as to control the first terminal device and the second terminal device through the target device card.
[0035] An electronic device comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the device control method as described above when executed by the processor.
[0036] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the device control method described above is implemented.
[0037] The embodiments of the present invention have the following advantages:
[0038] The embodiment of the present invention starts an application program and presents a first device card corresponding to a first terminal device among multiple terminal devices and a second device card corresponding to a second terminal device among multiple terminal devices in an image display interface of the application program; in response to a first touch operation on the second device card, the second device card is selected; in response to a second touch operation of moving the first device card from a first position of the first device card to a second position of the second device card, the first device card and the second device card are merged, and a merged target device card is presented in the image display interface of the application program, so that the first terminal device and the second terminal device are controlled through the target device card, so that multiple terminal devices can be controlled through one card, thereby realizing quick control of multiple terminal devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0040] Figure 1 is a flowchart of a device control method provided by an embodiment of the present invention;
[0041] Figure 2 is a flowchart of another device control method provided by an embodiment of the present invention;
[0042] Figure 3 is a flowchart of another device control method provided by an embodiment of the present invention;
[0043] Figure 4a This is a schematic diagram of a smart home APP interface provided by an embodiment of the present invention;
[0044] Figure 4b This is another schematic diagram of a smart home APP interface provided by an embodiment of the present invention;
[0045] Figure 4c This is another schematic diagram of a smart home APP interface provided by an embodiment of the present invention;
[0046] Figure 4d This is another schematic diagram of a smart home APP interface provided by an embodiment of the present invention;
[0047] Figure 4e This is another schematic diagram of a smart home APP interface provided by an embodiment of the present invention;
[0048] Figure 4f This is another schematic diagram of a smart home APP interface provided by an embodiment of the present invention;
[0049] Figure 4g This is another schematic diagram of a smart home APP interface provided by an embodiment of the present invention;
[0050] Figure 5 It is a structural schematic diagram of a device control apparatus provided in one embodiment of the present invention. DETAILED DESCRIPTION
[0051] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] Reference Figure 1 , shows a flow chart of the steps of a device control method provided by an embodiment of the present invention, which is applied to an application program, and the application program is used to control multiple terminal devices, and specifically may include the following steps:
[0053] Step S101, starting an application program, and presenting a first device card corresponding to a first terminal device among multiple terminal devices and a second device card corresponding to a second terminal device among multiple terminal devices in an image display interface of the application program;
[0054] In an embodiment of the present invention, the application program may be a smart home control APP, which is used to control multiple home terminal devices in a home network, such as air conditioning equipment, lighting equipment, curtain equipment, etc.
[0055] After the application is started, the device cards corresponding to the multiple terminal devices it controls can be displayed on the homepage. When the user needs to control a terminal device, the device card of the terminal device can be found on the image display interface, and then click on the device card to display the device parameters and other information of the terminal device. The user can modify the device parameters through the application to control the operation of the device. Specifically, the application can perform operations such as turning on the terminal device, turning off the terminal device, adjusting the device parameter value of the terminal device, adding device parameters, and deleting device parameters.
[0056] In one embodiment of the present invention, different device card types can be set. The device card type of the first device terminal is the first card type, and the device card type of the second device terminal is the second card type, wherein the area of the first card type is smaller than the area of the second card type.
[0057] In the embodiment of the present invention, the card type of the terminal device is determined by the device type of the terminal device. That is, the card type corresponding to each device type can be preset. Then, the corresponding card type is determined according to the device type of the terminal device, and the device card of the card type is presented in the application.
[0058] Step S102, in response to a first touch operation on a first device card, selecting the first device card;
[0059] In the embodiment of the present invention, the first touch operation is an operation of triggering selection of the first device card, such as a long press operation.
[0060] Step S103, in response to the second touch operation of moving the first device card from the first position of the first device card to the second position of the second device card, merge the first device card and the second device card, and present the merged target device card in the image display interface of the application to control the first terminal device and the second terminal device through the target device card.
[0061] In the embodiment of the present invention, the second touch operation is an operation to trigger moving the first device card, such as a drag operation.
[0062] After selecting the first device card, you can drag the first device card from a first position to a second position, where the first position is where the first device card is located, and the second position is where the second device card is located.
[0063] In one embodiment of the present invention, the target device card includes a title bar area and a device information display area, and the title bar area includes a first subtitle of the first terminal device and a second subtitle of the second terminal device, so that the first terminal device and the second terminal device can be controlled by one card of the target device card.
[0064] In actual application, when the first subtitle is selected in the image display interface of the application, the first device information corresponding to the first terminal device is displayed in the device information display area, and the user can view the first device information and adjust the first device information to achieve device control of the first terminal device; when the first subtitle is selected in the image display interface of the application, the first device information displayed in the device information display area is switched to the second device information corresponding to the second terminal device, and the user can view the second device information and adjust the second device information to achieve device control of the second terminal device.
[0065] In one embodiment of the present invention, when the first terminal device and the second terminal device have the same device type, the device parameters of the first terminal device can be adjusted according to the real-time device parameters of the second terminal device, that is, synchronous control can be achieved for terminal devices of the same device type, wherein the second terminal device is the master device and the first terminal device is the slave device, and the slave device changes with the device parameters of the master device. The slave device is the terminal device corresponding to the device card dragged during merging.
[0066] For example, when the cards of Air Conditioner 1 and Air Conditioner 2 are merged, if Air Conditioner 2 is dragged to Air Conditioner 1 for merging, the device parameters of Air Conditioner 2 are adjusted to the device parameters of Air Conditioner 1 after the cards are merged; if Air Conditioner 1 is dragged to Air Conditioner 2 for merging, the device parameters of Air Conditioner 1 are adjusted to the device parameters of Air Conditioner 2 after the cards are merged.
[0067] In one embodiment of the present invention, device cards of devices in the same area can be combined into one device card according to the location information of multiple terminal devices, and then the multiple terminal devices in the area can be controlled through the device card.
[0068] In another embodiment of the present invention, device cards of multiple associated terminal devices may be merged into one device card according to the device control characteristics of the multiple terminal devices to achieve collaborative control of multiple devices.
[0069] In the embodiment of the present invention, multiple first device cards can be dragged to the second device card to achieve merging, so that quick control of multiple terminal devices can be achieved through the target device card.
[0070] In an embodiment of the present invention, by starting an application, a first device card corresponding to a first terminal device among multiple terminal devices and a second device card corresponding to a second terminal device among multiple terminal devices are presented in an image display interface of the application; in response to a first touch operation on the second device card, the second device card is selected; in response to a second touch operation of moving the first device card from a first position of the first device card to a second position of the second device card, the first device card and the second device card are merged, and a merged target device card is presented in the image display interface of the application, so that the first terminal device and the second terminal device are controlled through the target device card, so that multiple terminal devices can be controlled through one card, thereby realizing quick control of multiple terminal devices.
[0071] Reference Figure 2 , shows a flow chart of the steps of a device control method provided by an embodiment of the present invention, which is applied to an application program, and the application program is used to control multiple terminal devices, and specifically may include the following steps:
[0072] Step S201, starting an application program, and presenting a first device card corresponding to a first terminal device among multiple terminal devices and a second device card corresponding to a second terminal device among multiple terminal devices in an image display interface of the application program;
[0073] In an embodiment of the present invention, the application program may be a smart home control APP, which is used to control multiple home terminal devices in a home network, such as air conditioning equipment, lighting equipment, curtain equipment, etc.
[0074] After the application is started, the device cards corresponding to the multiple terminal devices it controls can be displayed on the homepage. When the user needs to control a terminal device, the device card of the terminal device can be found on the image display interface, and then click on the device card to display the device parameters and other information of the terminal device. The user can modify the device parameters through the application to control the operation of the device. Specifically, the application can perform operations such as turning on the terminal device, turning off the terminal device, adjusting the device parameter value of the terminal device, adding device parameters, and deleting device parameters.
[0075] In one embodiment of the present invention, different device card types can be set. The device card type of the first device terminal is the first card type, and the device card type of the second device terminal is the second card type, wherein the area of the first card type is smaller than the area of the second card type.
[0076] In the embodiment of the present invention, the card type of the terminal device is determined by the device type of the terminal device. That is, the card type corresponding to each device type can be preset. Then, the corresponding card type is determined according to the device type of the terminal device, and the device card of the card type is presented in the application.
[0077] Step S202, in response to a first touch operation on a first device card, selecting the first device card;
[0078] The first touch operation is an operation for triggering selection of the first device card, such as a long press operation.
[0079] Step S203, in response to the second touch operation of moving the first device card from the first position of the first device card to the second position of the second device card, merge the first device card and the second device card, and present the merged target device card in the image display interface of the application to control the first terminal device and the second terminal device through the target device card.
[0080] In the embodiment of the present invention, the second touch operation is an operation to trigger moving the first device card, such as a drag operation.
[0081] After selecting the first device card, you can drag the first device card from a first position to a second position, where the first position is where the first device card is located, and the second position is where the second device card is located.
[0082] Step S204: In response to the third touch operation on the target device card, presenting a first control for activating the multi-device linkage control function in the target device card.
[0083] In the embodiment of the present invention, the third touch operation may be a sliding operation along the edge of the target device card, such as a right sliding operation on the left edge, a left sliding operation on the right edge, a downward sliding operation on the upper edge, and an upward sliding operation on the lower edge. The specific operation type may be set according to the actual application to activate the first control for the multi-device linkage control function. For example, when the right area slides to the left, the first control may be presented on the right edge, similar to the effect of turning pages with sliding.
[0084] Step S205: In response to the fourth touch operation on the first control, a linkage condition setting area corresponding to the multi-device linkage control function is presented in the target device card.
[0085] The fourth touch operation may be a click operation (such as a single click operation, a double click operation) or a long press operation on the first control.
[0086] In one embodiment of the present invention, in response to the fifth touch operation on the target device card, a second control for releasing the multi-device linkage control function is presented in the target device card; in response to the sixth touch operation on the second control, the target device card is restored to an unlinked state.
[0087] Among them, the fifth touch operation can be a sliding operation along the edge of the target device card, such as a right sliding operation on the left edge, a left sliding operation on the right edge, a downward sliding operation on the upper edge, and an upward sliding operation on the lower edge. In one example, the fifth touch operation is the same as the third touch operation.
[0088] In one embodiment of the present invention, in response to the fifth touch operation on the target device card, a third control for saving the linkage scene is presented in the target device card.
[0089] For example, after the linkage control function is activated, when the right area slides left, the second control and / or the third control may be presented on the right edge.
[0090] In one embodiment of the present invention, the process of device linkage control may include the following steps:
[0091] Step S11, in response to a sixth touch operation of selecting and moving the first subtitle to the linkage condition setting area, setting the first subtitle and the device information display area corresponding to the first terminal device as the linkage condition setting area;
[0092] Among them, the sixth touch operation is an operation of the terminal device for setting a condition for triggering the linkage control, which may specifically be a drag operation.
[0093] In actual applications, the first subtitle can be selected and dragged to the linkage condition setting area, so that the first terminal device is set as the terminal device corresponding to the trigger condition in the linkage control. At this time, in the application, the subtitle and device information display area corresponding to the first terminal device are the linkage condition setting area, and the linkage trigger condition can be set in the linkage condition device area.
[0094] Step S12, configuring first device parameters of the first terminal device in the linkage condition setting area, and configuring second device parameters of the second terminal device in the non-linkage condition setting area;
[0095] Step S13: when the current real-time device parameters of the first terminal device are the first device parameters, the device parameters of the second terminal device are adjusted according to the second device parameters.
[0096] After setting the first device parameter and the second device parameter, the first terminal device is a terminal device in the linkage condition setting area, then the first device parameter set by the first terminal device is the linkage trigger condition, and the second device parameter is the corresponding device control under the linkage trigger condition.
[0097] When it is detected that the real-time device parameters of the first terminal device meet the first device parameters, it is determined that the linkage control is triggered, and the second terminal device is executed to adjust the parameters according to the second device parameters, thereby realizing the linkage control of the first terminal device and the second terminal device.
[0098] In the embodiment of the present invention, the first device card of the first terminal device and the second device card of the second terminal device may be combined into a target device card, and multiple terminal devices may be linked and controlled in the target device card to achieve quick control of multiple terminal devices.
[0099] Reference Figure 3 , shows a flow chart of the steps of a device control method provided by an embodiment of the present invention, which is applied to an application program, and the application program is used to control multiple terminal devices, and specifically may include the following steps:
[0100] Step S301, starting an application program, and presenting a first device card corresponding to a first terminal device among multiple terminal devices and a second device card corresponding to a second terminal device among multiple terminal devices in an image display interface of the application program;
[0101] In an embodiment of the present invention, the application program may be a smart home control APP, which is used to control multiple home terminal devices in a home network, such as air conditioning equipment, lighting equipment, curtain equipment, etc.
[0102] After the application is started, the device cards corresponding to the multiple terminal devices it controls can be displayed on the homepage. When the user needs to control a terminal device, the device card of the terminal device can be found on the image display interface, and then click on the device card to display the device parameters and other information of the terminal device. The user can modify the device parameters through the application to control the operation of the device. Specifically, the application can perform operations such as turning on the terminal device, turning off the terminal device, adjusting the device parameter value of the terminal device, adding device parameters, and deleting device parameters.
[0103] In one embodiment of the present invention, different device card types can be set. The device card type of the first device terminal is the first card type, and the device card type of the second device terminal is the second card type, wherein the area of the first card type is smaller than the area of the second card type.
[0104] In the embodiment of the present invention, the card type of the terminal device is determined by the device type of the terminal device. That is, the card type corresponding to each device type can be preset. Then, the corresponding card type is determined according to the device type of the terminal device, and the device card of the card type is presented in the application.
[0105] Step S302, in response to a first touch operation on a first device card, selecting the first device card;
[0106] Step S303, in response to the second touch operation of moving the first device card from the first position of the first device card to the second position of the second device card, merge the first device card and the second device card, and present the merged target device card in the image display interface of the application to control the first terminal device and the second terminal device through the target device card.
[0107] Step S304: generating a thumbnail card of the first terminal device in response to the seventh touch operation on the first subtitle in the title bar area of the target device card.
[0108] Among them, the seventh touch operation can be a long press operation, and the target device card includes a title bar area and a device information display area, and the title bar area includes a first subtitle of the first terminal device and a second subtitle of the second terminal device.
[0109] Steps S301 to S303 realize merging the first device card with the second device card. When multi-device control is no longer needed, the device card corresponding to the first terminal device can be released from the target device card. Specifically, this can be achieved by dragging the first subtitle of the first terminal device.
[0110] Step S305 , in response to the eighth touch operation of moving the thumbnail card out of the first position of the target device card, restoring the target device card to the first device card and the second device card.
[0111] The eighth touch operation may be a drag operation.
[0112] In one embodiment of the present invention, when the first terminal device and the second terminal device have the same device type, the device parameters of the first terminal device are adjusted according to the real-time device parameters of the second terminal device. After the target device card is restored to the first device card and the second device card, the first device parameter is controlled to restore the current device parameter to the real-time device parameter before the cards are merged.
[0113] In actual applications, when the device types of multiple devices that need to merge device cards are the same, the real-time device parameters before the merge can be saved during the merge. After the cards are merged, multiple devices share the device parameters. After the cards are restored, the device parameters can be restored according to the real-time device parameters before the merge.
[0114] In an embodiment of the present invention, the first device card of the first terminal device and the second device card of the second terminal device can be merged into a target device card, and the target device card can be restored to the first device card and the second device card to achieve quick control of multiple terminal devices.
[0115] In an embodiment of the present invention, the smart home APP can be used to manage and control multiple home devices. The smart home APP can realize functions such as card merging, splitting, linkage control, and scene saving.
[0116] When the user enters the homepage of the smart home APP, he can view multiple home devices. Some home devices display the device status in the form of small cards (i.e., first device cards), and some display the device status and high-frequency functions in the form of large cards (i.e., second device cards). Figure 4a As shown in the interface on the left, the air conditioner is displayed in the form of a large card. In addition to the switch, the mode, temperature, wind speed and other functions can be adjusted. Other device cards are still displayed in the form of small cards.
[0117] (I) Card merging and splitting:
[0118] like Figure 4aAs shown on the right, the user long presses on other equipment cards of different categories. Here, take the "floor lamp small card" as an example and drag it to the air conditioner card. The floor lamp equipment card will be shortened to the title and merged to the top title of the air conditioner equipment card. Following this step, you can drag other equipment cards to merge them into the large card, and merge the floor lamp, dehumidifier, and curtain cards into the air conditioner card.
[0119] like Figure 4b As shown in the figure, in the large device card that merges multiple device cards, the subtitles corresponding to each device are displayed in the title bar area. When the user clicks the subtitle, the control device can be switched. So far, users can customize the layout of device cards on the APP homepage. Users can arrange device cards by space according to actual conditions, and merge devices in the same space into the same large card for quick switching operations.
[0120] The above interaction method can not only drag cards of different categories to merge, but also drag cards of the same category to merge. The air conditioners in the living room, master bedroom, and second bedroom can be merged into a large card. The fixed large card device is the main device, and the merged device is the auxiliary device. The program detects that the three devices are of the same category and sets the parameters of the auxiliary device as the main device parameters. The three devices share the same parameters and the parameters are adjusted together. If you want to adjust the parameters of one of the devices separately, you can long press the device area in the title bar to form a thumbnail device card, drag it out from the merged card, restore it to the state before merging, and then adjust the parameters separately, such as Figure 4c shown.
[0121] (II) Linkage control:
[0122] like Figure 4d As shown in the figure, you can slide the multi-device merge card to the left to display the [Link] function control. When the user selects [Link], a blue area appears on the left side of the multi-device merge card, as shown in the figure. Figure 4e In the left interface, the blue area is the condition area and the white area is the action area.
[0123] like Figure 4e As shown in the right interface, long press any device in the title bar (taking curtains as an example) and drag it to the blue area. The blue area will expand. Release the curtain device to move it to the blue area as a condition. Figure 4f As shown in the left interface. The curtain state can be set to fully closed. The white area is the action area, that is, when the device in the blue area is in the set state, the device in the white area will perform the action according to the corresponding device setting state. Figure 4f As shown in the right interface, when the curtains are fully closed, the air conditioner is set to cool to 26℃ and run at low wind speed. The corresponding actions can also be set when switching the floor lamp and dehumidifier.
[0124] At this time, merging multiple devices into large cards is equivalent to building a temporary scene on the homepage of the APP. Figure 4g As shown, slide the temporary scene card to the left. The user can save the temporary scene through the third control of "Save as Scene", or cancel the current linkage control through the second control of "Cancel Linkage". The card will be restored to Figure 4d Left interface.
[0125] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0126] Reference Figure 5 , shows a schematic diagram of the structure of a device control apparatus provided by an embodiment of the present invention, which is applied to an application program, and the application program is used to control multiple terminal devices, and specifically may include the following modules:
[0127] An interface display module 501, configured to start the application and present a first device card corresponding to a first terminal device among the multiple terminal devices and a second device card corresponding to a second terminal device among the multiple terminal devices in an image display interface of the application;
[0128] A card selection module 502, configured to select the first device card in response to a first touch operation on the first device card;
[0129] The card merging module 503 is used to merge the first device card and the second device card in response to a second touch operation of moving the first device card from a first position of the first device card to a second position of the second device card, and present the merged target device card in the image display interface of the application to control the first terminal device and the second terminal device through the target device card.
[0130] In one embodiment of the present invention, the target device card includes a title bar area and a device information display area, the title bar area includes a first subtitle of the first terminal device and a second subtitle of the second terminal device, and the apparatus further includes:
[0131] A first device information display module, configured to display first device information corresponding to the first terminal device in the device information display area when the first subtitle is selected in the image display interface of the application;
[0132] The device information switching module is used to switch the first device information displayed in the device information display area to the second device information corresponding to the second terminal device when the first subtitle is selected in the image display interface of the application.
[0133] In one embodiment of the present invention, the device further comprises:
[0134] The first control display module is used to present a first control for activating a multi-device linkage control function in the target device card in response to a third touch operation on the target device card.
[0135] The fourth touch operation display module is used to present a linkage condition setting area corresponding to the multi-device linkage control function in the target device card in response to the fourth touch operation on the first control.
[0136] In one embodiment of the present invention, the device further comprises:
[0137] A second control display module, configured to present, in response to a fifth touch operation on the target device card, a second control for releasing a multi-device linkage control function in the target device card;
[0138] The touch linkage module is used to restore the target device card to an unlinked state in response to a sixth touch operation on the second control.
[0139] In one embodiment of the present invention, the device further comprises:
[0140] The third control display module is used to present a third control for saving the linkage scene in the target device card in response to a fifth touch operation on the target device card.
[0141] In one embodiment of the present invention, the device further comprises:
[0142] a linkage condition setting area adjustment module, configured to, in response to a sixth touch operation of selecting and moving the first subtitle to the linkage condition setting area, set the first subtitle and a device information display area corresponding to the first terminal device to the linkage condition setting area;
[0143] A device parameter configuration module, configured to configure a first device parameter of a first terminal device in the linkage condition setting area, and to configure a second device parameter of a second terminal device in the non-linkage condition setting area;
[0144] The device parameter adjustment module is used to adjust the device parameter of the second terminal device according to the second device parameter when the current real-time device parameter of the first terminal device is the first device parameter.
[0145] In one embodiment of the present invention, the device further comprises:
[0146] The device parameter synchronization adjustment module is used to adjust the device parameters of the first terminal device according to the real-time device parameters of the second terminal device when the device types of the first terminal device and the second terminal device are the same.
[0147] In one embodiment of the present invention, the device further comprises:
[0148] a thumbnail card display module, configured to generate a thumbnail card of the first terminal device in response to a seventh touch operation on the first subtitle;
[0149] The target device card is restored, and is used to restore the target device card to the first device card and the second device card in response to an eighth touch operation of moving the thumbnail card out of the first position of the target device card.
[0150] In one embodiment of the present invention, the device further comprises:
[0151] The device parameter recovery module is used to control the first device parameter to recover the current device parameter to the real-time device parameter before merging the cards after the target device card is recovered to the first device card and the second device card.
[0152] In an embodiment of the present invention, by starting an application, a first device card corresponding to a first terminal device among multiple terminal devices and a second device card corresponding to a second terminal device among multiple terminal devices are presented in an image display interface of the application; in response to a first touch operation on the second device card, the second device card is selected; in response to a second touch operation of moving the first device card from a first position of the first device card to a second position of the second device card, the first device card and the second device card are merged, and a merged target device card is presented in the image display interface of the application, so that the first terminal device and the second terminal device are controlled through the target device card, so that multiple terminal devices can be controlled through one card, thereby realizing quick control of multiple terminal devices.
[0153] An embodiment of the present invention further provides an electronic device, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the following device control method is implemented:
[0154] Starting the application, and presenting a first device card corresponding to a first terminal device among the multiple terminal devices and a second device card corresponding to a second terminal device among the multiple terminal devices in an image display interface of the application;
[0155] In response to a first touch operation on the first device card, selecting the first device card;
[0156] In response to a second touch operation of moving the first device card from a first position of the first device card to a second position of the second device card, the first device card and the second device card are merged, and the merged target device card is presented in the image display interface of the application so as to control the first terminal device and the second terminal device through the target device card.
[0157] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following device control method is implemented:
[0158] Starting the application, and presenting a first device card corresponding to a first terminal device among the multiple terminal devices and a second device card corresponding to a second terminal device among the multiple terminal devices in an image display interface of the application;
[0159] In response to a first touch operation on the first device card, selecting the first device card;
[0160] In response to a second touch operation of moving the first device card from a first position of the first device card to a second position of the second device card, the first device card and the second device card are merged, and the merged target device card is presented in the image display interface of the application so as to control the first terminal device and the second terminal device through the target device card.
[0161] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0162] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0163] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0164] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0165] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0166] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0167] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0168] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0169] The above is a detailed introduction to a device control method and apparatus, an electronic device, and a storage medium. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for a general technician in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A device control method, characterized in that: Applied to an application program, the application program is used to control a plurality of terminal devices, the method comprising: Starting the application, and presenting a first device card corresponding to a first terminal device among the multiple terminal devices and a second device card corresponding to a second terminal device among the multiple terminal devices in an image display interface of the application; In response to a first touch operation on the first device card, selecting the first device card; In response to a second touch operation of moving the first device card from a first position of the first device card to a second position of the second device card, the first device card and the second device card are merged, and the merged target device card is presented in the image display interface of the application so as to control the first terminal device and the second terminal device through the target device card.
2. The method according to claim 1, characterized in that: The target device card includes a title bar area and a device information display area, the title bar area includes a first subtitle of the first terminal device and a second subtitle of the second terminal device, and further includes: When the first subtitle is selected in the image display interface of the application, first device information corresponding to the first terminal device is displayed in the device information display area; When the first subtitle is selected in the image display interface of the application, the first device information displayed in the device information display area is switched to the second device information corresponding to the second terminal device.
3. The method according to claim 2, characterized in that Also includes: In response to a third touch operation on the target device card, a first control for activating a multi-device linkage control function is presented in the target device card. In response to a fourth touch operation on the first control, a linkage condition setting area corresponding to the multi-device linkage control function is presented in the target device card.
4. The method according to claim 3, characterized in that: Also includes: In response to a fifth touch operation on the target device card, presenting a second control for releasing a multi-device linkage control function in the target device card; In response to a sixth touch operation on the second control, the target device card is restored to an unlinked state.
5. The method according to claim 4, characterized in that Also includes: In response to a fifth touch operation on the target device card, a third control for saving the linkage scene is presented in the target device card.
6. The method according to claim 3, characterized in that Also includes: In response to a sixth touch operation of selecting and moving the first subtitle to the linkage condition setting area, setting the first subtitle and a device information display area corresponding to the first terminal device as the linkage condition setting area; Configure the first device parameter of the first terminal device in the linkage condition setting area, and configure the second device parameter of the second terminal device in the non-linkage condition setting area; When the current real-time device parameters of the first terminal device are the first device parameters, the device parameters of the second terminal device are adjusted according to the second device parameters.
7. The method according to claim 3, characterized in that Also includes: When the first terminal device and the second terminal device have the same device type, the device parameters of the first terminal device are adjusted according to the real-time device parameters of the second terminal device.
8. The method according to claim 2, characterized in that: Also includes: In response to a seventh touch operation on the first subtitle, generating a thumbnail card of the first terminal device; In response to an eighth touch operation of moving the thumbnail card out of the first position of the target device card, the target device card is restored to the first device card and the second device card.
9. The method according to claim 8, characterized in that Also includes: After the target device card is restored to the first device card and the second device card, the first device parameters are controlled to restore the current device parameters to the real-time device parameters before the cards are merged.
10. A device control device, characterized in that: Applied to an application program, the application program is used to control a plurality of terminal devices, the apparatus comprising: an interface display module, configured to start the application and present, in an image display interface of the application, a first device card corresponding to a first terminal device among the multiple terminal devices and a second device card corresponding to a second terminal device among the multiple terminal devices; a card selection module, configured to select the first device card in response to a first touch operation on the first device card; A card merging module, for merging the first device card and the second device card in response to a second touch operation of moving the first device card from a first position of the first device card to a second position of the second device card, and presenting the merged target device card in the image display interface of the application, so as to control the first terminal device and the second terminal device through the target device card.
11. An electronic device, characterized in that: The device comprises a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the device control method according to any one of claims 1 to 9 is implemented.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the device control method according to any one of claims 1 to 9 is implemented.