Equipment control method and device and storage medium

By displaying the control center and device cards in the terminal device, users can easily select functional options to control the device to be controlled, solving the problem of excessive control paths in the prior art and improving the user experience.

CN119883073APending Publication Date: 2025-04-25BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311396741.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-25
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

In the prior art, the control path of controlling electronic devices through mobile smart terminals is long, making users inconvenient to operate, resulting in poor user experience.

Method used

A device control method is provided. By detecting the user's operations, displaying the control center and the device card, the user can select a functional option on the device card to control the device to be controlled, simplifying the control path.

Benefits of technology

By displaying the device card on the control center, the intrusion of the control center is reduced, and the user's control convenience and user experience of the control equipment are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119883073A_ABST
    Figure CN119883073A_ABST
Patent Text Reader

Abstract

The invention provides an equipment control method and device and a storage medium, and the method comprises the steps: responding to an electronic device, detecting a first operation, and displaying a control center; in response to the detected second operation, displaying an equipment card in the control center; and controlling the to-be-controlled equipment based on a selection operation of a user on the function options displayed on the card. When the first operation is detected, the control center comprising the equipment display area is displayed, and the electronic equipment displays the equipment card in the control center based on the second operation, so that the equipment card can be displayed on the control center, cross-process display of a user interface is realized, and the intrusion degree to the control center is reduced. According to the method, the to-be-controlled equipment is controlled based on the selection operation of the user on the function option displayed on the equipment card, so that the user can control the to-be-controlled equipment more conveniently.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of electronic equipment, and in particular to a device control method, apparatus and storage medium. Background Art

[0002] With the development of science and technology, more and more electronic devices are integrated into people's daily lives, providing convenience for people's daily lives and satisfying people's pursuit of high-quality life.

[0003] In the related art, mobile smart terminals can be used to control related electronic devices involved in people's daily lives, for example, a TV can be turned on or off through the terminal. However, the control path of controlling electronic devices through terminals is long, and user operations are inconvenient, resulting in poor user experience. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a device control method, apparatus and storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, a method for controlling a device is provided, comprising: in response to an electronic device detecting a first operation, displaying a control center, the control center including a device display area, the device display area displaying controllable devices associated with the electronic device; in response to detecting a second operation, the second operation is used to select a device to be controlled from the controllable devices displayed in the device display area, displaying a device card in the control center, the device card including function options for controlling the device to be controlled; and controlling the device to be controlled based on a user's selection operation of the function options displayed on the card.

[0006] In one embodiment, displaying the device card in the control center includes: using a first window whose window level is consistent with the corresponding window level of the control center as the window of the root layout of the device card; and drawing a device card corresponding to the function option of the device to be controlled in the first window based on the root layout.

[0007] In one embodiment, in the first window, based on the root layout, a device card corresponding to the function option of the device to be controlled is drawn, including: in response to the device to be controlled being a device controlled by an application in the electronic device, calling the function of the application to draw the function option corresponding to the device to be controlled, and drawing the device card corresponding to the function option of the device to be controlled based on the root layout in the first window.

[0008] In one embodiment, drawing a device card corresponding to the function option of the device to be controlled based on the root layout in the first window includes: in response to the device to be controlled being a near field communication device that establishes a communication connection with the electronic device, drawing a device card corresponding to the function option of the device to be controlled based on the root layout in the first window based on the system drawing function of the electronic device.

[0009] In one embodiment, the method further includes: in response to detecting a third operation, returning to the control center, wherein the third operation is used to exit the device card.

[0010] According to a second aspect of an embodiment of the present disclosure, there is provided an apparatus for controlling a device, including:

[0011] A first display unit, configured to display a control center in response to the electronic device detecting a first operation, wherein the control center includes a device display area, and the device display area displays a controllable device associated with the electronic device;

[0012] a second display unit, configured to, in response to detecting a second operation, select a device to be controlled from the controllable devices displayed in the device display area, and display a device card in the control center, wherein the device card includes a function option for controlling the device to be controlled;

[0013] A control unit is used to control the device to be controlled based on a user's selection operation of a function option displayed on the card.

[0014] In one embodiment, the second display unit displays the device card in the control center in the following manner: a first window whose window level is consistent with the corresponding window level of the control center is used as the window of the root layout of the device card; in the first window, based on the root layout, a device card corresponding to the function option of the device to be controlled is drawn.

[0015] In one embodiment, the second display unit draws a device card corresponding to the function options of the device to be controlled in the first window based on the root layout in the following manner: in response to the device to be controlled being a device controlled by an application in the electronic device, calling the function of the application to draw the function options corresponding to the device to be controlled, and drawing the device card corresponding to the function options of the device to be controlled on the root layout.

[0016] In one embodiment, the second display unit draws a device card corresponding to the function option of the device to be controlled in the first window based on the root layout in the following manner: in response to the device to be controlled being a near field communication device that establishes a communication connection with the electronic device, based on the system drawing function of the electronic device, draws a device card corresponding to the function option of the device to be controlled on the root layout.

[0017] In one embodiment, the apparatus further comprises: a returning unit, configured to return to the control center in response to detecting a third operation, wherein the third operation is used to exit the device card.

[0018] According to a third aspect of an embodiment of the present disclosure, there is provided a device testing apparatus, comprising:

[0019] processor;

[0020] a memory for storing processor-executable instructions;

[0021] The processor is configured to: execute the method described in the first aspect or any one of the embodiments of the first aspect.

[0022] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided, characterized in that instructions are stored in the storage medium, and when the instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to execute the device testing method described in the first aspect or any one of the embodiments of the first aspect.

[0023] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: when a first operation is detected by the electronic device, the device display area in the control center is displayed; based on the second operation, the electronic device displays a device card in the control center; and based on the user's selection operation of the function options displayed on the device card, the device is controlled, so that the device card can be displayed on the control center, thereby allowing the user to more conveniently operate the device to be controlled.

[0024] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0026] Figure 1 The figure is a schematic diagram showing a method for a terminal to control an electronic device according to an exemplary embodiment.

[0027] Figure 2The present invention is a flowchart of a device control method according to an exemplary embodiment.

[0028] Figure 3 The present invention is a flowchart of a device control method according to an exemplary embodiment.

[0029] Figure 4 The figure is a schematic diagram showing a method for expanding a device card according to an exemplary embodiment.

[0030] Figure 5 The present invention is a flowchart showing a method of drawing a device card of a device to be tested controlled by an application program according to an exemplary embodiment.

[0031] Figure 6 The present invention is a schematic diagram showing a method of drawing a device card deployment diagram of a device to be tested controlled by an application program according to an exemplary embodiment.

[0032] Figure 7 The present invention is a flowchart showing a method of drawing a device card of a near field device that establishes a communication connection with an electronic device according to an exemplary embodiment.

[0033] Figure 8 The present invention is a flowchart of a device control method according to an exemplary embodiment.

[0034] Fig. 9 It is a schematic diagram of a timing diagram of a device control method according to an exemplary embodiment.

[0035] Fig.10 The figure is a block diagram of a device control apparatus according to an exemplary embodiment.

[0036] Fig.11 The invention is a block diagram showing an apparatus for controlling a device according to an exemplary embodiment. DETAILED DESCRIPTION

[0037] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.

[0038] The device control method provided in the present disclosure is applied to a scenario where an electronic device controls a device, for example, it is applied to a scenario where a to-be-controlled device associated with the electronic device is controlled.

[0039] With the development of science and technology, electronic devices used in people's daily lives are becoming more and more intelligent. For example, washing machines can be started at a set time, and televisions can be turned on or off at a set time. However, it is inconvenient for people to control multiple intelligent electronic devices one by one. Therefore, in related technologies, each intelligent electronic device can be controlled in a terminal, so that users can conveniently control multiple intelligent electronic devices. Figure 1 is a schematic diagram showing a method for a terminal to control an electronic device according to an exemplary embodiment. Figure 1 As shown, the terminal can control electronic devices, for example, a TV, camera, watch, tablet, car and earphone can be controlled through the terminal. However, when a user operates an electronic device controlled by a terminal, multiple steps are required to achieve the corresponding control. Therefore, the path to achieve electronic device control is long, the user operation is inconvenient, and the user experience is poor.

[0040] The device control solution provided by the present disclosure displays a control center including a device display area when the electronic device detects a first operation, and displays a device card in the control center based on a second operation, so that the device card can be displayed on the control center, reducing the intrusion of the device center. Based on the user's selection operation of the function options displayed on the device card, the device to be controlled is controlled, so that the user can more conveniently operate the device to be controlled.

[0041] Figure 2 is a flow chart of a device control method according to an exemplary embodiment. Figure 2 As shown, the device control method is used in a terminal and includes the following steps.

[0042] In step S11, in response to the electronic device detecting a first operation, a control center is displayed, where the control center includes a device display area.

[0043] Among them, the device display area displays the controllable devices associated with the electronic device.

[0044] In the embodiment of the present disclosure, the device associated with the electronic device displayed in the device display area may be a controllable device connected via Bluetooth, or may be a controllable device connected to the same local area network. There is no limitation on the connection method between the electronic device and the controllable device.

[0045] In the embodiment of the present disclosure, the device display area displayed in the control center may be a certain area set in the control center for displaying devices that can be controlled.

[0046] In the embodiment of the present disclosure, in response to the electronic device detecting the first operation, the electronic device may detect a pull-down operation by the user. For example, when the electronic device detects a pull-down operation by the user, the control center page of the electronic device including the device display area is displayed.

[0047] In the embodiment of the present disclosure, when the electronic device detects the first operation, it scans a list of nearby controllable devices and displays the list of nearby controllable devices in the device display area. For example, it can be displayed in the form of a device ball in the device display area of ​​the control center.

[0048] In step S12, in response to detecting the second operation, a device card is displayed in the control center.

[0049] The device card includes function options for controlling the device to be controlled.

[0050] The second operation is used to select a device to be controlled from the controllable devices displayed in the device display area.

[0051] In the disclosed embodiment, different controllable devices may correspond to different device cards, and the function options for controlling the devices to be controlled in different device cards may be different.

[0052] In step S13, based on the user's selection operation on the function options displayed on the card, the device to be controlled is controlled.

[0053] In the disclosed embodiment, the electronic device controls the device to be controlled according to the function option displayed on the device card selected by the user. For example, the electronic device can ring the device to be controlled according to the function option of ringing and searching in the device function card selected by the user, so that the user can find the device to be controlled.

[0054] In the disclosed embodiment, when the electronic device detects the first operation, the control center including the device display area is displayed. Based on the second operation, the electronic device displays the device card in the control center, so that the device card can be displayed on the control center, and the cross-process display user interface is realized, thereby reducing the intrusion of the control center. Based on the user's selection operation of the function options displayed on the device card, the device to be controlled is controlled, so that the user can control the device to be controlled more conveniently.

[0055] In an embodiment of the present disclosure, in response to the electronic device detecting the second operation, a device card is displayed in the control center. This may be that in response to the electronic device detecting the second operation, a window consistent with the control center window level pops up, and the device card is displayed in the window consistent with the control center window level.

[0056] Figure 3is a flow chart of a device control method according to an exemplary embodiment. Figure 3 As shown, the device control method is used in a terminal and includes the following steps.

[0057] In step S21, the first window whose window level is consistent with the corresponding window level of the control center is used as the window of the device card root layout.

[0058] In the embodiment of the present disclosure, the function options in the device card can be designed through the root layout.

[0059] In the disclosed embodiment, the root layout of the device card may be displayed through the first window that is consistent with the window level corresponding to the control center, that is, the function options in the device card may be displayed.

[0060] In the disclosed embodiment, the first window and the window corresponding to the control center belong to different processes in the electronic device. When the first window is used to display the device card, the first window covers the window corresponding to the control center, and the window corresponding to the control center may not be closed, that is, when the second operation is detected, the electronic device creates a process different from the control center process for displaying the device card, and the process corresponding to the control center and the process corresponding to the first window run simultaneously.

[0061] In step S22, a device card corresponding to a function option of the device to be controlled is drawn in the first window based on the root layout.

[0062] In the implementation of the present disclosure, different devices to be controlled correspond to different function options, and different devices to be controlled have different root layouts.

[0063] In the embodiment of the present disclosure, according to the root layouts corresponding to different devices to be controlled, device cards corresponding to function options of the corresponding devices to be controlled are drawn in the first window.

[0064] In the embodiment of the present disclosure, the first window may cover the window where the control center is located.

[0065] In the embodiment of the present disclosure, when the electronic device detects the second operation of the user, for example, the second operation may be clicking on the icon of a device to be controlled in the device display area in the control center, the electronic device pops up a first window, and in the first window, draws a device card of the function option corresponding to the device to be controlled selected by the user's second operation according to the root layout of the device to be tested. Figure 4 The figure is a schematic diagram showing a method for expanding a device card according to an exemplary embodiment. Figure 4As shown, when the user clicks on the tablet device icon in the device display area of ​​the control center, the electronic device pops up a first window, the first window covers the control center, and based on the root layout corresponding to the tablet device, the function options corresponding to the tablet device can be displayed in the device card displayed in the first window.

[0066] In the disclosed embodiment, a first window of the same level as the window corresponding to the control center is established, and a corresponding device card is drawn in the first window according to the corresponding device to be controlled, so that the control center will not cover the window where the device card is located, thereby improving the priority of the display level of the window where the device control card is located, realizing cross-process display of the user interface, and reducing the degree of intrusion into the control center.

[0067] In the embodiments of the present disclosure, the device to be controlled may be a near field communication device that establishes a communication connection with the electronic device, or the device to be tested may be a device controlled by an application program in the electronic device.

[0068] In an embodiment of the present disclosure, the electronic device can determine the type of device to be controlled. For example, the electronic device can determine that the device to be controlled is a near field communication device that establishes a communication connection with the electronic device, or the electronic device can determine that the device to be controlled is a device controlled by an application in the electronic device.

[0069] Figure 5 is a flowchart showing a method of drawing a device card of a device to be tested controlled by an application program according to an exemplary embodiment. Figure 5 As shown, the device control method is used in a terminal and includes the following steps.

[0070] In step S31, in response to the device to be controlled being a device controlled by an application in the electronic device.

[0071] In the embodiment of the present disclosure, the electronic device determines that the device to be controlled is a device controlled by an application in the electronic device.

[0072] In step S32, the function of the application program to draw function options corresponding to the device to be controlled is called, and the device card corresponding to the function options of the device to be controlled is drawn in the first window based on the root layout.

[0073] In the disclosed embodiment, the function options corresponding to the device to be tested can be determined according to the functions of the corresponding device to be controlled in the application program, that is, the root layout of the device to be controlled can be determined, and a device to be tested card containing function options can be drawn in the first window based on the root layout of the device to be tested controlled by the application program.

[0074] In one example, Figure 6 FIG. 1 is a schematic diagram showing a device card deployment diagram of a device to be tested controlled by an application program according to an exemplary embodiment. Figure 6As shown, when the electronic device detects that the user clicks the device icon (icon) in the device display area of ​​the control center, that is, when the user's second operation is detected, the device center window pops up to cover the window corresponding to the control center, and displays the device card of the device to be controlled determined by the application in the electronic device in the device center window. And based on the mechanism of the view type (InlineContentView) that saves opaque content in other applications in the root layout of the device center, the device card of the corresponding device to be controlled is drawn in the device center window.

[0075] In the embodiment of the present disclosure, an application program for controlling the device to be tested can be called to determine the function of the function options corresponding to the device to be controlled and draw the corresponding function options. In the first window, the corresponding device card is drawn based on the function options of the device to be controlled determined by the application program.

[0076] In the disclosed embodiment, the device card corresponding to the device to be controlled can be determined by calling an application program. In the application program of the electronic device, the functions of different devices to be controlled may be different, the device cards of different devices to be controlled may be different, and the root layouts corresponding to the device cards of different devices to be tested may be different.

[0077] In the disclosed embodiment, the function of the device to be controlled is determined by calling an application, that is, the root layout of the device to be controlled is determined, and based on the function of the device to be controlled determined by the application, the corresponding device card of the device to be controlled is drawn in the first window, so that the function options of different devices to be controlled can be improved in the device cards, so that users can control them according to the device cards of different devices to be controlled, thereby improving the user experience.

[0078] In the embodiment of the present disclosure, when the electronic device determines that the device to be controlled is a near field communication device that establishes a communication connection with the electronic device, a corresponding device card can be drawn in the first window based on the near field communication device.

[0079] Figure 7 is a flowchart showing a method of drawing a device card of a near field device that establishes a communication connection with an electronic device according to an exemplary embodiment. Figure 7 As shown, the device control method is used in a terminal and includes the following steps.

[0080] In step S41, in response to the device to be controlled being a near field communication device that establishes a communication connection with the electronic device.

[0081] In an embodiment of the present disclosure, the electronic device may determine the type of near-field communication device that establishes a communication connection with the electronic device. For example, the electronic device may determine that the near-field communication device that establishes a communication connection with the electronic device is a tablet device, or the electronic device may determine that the near-field communication device that establishes a communication connection with the electronic device is a Bluetooth headset device.

[0082] In the embodiments of the present disclosure, the communication connection between the near field communication device and the electronic device may be via Bluetooth, or may be via the same local area network, and the connection method between the near field communication device and the electronic device is not limited herein.

[0083] In step S42, based on the system drawing function of the electronic device, a device card corresponding to the function option of the device to be controlled is drawn in the first window based on the root layout.

[0084] In the embodiment of the present disclosure, when the electronic device determines that the device to be tested is a near field communication device that establishes a communication connection with the electronic device, device cards corresponding to different device types may be drawn in the first window based on different device types.

[0085] In the embodiment of the present disclosure, by drawing a device card of a near-field device that establishes a communication connection with an electronic device in the first window, a user can control the near-field device through simple operations, thereby avoiding a long device control path for the user and improving the user experience.

[0086] Figure 8 is a flow chart of a device control method according to an exemplary embodiment. Figure 8 As shown, the device control method is used in a terminal and includes the following steps.

[0087] In step S51, in response to detection of a third operation.

[0088] Among them, the third operation is used to exit the device card.

[0089] In step S52, return to the control center.

[0090] In the disclosed embodiment, when the electronic device detects the third operation of the user, it returns to the window where the control center is located.

[0091] In the embodiment of the present disclosure, when the electronic device detects the user's third operation, for example, when the electronic device detects that the user clicks on an area other than the device card area in the first window, or when it detects the user's return gesture, it returns to the control center interface.

[0092] In the embodiment of the present disclosure, when the third user operation is detected, the process corresponding to the first window may be closed, and the process corresponding to the control center window may be run, that is, the device card displayed in the first window may be exited, and the control center may be displayed.

[0093] In the disclosed embodiment, the electronic device closes the first window where the device card is located and returns to the control center through the user's third operation, thereby realizing cross-process display of the user interface and improving the user experience of device control.

[0094] In the embodiments of the present disclosure, the device control method is described in conjunction with the following examples.

[0095] In the present disclosure, Fig. 9 FIG. 1 is a schematic diagram of a timing diagram of a device control method according to an exemplary embodiment. Fig. 9 As shown, when the electronic device receives an instruction to display a device control card in the control center, the device center creates a first window and displays the first window on the upper layer of the control center.

[0096] In the embodiment of the present disclosure, when it is determined that the device to be controlled is a device controlled by an application in the electronic device, the application is called, the function of the function option corresponding to the device to be controlled is determined based on the application, and the function of the function option is drawn.

[0097] In the embodiment of the present disclosure, based on the function of the corresponding function option of the device to be controlled determined by the application program, a device card of the device to be controlled is drawn in the area for displaying device cards in the first window.

[0098] Based on the same concept, an embodiment of the present disclosure also provides a device control apparatus.

[0099] It is understandable that the device control device provided in the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function in order to realize the above functions. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.

[0100] Fig.10 is a block diagram of a device control apparatus according to an exemplary embodiment. Fig.10 The device 100 includes a first display unit 101, a second display unit 102, a control unit 103 and a returning unit 104.

[0101] The first display unit 101 is used to display a control center in response to the electronic device detecting a first operation, where the control center includes a device display area, and the device display area displays controllable devices associated with the electronic device.

[0102] The second display unit 102 is used to respond to detecting a second operation, where the second operation is used to select a device to be controlled from the controllable devices displayed in the device display area, and display a device card in the control center, where the device card includes function options for controlling the device to be controlled.

[0103] The control unit 103 is used to control the device to be controlled based on the user's selection operation of the function options displayed on the card.

[0104] The returning unit 104 is used to return to the control center in response to detecting a third operation, where the third operation is used to exit the device card.

[0105] In one embodiment, the second display unit 102 displays the device card in the control center in the following manner: a first window whose window level is consistent with the corresponding window level of the control center is used as the window of the device card root layout. Based on the root layout, a device card corresponding to the function option of the device to be controlled is drawn in the first window.

[0106] In one embodiment, the second display unit 102 draws a device card corresponding to the function options of the device to be controlled in the first window based on the root layout in the following manner: in response to the device to be controlled being a device controlled by an application in the electronic device, the function of the application to draw the function options corresponding to the device to be controlled is called, and the device card corresponding to the function options of the device to be controlled is drawn on the root layout.

[0107] In one embodiment, the second display unit 102 draws a device card corresponding to the function option of the device to be controlled in the first window based on the root layout in the following manner: in response to the device to be controlled being a near field communication device that establishes a communication connection with the electronic device, based on the system drawing function of the electronic device, draws a device card corresponding to the function option of the device to be controlled on the root layout.

[0108] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0109] Fig.11 2 is a block diagram of an apparatus 200 for device control according to an exemplary embodiment. For example, the apparatus 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0110] Reference Fig.11 , the device 200 may include one or more of the following components: a processing component 202 , a memory 204 , a power component 206 , a multimedia component 208 , an audio component 210 , an input / output (I / O) interface 212 , a sensor component 214 , and a communication component 216 .

[0111] The processing component 202 generally controls the overall operation of the device 200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 202 may include one or more modules to facilitate interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.

[0112] The memory 204 is configured to store various types of data to support operations on the device 200. Examples of such data include instructions for any application or method operating on the device 200, contact data, phone book data, messages, pictures, videos, etc. The memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0113] The power component 206 provides power to the various components of the device 200. The power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 200.

[0114] The multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front camera and / or a rear camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0115] The audio component 210 is configured to output and / or input audio signals. For example, the audio component 210 includes a microphone (MIC), and when the device 200 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 204 or sent via the communication component 216. In some embodiments, the audio component 210 also includes a speaker for outputting audio signals.

[0116] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0117] The sensor assembly 214 includes one or more sensors for providing various aspects of the status assessment of the device 200. For example, the sensor assembly 214 can detect the open / closed state of the device 200, the relative positioning of components, such as the display and keypad of the device 200, the sensor assembly 214 can also detect the position change of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration / deceleration of the device 200 and the temperature change of the device 200. The sensor assembly 214 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 214 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

[0118] The communication component 216 is configured to facilitate wired or wireless communication between the device 200 and other devices. The device 200 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0119] In an exemplary embodiment, the apparatus 200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0120] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, and the instructions can be executed by the processor 220 of the device 200 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0121] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.

[0122] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.

[0123] It will be further understood that the terms “center”, “longitudinal”, “lateral”, “front”, “back”, “up”, “down”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present embodiment and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation.

[0124] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.

[0125] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.

[0126] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modifications, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.

[0127] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.

Claims

1. A method for controlling a device, characterized in that: include: In response to the electronic device detecting the first operation, displaying a control center, the control center including a device display area, the device display area displaying a controllable device associated with the electronic device; In response to detecting a second operation, the second operation is used to select a device to be controlled from the controllable devices displayed in the device display area, and display a device card in the control center, wherein the device card includes a function option for controlling the device to be controlled; Based on the user's selection operation of the function options displayed on the card, the device to be controlled is controlled.

2. The device control method according to claim 1, characterized in that: The displaying of the device card in the control center includes: The first window whose window level is consistent with the corresponding window level of the control center is used as the window of the device card root layout; In the first window, based on the root layout, a device card corresponding to the function option of the device to be controlled is drawn.

3. The method according to claim 2, characterized in that Drawing a device card corresponding to a function option of the device to be controlled based on the root layout in the first window includes: In response to the device to be controlled being a device controlled by an application in the electronic device, a function of the application to draw function options corresponding to the device to be controlled is called, and a device card corresponding to the function options of the device to be controlled is drawn in the first window based on the root layout.

4. The method according to claim 2, characterized in that: Drawing a device card corresponding to a function option of the device to be controlled based on the root layout in the first window includes: In response to the device to be controlled being a near field communication device that establishes a communication connection with the electronic device, based on the system drawing function of the electronic device, a device card corresponding to a function option of the device to be controlled is drawn in the first window based on the root layout.

5. The device control method according to claim 1, characterized in that: The method further comprises: In response to detecting a third operation, returning to the control center, the third operation being used to exit the device card.

6. A device for controlling equipment, characterized in that: include: A first display unit, configured to display a control center in response to the electronic device detecting a first operation, wherein the control center includes a device display area, and the device display area displays a controllable device associated with the electronic device; a second display unit, configured to, in response to detecting a second operation, select a device to be controlled from the controllable devices displayed in the device display area, and display a device card in the control center, wherein the device card includes a function option for controlling the device to be controlled; A control unit is used to control the device to be controlled based on a user's selection operation of a function option displayed on the card.

7. The device for controlling equipment according to claim 6, characterized in that: The second display unit displays the device card in the control center in the following manner: The first window whose window level is consistent with the corresponding window level of the control center is used as the window of the device card root layout; In the first window, based on the root layout, a device card corresponding to the function option of the device to be controlled is drawn.

8. The device according to claim 7, characterized in that The second display unit draws a device card corresponding to a function option of the device to be controlled in the first window based on the root layout in the following manner: In response to the device to be controlled being a device controlled by an application in the electronic device, a function of the application to draw function options corresponding to the device to be controlled is called, and a device card corresponding to the function options of the device to be controlled is drawn in the first window based on the root layout.

9. The device according to claim 7, characterized in that The second display unit draws a device card corresponding to a function option of the device to be controlled in the first window based on the root layout in the following manner: In response to the device to be controlled being a near field communication device that establishes a communication connection with the electronic device, based on the system drawing function of the electronic device, a device card corresponding to a function option of the device to be controlled is drawn in the first window based on the root layout.

10. The device for controlling equipment according to claim 6, characterized in that: The device also includes: A returning unit is used to return to the control center in response to detecting a third operation, wherein the third operation is used to exit the device card.

11. A device testing apparatus, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: execute the device control method according to any one of claims 1-5.

12. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions in the storage medium are executed by a processor of the terminal, the terminal is enabled to execute the method described in any one of claims 1 to 5.