Intelligent equipment control method and device, electronic equipment and storage medium
By obtaining the access status information of the smart device and performing unified control on the device control interface, the complex problem of intelligent device control operations in the existing technology is solved, and a more efficient user experience is achieved.
Patent Information
- Application Number
- CN202311402274.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-26
- Publication Date
- 2025-04-29
AI Technical Summary
In the prior art, the control mode of smart devices is complex and single, affecting the user's intelligent experience.
By obtaining the access status information of the smart device, the smart device is displayed or cancelled in the device control interface according to the access status, and control it through the device control interface when displayed.
It provides a unified device control interface, reduces operation complexity and improves user's intelligent experience.
Smart Images

Figure CN119906737A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of terminal technology, and in particular to a smart device control method, device, electronic device and storage medium. Background Art
[0002] With the continuous development of terminal technology, the types and number of smart devices in daily life are increasing. Connecting various smart devices to form an intelligent system through the Internet of Things technology to achieve centralized management and control of smart devices has become a development trend of terminal technology. In related technologies, the control method for each smart device is complex and single, which affects the user's smart experience. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a smart device control method, device, electronic device and storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, there is provided a smart device control method, which is applied to an electronic device, and the method includes:
[0005] Acquire access status information of the smart device, where the access status information indicates whether the smart device is connected to a target network;
[0006] Displaying the smart device on the device control interface or canceling the display of the smart device according to the access status information;
[0007] When the smart device is displayed on the device control interface, the smart device is controlled through the device control interface.
[0008] In an exemplary embodiment, the obtaining access status information of the smart device includes:
[0009] When the smart device is an ad hoc network device, the access status information sent by the smart device is received through a communication module.
[0010] In an exemplary embodiment, the method further comprises:
[0011] The access status information is sent to the device coordination module through the communication module, and when the device coordination module determines that the smart device is connected to the target network, the identification information of the smart device is stored in a preset storage area;
[0012] When it is determined through the device collaboration module that the smart device switches from being connected to the target network to being not connected to the target network, the identification information of the smart device is deleted from the preset storage area.
[0013] In an exemplary embodiment, the obtaining access status information of the smart device includes:
[0014] When the smart device is a non-self-organizing network device, if the electronic device meets the detection condition, the access status of the smart device is detected by a device discovery module to obtain the access status information.
[0015] In an exemplary embodiment, the detection condition is: receiving a detection instruction for the smart device.
[0016] In an exemplary embodiment, the receiving of a detection instruction for the smart device includes: receiving an opening instruction of the device control interface.
[0017] In an exemplary embodiment, detecting the access status of the smart device through a device discovery module to obtain the access status information includes:
[0018] Detecting the access status of the smart device through a device discovery module in a preset application program;
[0019] Receive access status information of the smart device sent by the preset application.
[0020] In an exemplary embodiment, detecting the access status of the smart device through a device discovery module includes:
[0021] Detecting the switch status of the smart device through a device discovery module;
[0022] If the smart device is in a powered-on state, determining that the smart device is connected to the target network;
[0023] If the smart device is in a powered-off state, it is determined that the smart device is not connected to the target network.
[0024] In an exemplary embodiment, the method further comprises:
[0025] The access status information is sent to the device transfer module through the device discovery module, and when the device transfer module determines that the smart device is connected to the target network, the identification information of the smart device is stored in a preset storage area;
[0026] When it is determined through the device transfer module that the smart device switches from being connected to the target network to being not connected to the target network, the identification information of the smart device is deleted from the preset storage area.
[0027] In an exemplary embodiment, displaying the smart device on the device control interface or canceling the display of the smart device includes:
[0028] When receiving an opening instruction of the device control interface, obtaining identification information of the smart device from a preset storage area through the device control interface;
[0029] If the preset storage area contains the identification information of the smart device, displaying the smart device on the device control interface;
[0030] If the preset storage area switches from including the identification information of the smart device to not including the identification information of the smart device, the display of the smart device is cancelled.
[0031] In an exemplary embodiment, the method further comprises:
[0032] When the smart device is displayed on the device control interface, the running status information of the preset smart device is displayed on the device control interface;
[0033] The running status of the preset smart device is monitored, and when the running status of the preset smart device changes, the running status information is updated, and the updated running status information is displayed on the device control interface.
[0034] In an exemplary embodiment, the method further comprises:
[0035] When receiving the closing instruction of the device control interface, stop detecting the access status of the smart device and stop monitoring the running status of the preset smart device.
[0036] In an exemplary embodiment, controlling the smart device through the device control interface includes:
[0037] Receiving a first operation on a target smart device in the device control interface;
[0038] Display a target control interface of the target smart device, and control the smart device through the target control interface;
[0039] Among them, the control device that controls the target smart device through the target control interface includes at least one of the electronic devices, and the target control interface includes all or part of the functions of the target smart device.
[0040] According to a second aspect of an embodiment of the present disclosure, there is provided a smart device control apparatus, which is applied to an electronic device, and the apparatus includes:
[0041] An acquiring unit is configured to acquire access status information of a smart device, wherein the access status information indicates whether the smart device is connected to a target network;
[0042] A display unit, configured to display the smart device on a device control interface or cancel display of the smart device according to the access status information;
[0043] The control unit is configured to control the smart device through the device control interface when the smart device is displayed on the device control interface.
[0044] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0045] processor;
[0046] a memory for storing processor-executable instructions;
[0047] The processor is configured to execute the method as described in the first aspect of the embodiment of the present disclosure.
[0048] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method described in the first aspect of the embodiment of the present disclosure.
[0049] The above method of the present disclosure has the following beneficial effects: providing a device control interface that can uniformly control various smart devices, which can reduce the operational complexity of controlling various smart devices, thereby improving the user's smart experience.
[0050] 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
[0051] 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.
[0052] Figure 1 is a flow chart of a method for controlling an intelligent device according to an exemplary embodiment;
[0053] Figure 2A and Figure 2B is a schematic diagram of a device control interface according to an exemplary embodiment;
[0054] Figure 3 is a flow chart of a method for controlling an intelligent device according to an exemplary embodiment;
[0055] Figure 4A and Figure 4B is a schematic diagram of a control interface according to an exemplary embodiment;
[0056] Figures 5A-5C is a schematic diagram of common control according to an exemplary embodiment;
[0057] Figure 6 is a flow chart of a method for controlling an intelligent device according to an exemplary embodiment;
[0058] Figure 7 is a flow chart of a method for controlling an intelligent device according to an exemplary embodiment;
[0059] Figure 8 is a schematic diagram of a method for controlling an intelligent device according to an exemplary embodiment;
[0060] Fig. 9 is a block diagram of a smart device control device according to an exemplary embodiment;
[0061] Fig.10 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0062] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0063] In the related art, different operation entrances are usually used to control different types of smart devices. Smart home devices are controlled by smart home applications, and smart wearable devices are controlled by applications corresponding to their functions. For example, smart watches or smart bracelets are controlled by sports and health applications. Therefore, users need to switch multiple interfaces when controlling different types of smart devices. In addition, the operation path when controlling smart devices is long. For example, when controlling a smart watch, it is necessary to open the sports and health application, enter the tab page corresponding to the function to be operated, and then select the smart device to be operated, and then control the smart device. The operation is cumbersome and time-consuming. In addition, the control method for smart devices is single. For example, for smart TVs, only the screen projection function can be controlled, but the program switching in the smart TV cannot be controlled. Therefore, the control method for each smart device in the related art is complex and single, which affects the user's smart experience.
[0064] In an exemplary embodiment of the present disclosure, in order to overcome the technical problems existing in the related art, a smart device control method is provided, which is applied to electronic devices, including: obtaining access status information of the smart device, the access status information indicating whether the smart device is connected to the target network; displaying the smart device on the device control interface or canceling the display of the smart device according to the access status information; when the smart device is displayed on the device control interface, controlling the smart device through the control interface of the smart device. The smart device control method provides a device control interface that can uniformly control various smart devices, which can reduce the complexity of controlling various smart devices, thereby improving the user's smart experience.
[0065] In an exemplary embodiment of the present disclosure, a smart device control method is provided, which is applied to an electronic device, where the electronic device is a smart terminal device with display and control functions, such as a smart phone, a tablet computer, a laptop computer, a personal computer (PC), an artificial intelligence terminal, and other smart terminal devices. Figure 1 is a flow chart of a method for controlling an intelligent device according to an exemplary embodiment. Figure 1 As shown, the following steps are included:
[0066] Step S101, obtaining access status information of a smart device, where the access status information indicates whether the smart device is connected to a target network.
[0067] Smart devices are Internet of Things (IoT) devices with network connection functions and actuators, such as smart home devices such as smart desk lamps, smart air conditioners, smart speakers, smart TVs, smart wearable devices such as smart watches / bracelets, smart glasses, virtual reality / augmented reality devices, smart terminal devices such as smartphones, tablets, laptops, personal computers, and smart systems such as smart car systems.
[0068] Electronic devices and smart devices are connected through the Internet of Things technology. When the electronic device is connected to a local area network, the local area network is the target network. The access status of each smart device in the local area network is obtained, that is, whether each smart device is connected to the target network is determined, thereby obtaining the access status information of each smart device. The access status information of the smart device may include an access status identifier, which may be represented by a Boolean value, such as "0" to indicate that the smart device is not connected to the target network, and "1" to indicate that the smart device is connected to the target network.
[0069] Step S102: display the smart device on the device control interface or cancel the display of the smart device according to the access status information.
[0070] According to the access status information, it can be determined whether the smart device is connected to the target network. If it is connected to the target network, it means that it can be connected to the electronic device; if it is not connected to the target network, it means that it cannot be connected to the electronic device. When the smart device can be connected to the electronic device, the smart device is displayed on the device control interface; if the smart device cannot be connected to the electronic device, the smart device cannot be displayed on the device control interface. If the smart device was previously displayed on the device control interface, the smart device can be cancelled. If the smart device was not previously displayed on the device control interface, no processing is required.
[0071] When displaying smart devices, the device control interface may display text labels corresponding to the smart devices, or images or graphic labels of the smart devices, or text labels and graphic labels of the smart devices at the same time; the smart devices may be displayed in the form of cards, with each smart device corresponding to a card, or the smart devices may be displayed in the form of a list. The embodiments of the present disclosure do not restrict the naming of the device control interface and the display method of the smart devices in the device control interface.
[0072] The device control interface can be located in the control center of the electronic device, which can be called the "device control center". Since the control center can usually be quickly opened by quick operations such as pulling down or swiping up in the electronic device, displaying the device control interface in the control center can shorten the operation path when viewing the device control interface or controlling the smart device through the device control interface. The device control interface can also be located on a page that can be quickly read, such as the negative first screen of the electronic device.
[0073] In one example, Figure 2A and Figure 2B is a schematic diagram of a device control interface according to an exemplary embodiment. Figure 2A As shown in the figure, the device control interface is called the "Device Control Center". When the electronic device is a smart phone, tablet computer, or laptop computer, the device control interface is displayed in its control center. The image logo of the smart device connected to the target network is displayed in the control device interface. The device control interface can also display the smart device in full screen. Figure 2A In the device control interface of the control center shown in FIG. 1 , an extension mark “…” is displayed. When the user clicks the mark, the user enters the following Figure 2B The device control interface shown in the figure displays the smart device in full screen. To distinguish the two display modes of the device control interface, you can Figure 2B The device control interface in the device center is called the "Device Center". Optionally, when there are a large number of intelligent devices connected to the target network, in order to avoid occupying a large area in the control center, Figure 2A The device control interface of the control center displays the icons of commonly used smart devices. Click the extended icon to display more smart devices. Figure 2BThe device control center displays the logos of all smart devices.
[0074] Step S103, when the smart device is displayed on the device control interface, the smart device is controlled through the device control interface.
[0075] When the smart device is displayed on the device control interface, that is, when the smart device is connected to the target network, click the icon corresponding to the smart device to enter the function control interface corresponding to the smart device. The smart device can be controlled through the function options in the function control interface.
[0076] In an exemplary embodiment of the present disclosure, by acquiring access status information of a smart device, determining whether the smart device is connected to a target network, and displaying or canceling the display of the smart device on a device control interface based on the access status information, a device control interface is provided that enables unified control of various smart devices, and the device control interface is located in an electronic device control center, shortening the operation path to the device control center, thereby reducing the operational complexity of controlling various smart devices, thereby enhancing the user's smart experience.
[0077] In an exemplary embodiment of the present disclosure, a smart device control method is provided, which is applied to an electronic device. Figure 3 is a flow chart of a method for controlling an intelligent device according to an exemplary embodiment. Figure 3 As shown, the following steps are included:
[0078] Step S301, determining whether the smart device is an ad hoc network device;
[0079] If the smart device is an ad hoc network device, execute steps S302-S304; if the smart device is not an ad hoc network device, execute steps S305-S307;
[0080] A mapping relationship between a smart device identifier and a smart device type can be set in an electronic device. The smart device types include self-organizing smart devices and non-self-organizing smart devices. When the smart device first accesses a target network, the electronic device determines the type of the smart device based on the identifier of the smart device to determine whether the smart device is a self-organizing device. It can also send test information to the smart device when the smart device first accesses the target network, and determine whether the smart device has self-organizing network capabilities by receiving response information to the test information.
[0081] Step S302: receiving access status information sent by the smart device through the communication module.
[0082] The communication module can be a device such as a distributed soft bus that can provide unified distributed communication capabilities for interconnection between devices. If the smart device is an ad hoc network device, when the smart device accesses the target network, the smart device sends a first access status information to the electronic device to indicate that the smart device has accessed the target network; when the smart device disconnects from the target network, the smart device sends a second access status information to the electronic device to indicate that the smart device has disconnected from the target network. The electronic device receives the access status information of the smart device through the communication module.
[0083] Step S303: sending the access status information to the device coordination module through the communication module, and storing the identification information of the smart device in a preset storage area when the device coordination module determines that the smart device has accessed the target network.
[0084] The collaboration module refers to a management module in an electronic device for managing the connection of smart devices in an ad hoc network. The preset storage area can be part of the storage space in the original memory of the electronic device, or it can be a storage space in a storage device different from the original memory. If the collaboration module determines that the smart device is connected to the target network based on the access status information, the identification information of the smart device is stored in the database of the preset storage area.
[0085] Step S304: when it is determined through the device coordination module that the smart device switches from being connected to the target network to being not connected to the target network, the identification information of the smart device is deleted from the preset storage area.
[0086] If the collaboration module determines, based on the access status information, that the smart device switches from accessing the target network to not accessing the target network, the identification information of the smart device is stored in the preset storage area, and the identification information of the smart device in the preset storage area is deleted.
[0087] Step S305: If the electronic device meets the detection condition, the access status of the smart device is detected by the device discovery module to obtain access status information.
[0088] If the smart device is not an ad hoc network device, the electronic device detects the access status of the smart device to obtain the access status information of the smart device. Since detecting the access status of the smart device consumes the power consumption of the electronic device, the access status of the smart device is detected when the electronic device meets the detection conditions. The device discovery module refers to a module in the electronic device for searching for smart devices.
[0089] When the user needs to manage or control the smart device, the electronic device meets the detection condition. In some possible implementations, the detection condition is: receiving a detection instruction for the smart device. The detection instruction means that the user has an instruction to view the device control interface. In one example, an opening instruction for the device control interface is received. When the device control interface is displayed in the control center as shown in FIG. Figure 2A In the interface shown, if the user pulls down the control center, it means that the user may want to view or manage the smart device through the control center. Therefore, when it is detected that the user pulls down the control center, it means that an opening instruction for the device control interface is received, and the electronic device meets the detection conditions, and the access status of the smart device is detected at this time; in another example, when a voice command of "open the device control interface" is received, it means that an opening instruction for the device control interface is received, and the electronic device meets the detection conditions, and the access status of the smart device is detected at this time.
[0090] When detecting the access status of the smart device, a detection method is determined according to the characteristics of the smart device.
[0091] In some possible implementations, the switch state of the smart device is detected by a device discovery module. If the smart device is in the on state, it is determined that the smart device is connected to the target network; if the smart device is in the off state, it is determined that the smart device is not connected to the target network.
[0092] When the smart device has an exposed switch, the access status can be determined by detecting the switch state of the exposed switch of the smart device. If the exposed switch is turned off, that is, it is in the off state, it is determined that the smart device is not connected to the target network. If the exposed switch is turned on, that is, it is in the on state, it is determined that the smart device is connected to the target network. When the smart device does not have an exposed switch, the access status can also be determined by detecting whether the power of the smart device is greater than 0. If the power is greater than 0, that is, it is in the on state, it is determined that the target network is connected. If the power is 0, that is, it is in the off state, it is determined that the smart device is not connected to the target network.
[0093] In some possible implementations, the access status of the smart device is detected through a device discovery module in a preset application, and the access status information of the smart device sent by the preset application is received.
[0094] The preset applications are applications for smart devices that search for and connect to a target network, such as applications with a screen projection function, sports and health applications, and applications with device synergy.
[0095] Step S306: The device discovery module sends the access status information to the device transfer module. When the device transfer module determines that the smart device has accessed the target network, the identification information of the smart device is stored in a preset storage area.
[0096] The device circulation module refers to a module in an electronic device used to realize page circulation or function circulation between different devices, such as a circulate framework. After the device discovery module detects the access status information of the smart device, it sends the access status information to the device circulation module. If the device circulation module determines that the smart device is connected to the target network based on the access status information, the identification information of the smart device is stored in the database of the preset storage area.
[0097] Step S307: when the device transfer module determines that the smart device switches from being connected to the target network to being not connected to the target network, the device discovery module deletes the identification information of the smart device from the preset storage area.
[0098] If the device transfer module determines, based on the access status information, that the smart device switches from being connected to the target network to being not connected to the target network, then the identification information of the smart device is stored in the preset storage area, and the identification information of the smart device in the preset storage area is deleted.
[0099] Step S308: when receiving the opening instruction for the device control interface, obtaining the identification information of the smart device from the preset storage area through the device control interface.
[0100] The opening instruction of the device control interface is the opening instruction of the control center. It can be a pull-down operation, a swipe-up operation, or other quick operations according to the system settings of the electronic device. The device interface reads the identification information of the smart device from the database in the preset storage area to obtain the information of the smart device connected to the target network. The changes of the identification information of the smart device in the preset storage device are monitored in real time, and the smart devices displayed in the device control center are updated in real time according to the changes.
[0101] Step S309: If the preset storage area contains identification information of the smart device, the smart device is displayed on the device control interface.
[0102] If the identification information of the smart device can be read from the preset storage area, it means that the smart device is connected to the target network, and the smart device is displayed on the device control interface.
[0103] Step S310: If the preset storage area switches from including the identification information of the smart device to not including the identification information of the smart device, the display of the smart device is cancelled.
[0104] If the identification information of the smart device can be read from the preset storage area at the last moment, the smart device is displayed on the device control interface at the last moment; if the identification information of the smart device cannot be read from the preset storage area at the current moment, the smart device is not displayed at the current moment.
[0105] Monitor the access status of smart devices, update the access status information when the access status of smart devices changes, and update the smart device list displayed in the device control interface according to the changes in the access status information, so as to ensure that the latest access status of smart devices is displayed.
[0106] Step S311, when the smart device is displayed on the device control interface, the running status information of the preset smart device is displayed on the device control interface.
[0107] The operating status information indicates the operating status of the smart device when it is connected to the target network. The preset smart device is set according to the user's needs. The user can choose the smart device to be monitored. For example, when the preset smart device set by the user is a smart speaker, the operating status information of the smart speaker is monitored. The operating status information can also be set by the user or determined according to the default settings. For example, for a smart speaker, the operating status information can be the music playback status, playback progress, playback volume, etc. When the user wants to view the music playback progress in real time, the music playback progress can be displayed next to the smart speaker logo in the device control interface; when the user wants to monitor the playback volume, the playback volume can be displayed next to the smart speaker logo in the device control interface.
[0108] Step S312, monitoring the running status of the preset smart device, updating the running status information when the running status of the preset smart device changes, and displaying the updated running status information on the device control interface.
[0109] Monitor the running status of preset smart devices in real time. When the running status information changes, update the running status information and display the updated status information in the device control interface to ensure the real-time running status is displayed.
[0110] Displaying the operating status information of preset smart devices on the device control interface can help users quickly understand the operating status of the smart devices.
[0111] Step S313, when receiving the closing instruction of the device control interface, stop detecting the access status of the smart device and stop monitoring the running status of the preset smart device.
[0112] The closing instruction of the device control interface is opposite to its opening instruction. For example, when the opening instruction is a pull-down operation, the closing instruction is an upward swipe operation. When the device control interface is closed, it stops detecting the access status of smart devices and stops monitoring the running status of preset smart devices, which can save power consumption of electronic devices and improve the battery life of electronic devices.
[0113] Step S314: receiving a first operation on a target smart device in the device control interface.
[0114] The target smart device is any smart device in the device control interface, and the first operation can be a click operation such as a click or a double click.
[0115] Step S315, displaying a target control interface of the target smart device, and controlling the smart device through the target control interface;
[0116] The control device for controlling the target smart device through the target control interface includes at least one electronic device, and the target control interface includes all or part of the functions of the target smart device.
[0117] The target control interface is the control interface corresponding to the target smart device, and the target control interface includes all or part of the functions of the target smart device. The corresponding function options in the target control interface are determined by the smart functions of the smart device. In one example, Figure 4A and Figure 4B is a schematic diagram of a control interface according to an exemplary embodiment. The intelligent functions of the smart speaker include volume adjustment, music track switching, progress adjustment, play mode, and play list. Figure 4A As shown in the figure, the function options in the control interface of the smart speaker include the function options corresponding to the above smart functions; the smart functions of the smart TV include power on / off, screenshot, function selection, opening commonly used applications, etc. Figure 4B As shown, the function options in the control interface of the smart TV include function options corresponding to the above smart functions.
[0118] When the smart device is displayed on the device control interface, the target smart device is controlled through the target control interface of the target smart device, providing a target control interface that can control multiple functions of the target smart device, which can enrich the control methods of various smart devices and enhance the user's smart experience.
[0119] The control device that controls the target smart device through the target control interface of the target smart device includes at least one electronic device, that is, the same target smart device can be controlled by multiple electronic devices. Figures 5A-5C is a schematic diagram of joint control according to an exemplary embodiment. As shown in the figure, when multiple electronic devices jointly control the same target smart device, the target control interface is the same in the multiple electronic devices, and the target smart device can be controlled by any electronic device, wherein: Figure 5A A schematic diagram of the control interface in each electronic device when jointly controlling a smart speaker. Figure 5B A schematic diagram of the control interface of each electronic device when jointly controlling the intelligent vehicle system. Figure 5C This is a schematic diagram of the control interface in each electronic device when jointly controlling a smart TV. Optionally, the device identification of the control device can be displayed in the target control interface of the smart device so that the user can obtain information about the control device.
[0120] It should be noted that, in this embodiment, steps S302-S304 and steps S308-S310 may be separate embodiments, steps S305-S307 and steps S308-S310 may be separate embodiments, steps S302-S310 may be separate embodiments, steps S311-S312, step S313, and steps S314-S315 are all optional and may be omitted or replaced by other steps in some embodiments.
[0121] In an exemplary embodiment of the present disclosure, a smart device control method is provided, which is applied to electronic devices. The smart device control method is provided with core services by a circulate framework (i.e., a device circulation module). The circulate framework receives access status information of smart devices by subscribing to the Tianqin self-organizing network framework. Figure 6 is a flow chart of a smart device control method according to an exemplary embodiment, which is applied to electronic devices such as Figure 6 As shown, the following steps are included:
[0122] Step S6-1, receiving an online message of the smart device accessing the target network through the soft bus (i.e., the communication module);
[0123] Among them, the smart device is a self-organizing network device;
[0124] Step S6-2, waking up the device coordination module;
[0125] The device collaboration module is, for example, miui+;
[0126] Step S6-3, writing the cache information of the smart device into the database of the device center through the collaborative module;
[0127] Among them, the device center is the device control interface;
[0128] Step S6-4, receiving an offline message of the intelligent device disconnecting from the target network through the distributed soft bus (i.e., the communication module);
[0129] Step S6-5, waking up the device coordination module;
[0130] Step S6-6, deleting the cache information of the smart device from the database of the device center through the device collaboration module.
[0131] In an exemplary embodiment of the present disclosure, a smart device control method is provided, which is applied to an electronic device. The smart device control method is provided with core services by a circulate framework, and the device control interface detects the access status of the smart device by calling the circulate framework or the SDK (Software Development Kit) of the circulate framework. Figure 7 is a flow chart of a smart device control method according to an exemplary embodiment, which is applied to an electronic device, and the device control interface is located in the control center of the electronic device, such as Figure 7 As shown, the following steps are included:
[0132] Step S7-1, when the control center is pulled down, the device control interface queries the smart device from the database of the device center, and the database of the device center returns the cache information of the smart device stored therein to the device control interface;
[0133] Step S7-2, displaying the smart device on the device control interface;
[0134] Step S7-3, monitoring changes in the smart device list in the device control interface;
[0135] Step S7-4, starting a device search service to detect the switch status of a smart device with an exposed switch;
[0136] Step S7-5, calling the circulate framework through the device center and initializing the circulate framework;
[0137] Initialize the device discovery module in the framework. When the device discovery module is initialized successfully, the circulate framework is initialized successfully.
[0138] Step S7-6, searching for smart devices by calling the device discovery module of the circulate framework through the device center;
[0139] Step S7-7, when a smart device with a switch in the on state is searched through the device discovery module, the cache information of the smart device is written into the database of the device center;
[0140] Insert the data of the smart device into the database of the device center;
[0141] Step S7-8, displaying the newly added smart device in the device control interface;
[0142] Step S7-9, monitoring the state change (i.e., operation state information) of the designated smart device (i.e., the preset smart device);
[0143] The designated smart device refers to a smart device that needs to continuously update display information, such as a smart thermometer, which can obtain temperature display information at different times by monitoring its running status changes;
[0144] Step S7-10, when the device discovery module detects that the state of the designated smart device has changed, the cache data of the electronic device is updated in the database of the device center;
[0145] Step S7-11, updating the display content of the device control interface;
[0146] Step S7-12, when the control center is closed, stop searching for devices, deinitialize the circulate framework, and unbind the device discovery module;
[0147] Step S7-13, stop monitoring the changes of the smart device list in the device control interface, and stop monitoring the status changes of the specified smart device.
[0148] In an exemplary embodiment of the present disclosure, a smart device control method is provided, which is applied to an electronic device. Figure 8 is a schematic diagram of a smart device control method according to an exemplary embodiment, which is applied to electronic devices such as Figure 8 As shown, System UI represents the device control interface. System UI provides device control services by calling the device control application programming interface DeviceManage API and providing device control services through the circulate framework. The framework inserts, updates, and deletes the cache information of smart devices in the database of the device control interface in the following two ways: Method 1, subscribing to the Tianqin self-organizing network framework through the circulate framework to receive the access status information of the smart device through the soft bus, and inserting or deleting the cache information of the smart device in the database of the device control interface through the device collaboration module; Method 2, detecting the access status information of the smart device through a preset application, and inserting or deleting the cache information of the smart device in the database of the device control interface through the circulate framework.
[0149] In an exemplary embodiment of the present disclosure, a smart device control device is provided, which is applied to an electronic device. Fig. 9 is a block diagram of a smart device control device according to an exemplary embodiment. Fig. 9 As shown, the device comprises:
[0150] The acquisition unit 901 is configured to acquire access status information of the smart device, where the access status information indicates whether the smart device is connected to the target network;
[0151] The display unit 902 is configured to display the smart device on the device control interface or cancel the display of the smart device according to the access status information;
[0152] The control unit 903 is configured to control the smart device through the device control interface when the smart device is displayed on the device control interface.
[0153] In an exemplary embodiment, the acquiring unit 901 is further configured to:
[0154] When the smart device is an ad hoc network device, the access status information sent by the smart device is received through the communication module.
[0155] In an exemplary embodiment, the acquiring unit 901 is further configured to:
[0156] The access status information is sent to the device collaboration module through the communication module, and when the device collaboration module determines that the smart device is connected to the target network, the identification information of the smart device is stored in a preset storage area;
[0157] When it is determined through the device collaboration module that the smart device switches from being connected to the target network to not being connected to the target network, the identification information of the smart device is deleted from the preset storage area.
[0158] In an exemplary embodiment, the acquiring unit 901 is further configured to:
[0159] When the smart device is a non-self-organizing network device, if the electronic device meets the detection conditions, the access status of the smart device is detected through the device discovery module to obtain the access status information.
[0160] In an exemplary embodiment, the detection condition is: receiving a detection instruction for the smart device.
[0161] In an exemplary embodiment, the acquisition unit 901 is further configured to: receive an opening instruction of the device control interface.
[0162] In an exemplary embodiment, the acquiring unit 901 is further configured to:
[0163] Detect the access status of smart devices through the device discovery module in the preset application;
[0164] Receive access status information of smart devices sent by preset applications.
[0165] In an exemplary embodiment, the acquiring unit 901 is further configured to:
[0166] Detect the switch status of smart devices through the device discovery module;
[0167] If the smart device is powered on, make sure the smart device is connected to the target network;
[0168] If the smart device is powered off, make sure that the smart device is not connected to the target network.
[0169] In an exemplary embodiment, the acquiring unit 901 is further configured to:
[0170] The access status information is sent to the device transfer module through the device discovery module, and when the device transfer module determines that the smart device is connected to the target network, the identification information of the smart device is stored in a preset storage area;
[0171] When it is determined through the device transfer module that the smart device switches from being connected to the target network to being not connected to the target network, the identification information of the smart device is deleted from the preset storage area.
[0172] In an exemplary embodiment, the display unit 902 is further configured to:
[0173] When receiving an opening instruction from the device control interface, obtaining identification information of the smart device from a preset storage area through the device control interface;
[0174] If the preset storage area contains identification information of the smart device, the smart device is displayed on the device control interface;
[0175] If the preset storage area switches from including identification information of the smart device to not including identification information of the smart device, the display of the smart device is cancelled.
[0176] In an exemplary embodiment, the display unit 902 is further configured to:
[0177] When the smart device is displayed on the device control interface, the running status information of the preset smart device is displayed on the device control interface;
[0178] Monitor the running status of the preset smart device, update the running status information when the running status of the preset smart device changes, and display the updated running status information on the device control interface.
[0179] In an exemplary embodiment, the acquiring unit 901 is further configured to:
[0180] When receiving a shutdown command from the device control interface, stop detecting the access status of the smart device and stop monitoring the running status of the preset smart device.
[0181] In an exemplary embodiment, the control unit 903 is further configured to:
[0182] Receiving a first operation on a target smart device in the device control interface;
[0183] Display the target control interface of the target smart device, and control the smart device through the target control interface;
[0184] The control device for controlling the target smart device through the target control interface includes at least one electronic device, and the target control interface includes all or part of the functions of the target smart device.
[0185] 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.
[0186] Fig.10 is a block diagram of an electronic device 1000 according to an exemplary embodiment.
[0187] Reference Fig.10 , the electronic device 1000 may include one or more of the following components: a processing component 1002 , a memory 1004 , a power component 1006 , a multimedia component 1008 , an audio component 1010 , an input / output (I / O) interface 1012 , a sensor component 1014 , and a communication component 1016 .
[0188] The processing component 1002 generally controls the overall operation of the electronic device 1000, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1002 may include one or more processors 1020 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 1002 may include one or more modules to facilitate the interaction between the processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate the interaction between the multimedia component 1008 and the processing component 1002.
[0189] The memory 1004 is configured to store various types of data to support operations on the electronic device 1000. Examples of such data include instructions for any application or method operating on the electronic device 1000, contact data, phone book data, messages, pictures, videos, etc. The memory 1004 may 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.
[0190] The power supply component 1006 provides power to various components of the electronic device 1000. The power supply component 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 1000.
[0191] The multimedia component 1008 includes a screen that provides an output interface between the electronic device 1000 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 1008 includes a front camera and / or a rear camera. When the electronic device 1000 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 the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0192] The audio component 1010 is configured to output and / or input audio signals. For example, the audio component 1010 includes a microphone (MIC), and when the electronic device 1000 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1004 or sent via the communication component 1016. In some embodiments, the audio component 1010 also includes a speaker for outputting audio signals.
[0193] I / O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0194] The sensor assembly 1014 includes one or more sensors for providing various aspects of status assessment for the electronic device 1000. For example, the sensor assembly 1014 can detect the open / closed state of the electronic device 1000, the relative positioning of components, such as the display and keypad of the electronic device 1000, and the sensor assembly 1014 can also detect the position change of the electronic device 1000 or a component of the electronic device 1000, the presence or absence of user contact with the electronic device 1000, the orientation or acceleration / deceleration of the electronic device 1000, and the temperature change of the electronic device 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 1014 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0195] The communication component 1016 is configured to facilitate wired or wireless communication between the electronic device 1000 and other devices. The electronic device 1000 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 1016 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 1016 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.
[0196] In an exemplary embodiment, the electronic device 1000 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 methods.
[0197] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1004 including instructions, and the instructions can be executed by the processor 1020 of the electronic device 1000 to complete 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.
[0198] A non-temporary computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute a smart device control method, the method including any of the above methods.
[0199] 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 variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0200] It should be understood that the present disclosure is not limited to the exact 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 appended claims.
Claims
1. A smart device control method, applied to electronic equipment, characterized in that: The method comprises: Acquire access status information of the smart device, where the access status information indicates whether the smart device is connected to a target network; Displaying the smart device on the device control interface or canceling the display of the smart device according to the access status information; When the smart device is displayed on the device control interface, the smart device is controlled through the device control interface.
2. The method according to claim 1, characterized in that: The obtaining of the access status information of the smart device includes: When the smart device is an ad hoc network device, the access status information sent by the smart device is received through a communication module.
3. The method according to claim 2, characterized in that The method further comprises: The access status information is sent to the device coordination module through the communication module, and when the device coordination module determines that the smart device is connected to the target network, the identification information of the smart device is stored in a preset storage area; When it is determined through the device collaboration module that the smart device switches from being connected to the target network to being not connected to the target network, the identification information of the smart device is deleted from the preset storage area.
4. The method according to claim 1, characterized in that: The obtaining of the access status information of the smart device includes: When the smart device is a non-self-organizing network device, if the electronic device meets the detection condition, the access status of the smart device is detected by a device discovery module to obtain the access status information.
5. The method according to claim 4, characterized in that The detection condition is: receiving a detection instruction for the smart device.
6. The method according to claim 5, characterized in that The receiving of the detection instruction for the smart device includes: receiving an opening instruction of the device control interface.
7. The method according to claim 4, characterized in that The detecting the access status of the smart device through the device discovery module to obtain the access status information includes: Detecting the access status of the smart device through a device discovery module in a preset application program; Receive access status information of the smart device sent by the preset application.
8. The method according to claim 4, characterized in that The detecting the access status of the smart device through the device discovery module includes: Detecting the switch status of the smart device through a device discovery module; If the smart device is in a powered-on state, determining that the smart device is connected to the target network; If the smart device is in a powered-off state, it is determined that the smart device is not connected to the target network.
9. The method according to claim 4, characterized in that The method further comprises: The access status information is sent to the device transfer module through the device discovery module, and when the device transfer module determines that the smart device is connected to the target network, the identification information of the smart device is stored in a preset storage area; When it is determined through the device transfer module that the smart device switches from being connected to the target network to being not connected to the target network, the identification information of the smart device is deleted from the preset storage area.
10. The method according to any one of claims 1 to 9, characterized in that: The displaying of the smart device on the device control interface or cancelling the display of the smart device comprises: When receiving an opening instruction of the device control interface, obtaining identification information of the smart device from a preset storage area through the device control interface; If the preset storage area contains the identification information of the smart device, displaying the smart device on the device control interface; If the preset storage area switches from including the identification information of the smart device to not including the identification information of the smart device, the display of the smart device is cancelled.
11. The method according to claim 10, characterized in that The method further comprises: When the smart device is displayed on the device control interface, the running status information of the preset smart device is displayed on the device control interface; The running status of the preset smart device is monitored, and when the running status of the preset smart device changes, the running status information is updated, and the updated running status information is displayed on the device control interface.
12. The method according to claim 11, characterized in that The method further comprises: When receiving the closing instruction of the device control interface, stop detecting the access status of the smart device and stop monitoring the running status of the preset smart device.
13. The method according to claim 1, characterized in that The controlling the smart device through the device control interface includes: Receiving a first operation on a target smart device in the device control interface; Display a target control interface of the target smart device, and control the smart device through the target control interface; Among them, the control device that controls the target smart device through the target control interface includes at least one of the electronic devices, and the target control interface includes all or part of the functions of the target smart device.
14. An intelligent device control device, applied to electronic equipment, characterized in that: The device comprises: An acquiring unit is configured to acquire access status information of a smart device, wherein the access status information indicates whether the smart device is connected to a target network; A display unit, configured to display the smart device on a device control interface or cancel display of the smart device according to the access status information; The control unit is configured to control the smart device through the device control interface when the smart device is displayed on the device control interface.
15. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method as claimed in any one of claims 1 to 13.
16. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as claimed in any one of claims 1 to 13.