Device control method and electronic device
By obtaining device information and metadata services from the second electronic device through the first electronic device, the problem of cumbersome operation for users in controlling multiple electronic devices is solved, and a simplified control process without the need for pre-installation of applications is achieved, thus improving the user experience.
Patent Information
- Application Number
- CN202510697727.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-27
- Publication Date
- 2026-11-27
AI Technical Summary
Users need to search and learn the control applications for multiple electronic devices, which is cumbersome and costly, especially when different brands of electronic devices are installed in the home.
The device information of the second electronic device is obtained through the first electronic device, the associated meta-services are determined, and an identifier for activating the meta-services is generated to simplify user operations. For example, device information is obtained through NFC sensing area, routing device connection or other communication methods, and the identifier is displayed to control the electronic device.
Users do not need to pre-install a control app; they can trigger device control simply by approaching or touching the device, which simplifies the operation process, reduces storage pressure, and improves the user experience.
Smart Images

Figure CN123185541A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to a device control method and electronic device. Background Technology
[0002] With the development of terminal technology, electronic devices are becoming increasingly diverse in type and functionality, thus meeting various user needs. Different brands of electronic devices typically come with their own applications to fully utilize their functions. For example, if a user's bedroom has an air conditioner of brand A, the application controlling that air conditioner is application A; if the living room has an air conditioner of brand B, the application controlling that air conditioner is application B.
[0003] However, if a user has a large number of electronic devices installed in their home, they will need to install numerous applications on the control system to use these devices. Then, when a user needs to use a particular electronic device, they will have to search for the required application among many others, which is cumbersome, and the learning curve for multiple applications is also steep. Summary of the Invention
[0004] To address the aforementioned technical problems, this application provides a device control method and an electronic device. The technical solution provided by this application enables a first electronic device to obtain metadata services associated with the second electronic device based on the acquired device information of the second electronic device, thereby controlling the second electronic device, simplifying user operations, and improving the user experience.
[0005] To achieve the above-mentioned technical objectives, this application provides the following technical solution:
[0006] A first aspect provides a device control method applied to a first electronic device. The method includes: acquiring device information of a second electronic device when the first electronic device is in a preset scenario; wherein the preset scenario includes one or more of the following: the first electronic device approaches or contacts an NFC sensing area on the second electronic device; the first electronic device connects to a routing device already connected to the second electronic device; the first electronic device and the second electronic device establish a communication connection other than an NFC connection. Based on the device information, acquiring a meta-service associated with the second electronic device, the meta-service being used to control the second electronic device. Generating a first identifier to activate the meta-service.
[0007] In this way, the first electronic device can flexibly obtain the device information of the second electronic device in various preset scenarios, and directly determine the meta-service associated with the second electronic device based on the device information, thereby generating a first identifier for starting the meta-service. Thus, the first electronic device does not need to pre-install an application for controlling the second electronic device; the first electronic device can still meet the user's need to use the second electronic device through the created first identifier, effectively simplifying user operation and improving the user experience.
[0008] According to the first aspect, the preset scenario includes the first electronic device approaching or touching the NFC sensing area on the second electronic device, and the method further includes: displaying the first identifier. Upon detecting a first operation by a user on the first identifier, a first interface is displayed, the first interface being used by the first electronic device to control the second electronic device through the meta-service.
[0009] In this way, after the first electronic device identifies the meta-service associated with the second electronic device, it can display a first identifier for quickly opening the meta-service. Through this first identifier, the user can quickly trigger the first electronic device to use the function of the second electronic device through the meta-service, thereby effectively simplifying the user's operation and improving the user experience.
[0010] According to the first aspect, or any implementation of the first aspect above, displaying the first identifier includes: displaying the first identifier according to a preset method, wherein the preset method includes one or more of the following: capsule display method, card display method, pop-up notification display method, and drop-down menu bar display method.
[0011] In this way, a variety of display styles can meet the flexible usage needs of users.
[0012] According to the first aspect, or any implementation of the first aspect above, the method further includes: detecting a second operation by the user to launch a device management application, displaying a second interface, wherein the second interface displays the first identifier.
[0013] According to the first aspect, or any implementation of the first aspect above, the second interface displays the first identifier displayed in a card display manner.
[0014] In this way, the first electronic device can obtain the device information of the second electronic device during the communication process with the second electronic device, and automatically add the second electronic device, which can effectively simplify user operation while meeting user needs.
[0015] According to the first aspect, or any implementation thereof, obtaining the device information of the second electronic device includes: after the first electronic device approaches or touches the NFC sensing area on the second electronic device, establishing an NFC connection with the second electronic device; and reading the device information of the second electronic device through the NFC connection.
[0016] In this way, the application controlling the second electronic device does not need to be pre-installed in the first electronic device. The user can trigger the first electronic device to obtain the metadata services associated with the second electronic device through a simple approach or contact operation, thereby realizing control of the second electronic device. This effectively simplifies user operation, reduces application installation, and lowers the storage pressure on the first electronic device.
[0017] According to the first aspect, or any implementation thereof, obtaining the device information of the second electronic device includes: establishing a first communication connection with the routing device; sending a first request to the routing device through the first communication connection, the first request being used to request obtaining device information of at least one electronic device connected to the routing device; and receiving the device information of the at least one electronic device sent by the routing device, the device information of the at least one electronic device including the device information of the second electronic device.
[0018] In this way, the first electronic device can automatically add a second electronic device based on the connection information under the connected routing device, which effectively simplifies user operation while meeting user needs.
[0019] According to the first aspect, or any implementation of the first aspect above, sending the first request to the routing device through the first communication connection includes: sending the first request to the routing device through the first communication connection according to a preset period.
[0020] In this way, if the electronic devices connected to the routing device change, the first electronic device can also update the corresponding device information in a timely manner.
[0021] According to the first aspect, or any implementation of the first aspect above, obtaining the device information of the second electronic device includes: obtaining the device information of the second electronic device during the process of establishing a second communication connection with the second electronic device, wherein the second communication connection is a communication connection established with the second electronic device other than an NFC connection.
[0022] In this way, the first electronic device can obtain the device information of the second electronic device during the communication process with the second electronic device, and automatically add the second electronic device, which can effectively simplify user operation while meeting user needs.
[0023] According to the first aspect, or any implementation thereof, obtaining the meta-services associated with the second electronic device based on the device information includes: obtaining the meta-services corresponding to the device information of the second electronic device based on a preset mapping relationship between preset device information and preset meta-services; or, sending the device information of the second electronic device to the server; and receiving the meta-services associated with the second electronic device sent by the server.
[0024] According to the first aspect, or any implementation of the first aspect above, the device information includes one or more of the following: device type, device name, device identifier, manufacturer information, brand information, and payment information.
[0025] Secondly, a first electronic device is provided. The electronic device includes a processor and a memory, the memory being coupled to the processor. The memory stores computer program code, which includes computer instructions. When the processor reads the computer instructions from the memory, the first electronic device executes the following: In a preset scenario, the first electronic device acquires device information of a second electronic device; wherein the preset scenario includes one or more of the following: the first electronic device approaches or contacts an NFC sensing area on the second electronic device; the first electronic device connects to a routing device already connected to the second electronic device; the first electronic device establishes a communication connection with the second electronic device other than an NFC connection. Based on the device information, a meta-service associated with the second electronic device is acquired, the meta-service being used to control the second electronic device. A first identifier for activating the meta-service is generated.
[0026] According to the second aspect, the preset scenario includes the first electronic device approaching or touching the NFC sensing area on the second electronic device, and when the processor reads computer instructions from the memory, causing the first electronic device to execute: displaying the first identifier; detecting a first operation by the user on the first identifier; and displaying a first interface, the first interface being used by the first electronic device to control the second electronic device through the meta-service.
[0027] According to the second aspect, or any implementation of the second aspect above, displaying the first identifier includes: displaying the first identifier according to a preset method, wherein the preset method includes one or more of the following: capsule display method, card display method, pop-up notification display method, and drop-down menu bar display method.
[0028] According to the second aspect, or any implementation of the second aspect above, when the processor reads computer instructions from memory, it also causes the first electronic device to perform: detecting a second operation of a user launching a device management application, displaying a second interface, the second interface displaying the first identifier.
[0029] According to the second aspect, or any implementation of the second aspect above, the second interface displays the first identifier displayed in a card display manner.
[0030] According to the second aspect, or any implementation thereof, obtaining the device information of the second electronic device includes: after the first electronic device approaches or touches the NFC sensing area on the second electronic device, an NFC connection is established with the second electronic device. The device information of the second electronic device is then read through the NFC connection.
[0031] According to the second aspect, or any implementation thereof, obtaining the device information of the second electronic device includes: establishing a first communication connection with the routing device; sending a first request to the routing device through the first communication connection, the first request being used to request obtaining device information of at least one electronic device connected to the routing device; and receiving the device information of the at least one electronic device sent by the routing device, the device information of the at least one electronic device including the device information of the second electronic device.
[0032] According to the second aspect, or any implementation of the second aspect above, sending the first request to the routing device through the first communication connection includes: sending the first request to the routing device through the first communication connection according to a preset period.
[0033] According to the second aspect, or any implementation of the second aspect above, obtaining the device information of the second electronic device includes: obtaining the device information of the second electronic device during the process of establishing a second communication connection with the second electronic device, wherein the second communication connection is a communication connection established with the second electronic device other than an NFC connection.
[0034] According to the second aspect, or any implementation thereof, obtaining the meta-services associated with the second electronic device based on the device information includes: obtaining the meta-services corresponding to the device information of the second electronic device based on a preset mapping relationship between preset device information and preset meta-services; or, sending the device information of the second electronic device to the server; and receiving the meta-services associated with the second electronic device sent by the server.
[0035] According to the second aspect, or any implementation of the second aspect above, the device information includes one or more of the following: device type, device name, device identifier, manufacturer information, brand information, and payment information.
[0036] Thirdly, an electronic device is provided that has the function of implementing the touch method as described in the first aspect and any of its possible implementations. This function can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the described function.
[0037] Fourthly, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program (also referred to as instructions or code) that, when executed by an electronic device, causes the electronic device to perform the method of the first aspect or any embodiment of the first aspect.
[0038] Fifthly, a computer program product is provided that, when run on an electronic device, causes the electronic device to perform the method of the first aspect or any one of the embodiments of the first aspect.
[0039] In a sixth aspect, a circuit system is provided, the circuit system including processing circuitry configured to perform the method of the first aspect or any embodiment of the first aspect.
[0040] In a seventh aspect, a chip system is provided, including at least one processor and at least one interface circuit, wherein the at least one interface circuit is used to perform transceiver functions and send instructions to the at least one processor, and when the at least one processor executes the instructions, the at least one processor performs the method of the first aspect or any embodiment of the first aspect.
[0041] The technical effects of the aforementioned aspects can be referenced from each other, and will not be elaborated further here. Attached Figure Description
[0042] Figure 1 Interface illustration provided for embodiments of this application Figure 1 ;
[0043] Figure 2 Interface illustration provided for embodiments of this application Figure 2 ;
[0044] Figure 3 A schematic diagram of the communication system used in the device control method provided in the embodiments of this application;
[0045] Figure 4 A schematic diagram of the hardware structure of the first electronic device provided in an embodiment of this application;
[0046] Figure 5 This application provides a schematic diagram of a device control scenario. Figure 1 ;
[0047] Figure 6 Interface illustration provided for embodiments of this application Figure 3 ;
[0048] Figure 7 This application provides a schematic diagram of a device control scenario. Figure 2 ;
[0049] Figure 8 This application provides a schematic diagram of a device control scenario. Figure 3 ;
[0050] Figure 9 This is a schematic flowchart of the device control method provided in the embodiments of this application;
[0051] Figure 10 A schematic diagram of the structure of the first electronic device provided in an embodiment of this application. Detailed Implementation
[0052] The technical solutions of the embodiments of this application are described below with reference to the accompanying drawings. In the description of the embodiments of this application, the terminology used in the following embodiments is for the purpose of describing specific embodiments only and is not intended to be a limitation of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include expressions such as “one or more,” unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, “at least one” and “one or more” refer to one or more (including two).
[0053] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized. The term "connection" includes direct connections and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated.
[0054] In the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.
[0055] In some embodiments, various electronic devices have entered people's lives. The concept of a smart home system is proposed for the home use of electronic devices. Using the residence as a platform, and leveraging technologies such as the Internet of Things (IoT) and automatic control, a smart home system organically integrates various electronic devices and application subsystems related to home life. Among these, the electronic devices in a smart home system are, for example, smart home devices. Smart home devices are intelligent devices, such as audio-visual devices (e.g., smart screens, Bluetooth smart speakers), lighting devices (e.g., ceiling lights, table lamps, spotlights), environmental control devices (e.g., air conditioners, air purifiers), and burglar alarm devices (e.g., human body sensors, cameras), etc.
[0056] Optionally, users can control various smart devices through a control device. In some examples, after establishing a communication connection with a smart device, the control device sends control commands to the smart device to achieve control. In some examples, the control device has an application installed for controlling smart devices, which enables pairing between the control device and the smart device, allowing the control device to manage and control the smart device.
[0057] Optionally, smart devices from different brands are typically equipped with their own applications to fully utilize the functions of the corresponding smart devices. For example, if a user's bedroom has an air conditioner of brand A, the application used to control that air conditioner is application A; if the living room has an air conditioner of brand B, the application used to control that air conditioner is application B.
[0058] For example, such as Figure 1 As shown, a mobile phone, acting as a control device, can install applications to control different smart devices based on user operations. For example, a mobile phone may have application A installed to control device A, application B to control device B, application C to control device C, and application D to control device D, etc.
[0059] Therefore, if a user has numerous smart devices that can be controlled, a large number of applications need to be installed on these devices. When a user needs to use a particular smart device, they must search through a multitude of applications to find the desired one, a cumbersome process. Furthermore, since the functions of different smart devices vary, the metadata services provided by the applications also differ, meaning that after downloading an application, the user still needs to learn how to use it, increasing the learning curve.
[0060] In other embodiments, the control device also provides general applications that can control multiple smart devices, such as smart living applications and smart remote control applications. However, while these applications can add different smart devices, some manufacturers' smart devices still do not support this feature, or after adding a device, only some simple functions of that smart device are available, while more personalized functions are not supported. Furthermore, the process of adding smart devices to these general applications is cumbersome and requires a certain level of user skill, making them unfriendly to young or elderly users.
[0061] For example, such as Figure 2 As shown in (a), the control device launches the Smart Life application based on user input and displays the Smart Life application homepage. It can be seen that multiple smart devices have been added to the Smart Life application, and cards corresponding to each smart device are displayed on the homepage. Users can control the corresponding smart devices through these cards. Specifically, if a user needs to add a new smart device to the Smart Life application, they must first operate the add control 21, then select the desired smart device from the nearby smart devices scanned by the control device, and perform operations on the selected smart device to complete the addition.
[0062] For example, such as Figure 2 As shown in (b), the control device launches the smart remote control application based on user input and displays the application's homepage. It can be seen that multiple smart devices have been added to the application, and cards for each device are displayed on the homepage. Users can control these devices remotely using these cards. To add a new smart device, the user must first operate the add control 22, then select the remote control type (e.g., smart screen remote, air conditioner remote), and the brand of the desired device. Afterward, the user must test and adjust some functions of the added device to complete the addition process.
[0063] It is evident that adding smart devices to the control system is cumbersome, resulting in a high learning curve for new users. Furthermore, the device card supports limited meta-services, hindering the full utilization of smart device functionality. For example, ... Figure 2 As shown in (b), the smart remote control application displays a device card corresponding to air conditioner A. This device card supports temperature, mode, and airflow adjustment for air conditioner A. However, this device card does not support the control of air conditioner A's personalized functions. For example, this device card does not support the use of air conditioner A's timer function. If users need to use more personalized functions of the smart device, they can only choose to download [other options]. Figure 1 The smart devices shown are dedicated applications.
[0064] Therefore, this application provides a device control method in which a first electronic device (such as a control device) can obtain the metadata associated with the second electronic device based on the device information of the second electronic device (such as a smart device) and control the second electronic device, thereby simplifying user operation and improving user experience.
[0065] Figure 3 A schematic diagram of the communication system used in the device control method provided in the embodiments of this application. For example... Figure 3 As shown, the communication system includes a first electronic device 100 and at least one second electronic device 200.
[0066] Optionally, the first electronic device 100 may be a mobile phone, tablet computer, wearable device (such as a smartwatch, smart glasses, etc.), computer, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), artificial intelligence (AI) device, or other terminal device. The operating system installed on the first electronic device 100 may include, but is not limited to, […]. Alternatively, other operating systems may be used. This application does not limit the specific type of the first electronic device 100 or the operating system installed on it.
[0067] Optionally, the second electronic device 200 may be a smart screen, smart speaker, mobile phone, tablet computer, wearable device (such as smartwatch, smart glasses, etc.), computer, laptop computer, in-vehicle screen, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), artificial intelligence (AI) device, or other terminal device. The operating system installed on the second electronic device 200 may include, but is not limited to, […]. Alternatively, it may use other operating systems, or the second electronic device 200 may not have an operating system installed. This application does not limit the specific type of the second electronic device 200, whether it has an operating system installed, or the operating system installed if it does.
[0068] In some embodiments, the first electronic device 100 is a control device used to control the second electronic device 200. The second electronic device 200 is a controlled smart device used to receive control commands sent by the first electronic device 100.
[0069] In some examples, the first electronic device 100 can be a dedicated device for controlling smart devices, or a device that includes functions for controlling smart devices. For example, the first electronic device 100 can be a smart device control panel, or a terminal device such as a mobile phone, tablet, smart speaker, or smartwatch. The smart device control panel is a dedicated device for controlling smart devices in a smart system. In some embodiments, the first electronic device 100 can be a fixed device or a portable device. This application does not impose any special limitations on the specific form of the first electronic device 100.
[0070] In some embodiments, the second electronic device 200 can be various types of smart devices such as smart home devices, smart office devices, and smart learning devices. Optionally, the above-mentioned communication system may include one or more types of second electronic devices 200, that is, the first electronic device 100 can control various types of second electronic devices 200. The following description uses a smart home system as an example, with the second electronic device 200 being a smart home device, to illustrate the device control method provided in this application embodiment.
[0071] Optionally, the first electronic device 100 and the second electronic device 200 in the embodiments of this application can be implemented by different devices. Different devices can have the same, similar, or somewhat different hardware structures, for example... Figure 4 The hardware structure shown.
[0072] For example, the first electronic device 100 has such Figure 4 Taking the hardware structure shown as an example, for Figure 4 The hardware structure shown will be explained.
[0073] For example, Figure 4 A schematic diagram of the hardware structure of the first electronic device 100 provided in the embodiments of this application.
[0074] For example, such as Figure 4 As shown, the first electronic device 100 may include a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (USB) interface 430, a charging management module 440, a power management module 441, a battery 442, an antenna 1, an antenna 2, a mobile communication module 450, a wireless communication module 460, an audio module 470, a sensor module 480, a button 490, a motor 491, an indicator 492, a camera 493, a display screen 494, and a subscriber identification module (SIM) card interface 495, etc.
[0075] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the first electronic device 100. In other embodiments of this application, the first electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0076] In some examples, the second electronic device 200 has a similar hardware structure to the first electronic device 100. However, the second electronic device 200 may also include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. For example, the second electronic device 200 is a smart screen, and it does not include the mobile communication module 450 or the SIM card interface 495.
[0077] Processor 410 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.
[0078] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.
[0079] The processor 410 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 410 is a cache memory. This memory can store instructions or data that the processor 410 has just used or that are used repeatedly. If the processor 410 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 410, and thus improves the efficiency of the system.
[0080] In some embodiments, the processor 410 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0081] The MIPI interface can be used to connect the processor 410 to peripheral devices such as the display screen 494 and the camera 493. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 410 and the camera 493 communicate via the CSI interface to realize the shooting function of the first electronic device 100. The processor 410 and the display screen 494 communicate via the DSI interface to realize the display function of the first electronic device 100.
[0082] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the first electronic device 100. In other embodiments of this application, the first electronic device 100 may also adopt different interface connection methods or a combination of multiple interface connection methods as described in the above embodiments.
[0083] The first electronic device 100 implements display functions through a GPU, a display screen 494, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 494 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. The processor 410 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0084] Display screen 494 is used to display images, videos, etc. Display screen 494 includes a display panel. The display panel can be manufactured using a liquid crystal display (LCD), such as an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini-LED, a micro-LED, a micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the first electronic device 100 may include one or N displays 494, where N is a positive integer greater than 1.
[0085] The haptic sensor module 480 includes a touch sensor. Optionally, the touch sensor, also referred to as a "touch device," can be disposed on the display screen 494, forming a touchscreen, also referred to as a "touchscreen." The touch sensor is used to detect touch operations performed on or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 494. In other embodiments, the touch sensor may also be disposed on the surface of the first electronic device 100, in a different location than the display screen 494.
[0086] The following section uses the first electronic device 100 as the control device and the second electronic device 200 as the intelligent device to be controlled as an example to provide a detailed description of the device control method provided in the embodiments of this application.
[0087] In some embodiments, different smart devices have different functions, which refer to the tasks or actions that the smart device can perform. For example, a smart light bulb can switch on and off, adjust brightness, and change color; a smart speaker can adjust volume and play music; a smart refrigerator can control temperature and preserve food. The implementation of these functions typically requires one or more corresponding services for support and control; these services are called meta-services. For example, meta-services provide control interfaces that support these functions.
[0088] For example, a user can control a smart light bulb through a smart device. During the control process, the smart bulb's meta-services provide functions such as switching on / off, brightness adjustment, and color selection. The smart device can control the smart bulb's behavior by calling these meta-services. These meta-services are specifically designed for smart bulbs, ensuring that the smart bulb can flexibly and accurately execute various control commands.
[0089] In some embodiments, smart devices from different brands differ in hardware, software, protocols, and operating systems. Therefore, the metadata services provided by these smart devices may vary in functionality and implementation.
[0090] For example, one brand of smart camera might have high-quality infrared night vision capabilities, while another brand might not. To address these differences, the metadata services offered by the two brands will also differ; the former needs to provide a control interface for night vision mode, while the latter does not.
[0091] For example, one device brand might design an enhanced security meta-service that allows users to control the smart device via facial recognition or fingerprint recognition. Another brand might only offer simple password verification. Thus, the design of security controls and meta-services for smart devices will differ.
[0092] In some embodiments, the smart device has already completed the configuration of meta-services during the production deployment process. During subsequent use, the smart device dynamically loads meta-services according to device requirements, ensuring that the smart device can independently and flexibly perform control operations and interact with other devices or applications through standardized interfaces. Therefore, for a control device to control a smart device, it needs to first determine the meta-services associated with that smart device, thereby sending appropriate control commands to the smart device, invoking the smart device's functions through the meta-services, and triggering the smart device to complete the interactive events required by the user.
[0093] For example, in a smart bulb scenario, the control device needs to determine the meta-service associated with the smart bulb, and then send a control command to the smart bulb to "adjust the brightness to 50%". The meta-service parses the control command, thereby triggering the smart bulb to execute the control command and complete the brightness adjustment.
[0094] In some embodiments, a mapping relationship exists between different smart devices and their associated meta-services. Optionally, the meta-services associated with different smart devices may be different, partially the same, or all the same. Optionally, after obtaining the device information of a smart device, the control device can determine the meta-service associated with that smart device based on the device information, thereby enabling the invocation of the smart device's functions through the meta-service. Optionally, the device information of the smart device may include, for example, device type, device name, device ID, manufacturer (or brand) information, etc.
[0095] In some examples, the control device locally stores a mapping relationship between the smart device's device information and metadata services. Therefore, after obtaining the smart device's device information, the control device can retrieve the smart device's metadata services based on this mapping relationship.
[0096] In other examples, after obtaining the device information of a smart device, the control device can send this information to a server. The server stores a mapping relationship between the smart device information and metadata services. For example, this server could be a smart device server or a smart home server. Upon receiving the device information from the control device, the server can retrieve the corresponding metadata service based on the maintained mapping relationship. The server can then send the relevant information of that metadata service to the control device, allowing the control device to determine the metadata service associated with the smart device.
[0097] In this way, the control device can determine the associated meta-services of the smart device based on the device information obtained from the smart device, and thus control the smart device.
[0098] The following describes various implementation scenarios for control devices to obtain device information from smart devices, as well as the implementation methods for control devices to use meta-services based on device information in different implementation scenarios.
[0099] In some embodiments, the smart device is configured with a near field communication (NFC) module, which supports the NFC communication function of the smart device and can read NFC information from the NFC tag of the smart device. The NFC information may include, for example, device information of the smart device.
[0100] Optionally, when a user needs to control a smart device via a control device, they can bring the control device close to or touch the NFC sensing area corresponding to the NFC module of the smart device, thereby triggering the control device to read the NFC information in the smart device's NFC tag. The control device can then obtain the device information of the smart device from the NFC tag, and thus determine the metadata services associated with the smart device. Optionally, the close-up or touch operation can also be described as a user's "tap-to-pay" operation.
[0101] For example, such as Figure 5 As shown in (a)-(b), the user needs to control the smart screen via their mobile phone, where the mobile phone is the control device and the smart screen is the smart device to be controlled. The user can hold their mobile phone close to or touch the NFC sensing area of the smart screen. In response to this action, the mobile phone can obtain the smart screen's device information, such as the manufacturer information. Then, based on this device information, the mobile phone can determine the metadata services associated with the smart screen.
[0102] In some embodiments, when a user actively approaches or touches the NFC sensing area of a smart device via a control device, it indicates that the user has a need to control the smart device through the control device. Then, after determining the meta-service associated with the smart device, the control device can display a prompt message according to a preset method, such as a meta-service identifier. Optionally, this meta-service identifier is used to trigger the smart device to display a smart device control interface, which is used to access the smart device's functions through the meta-service. Optionally, the preset method may be, for example, a capsule display, a card display, a pop-up notification display, or a drop-down menu display.
[0103] For example, such as Figure 5 As shown in (c), in response to a proximity or touch operation, the mobile phone obtains the device information of the smart screen and determines the meta-services associated with that device information. Then, the mobile phone can display a prompt message 51 via a capsule display. Optionally, this prompt message 51 is used to quickly open the meta-services associated with the smart screen, and the user can determine whether to trigger the prompt message 51 as needed. For example, if the mobile phone detects that the user clicks on the prompt message 51, it can determine that it is used to instruct the user to use the functions of the smart screen through the meta-services associated with the smart screen. Then, as... Figure 6 As shown, the mobile phone can display a smart device control interface. The metadata service associated with the smart screen corresponding to this interface is the remote control service. Based on the user's operations on the smart device control interface, the mobile phone can send corresponding control commands to the smart screen, such as changing channels or increasing volume. Correspondingly, after receiving the control command, the smart screen can parse the command through the remote control service, thereby triggering the smart screen to execute the interactive event indicated by the control command through the corresponding function.
[0104] In this way, there's no need to pre-install applications for controlling smart devices on the control equipment. Users can trigger the control equipment to access the metadata services associated with the smart device simply by approaching or touching it, thereby enabling control of the smart device. This effectively simplifies user operation, reduces application installation, and lowers the storage pressure on the control equipment.
[0105] In other embodiments, during the process of establishing a communication connection with other electronic devices, the smart device may report device information to these electronic devices. If the control device can communicate with these electronic devices, it can also obtain the smart device's device information. Optionally, the other electronic device could be, for example, a router, or it could be the control device itself. Optionally, after obtaining the smart device's device information in this way, the smart device can determine the corresponding metadata service.
[0106] In some examples, the other electronic devices capable of obtaining the device information of the smart device are, for example, preset type electronic devices. Optionally, during communication with the preset type of electronic device, the smart device actively reports device information for matching meta-services. This way, subsequently, when the control device communicates with these preset type electronic devices, it can obtain device information that meets the requirements of the meta-services associated with the matching smart device.
[0107] For example, in one scenario, when a smart device connects to a WiFi network provided by a router, it can report its device information to the router. Subsequently, when a control device connects to the WiFi network provided by the router, it can obtain the device information of at least one smart device stored in the router, and then determine the metadata associated with that smart device based on that information.
[0108] Optionally, when the control device first connects to the WiFi network provided by the router, it obtains device information of at least one smart device stored in the router. Subsequently, after the router updates the stored device information based on the device information of the newly connected smart device, it can proactively send the device information to the control device. Alternatively, the control device can request the device information of the smart devices stored by the router from the router at a preset period. Optionally, after deleting the WiFi network provided by the router, the control device can delete the device information of the smart devices provided by the router and delete the corresponding metadata related information. In this way, the control device can update the stored information of the smart devices.
[0109] For example, such as Figure 7 As shown in (a), the current smart living applications on the phone only include the smart screen. Further details will follow. Figure 7 As shown in (b), when a mobile phone connects to a WiFi network provided by a router, it can obtain device information of other smart devices also connected to the router's WiFi network. For example, this device information might include an air conditioner. The mobile phone can then determine the metadata associated with the air conditioner based on the obtained device information. Afterwards, as... Figure 7 As shown in (c), the mobile phone can generate a meta-service identifier (such as a device card) associated with the air conditioner, thus enabling the air conditioner to be added to the smart living application.
[0110] Subsequently, after the phone launches the Smart Life application based on the user's actions, it can display something like this: Figure 7 The interface shown in (c) allows users to directly access the air conditioner's functionality through the corresponding device card and its associated services, eliminating the need for the cumbersome process of adding the air conditioner within the smart living application.
[0111] In this way, the control device can automatically add smart devices based on the connection information under the connected router, effectively simplifying user operation while meeting user needs.
[0112] For example, in another scenario, during the process of establishing communication connections such as Bluetooth or WiFi between the control device and the smart device, the device information of the smart device can be obtained, and then the meta-services associated with the smart device can be determined based on the device information.
[0113] For example, such as Figure 8 As shown in (a), the current smart living applications on the phone only include the smart screen. Further details will follow. Figure 8 As shown in (b), the mobile phone establishes a Bluetooth connection with the smart speaker. During the Bluetooth connection establishment process, the mobile phone can obtain the device information of the smart speaker. Then, based on the obtained device information of the smart speaker, the mobile phone can determine the metadata services associated with the smart speaker. Afterwards, as... Figure 8 As shown in (c), the mobile phone can generate a meta-service identifier (such as a device card) associated with the meta-service of the smart speaker, thereby enabling the smart speaker to be added to the smart life application.
[0114] Subsequently, after the phone launches the Smart Life application based on the user's actions, it can display something like this: Figure 8 The interface shown in (c) allows users to directly access the smart speaker's functions through the corresponding meta-services via the device card, eliminating the need for the cumbersome process of adding the air conditioner within the smart living application.
[0115] In this way, the control device can obtain the device information of the smart device during the communication process with the smart device, and automatically add smart devices, which can effectively simplify user operation while meeting user needs.
[0116] It should be understood that the above embodiments use the establishment of a Bluetooth connection between a control device and a smart device as an example to illustrate the process by which the control device obtains device information of the smart device through a communication connection with the smart device. In some examples, other types of communication connections can also be established between the control device and the smart device, such as Zigbee, frequency modulation (FM), infrared (IR), and starlight, so as to obtain device information of the smart device through these connections and determine the meta-services associated with the smart device. This application embodiment will not exemplify all of these.
[0117] For example, in another scenario, an application installed on the control device obtains the device information of the smart device. The control device can then determine the associated metadata services of the smart device based on this device information. For instance, the control device might receive device information about a smart device from another electronic device via a communication application, indicating that the other electronic device has already added the smart device.
[0118] In some examples, after obtaining the device information of a smart device, the control device determines whether the meta-services associated with that smart device have already been added to the control device. Therefore, the control device can delete the device information without having to add it again.
[0119] In some examples, the process of the control device obtaining the device information of the smart device in the above manner is not triggered by the user. Therefore, even after the control device obtains the device information, the user may not need to control the smart device immediately. If the control device directly displays the meta-service identifier as in the example above, it might inconvenience the user. Therefore, in scenarios where device information is obtained without user instruction, the control device can generate a meta-service identifier after determining the meta-service corresponding to the device information, and then add the meta-service identifier to the corresponding device management application, thereby automatically adding the smart device to the application. Optionally, the device management application could be, for example, a smart living application or a smart remote control application. The meta-service identifier could be, for example, a device card. This way, the user can directly control the corresponding smart device through the meta-service identifier in the device management application without having to perform a device addition operation. Furthermore, the meta-service determined directly by the control device based on the smart device's device information can enrich the control commands of the device management application for the smart device, making fuller use of the smart device's functionality.
[0120] For example, in Figure 7 In the example scenario, the phone does not need to actually display anything. Figure 7 The interfaces shown in (a) and (c) are currently only used to illustrate the automatic addition process of the air conditioner. For example, in... Figure 8 In the example scenario, the phone does not need to actually display anything. Figure 8 The interfaces shown in (a) and (c) are only for illustrating the automatic addition process of the smart speaker.
[0121] In some embodiments, in conjunction with the example scenarios of the above embodiments, in response to a user's approach or contact, after the control device displays a prompt message to quickly open the meta-services associated with the smart device, and detects the user's action on the prompt message, it can automatically add the smart device based on the smart device's device information, such as displaying the smart device's device card in a device management application. Thus, subsequently, when the user needs to control the smart device again through the control device, it can be triggered again by approaching or contacting the smart device's NFC sensing area, or directly by triggering the action through the meta-service identifier displayed in the device management application.
[0122] For example, such as Figure 5 As shown in (c), after the mobile phone detects the user's click on the prompt message 51, it displays the following: Figure 6 The smart device control interface shown is illustrated. Furthermore, the mobile phone can add the smart screen in the device management application based on the metadata services associated with the smart screen. For example, subsequently, when the mobile phone launches the device management application according to user instructions, it can display something like... Figure 7 The interface shown in (a) displays the metadata service identifiers corresponding to the metadata services associated with the smart screen, such as the device cards used to control the smart screen.
[0123] In this way, the control device can combine multiple methods to add meta-services associated with smart devices, effectively simplifying user operations while meeting the user's needs for controlling smart devices.
[0124] Figure 9 This is a schematic flowchart illustrating a device control method provided in an embodiment of this application. It should be noted that this method is not based on... Figure 9 The specific order described below is a limitation. It should be understood that in other embodiments, the order of some steps in the method can be interchanged according to actual needs, or some steps can be omitted or deleted. The method includes the following steps:
[0125] S901. When the first electronic device is in a preset scenario, the first electronic device obtains the device information of the second electronic device; wherein, the preset scenario includes one or more of the following: the first electronic device approaches or touches the NFC sensing area on the second electronic device; the first electronic device accesses the routing device that the second electronic device has already accessed; the first electronic device and the second electronic device establish a communication connection other than NFC connection.
[0126] The equipment information includes one or more of the following: equipment type, equipment name, equipment identifier, manufacturer information, brand information, and payment information.
[0127] For example, the metadata services associated with second electronic devices from different manufacturers or brands may differ. Therefore, the first electronic device can only determine the metadata services required to operate the functions of the second electronic device after determining the manufacturer or brand information.
[0128] For example, the second electronic device supports payment functions and can be configured with corresponding payment metadata services. Therefore, if the device information obtained by the first electronic device includes payment information, it can be determined that the metadata services associated with the second electronic device include payment metadata services.
[0129] In some embodiments, after the first electronic device approaches or touches the NFC sensing area on the second electronic device, an NFC connection is established with the second electronic device. Device information of the second electronic device is then read via the NFC connection. For example, device information from the NFC tag of the second electronic device can be read.
[0130] For example, such as Figure 5 As shown in (a)-(b), the user needs to control the smart screen via a mobile phone, where the mobile phone is the first electronic device and the smart screen is the second electronic device to be controlled. The user can hold the mobile phone close to or touch the NFC sensing area of the smart screen. In response to this operation, the mobile phone can obtain the smart screen's device information, such as the manufacturer information. Then, through the following steps, the mobile phone can determine the metadata services associated with the smart screen based on this device information.
[0131] In this way, the application controlling the second electronic device does not need to be pre-installed in the first electronic device. The user can trigger the first electronic device to obtain the metadata services associated with the second electronic device through a simple approach or contact operation, thereby realizing control of the second electronic device. This effectively simplifies user operation, reduces application installation, and lowers the storage pressure on the first electronic device.
[0132] In another embodiment, a first electronic device establishes a first communication connection with a routing device. The first electronic device sends a first request to the routing device through the first communication connection. The first request is used to request device information of at least one electronic device connected to the routing device. The first electronic device receives the device information of at least one electronic device sent by the routing device, the device information of the at least one electronic device including device information of a second electronic device.
[0133] In some examples, sending a first request to a routing device via a first communication connection includes: a first electronic device sending a first request to a routing device via a first communication connection at a preset period.
[0134] For example, such as Figure 7As shown in (a), the smart living application (such as a device management application) in the current mobile phone (such as the first electronic device) has only added the smart screen. Subsequently, as... Figure 7 As shown in (b), when a mobile phone connects to a WiFi network provided by a router (such as a routing device), it can obtain device information of other smart devices (such as second electronic devices) that are also connected to the WiFi network of that router. For example, this device information includes an air conditioner. Then, the mobile phone can determine the metadata associated with the air conditioner based on the obtained device information.
[0135] Optionally, after connecting to the router's WiFi network, the mobile phone can also request and download device information of other electronic devices connected to the WiFi network from the router at preset intervals. This way, if the electronic devices connected to the router change, the mobile phone can update the corresponding device information promptly.
[0136] In this way, the first electronic device can automatically add a second electronic device based on the connection information under the connected routing device, which effectively simplifies user operation while meeting user needs.
[0137] In some other embodiments, obtaining device information of the second electronic device includes: the first electronic device obtaining device information of the second electronic device during the process of establishing a second communication connection with the second electronic device, wherein the second communication connection is a communication connection established with the second electronic device other than an NFC connection.
[0138] Optionally, in addition to responding to the user's "tap-to-connect" operation, after the first and second electronic devices establish an NFC connection, other types of communication connections can also be established between them. Based on these communication connections, the first electronic device can also obtain device information from the second electronic device.
[0139] For example, such as Figure 8 As shown in (a), the smart living application (such as a device management application) in the current mobile phone (such as the first electronic device) has only added the smart screen. Subsequently, as... Figure 8 As shown in (b), the mobile phone establishes a Bluetooth connection with a smart speaker (such as a second electronic device). During the Bluetooth connection establishment process, the mobile phone can obtain the device information of the smart speaker. Then, based on the obtained device information of the smart speaker, the mobile phone can determine the metadata services associated with the smart speaker.
[0140] In this way, the first electronic device can obtain the device information of the second electronic device during the communication process with the second electronic device, and automatically add the second electronic device, which can effectively simplify user operation while meeting user needs.
[0141] S902. The first electronic device obtains the meta-service associated with the second electronic device based on the device information. The meta-service is used to control the second electronic device.
[0142] In some embodiments, the first electronic device obtains the corresponding metadata service based on the mapping relationship between preset device information and preset metadata services. Alternatively, the first electronic device sends the device information of the second electronic device to the server. The first electronic device receives the metadata services associated with the second electronic device sent by the server.
[0143] For example, there is a mapping relationship between different second electronic devices and their associated meta-services. Optionally, the meta-services associated with different second electronic devices may be different or partially the same. Optionally, after the first electronic device obtains the device information of the second electronic device, it can determine the meta-services associated with the second electronic device based on the device information, thereby enabling the function of calling the second electronic device through the meta-services.
[0144] For example, the first electronic device locally stores a mapping relationship between different device information and metadata services. This device information is preset device information, and the metadata services are preset metadata services. Then, after obtaining the device information of the second electronic device, the first electronic device can obtain the metadata services of the second electronic device according to this mapping relationship.
[0145] For example, after obtaining device information from a second electronic device, the first electronic device can send that information to a server. The server stores mappings between different device information and metadata services. For instance, this server could be a second electronic device server, a smart home server, etc. Upon receiving the device information from the first electronic device, the server can retrieve the corresponding metadata service based on the maintained mappings. The server can then send the relevant information for that metadata service to the first electronic device, allowing the first electronic device to determine the metadata service associated with the second electronic device.
[0146] In this way, the first electronic device can determine the metadata associated with the second electronic device based on the device information obtained from the second electronic device, and thus control the second electronic device.
[0147] S903, The first electronic device generates the first identifier for the startup element service.
[0148] In some embodiments, the first identifier is, for example, a meta-service identifier, which may be a prompt message or a device card. In some examples, while displaying any interface, the first electronic device, based on the user's active operation, obtains the device information of the second electronic device, determines the meta-service corresponding to the device information, and displays the corresponding prompt message. This allows the user to trigger the first electronic device to use the functions of the second electronic device through the corresponding meta-service. In other examples, without user operation, after obtaining the device information of the second electronic device, the first electronic device can create a corresponding device card based on the meta-service corresponding to the device information, thus adding the second electronic device. Subsequently, when the user needs it, they can directly trigger the first electronic device to use the functions of the second electronic device through the corresponding meta-service based on the device card.
[0149] For example, a preset scenario might involve a first electronic device approaching or touching the NFC sensing area of a second electronic device. After generating a first identifier to initiate a meta-service, the first electronic device displays this identifier. Subsequently, the first electronic device detects a user's first action on the first identifier and displays a first interface. This first interface is used by the first electronic device to control the second electronic device via the meta-service. For instance, this first interface could be a device control interface displaying multiple controls, each of which can be used to trigger an interactive event on the second electronic device via a corresponding meta-service.
[0150] Optionally, displaying the first identifier can be done in one of the following ways: displaying the first identifier according to a preset method, which may include one or more of the following: capsule display, card display, pop-up notification display, or drop-down menu display. This provides a variety of display styles to meet the user's flexible usage needs.
[0151] For example, such as Figure 5 As shown in (c), in response to a proximity or contact operation, the mobile phone (such as the first electronic device) obtains device information of the smart screen (such as the second electronic device) and determines the meta-services associated with that device information. Then, the mobile phone can display a prompt message 51 via a capsule display. Optionally, this prompt message 51 is used to quickly open the meta-services associated with the smart screen, and the user can determine whether to trigger the prompt message 51 as needed. For example, if the mobile phone detects that the user clicks on the prompt message 51, it can determine that it is used to instruct the user to use the functions of the smart screen through the meta-services associated with the smart screen. Then, as... Figure 6As shown, the mobile phone can display a smart device control interface. The metadata service associated with the smart screen corresponding to this interface is the remote control service. Based on the user's operations on the smart device control interface, the mobile phone can send corresponding control commands to the smart screen, such as changing channels or increasing volume. Correspondingly, after receiving the control command, the smart screen can parse the command through the remote control service, thereby triggering the smart screen to execute the interactive event indicated by the control command through the corresponding function.
[0152] The capsule display mode can show prompts in any location on the current screen, such as in a blank area of the current screen or in the status bar.
[0153] In this way, after the first electronic device identifies the meta-service associated with the second electronic device, it can display a first identifier for quickly opening the meta-service. Through this first identifier, the user can quickly trigger the first electronic device to use the function of the second electronic device through the meta-service, thereby effectively simplifying the user's operation and improving the user experience.
[0154] For example, the first electronic device detects the user's second operation of launching a device management application, displays a second interface, and the second interface displays the first identifier.
[0155] Optionally, the second interface displays a first identifier displayed in a card-like manner.
[0156] For example, such as Figure 7 As shown in (c), in response to the user's "tap-to-pay" operation, the mobile phone (such as the first electronic device) determines the meta-service associated with the air conditioner (such as the second electronic device) based on the obtained device information. It then generates a meta-service identifier (such as a device card) for the meta-service associated with the air conditioner, thus adding the air conditioner to the smart living application. Subsequently, after the mobile phone launches the smart living application (such as a device management application) based on the user's operation, it can display... Figure 7 The interface shown in (c) allows users to directly access the air conditioner's functionality through the corresponding device card and its associated services, eliminating the need for the cumbersome process of adding the air conditioner within the smart living application.
[0157] For example, such as Figure 8 As shown in (c), after establishing a Bluetooth connection with a smart speaker (such as a second electronic device), the mobile phone (such as the first electronic device) determines the meta-service associated with the smart speaker based on the obtained device information, and then generates a meta-service identifier (such as a device card) for the meta-service associated with the smart speaker, thereby adding the smart speaker to a smart living application (such as a device management application). Subsequently, after the mobile phone launches the smart living application based on user operation, it can display as shown in (c). Figure 8The interface shown in (c) allows users to directly access the smart speaker's functions through the corresponding meta-services via the device card, eliminating the need for the cumbersome process of adding the air conditioner within the smart living application.
[0158] In this way, the first electronic device can obtain the device information of the second electronic device during the communication process with the second electronic device, and automatically add the second electronic device, which can effectively simplify user operation while meeting user needs.
[0159] Optionally, the first electronic device may also execute the steps and functions of the control device in the above embodiments, and the second electronic device may also execute the steps and functions of the smart device in the above embodiments, thereby realizing the device control method provided in the above embodiments.
[0160] In some solutions, multiple embodiments of this application can be combined, and the combined solution can be implemented. Optionally, some operations in the processes of each method embodiment may be combined, and / or the order of some operations may be changed. Furthermore, the execution order between the steps of each process is merely exemplary and does not constitute a limitation on the execution order between steps; other execution orders are also possible. It is not intended to indicate that the execution order is the only possible order in which these operations can be performed. Those skilled in the art will conceive of various ways to reorder the operations described herein. In addition, it should be noted that the process details involved in one embodiment of this document are similarly applicable to other embodiments, or different embodiments may be combined.
[0161] Furthermore, some steps in the method embodiments can be equivalently replaced with other possible steps. Alternatively, some steps in the method embodiments may be optional and can be deleted in certain use cases. Or, other possible steps may be added to the method embodiments.
[0162] Furthermore, the various method embodiments can be implemented individually or in combination.
[0163] The above combination Figures 5-9 The device control method provided in the embodiments of this application is described in detail below. Figure 10 The first electronic device provided in the embodiments of this application is described in detail.
[0164] In one possible design, Figure 10 This is a schematic diagram of the structure of a first electronic device provided in an embodiment of this application. Figure 10 As shown, the first electronic device 1000 may include a processing unit 1001 and a transceiver unit 1002. The first electronic device 1000 can be used to implement the functions of the first electronic device involved in the above method embodiments.
[0165] Optionally, the processing unit 1001 is configured to support the first electronic device 1000 in performing [operations]. Figure 9 S902 and S903 in the example.
[0166] Optionally, the transceiver unit 1002 is used to support the first electronic device 1000 in performing [operations]. Figure 9 S901 in the middle.
[0167] The transceiver unit may include a receiving unit and a transmitting unit, and may be implemented by a transceiver or transceiver-related circuit components, and may be a transceiver or transceiver module. The operation and / or function of each unit in the first electronic device 1000 are respectively to implement the corresponding flow of the device control method described in the above method embodiments. All relevant content of each step involved in the above method embodiments can be referred to the functional description of the corresponding functional unit, and for the sake of brevity, it will not be repeated here.
[0168] Optionally, Figure 10 The first electronic device 1000 shown may also include a storage unit ( Figure 10 (not shown in the image), this storage unit stores a program or instruction. When the processing unit 1001 and the transceiver unit 1002 execute the program or instruction, it causes... Figure 10 The first electronic device 1000 shown can execute the device control method described in the above method embodiments.
[0169] Figure 10 The technical effects of the first electronic device 1000 shown can be referred to the technical effects of the device control method described in the above method embodiments, and will not be repeated here.
[0170] In addition to being in the form of the first electronic device 1000, the technical solutions provided in this application may also be functional units or chips in the first electronic device, or devices used in conjunction with the first electronic device.
[0171] This application also provides a chip system, including: a processor coupled to a memory, the memory being used to store programs or instructions, wherein when the program or instructions are executed by the processor, the chip system implements the methods in any of the above method embodiments.
[0172] Optionally, the chip system may contain one or more processors. These processors can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor, implemented by reading software code stored in memory.
[0173] Optionally, the chip system may contain one or more memories. The memory may be integrated with the processor or disposed separately from it; this application embodiment does not limit this. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or disposed separately on different chips. This application embodiment does not specifically limit the type of memory or the arrangement of the memory and processor.
[0174] For example, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD), or other integrated chips.
[0175] It should be understood that each step in the above method embodiments can be completed by integrated logic circuits in the processor hardware or by instructions in software form. The method steps disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or being executed by a combination of hardware and software modules in the processor.
[0176] This application also provides a computer-readable storage medium storing a computer program. When the computer program is run on a computer, it causes the computer to perform the aforementioned steps to implement the device control method described in the above embodiments.
[0177] This application also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement the device control method described in the above embodiments.
[0178] In addition, this application also provides an apparatus. Specifically, the apparatus may be a component or module, and may include one or more processors and a memory connected together. The memory stores a computer program. When the computer program is executed by one or more processors, the apparatus performs the device control methods described in the above-described method embodiments.
[0179] The apparatus, computer-readable storage medium, computer program product, or chip provided in the embodiments of this application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here.
[0180] The steps of the methods or algorithms described in conjunction with the embodiments of this application can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, portable hard disks, CD-ROMs, or any other form of storage medium well known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can reside in an application-specific integrated circuit (ASIC).
[0181] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, the division of the above functional modules is only used as an example. In practical applications, the above functions can be assigned to different functional modules as needed; that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0182] In the several embodiments provided in this application, it should be understood that the disclosed methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of modules or units is only a logical functional division, and there may be other division methods in actual implementation; for example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of modules or units may be electrical, mechanical or other forms.
[0183] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0184] Computer-readable storage media include, but are not limited to, any of the following: USB flash drive, portable hard drive, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, and other media capable of storing program code.
[0185] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A device control method, characterized in that, The method is applied to a first electronic device, and the method includes: When the first electronic device is in a preset scenario, the device information of the second electronic device is obtained; wherein, the preset scenario includes one or more of the following: the first electronic device is close to or in contact with the NFC sensing area on the second electronic device; the first electronic device connects to a routing device that the second electronic device has already connected to; the first electronic device and the second electronic device establish a communication connection other than NFC connection; Based on the device information, obtain the meta-service associated with the second electronic device, the meta-service being used to control the second electronic device; Generate a first identifier to start the meta-service.
2. The method according to claim 1, characterized in that, The preset scenario includes the first electronic device approaching or touching the NFC sensing area on the second electronic device, and the method further includes: Display the first identifier; Upon detecting a user's first operation on the first identifier, a first interface is displayed. The first interface is used by the first electronic device to control the second electronic device through the meta-service.
3. The method according to claim 2, characterized in that, The display of the first identifier includes: The first identifier is displayed according to a preset method, which includes one or more of the following: capsule display method, card display method, pop-up notification display method, and drop-down menu bar display method.
4. The method according to any one of claims 1-3, characterized in that, The method further includes: Upon detecting a second user action to launch a device management application, a second interface is displayed, which displays the first identifier.
5. The method according to claim 4, characterized in that, The second interface displays the first identifier in a card display manner.
6. The method according to any one of claims 1-5, characterized in that, The acquisition of device information of the second electronic device includes: After the first electronic device approaches or touches the NFC sensing area on the second electronic device, it establishes an NFC connection with the second electronic device; The device information of the second electronic device is read via the NFC connection.
7. The method according to any one of claims 1-6, characterized in that, The acquisition of device information of the second electronic device includes: Establish a first communication connection with the routing device; A first request is sent to the routing device through the first communication connection. The first request is used to request device information of at least one electronic device connected to the routing device. The device information of the at least one electronic device sent by the routing device is received, wherein the device information of the at least one electronic device includes the device information of the second electronic device.
8. The method according to claim 7, characterized in that, Sending a first request to the routing device through the first communication connection includes: According to a preset period, the first request is sent to the routing device through the first communication connection.
9. The method according to any one of claims 1-8, characterized in that, The acquisition of device information of the second electronic device includes: During the process of establishing a second communication connection with the second electronic device, the device information of the second electronic device is obtained. The second communication connection is a communication connection established with the second electronic device other than the NFC connection.
10. The method according to any one of claims 1-9, characterized in that, The step of obtaining the meta-services associated with the second electronic device based on the device information includes: Based on the mapping relationship between preset device information and preset meta-services, obtain the meta-services corresponding to the device information of the second electronic device; or, Send the device information of the second electronic device to the server; Receive the metadata services associated with the second electronic device sent by the server.
11. The method according to any one of claims 1-10, characterized in that, The equipment information includes one or more of the following: equipment type, equipment name, equipment identifier, manufacturer information, brand information, and payment information.
12. An electronic device, characterized in that, include: A processor and a memory, the memory being coupled to the processor, the memory being used to store computer program code, the computer program code including computer instructions, which, when the processor reads the computer instructions from the memory, cause the electronic device to perform the method as described in any one of claims 1-11.
13. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a computer program that, when run on an electronic device, causes the electronic device to perform the method as described in any one of claims 1-11.
14. A computer program product, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1-11.
