Configuration method and electronic device
Through short-range communication technology, device registration and scene configuration of smart switches are automatically completed, solving the problem of complex operations before using smart switches and improving user experience.
Patent Information
- Application Number
- PCT/CN2024/073113
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-29
- Filing Date
- 2024-01-18
- Publication Date
- 2024-10-03
AI Technical Summary
Smart switches require users to register devices and configure scenes before use, which is a complicated process and affects the user experience.
Through short-range communication technology, the scene configuration of the device is automatically completed and user operations are simplified. Through the interaction between the first device and the second device, the user can complete the scene configuration of the second device through simple operations, reducing the difficulty of user operation.
It effectively simplifies user operations, reduces user learning costs, improves user experience, and reduces the complexity of device registration and scene configuration.
Smart Images

Figure CN2024073113_03102024_PF_FP_ABST
Abstract
Description
Configuration method and electronic device
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on March 29, 2023, with application number 202310335773.4 and application name “Configuration Method and Electronic Device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the field of terminal technology, and in particular to a configuration method and an electronic device. Background Art
[0003] With the development of terminal technology, smart switches are gradually being used in scenarios such as smart homes due to their multiple functions, safe use, and low power consumption.
[0004] However, smart switches require users to register the device and configure the scene before use. During this process, users need to operate on both the mobile app and the smart switch separately, and they need to have basic knowledge of smart home configuration. This makes the operation difficult for users and affects the user experience.
[0005] Summary of the Invention
[0006] In order to solve the above technical problems, the present application provides a configuration method and electronic device. The technical solution provided by the present application automatically completes the scene configuration of the device through short-range communication technology, simplifies user operations, and improves the user experience.
[0007] In order to achieve the above technical objectives, this application provides the following technical solutions:
[0008] In a first aspect, a configuration method is provided for use with a first device. The method includes: determining, based on acquired information about a second device, that the second device is in proximity to or in contact with the first device. In response to the second device's proximity to or contact with the first device, acquiring a first scene corresponding to a first operation performed by a user on a scene configuration interface of the first device, the first scene being associated with an action of controlling at least one third device. The first scene is then associated with the second device.
[0009] The first operation may be an operation performed by the user on the scene configuration interface, or may be a series of operations performed by the user on the scene configuration interface.
[0010] In this way, through short-range communication technology, the user can complete the scene configuration of the second device through simple operations. Compared with the existing technology in which the user needs to poke the reset hole on the second device with a needle to complete the scene configuration of the second device, the configuration method provided in this application can automatically complete the scene configuration of the second device through the interaction between the first device and the second device, effectively simplifying user operations, reducing user operation difficulty, reducing user learning costs, and improving user experience.
[0011] According to the first aspect, after associating the first scene with the second device, the method further includes: in response to the second device approaching or contacting again, displaying relevant information of the first scene associated with the second device.
[0012] In this way, in response to a simple operation, the user can read the relevant information of the configured scene of the second device through the first device, thereby determining whether the scene of the second device needs to be reconfigured, effectively simplifying the user's operation difficulty.
[0013] According to the first aspect, or any implementation method of the first aspect above, the relevant information of the first scene includes one or more of the device name of the second device, the scene name of the first scene, the trigger condition of the first scene, the name of the first space, the scene identifier of the first scene, the icon of the second device, and the remaining power of the second device.
[0014] In this way, the first device can display a variety of information about the scene configured on the second device, thereby facilitating the user to understand the scene configured on the second device.
[0015] According to the first aspect, or any implementation of the first aspect above, when the second device includes multiple buttons, the first scene is the configuration scene of the target button among the multiple buttons. In response to the second device approaching or contacting again, the method also includes: displaying details of the scenes configured for other buttons other than the target button among the multiple buttons.
[0016] In this way, the user can understand the scene configuration of multiple buttons of the second device through simple operations, reducing the user's operation difficulty and improving the user's experience.
[0017] According to the first aspect, or any implementation of the first aspect above, the method further includes: editing the first scene in response to a user operation, and associating the edited first scene with the second device.
[0018] In this way, the user can edit the configured scene on the second device while reading it, making the edited scene better meet the user's usage needs. In addition, the user no longer needs to trigger the rewriting of the second device scene through other operations, but can directly trigger the editing of the configured scene, simplifying the user operation.
[0019] According to the first aspect, or any implementation method of the first aspect above, associating the first scene with the second device includes: sending the device identification of the second device to the server or locally saving the device control information corresponding to the device identification of the second device; or sending the device identification of the second device to the server or locally saving the scene identification of the first scene associated with the second device.
[0020] For example, the first device sends the device identification of the second device and the device control information corresponding to the device identification of the second device to the server. In this way, the server can associate the received device identification with the device control information. Subsequently, after receiving the operation code sent by the second device, the server can determine the device identification of the second device that sent the operation code, and then determine the device control information corresponding to the device identification to trigger the corresponding operation event. For example, in response to a single-click signal sent by the second device (such as an operation code corresponding to a single-click operation), the second device determines that the corresponding triggered operation event is to turn on the light, then the second device can send an operation instruction to the light to trigger the light to turn on.
[0021] For example, the first device locally stores the device identifier of the second device and the device control information corresponding to the device identifier of the second device. This allows the first device to directly associate the device identifier with the device control information. Subsequently, upon receiving a control signal from the second device, the first device can determine the device identifier of the second device that sent the control signal, and further determine the device control information corresponding to the device identifier, thereby triggering a corresponding operation event.
[0022] For example, a server may have pre-set scene information for multiple scenarios. The first device then sends the device identifier of the second device and the scene identifier of the first scene associated with the second device to the server. Upon receiving the device identifier and scene identifier sent by the first device, the server can determine the scene information corresponding to the first scene based on the scene identifier, and then associate the device identifier with the corresponding first scene to facilitate subsequent triggering of the corresponding scene.
[0023] For another example, if the first device has scene information of multiple scenes preset in it, the first device can directly determine the scene information of the corresponding first scene according to the scene identifier, and then associate the device identifier with the corresponding first scene to facilitate subsequent triggering of the corresponding scene.
[0024] In this way, the communication system can include multiple combinations and interaction modes between different devices, meeting the flexible combination requirements of the communication system. Moreover, in different combinations and interactions, the scenario configuration requirements of the second device can be realized, thereby meeting the user's needs.
[0025] According to the first aspect, or any implementation of the first aspect above, associating the first scenario with the second device includes: sending a device identifier of the second device and device control information corresponding to the device identifier of the second device to the second device.
[0026] For example, after registering a second device, the first device can determine the second device's device identifier. Then, after determining the device control information, the first device can send the device identifier and device control information to the second device. Subsequently, upon detecting a user operation, the second device can directly determine the operation code and / or operation event corresponding to the user operation based on the device control information, and then send the operation code and / or operation event to the server to trigger control of the corresponding third device.
[0027] In this way, the device control information is directly configured to the second device, and the second device can trigger the control of the third device in response to the user operation.
[0028] According to the first aspect, or any implementation of the first aspect above, the device control information includes operation code information and / or operation events.
[0029] According to the first aspect, or any implementation of the first aspect above, the operation code information includes at least one operation code, and the at least one operation code is used to indicate one or more of the key type, key index, and key operation type of a key of the second device.
[0030] The button type includes, for example, single button, multiple buttons, etc. The button index is used to indicate the button number configured in the second device, such as button 1, button 2, button 3, etc. The button operation type includes, for example, single click, double click, long press, etc.
[0031] According to the first aspect, or any implementation of the first aspect above, when the first device locally stores a device identifier of the second device and device control information corresponding to the device identifier of the second device; or when the first device locally stores the device identifier of the second device and a scene identifier of a first scene associated with the second device, the method further includes: receiving a first operation code sent by the second device, determining a first operation event corresponding to the first operation code, and sending operation indication information to at least one target third device among at least one third device indicated by the first operation event.
[0032] In some examples, the second device may also receive a second operation code sent by the second device and determine a second operation event corresponding to the second operation code. Thereafter, the first device may send second operation indication information to at least one target third device (the same as or different from the third device indicated by the first operation code) among the at least one third device indicated by the second operation event.
[0033] That is, the second device can be configured with one or more buttons, and a single button can be configured with one or more button operation types. In this way, the second device can trigger the transmission of different operation codes to the first device in response to user operations, thereby enabling the second device to flexibly control the same or different third devices in different scenarios, improving the user experience.
[0034] According to the first aspect, or any implementation of the first aspect above, before sending the device identifier of the second device to the server or locally storing the identifier, the method further includes: determining whether the second device is registered based on the acquired information of the second device. If the second device is not registered, registering the second device with the server on behalf of the second device based on the information of the second device; or, if the second device is not registered, sending information of the second device to the fourth device for completing the registration of the second device.
[0035] According to the first aspect, or any implementation of the first aspect above, registering the second device with the server on behalf of the second device based on the information of the second device includes: obtaining a device identifier sent by the server, the device identifier being used to identify the second device, and sending the device identifier to the second device.
[0036] Optionally, after determining that the registration of the second device is completed, the first device triggers the scenario configuration process of the second device.
[0037] In this way, the first device can automatically trigger the registration process of the second device in response to the acquired information of the second device, effectively reducing the user's operation difficulty.
[0038] According to the first aspect, or any implementation of the first aspect above, obtaining a first scene corresponding to a first operation performed by a user on a scene configuration interface of a first device includes: displaying the scene configuration interface, the scene configuration interface being configured to display scene cards. In response to the first operation performed by the user on the scene configuration interface, determining a first scene corresponding to the first scene card selected by the user.
[0039] Optionally, the scene card can also be described as a scene component, scene control, etc., which is not limited in this application.
[0040] Optionally, the scene configuration component is displayed on the first interface, which is used to configure devices in the first space. The scene corresponding to the first scene card is the scene that can be configured on the second device in the first space. In this way, the second device can configure different scenes in different spaces, thereby enriching user experience.
[0041] In this way, by pre-configuring the scene, the user can complete the scene configuration of the second device through a simple selection operation, effectively reducing the difficulty of scene configuration.
[0042] According to the first aspect, or any implementation of the first aspect above, before determining the first scene corresponding to the first scene card selected by the user in response to the user's first operation on the scene configuration interface, the method also includes: editing the first scene corresponding to the first scene card in response to the user's second operation on the scene configuration interface.
[0043] In this way, during the scene configuration process, the first device can edit the scene in response to the user operation, so that the edited scene better meets the user's usage needs.
[0044] According to the first aspect, or any implementation method of the first aspect above, associating the first scene with the second device includes: displaying the scene writing animation, the scene writing animation includes presenting it on the display interface of the first device, and absorbing the scene display component corresponding to the first scene into the animation of the placement area on the display interface of the second device.
[0045] In this way, by displaying the scene writing animation, the user's interest in waiting for the scene to be written is increased, and the user is helped to understand the scene being written.
[0046] According to the first aspect, or any one of the implementations of the first aspect above, displaying the scene configuration interface includes: displaying the scene configuration interface in response to the user's operation on the scene configuration component; or displaying the scene configuration interface in response to the approach or contact of the second device. That is, the user can indicate the need to open the scene configuration interface through the control selection on the display interface of the first device, thereby indicating the intention to configure the second device scene; or the first device can confirm the user's intention to configure the second device scene based on the approach or contact of the second device, and then automatically pop up the scene configuration interface. Optionally, the first device can also obtain the scene writing status of the second device from the local, second device or other device when the second device is close to or in contact, and pop up different associated interfaces according to different scene writing statuses. For example, when it is determined that the second device has written a scene, the scene details interface pops up, and when it is determined that the second device has not written any scene, the scene configuration interface pops up, etc.
[0047] In this way, users can trigger scene writing on the second device in a variety of ways, effectively improving the user experience.
[0048] According to the first aspect, or any implementation of the first aspect above, after displaying the scene configuration interface, the method also includes: in response to the user's operation on the second scene card in the scene card, displaying the scene information of the second scene corresponding to the second scene card.
[0049] In this way, during the scene configuration process, the first device can display scene details in response to user operations, thereby facilitating the user to understand the application of the scene and determine whether the scene needs to be selected.
[0050] According to the first aspect, or any implementation method of the first aspect above, a scene configuration component (such as a control) is displayed on the first interface, the first interface is used to configure the device in the first space, and the scene corresponding to the first scene card is the scene that can be configured by the second device in the first space.
[0051] In this way, the second device can be configured with different scenes in different spaces, thereby enriching the user's use.
[0052] According to the first aspect, or any implementation of the first aspect above, labels are displayed on the first scene cards, and the labels are used to indicate the order in which the user selects the scene cards, and the order matches the scene writing order for associating the first scene with the second device.
[0053] In this way, orderly scene selection and scene writing are achieved.
[0054] According to the first aspect, or any implementation of the first aspect above, the number of first scene cards is less than or equal to a first threshold.
[0055] In this way, it is avoided that the second device is configured with too many scenarios, which increases the difficulty of user operation.
[0056] According to the first aspect, or any implementation of the first aspect above, associating a first scene with a second device includes: determining, based on information about the second device, that the second device includes multiple buttons; displaying a second interface, the second interface being configured to display a prompt message instructing a user to select a target button for a scene to be configured from the multiple buttons; determining the target button in response to a third user operation on the second interface; and associating the first scene with the target button on the second device.
[0057] For example, a first device detects an NFC tap-and-go operation, obtains the NFC tag information of a second device, and determines, based on the device information, that the second device includes three buttons. The first device can then display a button selection interface. After detecting a user-selected button on the button selection interface, the first device can then display a scene configuration interface, receive the user's selection of a scene to be configured, and write the user-selected scene to the identified button on the second device.
[0058] In this way, when the second device includes multiple buttons, the first device can also configure different button scenes in response to user operations, so that the user can control the third device in multiple scenes through one second device.
[0059] According to the first aspect, or any implementation of the first aspect above, the method further includes: in response to the approach or contact of the second device, determining whether the second device has been configured with a scene. If the second device has been configured with a scene, displaying a device reading interface, the device reading interface is used to display detailed information about the scene configured on the second device. If the second device has not been configured with a scene, displaying a scene configuration interface for configuring the scene on the second device.
[0060] In this way, the first device can respond to the same operation of the user and flexibly meet the user's usage needs according to the scenario configuration of the second device.
[0061] According to the first aspect, or any implementation of the first aspect above, associating the first scenario with the second device includes: obtaining first identity information of a user, and associating the first scenario, the second device, and the first identity information based on information of the second device.
[0062] In this way, different users can trigger different second device scenarios through the same second device, further improving the user experience.
[0063] According to the first aspect, or any implementation of the first aspect above, it can be determined that the second device is close to or in contact with the first device based on information of the second device obtained through any one of the communication methods of near-field wireless communication NFC, Bluetooth or wireless fidelity Wi-Fi.
[0064] In a second aspect, an electronic device is provided. The electronic device includes: a processor, a memory, and a display screen, the memory and the display screen are coupled to the processor, the memory is used to store computer program code, and the computer program code includes computer instructions. When the processor reads the computer instructions from the memory, the electronic device executes: based on the information obtained about the second device, determining whether the second device is close to or in contact with the first device. In response to the approach or contact of the second device, a first scene corresponding to the first operation of the user on the scene configuration interface of the first device is obtained, and the first scene is associated with the behavior of controlling at least one third device. The first scene is associated with the second device.
[0065] According to the second aspect, after the first scene is associated with the second device, when the processor reads computer instructions from the memory, it also causes the electronic device to execute: in response to the second device approaching or contacting again, displaying relevant information of the first scene associated with the second device through the display screen.
[0066] According to the second aspect, or any implementation method of the above second aspect, the relevant information of the first scene includes one or more of the device name of the second device, the scene name of the first scene, the trigger condition of the first scene, the name of the first space, the scene identifier of the first scene, the icon of the second device, and the remaining power of the second device.
[0067] According to the second aspect, or any implementation of the second aspect above, when the second device includes multiple buttons, the first scene is the configuration scene of the target button among the multiple buttons. When the processor reads the computer instructions from the memory, it also enables the electronic device to execute: in response to the second device approaching or contacting again, the details of the configured scenes of other buttons other than the target button among the multiple buttons are displayed on the display screen.
[0068] According to the second aspect, or any implementation of the second aspect above, when the processor reads the computer instructions from the memory, the electronic device is further caused to execute: in response to a user operation, edit the first scene, and associate the edited first scene with the second device.
[0069] According to the second aspect, or any implementation method of the above second aspect, associating the first scene with the second device includes: sending the device identification of the second device to the server or locally saving the device control information corresponding to the device identification of the second device; or sending the device identification of the second device to the server or locally saving the scene identification of the first scene associated with the second device.
[0070] According to the second aspect, or any implementation of the second aspect above, associating the first scenario with the second device includes: sending a device identifier of the second device and device control information corresponding to the device identifier of the second device to the second device.
[0071] According to the second aspect, or any implementation of the second aspect above, the device control information includes operation code information and / or operation events.
[0072] According to the second aspect, or any implementation of the second aspect above, the operation code information includes at least one operation code, and the at least one operation code is used to indicate one or more of the key type, key index, and key operation type of a key of the second device.
[0073] According to the second aspect, or any implementation of the second aspect above, when the first device locally stores a device identifier of the second device and device control information corresponding to the device identifier of the second device; or when the first device locally stores the device identifier of the second device and a scene identifier of a first scene associated with the second device, when the processor reads computer instructions from the memory, the electronic device further executes: receiving a first operation code sent by the second device, determining a first operation event corresponding to the first operation code, and sending operation indication information to at least one target third device among at least one third device indicated by the first operation event.
[0074] According to the second aspect, or any implementation of the second aspect above, when the processor reads the computer instructions from the memory, the electronic device is further caused to execute: determining whether the second device is registered based on the acquired information of the second device; if the second device is not registered, registering the second device with the server on behalf of the second device based on the information of the second device; or, if the second device is not registered, sending the information of the second device to the fourth device for completing the registration of the second device.
[0075] According to the second aspect, or any implementation of the second aspect above, registering the second device with the server on behalf of the second device based on the information of the second device includes: obtaining a device identifier sent by the server, the device identifier being used to identify the second device, and sending the device identifier to the second device.
[0076] According to the second aspect, or any implementation of the second aspect above, obtaining a first scene corresponding to a first operation performed by a user on a scene configuration interface of a first device includes: displaying the scene configuration interface on a display screen, the scene configuration interface being configured to display scene cards. In response to the first operation performed by the user on the scene configuration interface, determining a first scene corresponding to a first scene card selected by the user.
[0077] According to the second aspect, or any implementation of the above second aspect, when the processor reads computer instructions from the memory, it also enables the electronic device to execute: in response to the user's second operation on the scene configuration interface, edit the first scene corresponding to the first scene card.
[0078] According to the second aspect, or any implementation method of the above second aspect, the first scene is associated with the second device, including: displaying the scene writing animation through the display screen, the scene writing animation includes presenting it on the display interface of the first device, and absorbing the scene display component corresponding to the first scene into the animation of the placement area of the second device on the display interface.
[0079] According to the second aspect, or any implementation method of the second aspect above, the scene configuration interface is displayed through the display screen, including: displaying the scene configuration interface through the display screen in response to the user's operation of the scene configuration component; or displaying the scene configuration interface through the display screen in response to the approach or contact of the second device.
[0080] According to the second aspect, or any implementation of the second aspect above, when the processor reads computer instructions from the memory, it also enables the electronic device to execute: in response to the user's operation on the second scene card in the scene card, display the scene information of the second scene corresponding to the second scene card through the display screen.
[0081] According to the second aspect, or any implementation method of the above second aspect, the scene configuration component is displayed on the first interface, the first interface is used to configure the device in the first space, and the scene corresponding to the first scene card is the scene that can be configured by the second device in the first space.
[0082] According to the second aspect, or any implementation of the second aspect above, labels are displayed on the first scene cards, and the labels are used to indicate the order in which the user selects the scene cards, and the order matches the scene writing order for associating the first scene with the second device.
[0083] According to the second aspect, or any implementation of the second aspect above, the number of first scene cards is less than or equal to a first threshold.
[0084] According to the second aspect, or any implementation of the second aspect above, associating the first scene with the second device includes: determining, based on information about the second device, that the second device includes multiple buttons; displaying a second interface on a display screen, the second interface being configured to display a prompt message instructing a user to select a target button for the scene to be configured from the multiple buttons; determining the target button in response to a third user operation on the second interface; and associating the first scene with the target button on the second device.
[0085] According to the second aspect, or any implementation of the second aspect above, when the processor reads the computer instructions from the memory, it further causes the electronic device to execute: in response to the approach or contact of the second device, determining whether the second device has been configured with a scene. If the second device has been configured with a scene, a device reading interface is displayed on the display screen, the device reading interface is used to display detailed information about the scene configured on the second device. If the second device has not been configured with a scene, a scene configuration interface is displayed on the display screen to configure the scene for the second device.
[0086] According to the second aspect, or any implementation of the second aspect above, associating the first scenario with the second device includes: obtaining first identity information of a user, and associating the first scenario, the second device, and the first identity information based on information of the second device.
[0087] The technical effects corresponding to the second aspect and any implementation method of the second aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any implementation method of the first aspect, and will not be repeated here.
[0088] In a third aspect, a configuration system is provided, comprising a first device and a second device. The first device is configured to determine, based on information obtained from the second device, whether the second device is approaching or in contact with the first device. In response to the approach or contact of the second device, obtain a first scene corresponding to a first operation performed by a user on a scene configuration interface of the first device, where the first scene is associated with the behavior of controlling at least one third device. The device identifier of the second device and device control information associated with the first scene corresponding to the device identifier of the second device are stored, where the device control information includes operation code information and / or operation events. The second device is configured to, in response to a user operation, send a first operation code and / or a first operation event corresponding to the user operation to the first device. The first device is further configured to receive the first operation code and / or the first operation event. Based on the first operation code and / or the first operation event, send operation indication information to at least one target third device among the at least one third device indicated by the first operation code and / or the first operation event. In response to the second device approaching or contacting the first device again, display relevant information of the first scene associated with the second device.
[0089] According to the third aspect, the system also includes a server; the first device is further used to: send the device identification of the second device and device control information to the server; or send the device identification of the second device and the scene identification of the first scene associated with the second device to the server.
[0090] According to the third aspect, or any implementation of the third aspect above, the first device is further configured to: send a device identification of the second device and device control information to the second device.
[0091] According to the third aspect, or any implementation of the third aspect above, the operation code information includes at least one operation code, and the at least one operation code is used to indicate one or more of the key type, key index, and key operation type of a key of the second device.
[0092] According to the third aspect, or any implementation of the third aspect above, the first device is further configured to: determine whether the second device is registered based on the acquired information of the second device; if the second device is not registered, register the second device with the server on behalf of the second device based on the information of the second device; or, if the second device is not registered, send the information of the second device to the fourth device for completing the registration of the second device.
[0093] According to the third aspect, or any implementation of the third aspect above, registering the second device with the server on behalf of the second device based on the information of the second device includes: obtaining a device identifier sent by the server, the device identifier being used to identify the second device, and sending the device identifier to the second device.
[0094] The technical effects corresponding to the third aspect and any implementation method of the third aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any implementation method of the first aspect, and will not be repeated here.
[0095] In a fourth aspect, an electronic device is provided, the electronic device having the function of implementing the configuration method described in the first aspect and any possible implementation thereof. The function can be implemented by hardware, or by hardware executing corresponding software implementation. The hardware or software includes one or more modules corresponding to the above-mentioned functions.
[0096] The technical effects corresponding to the fourth aspect and any implementation method of the fourth aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any implementation method of the first aspect, and will not be repeated here.
[0097] In a fifth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program (also referred to as instructions or code), which, when executed by 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.
[0098] The technical effects corresponding to the fifth aspect and any implementation method of the fifth aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any implementation method of the first aspect, and will not be repeated here.
[0099] In a sixth aspect, a computer program product is provided. When the computer program product is run on an electronic device, the electronic device executes the method of the first aspect or any one of the embodiments of the first aspect.
[0100] The technical effects corresponding to the sixth aspect and any implementation method of the sixth aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any implementation method of the first aspect, and will not be repeated here.
[0101] In a seventh aspect, a circuit system is provided, the circuit system including a processing circuit, the processing circuit being configured to execute the method of the first aspect or any one of the embodiments of the first aspect.
[0102] The technical effects corresponding to the seventh aspect and any implementation method of the seventh aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any implementation method of the first aspect, and will not be repeated here.
[0103] In an eighth aspect, a chip system is provided, comprising 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. When the at least one processor executes the instructions, the at least one processor executes the method of the first aspect or any one of the embodiments of the first aspect.
[0104] The technical effects corresponding to the eighth aspect and any one of the implementation methods of the eighth aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0105] FIG1 is a schematic diagram of a scenario of a smart switch configuration provided by an embodiment of the present application;
[0106] FIG2 is a schematic diagram of a communication system to which the configuration method provided in an embodiment of the present application is applied;
[0107] FIG3 is a schematic diagram of the hardware structure of a first device provided in an embodiment of the present application;
[0108] FIG4 is a schematic diagram of the hardware structure of the second device provided in an embodiment of the present application;
[0109] FIG5 is a first diagram of an interface for configuring a smart switch scenario according to an embodiment of the present application;
[0110] FIG6 is a second schematic diagram of an interface for configuring a smart switch scene according to an embodiment of the present application;
[0111] FIG7 is a third schematic diagram of an interface for configuring a smart switch scenario according to an embodiment of the present application;
[0112] FIG8 is a fourth diagram of an interface for configuring a smart switch scene according to an embodiment of the present application;
[0113] FIG9 is a fifth diagram of an interface for configuring a smart switch scenario according to an embodiment of the present application;
[0114] FIG10 is a sixth diagram of an interface for configuring a smart switch scenario according to an embodiment of the present application;
[0115] FIG11 is a seventh diagram of an interface for configuring a smart switch scenario according to an embodiment of the present application;
[0116] FIG12 is a schematic diagram eight of an interface for configuring a smart switch scenario according to an embodiment of the present application;
[0117] FIG13 is a ninth diagram of an interface for configuring a smart switch scene according to an embodiment of the present application;
[0118] FIG14 is a first schematic diagram of an interface for reading a smart switch according to an embodiment of the present application;
[0119] FIG15 is a second schematic diagram of an interface for reading a smart switch according to an embodiment of the present application;
[0120] FIG16 is a third schematic diagram of an interface for reading a smart switch according to an embodiment of the present application;
[0121] FIG17 is a fourth schematic diagram of an interface for reading a smart switch according to an embodiment of the present application;
[0122] FIG18 is a fifth diagram of an interface for reading a smart switch according to an embodiment of the present application;
[0123] FIG19 is a sixth schematic diagram of an interface for reading a smart switch according to an embodiment of the present application;
[0124] FIG20-1 is a seventh schematic diagram of an interface for reading a smart switch according to an embodiment of the present application;
[0125] FIG20-2 is a schematic diagram 8 of an interface for reading a smart switch according to an embodiment of the present application;
[0126] FIG21 is a schematic diagram of a fingerprint collection interface provided in an embodiment of the present application;
[0127] FIG22 is a schematic diagram of a smart switch registration process according to an embodiment of the present application;
[0128] FIG23 is a flow chart of a configuration method according to an embodiment of the present application;
[0129] Figure 24 is a structural schematic diagram of the first device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0130] The technical solutions in the embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to include expressions such as "one or more", unless there is a clear indication to the contrary in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more (including two).
[0131] References to "one embodiment" or "some embodiments" etc. described in this specification mean that the specific features, structures or characteristics described in conjunction with the embodiment are included in one or more embodiments of the present application. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in another way. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in another way. The term "connected" includes direct and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
[0132] In the embodiments of this application, words such as "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 interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.
[0133] In some scenarios, smart switches can be used in smart home systems to realize intelligent scenarios. For example, in a warm homecoming scenario, users can use smart switches to turn on lights and automatically lower the air conditioner with a single click. Another example is a safe departure scenario where users can use smart switches to turn off lights, doors, windows, appliances, and other devices with a single click.
[0134] Among them, the smart switch requires users to register the device and configure the scene before use.
[0135] For example, as shown in interface 101 in Figure 1 (a), the user must first launch an application for managing smart home devices (such as the Smart Life application) on their phone to add a smart switch. For example, while the Smart Life application is being displayed, the phone displays menu bar 12 in response to a user clicking control 11. The phone detects the user clicking the Add Device control 13 displayed in menu bar 12 and determines that the user has indicated the addition of a new device. If the device indicated as a smart switch is being added, the phone may display interface 102 as shown in Figure 1 (b), prompting the user to perform the required operations on the smart switch. After the user operates the smart switch, the smart switch may trigger the smart switch to send a Bluetooth broadcast signal. Upon detecting this Bluetooth broadcast signal, the phone may trigger a Bluetooth connection with the smart switch and obtain the device information of the smart switch to complete the registration of the smart switch. After registration is complete, the phone may display interface 103 as shown in Figure 1 (c), prompting the user to select a room for the smart switch. If the phone detects the user clicking the Living Room control 14, it may display interface 104 as shown in Figure 1 (d). On screen 104, the phone prompts the user to create a smart switch scene for the living room. For example, the user can use control 15 to add a scene trigger condition and control 16 to add the scene to be executed. For example, the scene could be clicking the smart switch to turn the living room light on or off. Afterward, in response to the user clicking the Save control 17, the scene configuration for the smart switch is confirmed to be complete.
[0136] It can be seen that in the above process, users need to operate on the mobile phone application and the smart switch respectively, and need to have certain basic knowledge of smart home configuration to complete the device registration and scene configuration of the smart switch. The user operation is difficult, which affects the user experience.
[0137] Therefore, the embodiment of the present application provides a configuration method, whereby the electronic device can automatically complete the device registration and scene configuration of the smart switch through short-range communication technology, thereby simplifying user operations and improving the user experience.
[0138] Figure 2 is a schematic diagram of a communication system to which the configuration method provided in an embodiment of the present application is applied. As shown in Figure 2, the communication system includes a first device 100, a second device 200, and a server 300.
[0139] Optionally, the first device 100 can be used to edit smart devices and smart scenes in the whole house. The first device 100 is, for example, a terminal device with a display function, such as a smart central control screen, a mobile phone, a tablet computer, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a wearable device, an artificial intelligence (AI) device, etc. The operating system installed on the first device 100 includes but is not limited to This application does not limit the specific type of the first device 100 or the installed operating system.
[0140] Optionally, the second device 200 is a control device in a smart home system. The second device 200 is, for example, a smart switch (or smart button), a movable smart switch, etc. The operating system installed on the second device 200 includes but is not limited to Or other operating systems. The second device 200 may not be installed with an operating system. This application does not limit the specific type of the second device 200, whether an operating system is installed, or the type of operating system if an operating system is installed.
[0141] In some embodiments, the second device 200 may be a smart switch (button) of various styles. For example, the second device 200 may be a circular single-button smart button as shown in FIG2 , or the second device 200 may be a single-button smart button of other shapes, a multi-button smart button, a small touch screen-style smart button, a smart button integrating mechanical buttons and touch buttons, etc., and the present invention does not limit this.
[0142] Optionally, the server 300 serves as a home service hub for managing and controlling devices in the smart home system (such as the first device 100, the second device 200, smart home devices, etc.). The server 300 is, for example, a whole-house hub, a whole-house smart host, a whole-house smart light host, a router, and other smart home devices. In some examples, the server 300 may also be a cloud remote service. For example, the server 300 is a device or server with computing functions such as a cloud server or a network server. It may be a single server, a server cluster consisting of multiple servers, or a cloud computing service center. In other examples, the communication system includes a local server 300 and a cloud remote service, and both the server 300 and the cloud remote service can serve as the home service hub of the communication system. For example, the first device 100, the second device 200, and other smart home devices in the communication system communicate with other smart home devices through the server 300. In the event of a failure of the server 300, the first device 100, the second device 200, and other smart home devices in the communication system may also communicate with other smart home devices through the cloud remote service. This application does not limit the specific type of server 300.
[0143] Optionally, the server 300 is a long-term power device in the communication system, and / or the server 300 is a resident device in the communication system.
[0144] In some embodiments, the first device 100 can establish a wireless communication connection with the second device 200 through wireless communication technology. The wireless communication technology includes but is not limited to at least one of the following: Bluetooth (BT) (for example, traditional Bluetooth or Bluetooth low energy (BLE)), wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), power line communication (PLC), near field communication (NFC), Zigbee, frequency modulation (FM), infrared (IR), etc.
[0145] Optionally, the first device 100 and the second device 200 support a "touch and pay" operation. For example, when the second device 200 contacts the NFC sensing area of the first device 100, the first device 100 can obtain the NFC tag information of the second device 200 and trigger the first device 100 and the second device 200 to establish a wireless communication connection such as Bluetooth.
[0146] Optionally, the first device 100 and the second device 200 support a proximity discovery function. For example, when the first device 100 approaches the second device 200, the first device 100 and the second device 200 can discover each other and then establish a wireless communication connection such as a Bluetooth or Wi-Fi peer-to-peer (P2P) connection.
[0147] In some embodiments, the communication system further includes a Bluetooth gateway, which is a gateway device integrating Bluetooth, WiFi and Ethernet. Optionally, the number of the second device 200 and the Bluetooth gateway is one or more.
[0148] In some examples, the first device 100 or the second device 200 communicates with the server 300 through a Bluetooth gateway.
[0149] Optionally, the first device 100 or the server 300 establishes a wired communication connection with the Bluetooth gateway through a network cable connection or a universal serial bus (USB) connection; or, establishes a wireless communication connection with the Bluetooth gateway through the above-mentioned wireless communication technology.
[0150] In some embodiments, the communication system further includes smart home devices. After the scene configuration of the second device 200 is completed, the user can implement scene control through the second device 200 to control the corresponding smart home devices. Smart home devices include, for example, audio and video equipment (such as large screen devices, speakers, etc.), lighting system equipment (such as desk lamps, electric lights, etc.), environmental control equipment (such as air purifiers, robot vacuums, etc.), security system equipment (such as cameras, smart door locks, etc.), kitchen appliances (such as ovens, dishwashers, etc.), smart sensors, etc.
[0151] In some embodiments, the communication system is, for example, a smart home system, a smart office system, etc. In this embodiment of the present application, the configuration process of the second device 200 is described in detail by taking the communication system being a smart home system as an example.
[0152] For example, FIG3 shows a schematic structural diagram of the first device 100 .
[0153] The first device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0154] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the first device 100. In other embodiments of the present application, the first device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0155] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0156] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0157] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0158] In some embodiments, the processor 110 may include one or more interfaces. The 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.
[0159] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C bus lines. The processor 110 may be coupled to the touch sensor, charger, flash, camera 193, etc. through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor through the I2C interface, allowing the processor 110 to communicate with the touch sensor through the I2C bus interface, thereby implementing the touch function of the first device 100.
[0160] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the camera function of the first device 100. The processor 110 and the display 194 communicate via the DSI interface to implement the display function of the first device 100.
[0161] The USB interface 130 is an interface that complies with USB standards and specifications, and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the first device 100, or to transfer data between the first device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as AR devices.
[0162] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the first device 100. In other embodiments of the present application, the first device 100 may also adopt a different interface connection method from the above embodiments, or a combination of multiple interface connection methods.
[0163] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the first device 100. While charging the battery 142, the charging management module 140 can also power the electronic device through the power management module 141.
[0164] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 and provides power to the processor 110, the internal memory 121, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be provided in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be provided in the same device.
[0165] The wireless communication function of the first device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.
[0166] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in first device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0167] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied on the first device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0168] The wireless communication module 160 can provide wireless communication solutions applied on the first device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0169] In some embodiments, the antenna 1 of the first device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the first device 100 can communicate with a network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0170] The first device 100 implements display functionality through a GPU, display screen 194, and an application processor. The GPU is a microprocessor for image processing that connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0171] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be manufactured using a liquid crystal display (LCD), for example, an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or 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 device 100 may include one or N display screens 194, where N is a positive integer greater than one.
[0172] In some embodiments, the first device 100 displays optional scenes to be configured on the display screen 194. In response to the user's operation of selecting a scene, the first device 100 can directly determine the scene to be configured for the second device 200. In this way, the user can complete the scene configuration of the second device 200 through a simple selection operation, effectively reducing the difficulty of scene configuration.
[0173] In some embodiments, when the first device 100 determines that data is to be written to the second device 200, it can display a prompt on the display screen 194 to remind the user that the data can be written to the second device 200 through the NFC "touch and pay" function. In response to the "touch and pay" operation of the second device 200, the first device 100 can read the NFC tag information of the second device 200, thereby automatically completing the registration of the second device 200. In this way, the user can complete the registration of the second device 200 through a simple "touch and pay" operation, effectively reducing the difficulty of device registration.
[0174] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the first device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0175] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the first device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored in the external memory card.
[0176] The internal memory 121 can be used to store computer executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the first device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the first device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.
[0177] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be set in the processor 110, or some functional modules of the audio module 170 can be set in the processor 110. The first device 100 can use the audio module 170, such as music playback and recording. The audio module 170 may include a speaker, a receiver, a microphone, a headphone jack, and an application processor to implement audio functions.
[0178] The sensor module 180 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
[0179] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The first device 100 may be configured with one or N buttons 190, where N is a positive integer greater than 1. The first device 100 may support one or N SIM card interfaces, where N is a positive integer greater than 1. The first device 100 may receive button input and generate key signal input related to user settings and function control of the first device 100.
[0180] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or touch vibration feedback. Indicator 192 can be an indicator light that can be used to indicate charging status, battery level changes, messages, missed calls, notifications, etc. SIM card interface 195 is used to connect a SIM card. The first device 100 can support one or N SIM card interfaces, where N is a positive integer greater than one.
[0181] For example, FIG4 shows a schematic structural diagram of the second device 200 .
[0182] The second device 200 includes at least one processor 401 , a communication line 402 , a memory 403 , at least one communication interface 404 , and a button 405 . The memory 403 may also be included in the processor 401 .
[0183] The processor 401 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.
[0184] Communication link 402 may include a pathway for transmitting information between the aforementioned components.
[0185] Communication interface 404 is used to communicate with other devices. In embodiments of the present application, the communication interface can be a module, circuit, bus, interface, transceiver, or other device capable of implementing communication functions, used to communicate with other devices. Optionally, when the communication interface is a transceiver, the transceiver can be an independently provided transmitter that can be used to send information to other devices, or the transceiver can be an independently provided receiver that is used to receive information from other devices. The transceiver can also be a component that integrates the functions of sending and receiving information. Embodiments of the present application do not limit the specific implementation of the transceiver.
[0186] The memory 403 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage, magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may be independent and connected to the processor via the communication line 402. The memory may also be integrated with the processor.
[0187] The memory 403 is used to store computer-executable instructions for implementing the solution of the present application, and the execution is controlled by the processor 401. The processor 401 is used to execute the computer-executable instructions stored in the memory 403, thereby implementing the data processing method provided in the following embodiments of the present application.
[0188] Optionally, the computer-executable instructions in the embodiments of the present application may also be referred to as application code, instructions, computer programs or other names, which are not specifically limited in the embodiments of the present application.
[0189] In a specific implementation, as an embodiment, the processor 401 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 4 .
[0190] In a specific implementation, as an embodiment, the second device 200 may include multiple processors. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0191] The button 405 may be a mechanical button or a touch button. The second device 200 may include 1 or N buttons 405, where N is a positive integer greater than or equal to 1.
[0192] It is understood that the structure shown in FIG4 in the embodiment of the present application does not constitute the sole limitation on the implementation of the structure of the second device 200. In other embodiments of the present application, the second device 200 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0193] The following text takes the first device 100 as a smart central control screen, the second device 200 as a smart switch, the server 300 as the whole house hub, and the applied communication system as a smart home system as an example to introduce in detail the configuration method provided in the embodiment of this application.
[0194] In some embodiments, users can manage and control smart switches through the smart central control screen, such as completing smart switch registration, scene configuration, etc.
[0195] In some examples, during the scene configuration process for a smart switch, the smart central control screen can automatically generate the corresponding scene to be configured. In response to the user's operation on the smart central control screen, the smart central control screen can match the user-selected scene to be configured with the smart switch. This allows users to complete the scene configuration of the smart switch through simple operations even if they do not have basic knowledge of smart home configuration. Users do not need to perform complex operations on the smart switch (such as using a needle to poke the reset hole on the smart switch), effectively reducing the user's operational difficulty.
[0196] For example, as shown in interface 501 in Figure 5 (a), the smart central control screen detects the user's operation on the control 51, determines that the user instructs to operate the smart switch, and the smart central control screen can display interface 502 as shown in Figure 5 (b). The menu bar 52 corresponding to the control 51 is displayed on the interface 502, and the smart central control screen detects the user's operation on writing the smart switch control 53 in the menu bar 52, and can determine that the user instructs to write the smart switch. In the process of writing the smart switch, the smart central control screen can configure the scene of the smart switch. As shown in control 54 in interface 501, the smart central control screen can determine that the currently edited space is the living room, then the smart central control screen can determine the scene that the smart switch can be configured in the living room space. As shown in interface 503 in Figure 5 (c), the smart central control screen displays the scene card corresponding to the scene that the smart switch can be configured in the living room space, and the user can directly select the scene that needs to be configured in the smart switch. Compared to the smart switch scene configuration process shown in Figure 1, users no longer need to add trigger conditions and scene operations one by one. Instead, they can directly select a preset scene to be configured, enriching the configurable scenes and simplifying user operations. Afterwards, in response to the user's NFC "touch" operation between the smart switch and the smart central control screen, the user-selected scene to be configured is associated with the smart switch. Thus, the scene configuration of the smart switch can be completed through simple interaction between the smart central control screen and the smart switch, effectively reducing user operation difficulty.
[0197] The following describes the specific implementation method of the scene configuration process.
[0198] For example, as shown in interface 601 in Figure 6(a), the smart central control screen displays scene cards corresponding to configurable scenes for the smart switch in the living room. If the user has not currently selected a scene, the confirmation control 61 is in an inoperable state, for example, it is grayed out. Subsequently, the smart central control screen detects the user's operation on the "Warm Home" scene card 62, determines that the user has selected to add a "Warm Home" scene, and displays interface 602 as shown in Figure 6(b). In interface 602, the smart central control screen displays the selected "Warm Home" scene card 62 and activates the confirmation control 61, making it operable. The smart switch can display a number on the scene card selected by the user to indicate the selection order and number of scenes to be configured. For example, the smart central control screen displays the number 1 on the currently selected "Warm Home" scene card 62. Subsequently, the smart central control screen detects the user's operation on the "Safe Away" scene card 63, determines that the user has selected to add a "Safe Away" scene, and displays interface 603 as shown in Figure 6(c). On interface 603, the smart central control screen displays the selected warm home scene card 62 and the safe leaving home scene card 63, and displays the label 2 on the safe leaving home scene card 63, which is used to indicate that the number of scenes to be configured selected by the current user is 2, and the scene configuration order is to configure the warm home scene first and then the safe leaving home scene.
[0199] In some examples, the smart central control screen has a preset threshold for the number of smart switch scene configurations. This threshold indicates the maximum number of scenes that can be configured on the smart switch. For example, if the threshold is 2, the smart switch determines that a maximum of 2 scenes can be configured on the smart switch. It should be understood that the present embodiment does not limit the value of the threshold for the number of scene configurations.
[0200] For example, as shown in interface 701 in Figure 7(a), the smart central control screen displays the selected "Warm Homecoming" scene card 71 and "Safe Leaving Home" scene card 72, indicating that the user has selected two scenes to configure. Based on the scene configuration threshold, the smart central control screen determines that the user has selected the maximum number of scene cards. The smart central control screen then displays the remaining scene cards as inoperable, reminding the user that they can select a maximum of two scenes to configure.
[0201] As another example, as shown in interface 701 in Figure 7(a), the smart central control screen detects a user's operation on the selected "Warm Home" scene card 71 and determines that the user has indicated the deselection of "Warm Home" scene card 71. Then, as shown in interface 702 in Figure 7(b), the smart central control screen may display the unselected "Warm Home" scene card 71. Furthermore, the smart central control screen changes the label on the "Safe Leaving Home" scene card 72 from "2" as shown in interface 701 to "1" as shown in interface 702, to remind the user that the currently selected scene only includes the "Safe Leaving Home" scene.
[0202] In addition, as shown in interface 702, the smart central control screen determines that the number of scenes to be configured selected by the current user is less than the scene configuration number threshold, then the smart central control screen can display other scene cards as an operable state to prompt the user to continue selecting scenes to be configured.
[0203] For example, when the smart central control screen is displaying interface 702, it detects the user's operation on the birthday party scene card 73, and determines that the user chooses to add a birthday party scene. The smart central control screen displays interface 703 as shown in Figure 7 (c).
[0204] In some embodiments, after the smart central control screen determines that the user has completed the selection of the scene to be configured, it may prompt the user to perform an NFC "touch and pay" operation to bind the scene to be configured selected by the user with the smart switch to complete the configuration of the smart switch scene.
[0205] In this way, the user can complete the scene configuration of the smart switch through a simple "touch" operation. Compared with the prior art in which the user needs to poke the reset hole on the smart switch with a needle to complete the scene configuration of the smart switch, the configuration method provided in the embodiment of the present application can effectively simplify the user operation, reduce the user operation difficulty, reduce the user learning cost, and improve the user experience.
[0206] For example, as shown in interface 801 in Figure 8(a), the smart central control screen detects the user's operation of the confirmation control 81, determines that the user has completed the selection of the scene to be configured, and may display interface 802 as shown in Figure 8(b). On interface 802, the smart central control screen displays the scene card corresponding to the scene to be configured that the user has selected, such as the Warm Home scene card. If the smart central control screen detects the user's operation of the return control 82, and determines that the user instructs to reselect the scene to be configured, the smart central control screen may return to display interface 801, on which the user can continue to select scenes to be configured.
[0207] Among them, on interface 802, as shown by reference numeral 83, the smart central control screen displays a prompt message to prompt the user to place the smart switch close to the NFC sensing area of the smart central control screen, that is, to instruct the user to perform an NFC "touch and go" operation. Afterwards, if the smart central control screen detects that the smart switch is close to the NFC sensing area, it can obtain the NFC tag information of the smart switch and obtain the device information of the smart switch included therein. Afterwards, the smart central control screen binds the scene to be configured with the smart switch according to the device information, such as writing the scene to be configured into the smart switch. In this way, after the user subsequently operates the smart switch, the smart switch sends a signal to the smart central control screen. The smart central control screen can determine the corresponding scene based on the smart switch identifier and signal type carried in the signal to trigger the scene. For example, if the warm home scene includes turning on the lights in the living room, then after receiving the signal sent by the smart switch, the smart central control screen can send an instruction message to the lights in the living room to turn on the lights in the living room.
[0208] Optionally, the proximity sensing area (such as the NFC sensing area or the Bluetooth sensing area) of the smart central control screen may include a storage space for placing the smart switch. For example, the user can contact the smart switch with the NFC sensing area of the smart central control screen to trigger the smart central control screen to read the NFC tag information of the smart switch. In some scenarios, it is inconvenient for the user to keep the smart switch in contact with the NFC sensing area of the smart central control screen, and it is difficult to ensure that the smart central control screen completes the reading of the NFC tag information of the smart switch, such as when the smart central control screen is a wall-operated device. Then the user can place the smart switch in the storage space of the smart central control screen to ensure that the smart central control screen can correctly read the NFC tag information of the smart switch, reducing the difficulty of user operation. Optionally, the storage space can be, for example, a storage slot, a card slot, and other implementation methods. Optionally, the storage space of the smart switch can also be set independently of the central control screen. Optionally, in the sensing method supported by certain short-range communication protocols, the smart switch may not be required to be continuously placed in the proximity sensing area of the central control screen.
[0209] Optionally, during the scene triggering process, the smart switch may send a signal to at least one of the smart central control screen, the Bluetooth gateway, the whole house hub, and the smart home devices corresponding to the scene to trigger the scene. For example, the smart switch sends a signal to the whole house hub through the Bluetooth gateway, or the smart switch directly sends a signal to the whole house hub, or the smart switch sends a signal to the whole house hub through the smart central control screen, or the smart switch sends a signal to the whole house hub through the Bluetooth gateway and the smart central control screen, and triggers the control of the smart home devices corresponding to the scene through the whole house hub to trigger the scene. For another example, the smart switch sends a signal directly to the smart central control screen, or the smart switch sends a signal to the smart central control screen through the Bluetooth gateway, and triggers the control of the smart home devices corresponding to the scene through the smart central control screen to trigger the scene. For another example, the smart switch sends a signal directly to the smart home devices corresponding to the scene to trigger the scene.
[0210] Accordingly, after completing the scene configuration of the smart switch, the smart central control screen can save the configured scene information locally or send it to the corresponding other devices mentioned above, so that the subsequent smart switch can trigger the scene. This will not be explained below.
[0211] Optionally, when the smart central control screen detects that the smart switch is close to the NFC sensing area, during the process of writing the scene, a scene writing effect may be displayed to prompt the user that the scene is being written to the smart switch. Optionally, the scene writing effect includes a variety of effects such as the scene card moving toward the smart switch or being sucked into the smart switch. For example, as shown in interface 803 in Figure 8 (c), the smart central control screen displays a scene writing effect. For example, the smart central control screen displays a scene writing effect of a warm home scene card moving toward the smart switch icon indicated by reference numeral 84. Optionally, icons such as those indicated by reference numeral 84 and the semicircular area corresponding thereto may be explicitly presented on the scene configuration page, or may be implicitly not presented in the user interface.
[0212] As another example, as shown in interface 901 in FIG9 (a), the smart central control screen displays the warm home scene card and the safe leaving home card that the user has selected, and displays other scene cards as inoperable. Afterwards, if the smart central control screen detects the user's operation on the confirmation control 91 and determines that the user has completed the selection of the scene to be configured, it may display interface 902 as shown in FIG9 (b). On interface 902, the smart central control screen displays the scene cards corresponding to the two scenes to be configured that the user has selected, such as the warm home scene card and the safe leaving home card. Among them, the smart central control screen can display the scene cards in the order in which the user selects the scene cards, such as displaying multiple scene cards in sequence from left to right, or displaying labels corresponding to the selected order on the scene cards, etc., to achieve orderly scene writing.
[0213] Furthermore, on screen 902, the smart central control screen displays a prompt message, prompting the user to place the smart switch close to the NFC sensing area of the smart central control screen, thereby instructing the user to perform an NFC "touch and go" operation. Subsequently, if the smart central control screen detects that the smart switch is close to the NFC sensing area, it can write the scene to be configured into the smart switch. During the scene writing process, the smart central control screen can display the scene writing animation shown in screen 903 in Figure 9 (c).
[0214] In some embodiments, if no scene is written into the smart switch, in response to a user instruction to write a scene (such as an NFC "touch and pay" operation), the smart central control screen writes the scene to be configured into the blank smart switch. Alternatively, if a scene is already configured in the smart switch, in response to a user instruction to write a scene (such as an NFC "touch and pay" operation), the smart central control screen writes the scene to be configured into the smart switch, overwriting the scene previously written into the smart switch.
[0215] In some embodiments, in response to the user's instruction to write to the smart switch (such as the operation of writing to the smart switch control 53 in the interface 502 shown in Figure 5 (b)), the smart central control screen may also first display a prompt message to prompt the user to place the smart switch close to the NFC sensing area of the smart central control screen. After that, the smart central control screen obtains the NFC tag information of the smart switch, and then displays the scene configuration interface and receives the user's operation to select the scene to be configured. Then, after detecting that the user has indicated that the selection of the scene to be configured has been completed, the smart central control screen can directly write the scene to be configured selected by the user into the smart switch without prompting the user to perform the NFC "touch and pay" operation again. That is, the embodiment of the present application does not limit the order of the operation of selecting the scene to be configured and the NFC "touch and pay" operation.
[0216] Optionally, in the above implementation, the smart central control screen first detects the NFC "touch and go" operation, then the smart central control screen can determine whether the scene has been configured in the smart switch. In the case that the scene has been configured in the smart switch, the smart central control screen can obtain the information of the scene configured in the smart switch. Then, when the smart central control screen displays the scene configuration interface, it can display the scene card corresponding to the scene configured in the smart switch in a selected state. In this way, the user can determine whether the scene configured in the smart switch is the required scene. If the scene configured in the smart switch is the required scene, the user can directly end the scene configuration. If the scene configured in the smart switch is not the required scene, the user can also edit the scene to be configured, such as reselecting the scene to be configured. This improves the user's operability and enhances the user experience.
[0217] In some embodiments, the smart switch includes one or more buttons, and different buttons can be configured with the same or different scenes. Then, during the scene configuration process, the smart central control screen can prompt the user to select the button for the current scene to be configured.
[0218] Optionally, after the smart central control screen determines the scene to be configured selected by the user and detects the NFC "touch and go" operation, it determines that the smart switch for the current scene to be configured includes multiple buttons. Then, the smart central control screen can display a button selection interface to determine the button to which the currently acquired scene to be configured should be written.
[0219] Optionally, during the button selection process, the user may choose to configure the scene to be configured into one or more buttons.
[0220] For example, while displaying interface 902 (b) in FIG9 , the smart central control screen detects an NFC "touch and go" operation, obtains the NFC tag information of the smart switch, and determines, based on the device information therein, that the smart switch includes three buttons. Then, as shown in interface 1001 in FIG10 , the smart central control screen may display the icon of the smart switch and a button selection control. The user can use the button selection control on interface 1001 to select the button for the scene to be configured. If the smart central control screen detects the user's operation on button 1 control 101 and the user's operation on the confirmation control 102, it may determine that the user has instructed to write the scene to be configured to button 1 of the smart switch. The smart central control screen may then write the scene to button 1 of the smart switch and display the animations for the "Warm Home" and "Safe Leave Home" scenes, as shown in interface 903 (c) in FIG9 . That is, after the scenes are written, the user can trigger the "Warm Home" and "Safe Leave Home" scenes, respectively, by controlling the different states of button 1 (e.g., on / off state, or single / double clicks).
[0221] As another example, when the smart central control screen is displaying the interface 502 shown in FIG5 (b), it detects the user's operation of writing the smart switch control 53, displays a prompt message, and prompts the user to bring the smart switch close to the NFC sensing area of the smart central control screen. Afterwards, the smart central control screen detects the NFC "touch and go" operation, obtains the NFC tag information of the smart switch, and determines that the smart switch includes 3 buttons based on the device information therein. Then, the smart central control screen can display the interface 1001 shown in FIG10. On the interface 1001, after the smart central control screen determines the button selected by the user, the smart central control screen can display the scene configuration interface again, and receive the user's operation of selecting the scene to be configured, and write the scene to be configured selected by the user into the determined smart switch button.
[0222] In some embodiments, during the scene configuration process, the smart central control screen can display details of the scene to be configured in response to user operations, thereby helping the user understand the scene to be configured. Optionally, the details of the scene to be configured may include, for example, the scene triggering conditions, the smart home devices controlled after the scene is triggered, and the operations performed by the corresponding smart home devices after the scene is triggered.
[0223] For example, as shown in interface 1101 in FIG11 (a), when the smart central control screen receives the user's selection of the scene to be configured, it detects the user's long press operation on the warm home scene card 111 and determines that the user needs to view the details of the warm home scene. Then, the smart central control screen can display interface 1102 as shown in FIG11 (b). On interface 1102, the smart central control screen can display the details of the warm home scene. For example, the warm home scene includes turning on the ceiling light, air conditioner, and speaker in the living room after clicking the smart switch. Optionally, on interface 1102, the smart central control screen can display the logo, name, icon, nickname, etc. of the smart home device corresponding to the scene to be configured, so that the user can distinguish the corresponding smart home device. Afterwards, if the smart central control screen detects the user's operation on the confirmation control 112, it can redisplay interface 1101 as shown in FIG11 (a) to receive the user's operation of selecting and viewing other scenes to be configured.
[0224] In some embodiments, during the scene configuration process, the smart central control screen can display an editable interface of the scene to be configured in response to user operations, thereby facilitating the user to edit the scene to be configured.
[0225] For example, as shown in interface 1201 in Figure 12 (a), while receiving a user's selection of a scene to be configured, the smart central control screen detects a long press on the "Warm Home" scene card 121 and determines that the user wishes to view the details of the "Warm Home" scene. The smart central control screen may then display interface 1202 as shown in Figure 12 (b). In interface 1202, the smart central control screen may display the details of the "Warm Home" scene. Subsequently, if the smart central control screen detects a user operation on the edit control 122 and determines that the user has instructed to edit the "Warm Home" scene, it may display interface 1203 as shown in Figure 12 (c) to receive the user's edit operation on the scene to be configured. For example, if the smart central control screen detects a user operation on control 123, it may edit the trigger conditions corresponding to the "Warm Home" scene. For another example, if the smart central control screen detects a user operation on the delete control 124, it may delete the operable smart home device (e.g., a ceiling light) corresponding to the "Warm Home" scene, meaning that the "Warm Home" scene no longer includes the operation of turning on the ceiling light by clicking a smart switch. For example, the smart central control screen detects the user's operation of the Continue Add control 125 and may add smart home devices corresponding to the Sweet Home scene. Subsequently, the smart central control screen detects the user's operation of the Save control 126 and may save the current scene, displaying interface 1204 as shown in Figure 12(d). On interface 1204, the smart central control screen may display the user-edited scene as selected, such as displaying the Sweet Home scene card 121 as selected.
[0226] As another example, as shown in interface 1301 in Figure 13 (a), the smart central control screen may also receive user operations to add or delete scenes while receiving the user's selection of a scene to be configured. For example, after the smart central control screen detects the user's operation on the edit control 131, it may display interface 1302 as shown in Figure 13 (b). On interface 1302, the smart central control screen may receive the user's scene editing operation. Afterwards, the smart central control screen detects the user's operation on the save control, saves the current scene, and displays interface 1303 as shown in Figure 13 (c). On interface 1303, the smart central control screen may display the user's newly added scene as selected and display it at the beginning of the interface. For example, the smart central control screen displays a selected custom scene card 133 at the beginning of the interface to facilitate the user to determine the custom scene to be configured. For another example, the smart central control screen detects the user's operation of long pressing and moving the scene card to the upper or lower edge of the display screen, and may determine that the user instructs to delete the scene card. In this case, the smart central control screen may delete the scene to be configured corresponding to the scene card.
[0227] In some embodiments, the smart central control screen can display the scene configuration of the smart switch in response to user operations, thereby making it easier for users to understand the scene configuration of the smart switch.
[0228] For example, as shown in interface 1401 in FIG14(a), the smart central control screen detects the user's operation on control 141 and determines that the user instructs to operate the smart switch. The smart central control screen may display interface 1402 as shown in FIG14(b). The menu bar 142 corresponding to control 141 is displayed on interface 1402. The smart central control screen detects the user's operation on the read smart switch control 143 displayed in menu bar 142 and determines that the user instructs to read the details of the smart switch. Then, the smart central control screen may display interface 1403 as shown in FIG14(c). On interface 1403, the smart central control screen may display a prompt message to prompt the user to place the smart switch close to the NFC sensing area of the smart central control screen. Afterwards, if the smart central control screen detects the user's NFC "touch and pay" operation, it may read the NFC tag information of the smart switch, and thereby determine whether the smart switch has been configured with a scene and the details of the configured scene based on the device information therein.
[0229] For example, in response to the user's NFC "touch and pay" operation, the smart central control screen determines that the smart switch has not yet been configured with a scene. Then, the smart central control screen can display interface 1501 as shown in Figure 15, showing the details of the smart switch on interface 1501 to prompt the user that the smart switch is a blank smart switch waiting to be written with a scene.
[0230] For another example, in response to a user's NFC "touch and go" operation, the smart central control screen determines that the smart switch has been configured with a scene, which is a warm home scene. The smart central control screen may then display interface 1601, as shown in FIG16 , showing details of the scene configured for the smart switch. As indicated by reference numeral 161 , the smart central control screen may display the name of the smart switch and the name of the configured scene. As indicated by reference numeral 162 , the smart central control screen may display the space to which the smart switch's configured scene applies and the power level of the smart switch. As indicated by reference numeral 163 , the smart central control screen may display an icon for the smart switch. As indicated by reference numeral 164 , the smart central control screen may display the triggering conditions for the configured scene for the smart switch. As indicated by reference numeral 165 , the smart central control screen may display the identifier and name of the configured scene for the smart switch. It should be understood that the details interface for the configured scene for the smart switch, as shown in interface 1601 , may display more or less information, and this is not limited in this embodiment of the present application.
[0231] For example, in response to a user's NFC "touch and pay" operation, the smart central control screen determines that the smart switch has two configured scenes, including a warm home scene and a safe home scene. The smart central control screen may then display interface 1701, as shown in FIG17 , showing the scene details configured for the smart switch. As indicated by reference numeral 171 , the smart central control screen may display the name of the smart switch and the names of the configured scenes. If the scene name is too long and the current display area is insufficient to display the entire scene name, the smart central control screen may indicate that the scene name is not fully displayed using "...".
[0232] For example, in response to a user's NFC "touch and pay" operation, the smart central control screen determines that the smart switch includes multiple buttons and can determine the scene configuration of each button. The smart central control screen can then display interface 1801 as shown in Figure 18, which displays the scene details of each button configuration of the smart switch. For example, the smart switch includes button 1, button 2, and button 3, where the scenes configured for button 1 are a warm home scene and a safe departure scene, the scene configured for button 2 is a whole-home dehumidification scene, and button 3 has no scene configuration.
[0233] In some embodiments, the smart central control screen can display the battery status of the smart switch while displaying the scene configuration details of the smart switch. If the remaining battery power of the smart switch falls below a preset power threshold, a low battery warning can be displayed to avoid the problem of smart switch scene triggering failure due to insufficient battery.
[0234] For example, as shown in interface 1901 in Figure 19, the smart central control screen displays the scene configuration details of the smart switch. As indicated by reference numeral 191, the remaining battery level of the smart switch is 10%, which is below the preset battery threshold, and a low battery indicator 192 may be displayed. Optionally, if the smart central control screen detects a user's action in response to low battery indicator 192, it may display battery replacement instructions or charging instructions for the smart switch to assist the user in replacing the smart switch battery or charging the smart switch so that the smart switch can subsequently execute the corresponding scene.
[0235] In some embodiments, the smart central control screen may also edit the scene of the smart switch in response to user operations while displaying the scene configuration details of the smart switch.
[0236] For example, while displaying interface 1403 (c) in Figure 14 , the smart central control screen detects a user's NFC "touch and go" operation. The screen can then read the NFC tag information of the smart switch, determine the scene configuration details for the smart switch, and display interface 2001 (a) in Figure 20-1 . Subsequently, the smart central control screen detects a user's operation to edit the scene of the smart switch (e.g., operating the editing control 201 or operating the "Warm Home" scene card). The screen can then display interface 2002 (b) in Figure 20-1 . In interface 2002, the smart central control screen can display the currently configured scenes for the smart switch. For example, if interface 2001 indicates that the smart switch has been configured with the "Warm Home" scene, the smart central control screen can display the "Warm Home" scene card in the selected state in interface 2002. Furthermore, in interface 2002, the smart central control screen can receive the user's scene editing operation for the smart switch. The various implementations of scene editing operations for the smart switch can be found in the corresponding embodiments above and are not further elaborated here.
[0237] For example, as shown in interface 2003 in FIG20-2 (a), the smart central control screen detects the user's operation on the confirmation control 202 and determines that the scenes to be configured selected by the user include a warm home scene and a safe leaving home scene. Then the smart central control screen can display interface 2004 as shown in FIG20-2 (b), and display the scene writing effects of the warm home scene and the safe leaving home scene on interface 2004. Optionally, if the warm home scene has been configured in the smart switch, the smart central control screen can also only display the scene writing effects of the unconfigured safe leaving home scene on interface 2004; or, display the scene writing effects of the warm home scene and the safe leaving home scene, but no longer write the warm home scene repeatedly. Afterwards, the smart central control screen can display interface 2005 as shown in FIG20-2 (c), and display the scene details of the smart switch configured after the scene editing on interface 2005, such as the scenes configured in the smart switch include a warm home scene and a safe leaving home scene.
[0238] In some embodiments, the smart central control screen can also directly trigger writing to or reading from the smart switch by detecting the user's NFC "touch and go" operation, thereby further reducing user operations and simplifying user operation difficulty.
[0239] Exemplarily, when the smart central control screen is displaying the interface 501 shown in (a) of FIG5 , it detects the user's NFC "touch and pay" operation, and can determine whether to trigger the writing of the smart switch corresponding to the space of the current interface or trigger the reading of the smart switch. Optionally, in the implementation method of triggering the writing of the smart switch, the smart central control screen responds to the user's NFC "touch and pay" operation, and can also first display the room selection interface to prompt the user to select the space for the smart switch to be configured with the scene. Afterwards, the smart central control screen displays the scene card selection interface corresponding to the space selected by the user, so that the user can select the scene to be configured of the smart switch in the current space. In this way, the user can trigger the scene configuration of the smart switch on any interface of the smart central control screen, without having to first select the interface corresponding to the space to which the smart switch needs to be added on the smart central control screen, and then perform the NFC "touch and pay" operation, which further simplifies the user operation.
[0240] If the smart central control screen determines that the smart switch is a blank smart switch and no scene has been written, the smart central control screen may display an interface 503 as shown in FIG. 5( c ) to receive a scene editing operation from the user.
[0241] Alternatively, if the smart central control screen determines that a scene has been written to the smart switch, the smart central control screen may display the scene configuration details interface for the smart switch, such as any of the scene configuration details interfaces shown in Figures 16-19.
[0242] Alternatively, the smart central control screen directly displays the interface 2001 shown in (a) of Figure 20-1, on which the smart central control screen provides an editing control 201. The user can use the editing control 201 to add scenes to blank smart switches, or edit scenes of smart switches that have been configured with scenes.
[0243] In some embodiments, different users can configure the same smart switch to correspond to different scenarios. For example, if the smart switch has a fingerprint recognition function, the smart switch can use the fingerprint recognition function to determine the current user's identity. Then, through local capabilities or through the collaboration of other devices, it can determine the smart switch scenario corresponding to the user identity or read the smart switch scenario corresponding to the user identity. In this way, different users can use the same smart switch to achieve different smart switch scenarios, further improving the user experience.
[0244] For example, as shown in interface 803 in (c) of Figure 8, the smart central control screen may display interface 2101 as shown in Figure 21 during the process of writing the smart switch scene to prompt the user to enter the fingerprint. During this process, the user can enter the fingerprint through the smart switch, and the smart switch can send the collected fingerprint to the smart central control screen. Then, the smart central control screen can establish a correspondence between the acquired user fingerprint and the smart switch and the scene to be configured. Therefore, when the user subsequently operates the smart switch, the smart switch can send the collected fingerprint to the smart central control screen (or the whole house hub), and the smart central control screen can determine the triggered scene based on the smart switch and the user's fingerprint.
[0245] As another example, when the smart central control screen detects a user's NFC "touch and pay" operation while displaying interface 1403 shown in Figure 14(c) (i.e., while reading a smart switch scene), it may display interface 2101 shown in Figure 21 to prompt the user to enter their fingerprint. During this process, the user can enter their fingerprint through the smart switch, and the smart switch can send the collected fingerprint to the smart central control screen. The smart central control screen then determines the scene corresponding to the user's fingerprint in the smart switch and displays the detailed interface for that scene.
[0246] It should be understood that the smart central control screen can also determine the user's identity through other means, which are not limited in the present embodiment. For example, the smart central control screen can determine the user's identity through a camera on a smart switch or in a smart home system. In another example, the smart central control screen can determine the user's identity through other smart home devices in the smart home system that are equipped with user identity recognition functions.
[0247] In some embodiments, after configuring a smart switch, the smart central control screen can send the device information, configured scene information, user identity information, and other information of the smart switch to the whole-house hub, which then manages the scenes of the smart switch. Subsequently, when the smart switch detects a user operation, it can send a signal to the whole-house hub, which can determine the triggered scene based on the device information carried in the signal.
[0248] The preceding section describes the scene configuration process for the smart switch. The following section describes the registration process for the smart switch in detail.
[0249] For example, Figure 22 is a schematic diagram of a smart switch registration process provided by an embodiment of the present application. As shown in Figure 22, the process includes the following steps.
[0250] S2201. The smart central control screen obtains the NFC tag information of the smart switch.
[0251] The NFC tag information includes the device information of the smart switch, such as the device model, device name, button information, signal type, and other information of the smart switch.
[0252] For example, in the scenario shown in FIG8 , during the process of writing the scene to be configured, the smart central control screen detects the user's NFC "touch and pay" operation and can obtain the NFC tag information of the smart switch.
[0253] S2202, smart switch wakeup.
[0254] In some embodiments, the smart switch can be directly awakened in response to the user's NFC "touch" operation.
[0255] It should be noted that the embodiment of the present application does not limit the execution order of step S2201 and step S2202. In response to the same NFC "touch and go" operation, the smart central control screen obtains the NFC tag information of the smart switch, and the smart switch is awakened.
[0256] S2203: The smart central control screen determines that the smart switch is not registered. If so, step S2204 may be executed; if not, step S2211 may be executed.
[0257] In some embodiments, the smart central control screen can determine whether the smart switch has been registered based on the device information in the NFC tag information, such as whether the scene corresponding to the device information has been bound. If the smart central control screen determines that the smart switch is not registered based on the NFC tag information, it can complete the registration of the smart switch through steps S2204-S22010 below, and then execute step S2211. If the smart central control screen determines that the smart switch is registered based on the NFC tag information, it can directly execute step S2211.
[0258] S2204. The smart switch sends a distribution network broadcast to the smart central control screen.
[0259] In some embodiments, after detecting a user's NFC "touch and go" operation, the smart switch may also trigger the acquisition of registration information from a local or other device. If the smart switch determines that it is not registered, it may send a network configuration broadcast to trigger the registration process. If the smart switch determines that it has already been registered, it may no longer send a network configuration broadcast. In other words, the smart switch may also execute step S2203 described above.
[0260] Accordingly, after the smart central control screen determines that the smart switch is not registered, it can receive the network configuration broadcast sent by the smart switch to trigger the registration process of the smart switch. Alternatively, after the smart central control screen determines that the smart switch is registered, it can no longer receive the network configuration broadcast sent by the smart switch.
[0261] Optionally, the smart central control screen may not determine whether the smart switch is registered (i.e., not execute step S2203 above), but instead trigger the smart switch registration process after receiving the network configuration broadcast from the smart switch. If the smart central control screen does not receive the network configuration broadcast from the smart switch within a preset time after obtaining the NFC tag information, it may directly trigger the execution of step S2211 below, i.e., it is assumed that the smart switch has been registered. Alternatively, the smart central control screen receives the indication information sent by the smart switch and determines the registration status of the smart switch based on the indication information.
[0262] S2205. Establish a Bluetooth connection between the smart central control screen and the smart switch.
[0263] In some embodiments, after receiving the network configuration broadcast from the smart switch, the smart central control screen can exchange information with the smart switch to establish a Bluetooth connection. For example, the smart central control screen and the smart switch establish a Bluetooth Low Energy (BLE) connection based on the Generic Attribute (GATT) protocol.
[0264] Among them, the detailed process of the Bluetooth establishment process can be found in the existing technology, and the embodiments of the present application do not limit this.
[0265] S2206. The smart central control screen sends an agent registration request to the whole-house hub.
[0266] In some embodiments, after the smart central control screen determines that a Bluetooth connection has been established with the smart switch, it can send a proxy registration request to the whole-house hub to register on behalf of the smart switch. Correspondingly, the whole-house hub receives the proxy registration request sent by the smart central control screen.
[0267] Optionally, the proxy registration request carries device information of the smart switch.
[0268] S2207. The whole-house hub sends a device identification allocation instruction to the smart central control screen.
[0269] In some embodiments, the whole-home hub registers the smart switch based on the proxy registration request, assigns the smart switch a device identifier in the current smart home system, and generates a device identifier assignment instruction. The whole-home hub then sends the device identifier assignment instruction to the smart central control screen, which carries the device identifier assigned to the smart switch. In response, the smart central control screen receives the device identifier assignment instruction sent by the whole-home hub.
[0270] Optionally, the device identification of the smart switch is used in the subsequent smart home device control process for the whole-house hub or smart home central control screen to determine that the device sending the communication message is a smart switch.
[0271] S2208. The intelligent central control screen sends a device identification to the intelligent switch.
[0272] In some embodiments, upon receiving a device identification allocation instruction, the smart central control screen obtains the device identification carried therein. The smart central control screen then sends the device identification to the smart switch. In response, the smart switch receives the device identification sent by the smart central control screen.
[0273] S2209: The smart central control screen negotiates a key with the smart switch.
[0274] In some embodiments, after receiving the device identification, the smart switch can trigger a key negotiation process with the smart central control screen to obtain the smart switch key.
[0275] Optionally, the smart switch key is used to encrypt communication messages during subsequent communication between the smart switch and other devices to ensure communication security.
[0276] S2210, the smart central control screen sends the smart switch key to the whole house hub.
[0277] In some embodiments, after the smart central control screen completes key negotiation with the smart switch, it can send the determined smart switch key to the whole-house hub, thereby completing the registration of the smart switch. Accordingly, the whole-house hub can receive the smart switch key sent by the smart central control screen. Then, in the subsequent communication process between the whole-house hub and the smart switch, the smart switch key can be used to ensure the security of the communication message. For example, the smart switch key can be used to encrypt or decrypt the communication message, prevent the communication message from being tampered with, prevent replay, and perform identity legitimacy verification.
[0278] In some embodiments, during a scene triggering process, the smart switch may send a signal to at least one of the following devices: a smart central control screen, a Bluetooth gateway, a home hub, and the smart home device corresponding to the scene, to trigger the scene. Accordingly, upon confirming that the smart switch has been registered, the smart central control screen may send the registration information to the aforementioned corresponding device. This allows the corresponding device to subsequently receive the signal during the scene triggering process, confirming that the smart switch has been registered and is a device in the current smart home system, and to trigger the corresponding scene.
[0279] In some embodiments, in the smart switch registration process described in steps S2204 to S2210 above, the smart central control screen can communicate with other devices through a Bluetooth gateway to complete the registration of the smart switch.
[0280] For example, after obtaining the NFC tag information of the smart switch, the smart central control screen can send the device information included therein to the Bluetooth gateway. Afterwards, the Bluetooth gateway can determine to receive the distribution network broadcast sent by the smart switch based on the device information. Afterwards, the Bluetooth gateway can establish a Bluetooth connection with the smart switch and send an indication message to the smart central control screen, which is used to indicate that the Bluetooth gateway has established a Bluetooth connection with the smart switch. Afterwards, the smart central control screen sends a proxy registration request to the whole-house hub through the Bluetooth gateway, and obtains the device identification allocation indication sent by the whole-house hub through the Bluetooth gateway. Afterwards, the smart central control screen sends the device identification to the smart switch through the Bluetooth gateway, and negotiates the key with the smart switch through the Bluetooth gateway. Afterwards, the smart central control screen sends the negotiated key to the whole-house hub through the Bluetooth gateway. Among them, the specific implementation method of each process can refer to the detailed content of the smart switch registration process described in steps S2204-S2210 above, which will not be repeated here. In some embodiments, in the smart switch registration process described in steps S2204 to S2210 above, the smart central control screen can determine the currently logged-in account information during the process of proxy smart switch registration, and then register the smart switch to the corresponding account information.
[0281] S2211, configure smart switch scenes on the smart central control screen.
[0282] In some embodiments, after determining that the smart switch has been registered, the smart central control screen can perform scene configuration of the smart switch.
[0283] For example, as shown in interface 803 in Figure 8(c), the smart central control screen determines the registration status of the smart switch while displaying the scene writing effect. If the smart switch is not registered, the smart switch registration is completed through the above steps S2204-S2210. After confirming that the smart switch registration is complete, the scene writing begins.
[0284] In this way, users can complete the registration of smart switches with a simple "touch and hold" operation. Compared with the existing technology, which requires users to perform multiple operations on the smart central control screen and smart switch to complete the registration of smart switches, this effectively simplifies the registration process of smart switches, reduces user operation difficulty, and improves the user experience.
[0285] It should be understood that the above embodiments use NFC "touch and pay" as an example to describe the registration process and scene configuration process of the smart switch. The smart central control screen can also simplify the registration process and scene configuration process of the smart switch through other short-range communication technologies or electronic tags.
[0286] For example, the smart central control screen can establish a Bluetooth or Wi-Fi connection with the smart switch through the proximity discovery function of Bluetooth or Wi-Fi, and complete the registration and scene configuration of the smart switch based on the Bluetooth or Wi-Fi connection, which can also simplify user operations. Alternatively, the smart central control screen can obtain the device information of the smart switch by scanning the QR code preset in the smart switch, complete the registration and scene configuration of the smart switch, and also simplify user operations.
[0287] It should also be understood that the above embodiments use the "touch" operation to trigger the registration process and scene configuration process as an example. Optionally, other user operation methods can also be defined to trigger the above processes, such as "lean" and "shake". In cases where other user operation methods are used, the smart central control screen interface may not display the smart switch icon indicated by the reference numeral 84 in Figure 8 (c) and the corresponding semicircular area, or may display other suitable visual presentation areas or controls.
[0288] Optionally, Figure 23 is a flow chart of a configuration method provided in an embodiment of the present application. As shown in Figure 23, the method includes the following steps.
[0289] S2301: The first device determines, based on the acquired information of the second device, that the second device is close to or in contact with the first device.
[0290] Optionally, the first device is, for example, a smart central control screen, and the second device is, for example, a smart switch.
[0291] Optionally, the first device may obtain information about the second device based on short-range communication technology. For example, the information of the second device may be NFC tag information. In response to an NFC "touch and pay" operation, the first device may obtain the NFC tag information of the second device. The contact of the second device with the first device may be a short contact within a preset time, or a long contact exceeding a preset time. For another example, the information of the second device may include a Bluetooth signal or a Wi-Fi signal of the second device. The first device may determine whether the second device is close to the first device based on changes in the strength of the Bluetooth signal or Wi-Fi signal of the second device.
[0292] For example, as shown in interface 802 in FIG8( b ), the first device (such as a smart central control screen) detects that the second device (such as a smart switch) contacts the NFC sensing area, and can obtain the NFC tag information of the second device.
[0293] S2302: In response to the approach or contact of the second device, the first device obtains a first scene corresponding to a first operation performed by the user on a scene configuration interface of the first device, where the first scene is associated with an action of controlling at least one third device.
[0294] The first operation may be an operation performed by the user on the scene configuration interface, or a series of operations performed by the user on the scene configuration interface. Optionally, the third device is, for example, a smart home device.
[0295] In some embodiments, the first device displays a scene configuration interface for displaying scene cards. In response to a first operation of a user on the scene configuration interface, a first scene corresponding to a first scene card selected by the user is first determined.
[0296] Optionally, the scene card can also be described as a scene component, a scene control, etc., which is not limited in the embodiments of the present application.
[0297] Optionally, the scene configuration component is displayed on the first interface, which is used to configure devices in the first space. The scene corresponding to the first scene card is the scene that can be configured on the second device in the first space. In this way, the second device can configure different scenes in different spaces, thereby enriching user experience.
[0298] For example, as shown in interface 601 in (a) of FIG6 , interface 601 is a scene configuration interface, and the first device displays multiple scene cards corresponding to multiple scenes that can be configured by the second device in the living room space (such as the first space). Afterwards, the first device detects the user's operation on the warm home scene card 62, determines that the user has chosen to add a warm home scene, and the first device displays interface 602 as shown in (b) of FIG6 . Afterwards, the first device detects the user's operation on the safe leaving home scene card 63, determines that the user has chosen to add a safe leaving home scene, and the first device displays interface 603 as shown in (c) of FIG6 . Afterwards, the first device detects the user's operation on the confirmation control 61, and can determine that the user has completed the selection of the scene card. For example, the first scene card includes a warm home scene card and a safe leaving home scene card, and the first scene includes a warm home scene and a safe leaving home scene.
[0299] In this way, by pre-configuring the scene, the user can complete the scene configuration of the second device through a simple selection operation, effectively reducing the difficulty of scene configuration.
[0300] In some examples, the first device may display a scene configuration interface in response to the user's operation on the scene configuration component; or, in response to the approach or contact of the second device, display the scene configuration interface. That is, the user can indicate the need to open the scene configuration interface through the control selection on the display interface of the first device, thereby indicating the intention to configure the second device scene; or the first device may confirm the user's intention to configure the second device scene based on the approach or contact of the second device, and then automatically pop up the scene configuration interface. Optionally, the first device can also obtain the scene writing status of the second device from the local, second device or other device when the second device approaches or contacts, and pop up different associated interfaces according to different scene writing statuses. For example, when it is determined that the second device has written a scene, the scene details interface pops up, and when it is determined that the second device has not written any scene, the scene configuration interface pops up, etc.
[0301] For example, as shown in interface 501 in Figure 5(a), the first device detects a user operation on control 51 and determines that the user is instructing to operate the second device. The first device may display interface 502 as shown in Figure 5(b). A menu bar 52 corresponding to control 51 is displayed on interface 502. The first device detects a user operation on a smart switch control 53 written into menu bar 52 and may display interface 503 as shown in Figure 5(c). This interface 503 is a scene configuration interface. Subsequently, in response to the second device approaching or contacting the first device, the first device may write the scene selected by the user on the scene configuration interface to the second device.
[0302] As another example, in response to the user's instruction to write to the second device (such as the operation of writing the smart switch control 53 in the interface 502 shown in Figure 5 (b)), the first device may also first display a prompt message to prompt the user to bring the second device close to the NFC sensing area of the first device. After that, the first device obtains the information of the second device in response to the approach or contact of the second device, and then displays the scene configuration interface and receives the user's operation to select the scene to be configured.
[0303] In some examples, labels are displayed on the first scene cards, and the labels are used to indicate the order in which the user selects the scene cards, and the order matches the order in which the scenes are written to associate the first scene with the second device.
[0304] In some examples, the first device is preset with a scene configuration quantity threshold (e.g., a first threshold) for the second device, and the scene configuration quantity threshold is used to indicate the maximum number of scenes that can be configured on the second device. For example, if the scene configuration quantity threshold is 2, then the second device determines that the second device can be configured with a maximum of 2 scenes. Accordingly, the number of first scene cards that the user can select on the scene configuration interface is less than or equal to the first threshold.
[0305] For example, as shown in interface 603 in FIG6(c), the first device displays label 1 on the currently selected "Warm Homecoming" scene card 62. Subsequently, the first device detects the user's operation on the "Safe Away From Home" scene card 63, determines that the user has selected to add a "Safe Away From Home" scene, and then displays label 2 on the "Safe Away From Home" scene card 63 to indicate that the number of scenes to be configured currently selected by the user is 2, and that the scene configuration order is to configure the "Warm Homecoming" scene first, followed by the "Safe Away From Home" scene.
[0306] In some embodiments, in response to a user's operation on a second scene card in the scene cards, scene information of a second scene corresponding to the second scene card is displayed.
[0307] For example, as shown in interface 1201 in FIG12(a), while displaying the scene configuration interface, the first device detects a user long-pressing the Warm Home Scenario card 121 and determines that the user wants to view details of the Warm Home Scenario. The first device may then display interface 1202 as shown in FIG12(b). In interface 1202, the first device may display details of the Warm Home Scenario.
[0308] In this way, during the scene configuration process, the first device can display scene details in response to user operations, thereby facilitating the user to understand the application of the scene and determine whether the scene needs to be selected.
[0309] In some embodiments, the first device edits the first scene corresponding to the first scene card in response to the user's second operation on the scene configuration interface.
[0310] For example, as shown in interface 1202 in (b) of FIG12 , the first device detects the user's operation on the editing control 122 and determines that the user instructs to edit the warm home scene. Interface 1203 as shown in (c) of FIG12 may be displayed to receive the user's editing operation on the configuration scene.
[0311] In this way, during the scene configuration process, the first device can edit the scene in response to the user operation, so that the edited scene better meets the user's usage needs.
[0312] S2303: The first device associates the first scene with the second device.
[0313] In some embodiments, the first device sends the device identification of the second device to the server or locally stores the device control information corresponding to the device identification of the second device; or, the first device sends the device identification of the second device to the server or locally stores the scene identification of the first scene associated with the second device.
[0314] Optionally, the server is, for example, a whole-house hub.
[0315] Optionally, the device control information includes operation code information and / or operation events.
[0316] Optionally, the operation code information includes at least one operation code, and the at least one operation code is used to indicate one or more of a key type, a key index, and a key operation type of a key of the second device. The key type includes, for example, a single key, a multi-key key, etc. The key index indicates the number of keys configured in the second device, such as key 1, key 2, key 3, etc. The key operation type includes, for example, single click, double click, and long press.
[0317] For example, the first device sends the device identification of the second device and the device control information corresponding to the device identification of the second device to the server. In this way, the server can associate the received device identification with the device control information. Subsequently, after receiving the operation code sent by the second device, the server can determine the device identification of the second device that sent the operation code, and then determine the device control information corresponding to the device identification to trigger the corresponding operation event. For example, in response to a single-click signal sent by the second device (such as an operation code corresponding to a single-click operation), the second device determines that the corresponding triggered operation event is to turn on the light, then the second device can send an operation instruction to the light to trigger the light to turn on.
[0318] For example, the first device locally stores the device identifier of the second device and the device control information corresponding to the device identifier of the second device. This allows the first device to directly associate the device identifier with the device control information. Subsequently, upon receiving a control signal from the second device, the first device can determine the device identifier of the second device that sent the control signal, and further determine the device control information corresponding to the device identifier, thereby triggering a corresponding operation event.
[0319] For example, a server may have pre-set scene information for multiple scenarios. The first device then sends the device identifier of the second device and the scene identifier of the first scene associated with the second device to the server. Upon receiving the device identifier and scene identifier sent by the first device, the server can determine the scene information corresponding to the first scene based on the scene identifier, and then associate the device identifier with the corresponding first scene to facilitate subsequent triggering of the corresponding scene.
[0320] For another example, if the first device has scene information of multiple scenes preset in it, the first device can directly determine the scene information of the corresponding first scene according to the scene identifier, and then associate the device identifier with the corresponding first scene to facilitate subsequent triggering of the corresponding scene.
[0321] In this way, the communication system can include multiple combinations and interaction modes between different devices, meeting the flexible combination requirements of the communication system. Moreover, in different combinations and interactions, the scenario configuration requirements of the second device can be realized, thereby meeting the user's needs.
[0322] In some examples, the first device sends a device identifier of the second device and device control information corresponding to the device identifier of the second device to the second device.
[0323] For example, after registering a second device, the first device can determine the second device's device identifier. Then, after determining the device control information, the first device can send the device identifier and device control information to the second device. Subsequently, upon detecting a user operation, the second device can directly determine the operation code and / or operation event corresponding to the user operation based on the device control information, and then send the operation code and / or operation event to the server to trigger control of the corresponding third device.
[0324] In this way, the device control information is directly configured to the second device, and the second device can trigger the control of the third device in response to the user operation.
[0325] In some embodiments, if the first device locally stores the device identifier of the second device and device control information corresponding to the device identifier of the second device; or if the first device locally stores the device identifier of the second device and a scenario identifier of a first scenario associated with the second device, the first device receives a first operation code sent by the second device and determines a first operation event corresponding to the first operation code. Thereafter, the first device sends first operation indication information to at least one target third device among at least one third device indicated by the first operation event.
[0326] In some examples, the second device may also receive a second operation code sent by the second device and determine a second operation event corresponding to the second operation code. Thereafter, the first device may send second operation indication information to at least one target third device (the same as or different from the third device indicated by the first operation code) among the at least one third device indicated by the second operation event.
[0327] That is, the second device can be configured with one or more buttons, and a single button can be configured with one or more button operation types. In this way, the second device can trigger the transmission of different operation codes to the first device in response to user operations, thereby enabling the second device to flexibly control the same or different third devices in different scenarios, improving the user experience.
[0328] In this way, the user can complete the scene configuration of the second device through simple operations. Compared with the prior art in which the user needs to poke the reset hole on the second device with a needle to complete the scene configuration of the second device, the configuration method provided in the embodiment of the present application can automatically complete the scene configuration of the second device through the interaction between the first device and the second device, effectively simplifying user operations, reducing user operation difficulty, reducing user learning costs, and improving user experience.
[0329] In some embodiments, the first device determines whether the second device is registered based on the acquired information about the second device. If the second device is not registered, the first device registers the second device with the server on its behalf based on the second device's information. Alternatively, if the second device is not registered, the first device sends the second device's information to a fourth device to complete the second device's registration. Optionally, the fourth device may be a Bluetooth gateway. For example, the first device sends the acquired information about the second device to the fourth device, which then registers the second device with the server on its behalf.
[0330] Optionally, the first device registers with the server on behalf of the second device and obtains a device identifier sent by the server, where the device identifier is used to identify the second device. Thereafter, the first device sends the device identifier to the second device.
[0331] Optionally, after determining that the registration of the second device is completed, the first device triggers the scenario configuration process of the second device.
[0332] In this way, the first device can automatically trigger the registration process of the second device in response to the acquired information of the second device, effectively reducing the user's operation difficulty.
[0333] In some embodiments, in response to the second device approaching or contacting again, relevant information of the first scene associated with the second device is displayed.
[0334] Optionally, the relevant information of the first scene includes one or more of the device name of the second device, the scene name of the first scene, the trigger condition of the first scene, the name of the first space, the scene identifier of the first scene, the icon of the second device, and the remaining power of the second device.
[0335] Exemplarily, in response to the user's NFC "touch and pay" operation, the first device determines that the second device has been configured with a scene, which is a warm home scene. Then, the first device may display interface 1601 as shown in Figure 16, and display the details of the scene configured by the second device on interface 1601. As shown in reference numeral 161, the first device may display the name of the second device and the name of the configured scene. As shown in reference numeral 162, the first device may display the space in which the configured scene of the second device is applied and the remaining power of the second device. As shown in reference numeral 163, the first device may display the icon of the second device. As shown in reference numeral 164, the first device may display the triggering conditions of the configured scene of the second device. As shown in reference numeral 165, the first device may display the identifier and name of the configured scene of the second device.
[0336] In this way, in response to a simple operation, the user can read the relevant information of the configured scene of the second device through the first device, thereby determining whether the scene of the second device needs to be reconfigured, effectively simplifying the user's operation difficulty.
[0337] In some embodiments, when the second device includes multiple buttons, the first scene is the configuration scene of the target button among the multiple buttons. In response to the second device approaching or contacting again, the second device not only displays the details of the scene configured for the target button, but also displays the details of the scenes configured for other buttons among the multiple buttons other than the target button.
[0338] For example, in response to the user's NFC "touch and pay" operation, the first device determines that the second device includes multiple buttons and can determine the scene configuration of each button. Then, the first device can display interface 1801 as shown in Figure 18, which displays the scene details of each button configuration of the second device on interface 1801. For example, the first device includes button 1 (such as the target button), button 2, and button 3, where the scenes configured for button 1 are a warm home scene and a safe departure scene, the scene configured for button 2 is a whole-house dehumidification scene, and button 3 is not configured with a scene.
[0339] In some embodiments, during the process of associating the first scene with the second device, the first device displays a scene writing animation, and the scene writing animation includes presenting on the display interface of the first device an animation of absorbing the scene display component corresponding to the first scene into the placement area on the display interface of the second device.
[0340] For example, as shown in interface 803 in FIG8(c), when the first device associates the first scene with the second device, a scene writing animation is displayed. The scene animation includes an animation of the scene card moving toward or being absorbed into the icon display area where the icon of the second device is located. The icon display area of the second device is, for example, a semicircular area as shown in interface 803.
[0341] In this way, by displaying the scene writing animation, the user's interest in waiting for the scene to be written is increased, and the user is helped to understand the scene being written.
[0342] In some embodiments, the first device determines, based on information from the second device, that the second device includes multiple buttons. The first device displays a second interface, which is configured to display a prompt message instructing a user to select a target button for a scene to be configured from the multiple buttons. Subsequently, the first device, in response to a third user operation on the second interface, determines the target button and associates the first scene with the target button on the second device.
[0343] For example, a first device detects an NFC "touch and go" operation, obtains the NFC tag information of a second device, and determines based on the device information therein that the second device includes three buttons. The first device may then display interface 1001 shown in Figure 10. On interface 1001, after the first device determines the button selected by the user, it may then display the scene configuration interface, receive the user's selection of a scene to be configured, and write the user's selected scene to the determined button on the second device.
[0344] In this way, when the second device includes multiple buttons, the first device can also configure different button scenes in response to user operations, so that the user can control the third device in multiple scenes through one second device.
[0345] In some embodiments, the first device obtains the first identity information of the user and then associates the first scenario, the second device, and the first identity information based on the information of the second device.
[0346] For example, as shown in interface 803 in (c) of Figure 8, when the first device is writing the scene of the second device, it can display interface 2101 as shown in Figure 21 to prompt the user to enter the fingerprint. During this process, the user can enter the fingerprint through the second device, and the second device can send the collected fingerprint to the first device. Then, the first device can establish a correspondence between the acquired user fingerprint (i.e., the first identity information) and the second device and the scene to be configured. Therefore, when the user subsequently operates the second device, the second device can send the collected fingerprint to the first device, and the first device can determine the triggered scene based on the second device and the user's fingerprint.
[0347] In this way, different users can trigger different second device scenarios through the same second device, further improving the user experience.
[0348] Optionally, the first device can also execute the steps and functions performed by the smart central control screen in the above embodiments, the second device can also execute the steps and functions performed by the smart switch in the above embodiments, and the server can also execute the steps and functions performed by the whole-house hub in the above embodiments, thereby realizing the configuration method provided by the above embodiments.
[0349] The configuration method provided by the embodiment of the present application is described in detail above in conjunction with Figures 5 to 23. The first device provided by the embodiment of the present application is described in detail below in conjunction with Figure 24.
[0350] In one possible design, Figure 24 is a schematic diagram of the structure of a first device provided in an embodiment of the present application. As shown in Figure 24, the first device 2400 may include a transceiver unit 2401 and a processing unit 2402. The first device 2400 may be used to implement the functions of the first device 100 (e.g., a smart central control screen) involved in the above method embodiment.
[0351] Optionally, the transceiver unit 2401 is used to support the first device 2400 to execute S2201 and S2204-S2210 in Figure 22; and / or to support the first device 2400 to execute S2302 in Figure 23.
[0352] Optionally, the processing unit 2402 is used to support the first device 2400 to execute S2203 and S2211 in Figure 22; and / or to support the first device 2400 to execute S2301, S2302, and S2303 in Figure 23.
[0353] The transceiver unit may include a receiving unit and a transmitting unit, and may be implemented by a transceiver or a transceiver-related circuit component, and may be a transceiver or a transceiver module. The operations and / or functions of each unit in the first device 2400 are respectively for implementing the corresponding processes of the configuration method described in the above method embodiment. All relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional unit. For the sake of brevity, they are not repeated here.
[0354] Optionally, the first device 2400 shown in Figure 24 may further include a storage unit (not shown in Figure 24 ) storing a program or instruction. When the transceiver unit 2401 and the processing unit 2402 execute the program or instruction, the first device 2400 shown in Figure 24 may execute the configuration method described in the above method embodiment.
[0355] The technical effects of the first device 2400 shown in FIG. 24 can refer to the technical effects of the configuration method described in the above method embodiment, and will not be repeated here.
[0356] In addition to being in the form of the first device 2400, the technical solution provided in this application may also be a functional unit or chip in the first device, or an apparatus used in conjunction with the first device.
[0357] An embodiment of the present application also provides a chip system, including: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the chip system implements the method in any of the above method embodiments.
[0358] Optionally, there may be one or more processors in the chip system. The processor may be implemented in hardware or software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.
[0359] Optionally, the memory in the chip system may be one or more. The memory may be integrated with the processor or may be provided separately from the processor, which is not limited in the embodiments of the present application. 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 provided on different chips. The embodiments of the present application do not specifically limit the type of memory or the configuration of the memory and the processor.
[0360] Exemplarily, 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 microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.
[0361] It should be understood that each step in the above method embodiment can be completed by hardware integrated logic circuits in a processor or by software instructions. The method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.
[0362] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer, the computer executes the above-mentioned related steps to implement the configuration method in the above-mentioned embodiment.
[0363] An embodiment of the present application further provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the configuration method in the above-mentioned embodiment.
[0364] In addition, embodiments of the present application further provide a device. Specifically, the device may be a component or module, and may include one or more processors and a memory connected to each other. The memory is used to store a computer program. When the computer program is executed by one or more processors, the device performs the configuration method described in each of the above method embodiments.
[0365] The apparatus, computer-readable storage medium, computer program product, or chip provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding methods provided above, and will not be repeated here.
[0366] The steps of the method or algorithm described in conjunction with the disclosure of the embodiments of the present application can be implemented in a hardware manner or can be implemented by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in a random access memory (RAM), a flash memory, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a register, a hard disk, a mobile hard disk, a read-only compact disc (CD-ROM) or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and can 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 be located in an application specific integrated circuit (ASIC).
[0367] Through the description of the above embodiments, those skilled in the art will clearly understand that for the sake of convenience and brevity, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned 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 processes of the above-mentioned systems, devices, and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0368] 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 the modules or units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of modules or units, which can be electrical, mechanical or other forms.
[0369] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0370] Computer-readable storage media include, but are not limited to, any of the following: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and other media that can store program code.
[0371] The above is only a specific embodiment of the present application, but the scope of protection of this application is not limited to this. Any changes or substitutions within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A configuration method, characterized in that: Applied to a first device, the method includes: Determining, according to the acquired information of the second device, that the second device is close to or in contact with the first device; In response to the approach or contact of the second device, acquiring a first scene corresponding to a first operation performed by a user on a scene configuration interface of the first device, where the first scene is associated with an action of controlling at least one third device; The first scene is associated with the second device.
2. The method according to claim 1, characterized in that: After associating the first scene with the second device, the method further includes: In response to the second device approaching or contacting again, relevant information of the first scene associated with the second device is displayed.
3. The method according to claim 1 or 2, characterized in that: The associating the first scene with the second device includes: Sending the device identification of the second device and the device control information corresponding to the device identification of the second device to the server or locally storing the device identification of the second device; or, The device identifier of the second device and the scene identifier of the first scene associated with the second device are sent to a server or stored locally.
4. The method according to any one of claims 1 to 3, characterized in that: The associating the first scene with the second device includes: Sending a device identification of the second device and device control information corresponding to the device identification of the second device to the second device.
5. The method according to claim 3, characterized in that: The device control information includes operation code information and / or operation events.
6. The method according to claim 5, characterized in that The operation code information includes at least one operation code, and the at least one operation code is used to indicate one or more of a key type, a key index, and a key operation type of a key of the second device.
7. The method according to claim 6, characterized in that In the case where the first device locally stores a device identifier of the second device and device control information corresponding to the device identifier of the second device; or in the case where the first device locally stores a device identifier of the second device and a scene identifier of the first scene associated with the second device, the method further includes: receiving a first operation code sent by the second device; Determine a first operation event corresponding to the first operation code; Sending operation indication information to at least one target third device among the at least one third device indicated by the first operation event.
8. The method according to any one of claims 3 to 7, characterized in that: Before sending the device identification of the second device to the server or locally storing the device identification of the second device, the method further includes: Determining whether the second device has been registered according to the acquired information of the second device; In the case where the second device is not registered, registering the second device with the server on behalf of the second device according to the information of the second device; or, In a case where the second device is not registered, information of the second device for completing registration of the second device is sent to a fourth device.
9. The method according to claim 8, characterized in that The step of registering the second device with the server on behalf of the second device according to the information of the second device includes: Obtaining a device identifier sent by the server, where the device identifier is used to indicate the second device; The device identification is sent to the second device.
10. The method according to any one of claims 1 to 7, characterized in that: The obtaining a first scene corresponding to a first operation performed by a user on a scene configuration interface of the first device includes: Display a scene configuration interface, where the scene configuration interface is used to display scene cards; In response to the first operation of the user on the scene configuration interface, the first scene corresponding to the first scene card selected by the user is determined.
11. The method according to claim 10, characterized in that Before determining, in response to the first operation of the user on the scene configuration interface, the first scene corresponding to the first scene card selected by the user, the method further includes: In response to a second operation of the user on the scene configuration interface, the first scene corresponding to the first scene card is edited.
12. The method according to claim 10 or 11, characterized in that: The associating the first scene with the second device includes: The scene writing animation effect is displayed, and the scene writing animation effect includes being presented on the display interface of the first device, and absorbing the scene display component corresponding to the first scene into the placement area of the second device on the display interface.
13. The method according to any one of claims 10 to 12, characterized in that: The display scene configuration interface includes: In response to a user's operation on a scene configuration component, displaying the scene configuration interface; or, In response to the approach or contact of the second device, the scene configuration interface is displayed.
14. The method according to any one of claims 1 to 13, characterized in that: The determining, according to the acquired information of the second device, that the second device is close to or in contact with the first device includes: According to the information of the second device acquired through any one of the communication modes of near field wireless communication NFC, Bluetooth or wireless fidelity Wi-Fi, it is determined that the second device is close to or in contact with the first device.
15. An electronic device, characterized in that: include: A processor, a memory and a display screen, wherein the memory and the display screen are coupled to the processor, the memory is used to store computer program code, and the computer program code includes computer instructions. When the processor reads the computer instructions from the memory, the electronic device executes the method as described in any one of claims 1 to 14.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises a computer program, and when the computer program is executed on an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 14.
17. A computer program product, characterized in that When the computer program product is executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Colorful backlight intelligent switch and control method thereof
CN106954310A
Visual configuration method and system for intelligent switch
CN107302622A
Intelligent equipment control method and device, storage medium and electronic equipment
CN112782990A
Intelligent switch control method and system
CN115048005A
Adaptive home and commercial automation devices, methods and systems based on the proximity of controlling elements
US20150120000A1
