Configuration method and electronic equipment
The scene configuration of smart switches is automatically completed through short-range communication technology, which solves the problem of complex user operations, simplifies the device registration and scene configuration process of smart switches, and improves the user experience.
Patent Information
- Application Number
- CN202310335773.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-01
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, simplifying user operations. The first device obtains the information of the second device, determines its proximity or contact, obtains the user's operations on the scene configuration interface, and combines the first scene with the second device. The two devices are associated to realize automatic configuration.
It effectively simplifies user operations, reduces operation difficulty, reduces learning costs, and improves user experience. Users can complete device scene configuration through simple operations.
Smart Images

Figure CN118732901A_ABST
Abstract
Description
Technical Field
[0001] 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
[0002] With the development of terminal technology, smart switches are gradually being used in scenarios such as smart homes due to their multiple functional features, safe use, and low power consumption.
[0003] However, the smart switch requires users to register the device and configure the scene before use. In this 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, which is difficult for users to operate and affects the user experience. Summary of the invention
[0004] In order to solve the above technical problems, the present application provides a configuration method and an 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 user experience.
[0005] In order to achieve the above technical objectives, this application provides the following technical solutions:
[0006] In a first aspect, a configuration method is provided, which is applied to a first device. The method includes: determining, based on information of a second device obtained, that the second device is close to or in contact with the first device. In response to the closeness or contact of the second device, obtaining a first scene corresponding to a first operation of a user on a scene configuration interface of the first device, wherein the first scene is associated with an action of controlling at least one third device. The first scene is associated with the second device.
[0007] 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.
[0008] 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 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 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.
[0009] 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.
[0010] 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, so as to determine whether it is necessary to reconfigure the scene of the second device, effectively simplifying the difficulty of user operation.
[0011] 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.
[0012] In this way, the first device can display a variety of information about the scenes configured on the second device, thereby facilitating the user to understand the scenes configured on the second device.
[0013] 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, and in response to the second device approaching or contacting again, the method also includes: displaying details of the scenes configured for other buttons among the multiple buttons other than the target button.
[0014] In this way, the user can understand the scene configuration of multiple buttons of the second device through simple operations, which reduces the user's operation difficulty and improves the user's experience.
[0015] According to the first aspect, or any implementation of the first aspect above, the method further includes: in response to a user operation, editing the first scene, and associating the edited first scene with the second device.
[0016] In this way, the user can edit the scene configured on the second device while reading the scene configured on the second device, so that the edited scene better meets the user's usage needs. In addition, the user does not need to trigger the rewriting of the scene on the second device through other operations, but can directly trigger the editing of the configured scene, simplifying the user operation.
[0017] According to the first aspect, or any implementation method of the first aspect above, associating the first scene with the second device includes: sending to a server or locally saving a device identifier of the second device and device control information corresponding to the device identifier of the second device; or sending to a server or locally saving a device identifier of the second device and a scene identifier of the first scene associated with the second device.
[0018] 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 turning on the light, then the second device can send an operation instruction to the light to trigger the light to turn on.
[0019] For another example, the first device locally stores the device identification of the second device and the device control information corresponding to the device identification of the second device. In this way, the first device can directly associate the device identification with the device control information. Subsequently, after receiving the control signal sent by the second device, the first device can determine the device identification of the second device that sent the control signal, and then determine the device control information corresponding to the device identification to trigger the corresponding operation event.
[0020] For another example, the server has scene information of multiple scenes preset. Then, the first device sends the device identification of the second device and the scene identification of the first scene associated with the second device to the server. In this way, after receiving the device identification and scene identification sent by the first device, the server can determine the scene information of the corresponding first scene according to the scene identification, and then associate the device identification with the corresponding first scene, so as to trigger the corresponding scene later.
[0021] For another example, if the first device has scene information of multiple scenes preset, 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, so as to trigger the corresponding scene later.
[0022] In this way, the communication system can include multiple combinations and interaction modes between different devices to meet the flexible combination requirements of the communication system. In addition, in different combinations and interactions, the scene configuration requirements of the second device can be realized, thereby meeting the needs of users.
[0023] According to the first aspect, or any implementation of the first aspect above, associating the first scene 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.
[0024] For example, after completing the registration of the second device, the first device can determine the device identification of the second device. Then, after determining the device control information, the first device can send the device identification and device control information to the second device. Subsequently, after the second device detects the user operation, it 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 the control of the corresponding third device.
[0025] 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.
[0026] 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.
[0027] 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 a key type, a key index, and a key operation type of a key of the second device.
[0028] 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.
[0029] 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 a 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. Sending operation indication information to at least one target third device of at least one third device indicated by the first operation event.
[0030] 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. Afterwards, the first device sends the 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 at least one third device indicated by the second operation event.
[0031] 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 sending 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, thereby improving the user experience.
[0032] According to the first aspect, or any implementation of the first aspect above, before sending the device identification of the second device to the server or locally saving the device identification of the second device, the method further includes: determining whether the second device has been registered based on the acquired information of the second device. If the second device is not registered, registering the second device to 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 used to complete the registration of the second device to the fourth device.
[0033] 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 according to the information of the second device includes: obtaining a device identifier sent by the server, the device identifier being used to indicate the second device, and sending the device identifier to the second device.
[0034] Optionally, after determining that registration of the second device is completed, the first device triggers a scene configuration process of the second device.
[0035] 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 operation difficulty of the user.
[0036] According to the first aspect, or any implementation of the first aspect above, obtaining a first scene corresponding to a first operation of a user on a scene configuration interface of a first device includes: displaying a scene configuration interface, where the scene configuration interface is used to display a scene card. In response to the first operation of the user on the scene configuration interface, determining a first scene corresponding to a first scene card selected by the user.
[0037] Optionally, the scene card can also be described as a scene component, a scene control, etc., which is not limited in this application.
[0038] Optionally, 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. In this way, the second device can configure different scenes in different spaces, thereby enriching the user's use.
[0039] 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.
[0040] 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.
[0041] 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.
[0042] According to the first aspect, or any implementation method of the first aspect above, the first scene is associated with the second device, including: 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.
[0043] In this way, by displaying the scene writing animation, the fun of the user waiting for the scene to be written is increased, and the user is helped to understand the scene being written.
[0044] According to the first aspect, or any implementation of the first aspect above, displaying a scene configuration interface includes: displaying the scene configuration interface in response to a user's operation on a scene configuration component; or, displaying the scene configuration interface in response to the approach or contact of a second device. That is, the user can indicate the need to open the scene configuration interface through a 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 a local device, a second device, or another device when the second device approaches or contacts, and pop up different associated interfaces according to different scene writing statuses. Exemplarily, when it is determined that the second device has written a scene, a scene details interface pops up, and when it is determined that the second device has not written any scene, a scene configuration interface pops up, etc.
[0045] In this way, the user can trigger the scene writing of the second device in a variety of ways, effectively improving the user experience.
[0046] 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.
[0047] 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.
[0048] 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 a first interface, the first interface is used to configure devices in a first space, and the scene corresponding to the first scene card is a scene that can be configured by a second device in the first space.
[0049] In this way, the second device can be configured with different scenes in different spaces, thereby enriching the user's use.
[0050] According to the first aspect, or any implementation of the first aspect above, a label is displayed on the first scene card, and the label is 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.
[0051] In this way, orderly scene selection and scene writing are achieved.
[0052] 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.
[0053] In this way, it is avoided that the second device is configured with too many scenarios, which increases the difficulty of user operation.
[0054] According to the first aspect, or any implementation of the first aspect above, associating the first scene with the second device includes: determining, based on information of the second device, that the second device includes multiple buttons. Displaying a second interface, the second interface is used to display prompt information, the prompt information is used to instruct a user to select a target button for a scene to be configured from the multiple buttons. In response to a third operation of the user on the second interface, determining the target button. Associating the first scene with the target button in the second device.
[0055] For example, the first device detects an NFC "touch and pay" operation, obtains the NFC tag information of the second device, and determines that the second device includes three buttons based on the device information therein. Then, the first device can display a button selection interface. After the first device detects the button selected by the user on the button selection interface, it can display a scene configuration interface, receive the user's operation of selecting a scene to be configured, and write the scene to be configured selected by the user into the determined button of the second device.
[0056] In this way, when the second device includes multiple buttons, the first device can also configure different scenes of the buttons in response to user operations, so that the user can control the third device in multiple scenes through one second device.
[0057] 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 of the scene configured by the second device. If the second device has not been configured with a scene, displaying a scene configuration interface to configure the scene of the second device.
[0058] 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.
[0059] According to the first aspect, or any implementation of the first aspect above, associating the first scene with the second device includes: obtaining first identity information of the user. According to information of the second device, associating the first scene, the second device, and the first identity information.
[0060] In this way, different users can trigger different second device scenarios through the same second device, further improving the user experience.
[0061] 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 short-range wireless communication NFC, Bluetooth or wireless fidelity Wi-Fi.
[0062] 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, the computer program code includes computer instructions, when the processor reads the computer instructions from the memory, the electronic device executes: according to the information of the second device obtained, determine 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, obtain a first scene corresponding to the first operation of the user on the scene configuration interface of the first device, and the first scene is associated with the behavior of controlling at least one third device. Associate the first scene with the second device.
[0063] 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.
[0064] According to the second aspect, or any implementation method of the second 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.
[0065] 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, displaying the details of the configured scenes of other buttons among the multiple buttons other than the target button through the display screen.
[0066] According to the second aspect, or any implementation of the second aspect above, when the processor reads the computer instruction 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.
[0067] According to the second aspect, or any implementation method of the second aspect above, the first scene is associated with the second device, including: sending or locally saving the device identifier of the second device and device control information corresponding to the device identifier of the second device to the server; or sending or locally saving the device identifier of the second device and the scene identifier of the first scene associated with the second device to the server.
[0068] According to the second aspect, or any implementation of the second aspect above, associating the first scene 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.
[0069] According to the second aspect, or any implementation of the second aspect, the device control information includes operation code information and / or operation events.
[0070] 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 a key type, a key index, and a key operation type of a key of the second device.
[0071] According to the second aspect, or any implementation of the second aspect above, when the first device locally stores the device identification of the second device and the device control information corresponding to the device identification of the second device; or when the first device locally stores the device identification of the second device and the scene identification of the first scene associated with the second device, when the processor reads the computer instruction from the memory, the electronic device is also caused to execute: receiving a first operation code sent by the second device. Determining a first operation event corresponding to the first operation code. Sending operation indication information to at least one target third device of at least one third device indicated by the first operation event.
[0072] According to the second aspect, or any implementation of the second aspect above, when the processor reads the computer instruction from the memory, the electronic device is also caused to execute: determining whether the second device has been registered based on the acquired information of the second device. If the second device is not registered, registering the second device to 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 for completing the registration of the second device to the fourth device.
[0073] According to the second aspect, or any implementation of the second aspect, 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, the device identifier being used to indicate the second device, and sending the device identifier to the second device.
[0074] According to the second aspect, or any implementation of the second aspect above, obtaining a first scene corresponding to a first operation of a user on a scene configuration interface of a first device includes: displaying the scene configuration interface through a display screen, 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, determining a first scene corresponding to a first scene card selected by the user.
[0075] 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 second operation on the scene configuration interface, edit the first scene corresponding to the first scene card.
[0076] According to the second aspect, or any implementation method of the second aspect above, 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.
[0077] 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: in response to the user's operation on the scene configuration component, the scene configuration interface is displayed through the display screen; or, in response to the approach or contact of the second device, the scene configuration interface is displayed through the display screen.
[0078] 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.
[0079] According to the second aspect, or any implementation of the second aspect above, 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.
[0080] According to the second aspect, or any implementation of the second aspect above, a label is displayed on the first scene card, and the label is 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.
[0081] According to the second aspect, or any implementation of the second aspect, the number of first scene cards is less than or equal to a first threshold.
[0082] 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 of the second device, that the second device includes a plurality of buttons. Displaying a second interface through a display screen, the second interface is used to display prompt information, the prompt information is used to instruct a user to select a target button for a scene to be configured from the plurality of buttons. In response to a third operation of the user on the second interface, determining the target button. Associating the first scene with the target button in the second device.
[0083] According to the second aspect, or any implementation of the second aspect above, when the processor reads the computer instruction from the memory, it also causes the electronic device to execute: in response to the approach or contact of the second device, determine whether the second device has configured the scene. In the case where the second device has configured the scene, the device reading interface is displayed through the display screen, and the device reading interface is used to display detailed information of the scene configured by the second device. In the case where the second device is not configured with the scene, the scene configuration interface is displayed through the display screen to configure the scene of the second device.
[0084] According to the second aspect, or any implementation of the second aspect, associating the first scene with the second device includes: obtaining first identity information of the user. According to information of the second device, associating the first scene, the second device, and the first identity information.
[0085] 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.
[0086] In a third aspect, a configuration system is provided, which includes a first device and a second device. The first device is used to: determine that the second device is close to or in contact with the first device according to the information of the second device obtained. 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 device identification of the second device and the device control information associated with the first scene corresponding to the device identification of the second device are saved, and the device control information includes operation code information and / or operation events. The second device is used to: send the first operation code and / or the first operation event corresponding to the user operation to the first device in response to the user operation. The first device is also used to: receive the first operation code and / or the first operation event. According to the first operation code and / or the first operation event, the operation indication information is sent to at least one target third device of the at least one third device indicated by the first operation code and / or the first operation event. In response to the approach or contact of the second device again, the relevant information of the first scene associated with the second device is displayed.
[0087] 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.
[0088] According to the third aspect, or any implementation of the third aspect above, the first device is further used to: send a device identification of the second device and device control information to the second device.
[0089] 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 a key type, a key index, and a key operation type of a key of the second device.
[0090] According to the third aspect, or any implementation of the third aspect above, the first device is further used 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 to 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 information of the second device for completing the registration of the second device to the fourth device.
[0091] According to the third aspect, or any implementation of the third aspect, 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, the device identifier being used to indicate the second device, and sending the device identifier to the second device.
[0092] The technical effects corresponding to the third aspect and any one of the implementation methods of the third 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.
[0093] In a fourth aspect, an electronic device is provided, which has 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. The hardware or software includes one or more modules corresponding to the above functions.
[0094] The technical effects corresponding to the fourth aspect and any one of the implementation methods of the fourth 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.
[0095] In a fifth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program (also referred to as an instruction or code), and when the computer program is executed by an electronic device, the electronic device executes the method of the first aspect or any one of the implementations of the first aspect.
[0096] The technical effects corresponding to the fifth aspect and any one of the implementation methods of the fifth 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.
[0097] According to 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 according to the first aspect or any one of the embodiments of the first aspect.
[0098] The technical effects corresponding to the sixth aspect and any one of the implementation methods of the sixth 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.
[0099] According to a seventh aspect, a circuit system is provided, the circuit system comprising a processing circuit, wherein the processing circuit is configured to execute the method of the first aspect or any one of the embodiments of the first aspect.
[0100] The technical effects corresponding to the seventh aspect and any one of the implementation methods of the seventh 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.
[0101] 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, and 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.
[0102] 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
[0103] Figure 1 A schematic diagram of a scenario for configuring a smart switch provided in an embodiment of the present application;
[0104] Figure 2 A schematic diagram of a communication system to which the configuration method provided in an embodiment of the present application is applied;
[0105] Figure 3 A schematic diagram of the hardware structure of the first device provided in an embodiment of the present application;
[0106] Figure 4 A schematic diagram of the hardware structure of the second device provided in an embodiment of the present application;
[0107] Figure 5 Interface diagram of smart switch scene configuration provided in the embodiment of the present application Figure 1 ;
[0108] Figure 6 Interface diagram of smart switch scene configuration provided in the embodiment of the present application Figure 2 ;
[0109] Figure 7 Interface diagram of smart switch scene configuration provided in the embodiment of the present application Figure 3 ;
[0110] Figure 8 Interface diagram of smart switch scene configuration provided in the embodiment of the present application Figure 4 ;
[0111] Fig. 9 Interface diagram of smart switch scene configuration provided in the embodiment of the present application Figure 5 ;
[0112] Fig.10 Interface diagram of smart switch scene configuration provided in the embodiment of the present application Figure 6 ;
[0113] Fig.11 Interface diagram of smart switch scene configuration provided in the embodiment of the present application Figure 7;
[0114] Fig.12 Interface diagram of smart switch scene configuration provided in the embodiment of the present application Figure 8 ;
[0115] Fig.13 Interface diagram of smart switch scene configuration provided in the embodiment of the present application Figure 9 ;
[0116] Fig.14 Schematic diagram of the interface for reading the smart switch provided in the embodiment of the present application Figure 1 ;
[0117] Fig.15 Schematic diagram of the interface for reading the smart switch provided in the embodiment of the present application Figure 2 ;
[0118] Fig.16 Schematic diagram of the interface for reading the smart switch provided in the embodiment of the present application Figure 3 ;
[0119] Fig.17 Schematic diagram of the interface for reading the smart switch provided in the embodiment of the present application Figure 4 ;
[0120] Fig.18 Schematic diagram of the interface for reading the smart switch provided in the embodiment of the present application Figure 5 ;
[0121] Fig.19 Schematic diagram of the interface for reading the smart switch provided in the embodiment of the present application Figure 6 ;
[0122] Figure 20-1 Schematic diagram of the interface for reading the smart switch provided in the embodiment of the present application Figure 7 ;
[0123] Figure 20-2 Schematic diagram of the interface for reading the smart switch provided in the embodiment of the present application Figure 8 ;
[0124] Fig.21 A schematic diagram of the fingerprint collection interface provided in the embodiment of the present application;
[0125] Fig. 22 A schematic diagram of the smart switch registration process provided in an embodiment of the present application;
[0126] Fig.23 A flowchart of a configuration method provided in an embodiment of the present application;
[0127] Fig.24 A schematic diagram of the structure of the first device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0128] The technical solutions in the embodiments of the present application are described below in conjunction with the accompanying drawings in the embodiments of the present application. Wherein, 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 the 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).
[0129] References to "one embodiment" or "some embodiments" etc. described in this specification mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Thus, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear 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 other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways. The term "connection" includes direct connection and indirect connection, unless otherwise specified. "First" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
[0130] In the embodiments of the present application, the words "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.
[0131] In some scenarios, smart switches can be applied to smart home systems to realize smart scenes. For example, in a warm home scene, users can use smart switches to turn on the lights at home with one click, and let the air conditioner automatically lower the temperature in the room. For another example, in a safe departure scene, users can use smart switches to turn off the lights, doors, windows, electrical appliances and other devices at home with one click.
[0132] Among them, the smart switch requires users to register the device and configure the scene before use.
[0133] For example, Figure 1 In the interface 101 shown in (a), the user needs to first start an application for managing smart home devices (such as a smart life application) on the mobile phone to add a smart switch. For example, when the mobile phone is displaying the smart life application, in response to the user clicking on the control 11, the menu bar 12 is displayed. The mobile phone detects that the user clicks on the add device control 13 displayed in the menu bar 12, and determines that the user indicates to add a new device. If it is determined that the device indicated by the user to be added is a smart switch, the mobile phone can display the following Figure 1 In the interface 102 shown in (b), the user is prompted to perform operations on the smart switch. After the user operates the smart switch, the smart switch can be triggered to send a Bluetooth broadcast signal. Then, after the mobile phone detects the Bluetooth broadcast signal, it can 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 the registration is completed, the mobile phone can display the following Figure 1 The interface 103 shown in (c) prompts the user to select the room where the smart switch is applied. If the mobile phone detects that the user clicks the living room control 14, it can display the following information: Figure 1 Interface 104 shown in (d). On interface 104, the mobile phone can prompt the user to create a smart switch scene for use in the living room. For example, the user can add a scene trigger condition through control 15 and add a scene to be executed through control 16. For example, the scene is to click the smart switch to turn on or off the living room light. Afterwards, in response to the user clicking the save control 17, it can be determined that the scene configuration of the smart switch is completed.
[0134] It can be seen that in the above process, the user needs to operate on the mobile phone application and the smart switch respectively, and needs 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 and affects the user experience.
[0135] Therefore, the embodiment of the present application provides a configuration method, and 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 user experience.
[0136] Figure 2 Schematic diagram of a communication system to which the configuration method provided in the embodiment of the present application is applied. Figure 2 As shown, the communication system includes a first device 100, a second device 200 and a server 300.
[0137] Optionally, the first device 100 can be used to edit the smart devices and smart scenes of 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 in the first device 100 includes but is not limited to Or other operating systems. This application does not limit the specific type of the first device 100 and the installed operating system.
[0138] 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 in 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, and the type of operating system if an operating system is installed.
[0139] In some embodiments, the second device 200 may be a smart switch (button) of various styles. Figure 2 The circular single-button smart button shown, or the second device 200 may also 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 embodiments of the present application are not limited to this.
[0140] Optionally, the server 300 is used 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, which may be a single server, a server cluster composed 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 the server 300 and the cloud remote service can both 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 cloud remote services. This application does not limit the specific type of the server 300.
[0141] Optionally, the server 300 is a long-life device in the communication system, and / or the server 300 is a resident device in the communication system.
[0142] 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.
[0143] Optionally, the first device 100 and the second device 200 support a "touch and pay" operation. For example, after 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.
[0144] Optionally, the first device 100 and the second device 200 support a proximity discovery function. Exemplarily, after 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, Wi-Fi peer to peer (P2P) connection.
[0145] 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.
[0146] In some examples, the first device 100 or the second device 200 communicates with the server 300 via a Bluetooth gateway.
[0147] Optionally, the first device 100 or the server 300 establishes a wired communication connection with the Bluetooth gateway via a network cable connection or a universal serial bus (USB) connection; or, establishes a wireless communication connection with the Bluetooth gateway via the above-mentioned wireless communication technology.
[0148] 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. Among them, smart home devices include, for example, audio and video devices (such as large-screen devices, speakers, etc.), lighting system equipment (such as desk lamps, electric lights, etc.), environmental control equipment (such as air purifiers, sweeping robots, etc.), security system equipment (such as cameras, smart door locks, etc.), kitchen appliances (such as ovens, dishwashers, etc.), smart sensors, etc.
[0149] 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 as a smart home system as an example.
[0150] For example, Figure 3 A structural schematic diagram of the first device 100 is shown.
[0151] 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.
[0152] It is understood that the structure illustrated in the embodiment of the present application does 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 in the figure, or combine some components, or split some 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.
[0153] 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 processor (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), etc. Different processing units may be independent devices or integrated into one or more processors.
[0154] 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.
[0155] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0156] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0157] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. 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, so that the processor 110 communicates with the touch sensor through the I2C bus interface to realize the touch function of the first device 100.
[0158] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the first device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the first device 100.
[0159] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the first device 100, and can also be used to transmit data between the first device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0160] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic 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 different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0161] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the first device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0162] 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 supplies power to the processor 110, the internal memory 121, the display screen 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 number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0163] 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.
[0164] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the first device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0165] 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.
[0166] The wireless communication module 160 can provide wireless communication solutions 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 (IR), etc., which are applied on the first device 100. 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, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0167] 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 the 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, etc. 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).
[0168] The first device 100 implements a display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to 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 change display information.
[0169] 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), Mini-led, Micro-led, Micro-oled, quantum dot light emitting diodes (QLED), etc. In some embodiments, the first device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0170] In some embodiments, the first device 100 displays optional scenes to be configured through 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.
[0171] In some embodiments, when the first device 100 determines that the second device 200 is to be written, it can display a prompt message through the display screen 194 to prompt the user to complete the writing of the second device 200 through the "touch and pay" function of NFC. 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.
[0172] 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 optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted 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.
[0173] 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 a data storage function, such as storing music, video and other files in the external memory card.
[0174] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may 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 may 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.
[0175] 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 signal. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110. The first device 100 can use the audio module 170, such as music playback, recording, etc. The audio module 170 can include a speaker, a receiver, a microphone, a headphone interface, and an application processor to implement audio functions.
[0176] 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.
[0177] The button 190 includes a power button, a volume button, etc. The button 190 may be a mechanical button or a touch button. The first device 100 may be configured with 1 or N buttons 190, where N is a positive integer greater than 1. The first device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The first device 100 may receive a button input and generate a key signal input related to the user settings and function control of the first device 100.
[0178] The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power changes, messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect a SIM card. The first device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
[0179] For example, Figure 4 A structural schematic diagram of the second device 200 is shown.
[0180] 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 key 405 . The memory 403 may also be included in the processor 401 .
[0181] 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.
[0182] The communication link 402 may include a pathway to transmit information between the above-mentioned components.
[0183] Communication interface 404, used to communicate with other devices. In the embodiment of the present application, the communication interface can be a module, a circuit, a bus, an interface, a transceiver or other device capable of implementing a communication function, used to communicate with other devices. Optionally, when the communication interface is a transceiver, the transceiver can be an independently arranged transmitter, which can be used to send information to other devices, and the transceiver can also be an independently arranged receiver, which is used to receive information from other devices. The transceiver can also be a component that integrates the functions of sending and receiving information, and the embodiment of the present application does not limit the specific implementation of the transceiver.
[0184] The memory 403 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices 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 the 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 exist independently and be connected to the processor via a communication line 402. The memory may also be integrated with the processor.
[0185] 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.
[0186] Optionally, the computer-executable instructions in the embodiments of the present application may also be referred to as application code, instructions, computer program or other names, which are not specifically limited in the embodiments of the present application.
[0187] In a specific implementation, as an embodiment, the processor 401 may include one or more CPUs, such as Figure 4 CPU0 and CPU1 in.
[0188] 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).
[0189] The key 405 may be a mechanical key or a touch key. The second device 200 may include 1 or N keys 405, where N is a positive integer greater than or equal to 1.
[0190] It is understandable that the embodiments of the present application are as follows Figure 4 The structure does not constitute the only 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 in the figure, or combine some components, or split some 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.
[0191] 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 the present application.
[0192] In some embodiments, users can manage and control smart switches through the smart central control screen, such as completing registration of smart switches, scene configuration, etc.
[0193] In some examples, during the scene configuration process of the 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 scene to be configured selected by the user with the smart switch. In this way, even if the user does not have the basic knowledge of smart home configuration, the scene configuration of the smart switch can be completed through simple operations, and the user does not have to perform complex operations on the smart switch (such as poking the reset hole on the smart switch with a needle), which effectively reduces the difficulty of user operation.
[0194] For example, Figure 5 In the interface 501 shown in (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 the following Figure 5Interface 502 is shown in (b). The menu bar 52 corresponding to the control 51 is displayed on the interface 502. The smart central control screen detects the user's operation of 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 the control 54 in the interface 501, the smart central control screen can determine that the currently edited space is the living room, so the smart central control screen can determine the configurable scenes of the smart switch in the living room space. Figure 5 In the interface 503 shown in (c), the smart central control screen displays scene cards corresponding to the scenes that can be configured in the living room space of the smart switch, and the user can directly select the scene that needs to be configured in the smart switch. Figure 1 In the smart switch scene configuration process shown, users no longer need to add the trigger conditions in the scene and the scene operations to be performed one by one, but directly select the preset scenes to be configured, enriching the configurable scenes and simplifying user operations. Afterwards, in response to the user's NFC "touch" operation of the smart switch and the smart central control screen, the scene to be configured selected by the user can be associated with the smart switch, so that the scene configuration of the smart switch can be completed through a simple interaction between the smart central control screen and the smart switch, effectively reducing the difficulty of user operation.
[0195] The specific implementation method in the scene configuration process is introduced as follows.
[0196] For example, Figure 6 In the interface 601 shown in (a), the smart central control screen displays the scene cards corresponding to the configurable scenes of the smart switches in the living room space. If the current user has not selected a scene, it is determined that the control 61 is in an inoperable state, such as the control 61 is grayed out. Afterwards, 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 the smart central control screen displays the following Figure 6 Interface 602 shown in (b) in the figure. On interface 602, the smart central control screen displays the selected warm home scene card 62, and activates the confirmation control 61 to make the confirmation control 61 in an operable state. Among them, the smart switch can display a number on the scene card selected by the user to prompt the user to select the 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. Afterwards, the smart central control screen detects the user's operation on the safe leaving home scene card 63, determines that the user chooses to add a safe leaving home scene, and displays the following Figure 6Interface 603 shown in (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 a label 2 on the safe leaving home scene card 63, indicating 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 configure the safe leaving home scene.
[0197] In some examples, a scene configuration quantity threshold of the smart switch is preset in the smart central control screen, and the scene configuration quantity threshold is used to indicate the maximum number of scenes that can be configured in the smart switch. For example, if the scene configuration quantity threshold is 2, then the smart switch determines that the smart switch can be configured with a maximum of 2 scenes. It should be understood that the embodiment of the present application does not limit the value of the scene configuration quantity threshold.
[0198] For example, Figure 7 In the interface 701 shown in (a), the smart central control screen displays the selected warm home scene card 71 and safe leaving home scene card 72, indicating that the current user has selected two scenes to be configured. The smart central control screen determines that the current user has selected the maximum number of scene cards based on the scene configuration quantity threshold. Then, the smart central control screen can display other scene cards as inoperable to prompt the user to select a maximum of two scenes to be configured.
[0199] As another example, Figure 7 In the interface 701 shown in (a), the smart central control screen detects the user's operation on the selected warm home scene card 71, and determines that the user indicates to cancel the selection of the warm home scene card 71. Then, if Figure 7 In the interface 702 shown in (b), the smart central control screen can display the warm home scene card 71 in an unselected state. In addition, the smart central control screen changes the label on the safe leaving home scene card 72 from the label 2 shown in the interface 701 to the label 1 shown in the interface 702, to remind the user that the currently selected scene only includes the safe leaving home scene.
[0200] 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 operational status to prompt the user to continue selecting scenes to be configured.
[0201] For example, when the smart central control screen is displaying interface 702, it detects the user's operation on birthday party scene card 73, and determines that the user chooses to add a birthday party scene. The smart central control screen displays the following: Figure 7 Interface 703 is shown in (c).
[0202] 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.
[0203] 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 user operations, reduce user operation difficulty, reduce user learning costs, and improve user experience.
[0204] For example, Figure 8 In the interface 801 shown in (a), the smart central control screen detects the user's operation on the confirmation control 81, determines that the user has completed the selection of the scene to be configured, and can display the following Figure 8 Interface 802 shown in (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 on the return control 82 and determines that the user instructs to reselect the scene to be configured, the smart central control screen can return to display interface 801, and the user can continue to select the scene to be configured on interface 801.
[0205] Among them, on the interface 802, as shown in the figure mark 83, the smart central control screen displays a prompt message to prompt the user to bring 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 touch" 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 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 operates the smart switch, the smart switch sends a signal to the smart central control screen, and the smart central control screen can determine the corresponding scene according to the smart switch identifier and signal type carried in the signal to trigger the scene. If the warm home scene includes turning on the lights in the living room, then the smart central control screen can send an instruction message to the lights in the living room after receiving the signal sent by the smart switch to turn on the lights in the living room.
[0206] Optionally, the close-range 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 and reduce 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 close-range sensing area of the central control screen.
[0207] 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 the control of the smart home devices corresponding to the scene is triggered 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 the control of the smart home devices corresponding to the scene is triggered through the smart central control screen to trigger the scene. For another example, the smart switch sends a signal directly to the smart home device corresponding to the scene to trigger the scene.
[0208] Then, 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 aforementioned corresponding other devices, so as to realize the subsequent triggering of the scene by the smart switch. This will not be explained below.
[0209] Optionally, when the smart central control screen detects that the smart switch is close to the NFC sensing area, the scene writing animation can be displayed during the scene writing process to prompt the user that the scene is being written into the smart switch. Optionally, the scene writing animation includes multiple animations such as the scene card moving toward the smart switch or being sucked into the smart switch. For example, Figure 8In the interface 803 shown in (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 matching them can be explicitly presented on the configuration scene page, or can be implicitly not presented in the user interface.
[0210] As another example, Fig. 9 In the interface 901 shown in (a), the smart central control screen displays the warm home scene card and safe home departure scene card selected by the user, 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 can display the following Fig. 9 Interface 902 shown in (b). On interface 902, the smart central control screen displays scene cards corresponding to the two scenes to be configured that the user has selected, such as a warm home scene card and a safe home departure scene card. The smart central control screen can display scene cards in the order in which the user selects the scene cards, such as displaying multiple scene cards in order from left to right, or displaying labels corresponding to the selected order on the scene cards, etc., to achieve orderly scene writing.
[0211] In addition, on interface 902, 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, the scene to be configured can be written into the smart switch. During the scene writing process, the smart central control screen can display the following information: Fig. 9 The scene writing effect displayed on the interface 903 shown in (c) is shown.
[0212] In some embodiments, if no scene is written into the smart switch, in response to the user's instruction to write a scene (such as the NFC "touch and pay" operation), the smart central control screen writes the scene to be configured into the blank smart switch. Alternatively, if the smart switch has been configured with a scene, in response to the user's instruction to write a scene (such as the 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.
[0213] In some embodiments, the smart central control screen responds to the user's instruction to write the operation of the smart switch (such as Figure 5In the example of the operation of writing the smart switch control 53 in the interface 502 shown in (b), a prompt message may be displayed first to prompt the user to bring 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 of selecting the scene to be configured. Then, after the smart central control screen detects that the user has completed the operation of selecting the scene to be configured, the scene to be configured selected by the user can be directly written 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.
[0214] Optionally, in the above implementation, the smart central control screen first detects the NFC "touch and pay" operation, then the smart central control screen can determine whether the scene has been configured in the smart switch. In the case where 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, the scene card corresponding to the scene configured in the smart switch can be displayed 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 improves the user's experience.
[0215] 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 of the current scene to be configured.
[0216] Optionally, after the smart central control screen determines the scene to be configured selected by the user and detects the NFC "touch and pay" operation, it determines that the smart switch of 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 is written.
[0217] Optionally, during the button selection process, the user may choose to configure the scene to be configured in one or more buttons.
[0218] For example, the smart central control screen displays Fig. 9 During the process of interface 902 shown in (b), the NFC "touch and pay" operation is detected, the NFC tag information of the smart switch is obtained, and the device information therein is used to determine that the smart switch includes 3 buttons. Fig.10In the interface 1001 shown, the smart central control screen can display the icon of the smart switch and display the button selection control. The user can select the button of the scene to be configured through the button selection control on the interface 1001. If the smart central control screen detects the user's operation on the button 1 control 101 and the user's operation on the confirmation control 102, it can be determined that the user instructs to write the scene to be configured into the button 1 of the smart switch. After that, the smart central control screen can write the scene to be configured into the button 1 of the smart switch and display the following. Fig. 9 The warm homecoming scene and safe leaving home scene shown in the interface 903 shown in (c) are written with animations, that is, after the scenes are written, the user can trigger the warm homecoming scene and safe leaving home scene respectively by controlling the different states of the smart switch button 1 (such as the switch state, or single / double click operation, etc.).
[0219] As another example, the smart central control screen displays Figure 5 During the process of interface 502 shown in (b), the user's operation of writing the smart switch control 53 is detected, and a prompt message is displayed, prompting the user to bring the smart switch close to the NFC sensing area of the smart central control screen. After that, 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 Fig.10 Interface 1001 is shown. On 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, 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.
[0220] In some embodiments, during the scene configuration process, the smart central control screen can display the details of the scene to be configured in response to the user operation, so as to facilitate the user to understand the scene to be configured. Optionally, the details of the scene to be configured include, for example, the scene triggering condition, the smart home device controlled after the scene is triggered, and the operation performed by the corresponding smart home device after the scene is triggered.
[0221] For example, Fig.11 In the interface 1101 shown in (a), the smart central control screen detects the user's long press operation on the warm home scene card 111 during the process of receiving the user's selection of the scene to be configured, and determines that the user needs to view the details of the warm home scene. Then the smart central control screen can display the following Fig.11Interface 1102 shown in (b) in the figure. 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 the following. Fig.11 The interface 1101 shown in (a) is used to receive the user's operation of selecting and viewing other scenes to be configured.
[0222] 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.
[0223] For example, Fig.12 In the interface 1201 shown in (a), the smart central control screen detects the user's long press operation on the warm home scene card 121 during the process of receiving the user's selection of the scene to be configured, and determines that the user needs to view the details of the warm home scene, then the smart central control screen can display the following Fig.12 Interface 1202 shown in (b) of FIG. 1202. The smart central control screen can display the details of the warm home scene. Afterwards, if the smart central control screen detects the user's operation on the editing control 122 and determines that the user instructs to edit the warm home scene, the following information can be displayed: Fig.12 Interface 1203 shown in (c) is used to receive the user's editing operation on the configured scene. For example, the smart central control screen detects the user's operation on control 123, and can edit the trigger condition corresponding to the warm home scene. For another example, the smart central control screen detects the user's operation on delete control 124, and can delete the operable smart home devices (such as ceiling lights) corresponding to the warm home scene, that is, the warm home scene no longer includes the operation of clicking the smart switch to turn on the ceiling light. For another example, the smart central control screen detects the user's operation on continue adding control 125, and can add smart home devices corresponding to the warm home scene. Afterwards, the smart central control screen detects the user's operation on save control 126, and can save the current scene, and display as follows. Fig.12 Interface 1204 is shown in (d). On interface 1204, the smart central control screen can display the scene edited by the user as a selected state, such as displaying the warm home scene card 121 in a selected state.
[0224] As another example, Fig.13 In the interface 1301 shown in (a), the smart central control screen can also receive the user's operation of adding or deleting scenes while receiving the user's selection of the scene to be configured. For example, after the smart central control screen detects the user's operation on the editing control 131, it can display the following Fig.13Interface 1302 is shown in (b). On interface 1302, the smart central control screen can receive the user's scene editing operation. Afterwards, the smart central control screen detects the user's operation on the save control and can save the current scene, displaying Fig.13 Interface 1303 shown in (c). On interface 1303, the smart central control screen can display the newly added scene of the user as selected and display it at the beginning of the interface. For example, the smart central control screen displays the selected custom scene card 133 at the beginning of the interface, which is convenient for the user to determine the custom scene to be configured. For another example, the smart central control screen detects that the user long presses and moves the scene card to the upper or lower edge of the display screen, and can determine that the user instructs to delete the scene card, then the smart central control screen can delete the scene to be configured corresponding to the scene card.
[0225] In some embodiments, the smart central control screen can display the scene configuration of the smart switch in response to user operations, thereby facilitating the user to understand the scene configuration of the smart switch.
[0226] For example, Fig.14 In the interface 1401 shown in (a), the smart central control screen detects the user's operation on the control 141, determines that the user instructs to operate the smart switch, and the smart central control screen can display the following Fig.14 Interface 1402 shown in (b) of FIG. 1402 displays a menu bar 142 corresponding to control 141. The smart central control screen detects the user's operation on the read smart switch control 143 displayed in the menu bar 142, and can determine that the user instructs to read the details of the smart switch. Then, the smart central control screen can display the following: Fig.14 In the interface 1403 shown in (c), the smart central control screen may display a prompt message on the interface 1403 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, thereby determining whether the smart switch has been configured with a scene and the details of the configured scene based on the device information therein.
[0227] 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 been configured with a scene. Then, the smart central control screen can display the following Fig.15 Interface 1501 is shown, and details of the smart switch are displayed on interface 1501 to prompt the user that the smart switch is a blank smart switch to be written into a scene.
[0228] For example, in response to the user's NFC "touch and pay" operation, the smart central control screen determines that the smart switch has been configured with a scene, which is a warm home scene. Then, the smart central control screen can display the following Fig.16As shown in interface 1601, the scene details configured by the smart switch are displayed on interface 1601. As shown in reference numeral 161, the smart central control screen can display the name of the smart switch and the name of the configured scene. As shown in reference numeral 162, the smart central control screen can display the space to which the scene configured by the smart switch is applied and the power of the smart switch. As shown in reference numeral 163, the smart central control screen can display the icon of the smart switch. As shown in reference numeral 164, the smart central control screen can display the triggering conditions of the scene configured by the smart switch. As shown in reference numeral 165, the smart central control screen can display the identification and name of the scene configured by the smart switch. It should be understood that more or less information can be displayed on the details interface of the scene configured by the smart switch as shown in interface 1601, and the embodiments of the present application are not limited to this.
[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 been configured with two scenes, including a warm home scene and a safe home scene. Then, the smart central control screen can display the following Fig.17 Interface 1701 is shown, and the scene details configured by the smart switch are displayed on interface 1701. As shown by reference numeral 171, the smart central control screen can display the name of the smart switch and the configured scene name. If the scene name is too long and the current display area is not sufficient to display the entire scene name, the smart central control screen can indicate that the complete scene name is not displayed by “…”.
[0230] For another example, in response to the 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. Then, the smart central control screen can display the following Fig.18 Interface 1801 is shown, and the scene details of each button configuration of the smart switch are displayed on interface 1801. For example, the smart switch includes button 1, button 2, and button 3, wherein the scenes configured for button 1 are a warm home scene and a safe leaving scene, the scene configured for button 2 is a whole house dehumidification scene, and button 3 is not configured with a scene.
[0231] In some embodiments, the smart central control screen can display the power status of the smart switch when displaying the scene configuration details of the smart switch. If the remaining power of the smart switch is lower than the preset power threshold, a low power prompt can be displayed to avoid the problem of failure to trigger the smart switch scene due to insufficient power.
[0232] For example, Fig.19In the interface 1901 shown, the smart central control screen displays the scene configuration details of the smart switch. As shown by reference numeral 191, the remaining power of the smart switch is 10%, which is lower than the preset power threshold, and a low power prompt 192 may be displayed. Optionally, if the smart central control screen detects that the user operates the low power prompt 192, a battery replacement guide or charging guide for the smart switch may be displayed to help the user replace the smart switch battery or charge the smart switch so that the smart switch can subsequently execute the corresponding scene.
[0233] 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.
[0234] For example, the smart central control screen displays Fig.14 During the process of the interface 1403 shown in (c), the user's NFC "touch and pay" operation is detected, and the NFC tag information of the smart switch can be read to determine the scene configuration details of the smart switch to display the scene configuration details of the smart switch. Figure 20-1 After that, the smart central control screen detects the user's operation of editing the scene of the smart switch (such as the operation of the editing control 201, the operation of the warm home scene card, etc.), and can display the following Figure 20-1 Interface 2002 shown in (b). On interface 2002, the smart central control screen can display the scenes that the current smart switch has been configured with. For example, the smart switch shown in interface 2001 has been configured with a warm home scene, and the smart central control screen can display the selected warm home scene card on interface 2002. In addition, on interface 2002, the smart central control screen can receive the user's scene editing operation on the smart switch. Among them, the user's various implementation methods for the scene editing operation of the smart switch can refer to the contents described in the corresponding embodiments above, which will not be repeated here.
[0235] For example, Figure 20-2 In the interface 2003 shown in (a), the smart central control screen detects the user's operation on the confirmation control 202, and determines that the scene to be configured selected by the user includes a warm home scene and a safe leaving home scene, then the smart central control screen can display the following Figure 20-2 In the interface 2004 shown in (b), the scene writing effects of the warm home scene and the safe leaving scene are displayed on the 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 effect of the unconfigured safe leaving scene on the interface 2004; or, display the scene writing effects of the warm home scene and the safe leaving scene, but no longer repeat the warm home scene. Afterwards, the smart central control screen can display the following Figure 20-2The interface 2005 shown in (c) displays the scene details configured for the smart switch after scene editing. For example, the scenes configured for the smart switch include a warm homecoming scene and a safe leaving home scene.
[0236] In some embodiments, the smart central control screen can detect the user's NFC "touch and pay" operation and directly trigger the writing of the smart switch or the reading of the smart switch, thereby further reducing the user's operation and reducing the difficulty of user operation.
[0237] For example, the smart central control screen displays Figure 5 During the process of interface 501 shown in (a), the user's NFC "touch and pay" operation is detected, and it can be determined 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 may also first display the room selection interface to prompt the user to select the space for the smart switch to be configured. 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 add the smart switch on the smart central control screen, and then perform the NFC "touch and pay" operation, which further simplifies the user operation.
[0238] If the smart central control screen determines that the smart switch is a blank smart switch and no scene has been written, then the smart central control screen can display the following Figure 5 The interface 503 shown in (c) is used to receive the user's scene editing operation.
[0239] Alternatively, if the smart central control screen determines that a scene has been written into the smart switch, then the smart central control screen can display the scene configuration details interface of the smart switch. Figure 16-Figure 19 The configuration details interface for any scene in .
[0240] Alternatively, the smart central control screen directly displays Figure 20-1 In the interface 2001 shown in (a), the smart central control screen provides an editing control 201 on the interface, through which the user can add scenes to blank smart switches, or edit scenes of smart switches that have been configured with scenes.
[0241] In some embodiments, different users can configure the same smart switch to correspond to different scenarios. For example, the smart switch has a fingerprint recognition function, through which the smart switch can determine the current user's identity, and then determine to configure the smart switch scenario corresponding to the user's identity or read the smart switch scenario corresponding to the user's identity through local capabilities or through the collaboration of other devices. In this way, different users can achieve different smart switch scenarios through the same smart switch, further improving the user experience.
[0242] For example, Figure 8 In the interface 803 shown in (c), the smart central control screen can display the following when writing the smart switch scene: Fig.21 Interface 2101 is shown 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 corresponding relationship 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.
[0243] As another example, the smart central control screen displays Fig.14 During the process of the interface 1403 shown in (c) (i.e., during the process of reading the smart switch scene), the user's NFC "touch and pay" operation is detected, and the following may be displayed: Fig.21 The interface 2101 is shown to prompt the user to enter the fingerprint. In 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 determines the scene corresponding to the user's fingerprint in the smart switch, and then displays the details interface of the scene.
[0244] It should be understood that the smart central control screen can also determine the user identity in other ways, and the embodiments of the present application do not limit this. For example, the smart central control screen determines the user identity through a camera on a smart switch or in a smart home system. For another example, the smart central control screen determines the user identity through other smart home devices in the smart home system that are equipped with a user identity recognition function.
[0245] In some embodiments, after completing the configuration of the 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, and the whole house hub will manage the scene of the smart switch. In this way, after the subsequent smart switch detects the user operation, it can send a signal to the whole house hub, and the whole house hub can determine the triggered scene according to the device information carried in the signal.
[0246] The above describes the scene configuration process of the smart switch. The following describes the registration process of the smart switch in detail.
[0247] For example, Fig. 22 A schematic diagram of a smart switch registration process provided by an embodiment of the present application. Fig. 22 As shown, the process includes the following steps.
[0248] S2201. The smart central control screen obtains the NFC tag information of the smart switch.
[0249] 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.
[0250] For example, Figure 8 In the scenario shown, 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.
[0251] S2202, smart switch wakeup.
[0252] In some embodiments, the smart switch can directly wake up in response to the user's NFC "touch and go" operation.
[0253] 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 pay" operation, the smart central control screen obtains the NFC tag information of the smart switch, and the smart switch is awakened.
[0254] S2203: The smart central control screen determines that the smart switch is not registered. If yes, step S2204 may be executed; if no, step S2211 may be executed.
[0255] 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 determining 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, the smart switch can be registered through the following steps S2204-S22010, and then step S2211 can be executed. If the smart central control screen determines that the smart switch has been registered based on the NFC tag information, step S2211 can be directly executed.
[0256] S2204. The smart switch sends a distribution network broadcast to the smart central control screen.
[0257] In some embodiments, after detecting the user's NFC "touch and pay" operation, the smart switch may also trigger the acquisition of registration information from the local or other devices. 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 completed registration, it may no longer send a network configuration broadcast. That is, the smart switch may also execute the above step S2203.
[0258] Correspondingly, after determining that the smart switch is not registered, the smart central control screen can receive the network configuration broadcast sent by the smart switch to trigger the registration process of the smart switch. Alternatively, after determining that the smart switch is registered, the smart central control screen can no longer receive the network configuration broadcast sent by the smart switch.
[0259] Optionally, the smart central control screen may not determine whether the smart switch is registered (i.e., not execute the above step S2203), but trigger the registration process of the smart switch after receiving the network configuration broadcast sent by the smart switch. If the smart central control screen does not receive the network configuration broadcast sent by the smart switch within the preset time after obtaining the NFC tag information, it can directly trigger the execution of the following step S2211, that is, it is assumed that the smart switch has completed registration. Alternatively, the smart central control screen receives the indication information sent by the smart switch, and determines the registration status of the smart switch according to the indication information.
[0260] S2205. Establish a Bluetooth connection between the smart central control screen and the smart switch.
[0261] In some embodiments, after receiving the network configuration broadcast sent by 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 low-power (BLE) Bluetooth connection based on the generic attribute (GATT) protocol.
[0262] Among them, the detailed process of the Bluetooth establishment process can be found in the prior art, and the embodiments of the present application do not limit this.
[0263] S2206. The smart central control screen sends an agent registration request to the whole-house hub.
[0264] In some embodiments, after the smart central control screen determines that a Bluetooth connection is 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.
[0265] Optionally, the proxy registration request carries device information of the smart switch.
[0266] S2207. The whole-house hub sends device identification allocation instructions to the smart central control screen.
[0267] In some embodiments, the whole-house hub registers the smart switch according to the proxy registration request, assigns the device ID in the current smart home system to the smart switch, and generates a device ID assignment instruction. Afterwards, the whole-house hub sends a device ID assignment instruction to the smart central control screen, and the device ID assignment instruction carries the device ID assigned to the smart switch. Correspondingly, the smart central control screen receives the device ID assignment instruction sent by the whole-house hub.
[0268] Optionally, the device identification of the smart switch is used in the subsequent smart home device control process, so that the whole-house hub or smart home central control screen determines that the device sending the communication message is a smart switch.
[0269] S2208. The smart central control screen sends a device identification to the smart switch.
[0270] In some embodiments, when the smart central control screen receives the device identification allocation instruction, it obtains the device identification carried therein. Afterwards, the smart central control screen sends the device identification to the smart switch. Correspondingly, the smart switch receives the device identification sent by the smart central control screen.
[0271] S2209, the smart central control screen negotiates the key with the smart switch.
[0272] 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.
[0273] 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.
[0274] S2210, the smart central control screen sends the smart switch key to the whole house hub.
[0275] In some embodiments, after the smart central control screen completes the key negotiation with the smart switch, it can send the determined smart switch key to the whole house hub to complete the registration of the smart switch. Correspondingly, the whole house hub can receive the smart switch key sent by the smart central control screen, so that the whole house hub can ensure the security of the communication message based on the smart switch key during the subsequent communication with the smart switch. For example, the communication message can be encrypted or decrypted through the smart switch key, the communication message can be prevented from being tampered with, replay can be prevented, and the identity legitimacy can be verified.
[0276] In some embodiments, during the scene triggering process, the smart switch can send a signal to at least one of the smart central control screen, the Bluetooth gateway, the whole house hub, and the smart home device corresponding to the scene to trigger the scene. Then, after the smart central control screen determines that the registration of the smart switch is completed, it can send the registration information to the aforementioned corresponding device, so that the subsequent corresponding device can determine that the smart switch has completed the registration and is a device in the current smart home system after receiving the signal during the scene triggering process, and can trigger the corresponding scene.
[0277] 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.
[0278] 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.
[0279] S2211, configure smart switch scenes on the smart central control screen.
[0280] 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.
[0281] For example, Figure 8 In the interface 803 shown in (c), the smart central control screen determines the registration status of the smart switch during the process of displaying the scene writing effect. If the smart switch is not registered, the registration of the smart switch is completed through the above steps S2204 to S2210. After that, after determining that the registration of the smart switch is completed, the writing of the scene is started.
[0282] In this way, users can complete the registration of the smart switch with a simple "touch" operation. Compared with the prior art where users need to perform multiple operations on the smart central control screen and the smart switch to complete the registration of the smart switch, this effectively simplifies the registration process of the smart switch, reduces the difficulty of user operation, and improves the user experience.
[0283] It should be understood that the above embodiments take NFC "touch and pay" as an example to introduce 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.
[0284] For example, the smart central control screen establishes a Bluetooth connection or Wi-Fi connection with the smart switch through the proximity discovery function of Bluetooth or Wi-Fi, and completes the registration and scene configuration of the smart switch based on the Bluetooth connection or Wi-Fi connection, which can also simplify user operations. Alternatively, the smart central control screen obtains the device information of the smart switch by scanning the QR code preset in the smart switch, completes the registration and scene configuration of the smart switch, and can also simplify user operations.
[0285] It should also be understood that the above embodiments take the user's use of 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". For situations where some other user operation methods are used, the smart central control screen interface may not display such Figure 8 The smart switch icon indicated by the reference numeral 84 shown in (c) and the semicircular area matching it, or other suitable forms of visual presentation areas or controls.
[0286] Optionally, Fig.23 A flow chart of a configuration method provided in an embodiment of the present application. Fig.23 As shown, the method includes the following steps.
[0287] S2301. The first device determines, based on acquired information about the second device, that the second device is close to or in contact with the first device.
[0288] Optionally, the first device is, for example, a smart central control screen, and the second device is, for example, a smart switch.
[0289] 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, for example, NFC tag information. In response to an NFC "touch and pay" operation, the first device may obtain 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.
[0290] For example, Figure 8 In the interface 802 shown in (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 the NFC tag information of the second device can be obtained.
[0291] 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.
[0292] The first operation may be an operation performed by a user on the scene configuration interface, or may be a series of operations performed by a user on the scene configuration interface. Optionally, the third device is, for example, a smart home device.
[0293] In some embodiments, the first device displays a scene configuration interface, where the scene configuration interface is used to display 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.
[0294] 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.
[0295] Optionally, 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. In this way, the second device can configure different scenes in different spaces, thereby enriching the user's use.
[0296] For example, Figure 6 The interface 601 shown in (a) is a scene configuration interface. 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 chooses to add a warm home scene, and the first device displays Figure 6Afterwards, the first device detects the user's operation on the safe leaving home scene card 63, and determines that the user chooses to add a safe leaving home scene, and the first device displays the following Figure 6 Interface 603 shown in (c) of FIG. 6. 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.
[0297] 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.
[0298] 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 is approaching or contacting, and pop up different associated interfaces according to different scene writing status. Exemplarily, when it is determined that the second device has written a scene, a scene details interface pops up, and when it is determined that the second device has not written any scene, a scene configuration interface pops up, etc.
[0299] For example, Figure 5 In the interface 501 shown in (a), the first device detects the user's operation on the control 51, determines that the user instructs to operate the second device, and the first device can display Figure 5 The interface 502 shown in (b) is shown. The menu bar 52 corresponding to the control 51 is displayed on the interface 502. The first device detects the user's operation of writing the smart switch control 53 in the menu bar 52, and the first device can display the following Figure 5 The interface 503 shown in (c) is a scene configuration interface. Afterwards, in response to the approach or contact of the second device, the first device can write the scene selected by the user on the scene configuration interface to the second device.
[0300] In another exemplary embodiment, the first device responds to the user's instruction to write to the second device (such as Figure 5In the example of writing the operation of the smart switch control 53 in the interface 502 shown in (b), a prompt message may be displayed first 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 of selecting the scene to be configured.
[0301] 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 scene writing order for associating the first scene with the second device.
[0302] In some examples, the first device is preset with a scene configuration quantity threshold (such as a first threshold) of 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. Then, 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.
[0303] For example, Figure 6 In the interface 603 shown in (c), the first device displays a label 1 on the currently selected warm home scene card 62. Afterwards, the first device detects the user's operation on the safe leaving home scene card 63, determines that the user chooses to add a safe leaving home scene, and then displays the selected safe leaving home scene card 63, and displays a label 2 on the safe leaving home scene card 63, indicating 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.
[0304] 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.
[0305] For example, Fig.12 In the interface 1201 shown in (a), the first device detects a user's long press operation on the warm home scene card 121 during the process of displaying the scene configuration interface, and determines that the user needs to view the details of the warm home scene, then the first device can display the following Fig.12 Interface 1202 shown in (b). On interface 1202, the first device can display details of the warm home scene.
[0306] 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.
[0307] 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.
[0308] For example, Fig.12 In the interface 1202 shown in (b), the first device detects the user's operation on the editing control 122, determines that the user instructs to edit the warm home scene, and can display the following Fig.12 The interface 1203 shown in (c) is used to receive the user's editing operation on the configuration scene.
[0309] 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.
[0310] S2303: The first device associates the first scene with the second device.
[0311] In some embodiments, the first device sends the device identification of the second device to a 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 a server or locally stores the scene identification of the first scene associated with the second device.
[0312] Optionally, the server is, for example, a whole-house hub.
[0313] Optionally, the device control information includes operation code information and / or operation events.
[0314] 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, multiple keys, etc. The key index is used to indicate 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, long press, etc.
[0315] 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 turning on the light, then the second device can send an operation instruction to the light to trigger the light to turn on.
[0316] For another example, the first device locally stores the device identification of the second device and the device control information corresponding to the device identification of the second device. In this way, the first device can directly associate the device identification with the device control information. Subsequently, after receiving the control signal sent by the second device, the first device can determine the device identification of the second device that sent the control signal, and then determine the device control information corresponding to the device identification to trigger the corresponding operation event.
[0317] For another example, the server has scene information of multiple scenes preset. Then, the first device sends the device identification of the second device and the scene identification of the first scene associated with the second device to the server. In this way, after receiving the device identification and scene identification sent by the first device, the server can determine the scene information of the corresponding first scene according to the scene identification, and then associate the device identification with the corresponding first scene, so as to trigger the corresponding scene later.
[0318] For another example, if the first device has scene information of multiple scenes preset, 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, so as to trigger the corresponding scene later.
[0319] In this way, the communication system can include multiple combinations and interaction modes between different devices to meet the flexible combination requirements of the communication system. In addition, in different combinations and interactions, the scene configuration requirements of the second device can be realized, thereby meeting the needs of users.
[0320] 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.
[0321] For example, after completing the registration of the second device, the first device can determine the device identification of the second device. Then, after determining the device control information, the first device can send the device identification and device control information to the second device. Subsequently, after the second device detects the user operation, it 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 the control of the corresponding third device.
[0322] 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.
[0323] In some embodiments, when the first device locally stores the device identification of the second device and the device control information corresponding to the device identification of the second device; or when the first device locally stores the device identification of the second device and the scene identification of the first scene associated with the second device, the first device receives the first operation code sent by the second device and determines the first operation event corresponding to the first operation code. Afterwards, the first device sends the first operation indication information to at least one target third device among the at least one third device indicated by the first operation event.
[0324] 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. Afterwards, the first device sends the 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 at least one third device indicated by the second operation event.
[0325] 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 sending 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, thereby improving the user experience.
[0326] 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.
[0327] In some embodiments, the first device determines whether the second device has been registered based on the information of the second device obtained. If the second device is not registered, the first device registers the second device to the server on behalf of the second device based on the information of the second device; or, if the second device is not registered, the first device sends information of the second device used to complete the registration of the second device to the fourth device. Optionally, the fourth device is a Bluetooth gateway, for example, the first device sends the information of the second device obtained to the fourth device, and the fourth device registers the second device to the server on behalf of the second device.
[0328] Optionally, the first device registers with the server on behalf of the second device, and can obtain a device identifier sent by the server, where the device identifier is used to indicate the second device. Afterwards, the first device sends the device identifier to the second device.
[0329] Optionally, after determining that registration of the second device is completed, the first device triggers a scene configuration process of the second device.
[0330] 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 operation difficulty of the user.
[0331] 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.
[0332] 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.
[0333] For example, in response to the user's NFC "touch and pay" operation, the first device determines that the second device has configured a scene, which is a warm home scene. Then, the first device can display the following Fig.16 Interface 1601 is shown, and the details of the scene configured by the second device are displayed on interface 1601. As shown in reference numeral 161, the first device can display the name of the second device and the name of the configured scene. As shown in reference numeral 162, the first device can display the space applied by the configured scene of the second device and the remaining power of the second device. As shown in reference numeral 163, the first device can display the icon of the second device. As shown in reference numeral 164, the first device can display the trigger condition of the configured scene of the second device. As shown in reference numeral 165, the first device can display the identification and name of the configured scene of the second device.
[0334] 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, so as to determine whether it is necessary to reconfigure the scene of the second device, effectively simplifying the difficulty of user operation.
[0335] In some embodiments, when the second device includes multiple buttons, the first scene is the configuration scene of a 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.
[0336] For example, in response to the user's NFC "touch and go" 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 the following information: Fig.18Interface 1801 is shown, and the scene details of each button configuration of the second device are displayed on interface 1801. For example, the first device includes button 1 (such as a target button), button 2, and button 3, wherein the scenes configured for button 1 are a warm home scene and a safe leaving home scene, the scene configured for button 2 is a whole house dehumidification scene, and button 3 is not configured with a scene.
[0337] In some embodiments, during the process of associating the first scene with the second device, the first device displays a scene writing animation effect, and the scene writing animation effect 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.
[0338] For example, Figure 8 In the interface 803 shown in (c), the first device displays a scene writing animation in the process of associating the first scene with the second device, and the scene animation includes the animation of the scene card moving to the icon display area where the icon of the second device is located or being sucked 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 the interface 803.
[0339] In this way, by displaying the scene writing animation, the fun of the user waiting for the scene to be written is increased, and the user is helped to understand the scene being written.
[0340] In some embodiments, the first device determines that the second device includes multiple buttons based on information of the second device. The first device displays a second interface, and the second interface is used to display prompt information, and the prompt information is used to instruct the user to select a target button for a scene to be configured from the multiple buttons. Afterwards, the first device determines the target button in response to a third operation of the user on the second interface, and associates the first scene with the target button in the second device.
[0341] For example, the first device detects an NFC "touch and pay" operation, obtains the NFC tag information of the second device, and determines that the second device includes three buttons based on the device information. Then, the first device can display Fig.10 Interface 1001 is shown. On interface 1001, after the first device determines the button selected by the user, the first device can display the scene configuration interface again, receive the user's operation of selecting a scene to be configured, and write the scene to be configured selected by the user into the determined button of the second device.
[0342] In this way, when the second device includes multiple buttons, the first device can also configure different scenes of the buttons in response to user operations, so that the user can control the third device in multiple scenes through one second device.
[0343] In some embodiments, the first device obtains the first identity information of the user, and then the first device associates the first scene, the second device, and the first identity information according to the information of the second device.
[0344] For example, Figure 8 In the interface 803 shown in (c), the first device may display the following when writing the scene of the second device: Fig.21 Interface 2101 is shown 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 corresponding relationship 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.
[0345] In this way, different users can trigger different second device scenarios through the same second device, further improving the user experience.
[0346] 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 in the above embodiments.
[0347] Combination of the above Figure 5-Figure 23 The configuration method provided by the embodiment of the present application is described in detail. Fig.24 The first device provided in the embodiment of the present application is described in detail.
[0348] In one possible design, Fig.24 This is a schematic diagram of the structure of the first device provided in the embodiment of the present application. Fig.24 As shown, 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 (such as a smart central control screen) involved in the above method embodiment.
[0349] Optionally, the transceiver unit 2401 is used to support the first device 2400 to execute Fig. 22 S2201, and S2204-S2210 in; and / or, for supporting the first device 2400 to execute Fig.23 S2302 in.
[0350] Optionally, the processing unit 2402 is configured to support the first device 2400 to execute Fig. 22S2203 and S2211 in; and / or, for supporting the first device 2400 to execute Fig.23 S2301, S2302, and S2303 in it.
[0351] Among them, the transceiver unit may include a receiving unit and a sending unit, which 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 to implement 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, and for the sake of brevity, they will not be repeated here.
[0352] Optionally, Fig.24 The first device 2400 shown may also include a storage unit ( Fig.24 (not shown), the storage unit stores a program or instruction. When the transceiver unit 2401 and the processing unit 2402 execute the program or instruction, Fig.24 The first device 2400 shown can execute the configuration method described in the above method embodiment.
[0353] Fig.24 The technical effects of the first device 2400 shown can refer to the technical effects of the configuration method described in the above method embodiment, and will not be repeated here.
[0354] In addition to being in the form of the first device 2400, the technical solution provided in the present application may also be a functional unit or chip in the first device, or a device used in conjunction with the first device.
[0355] 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.
[0356] Optionally, the processor in the chip system may be one or more. The processor may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.
[0357] Optionally, the memory in the chip system may also be one or more. The memory may be integrated with the processor or may be separately arranged with the processor, which is not limited in the embodiments of the present application. Exemplarily, 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 may be arranged on different chips respectively. The embodiments of the present application do not specifically limit the type of memory and the arrangement of the memory and the processor.
[0358] Exemplarily, the chip system can 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.
[0359] It should be understood that each step in the above method embodiment can be completed by an integrated logic circuit of hardware in a processor or by instructions in the form of software. 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.
[0360] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is run on a computer, the computer executes the above-mentioned related steps to implement the configuration method in the above-mentioned embodiment.
[0361] The embodiment of the present application also 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.
[0362] In addition, an embodiment of the present application further provides a device. The device may be a component or a module, and the device 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 in each of the above method embodiments.
[0363] Among them, the device, computer-readable storage medium, computer program product or chip provided in the embodiments of the present application are used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0364] The steps of the method or algorithm described in conjunction with the disclosure of the embodiments of the present application can be implemented in hardware or by executing software instructions by a processor. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (RAM), flash memory, read only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs 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).
[0365] Through the description of the above implementation methods, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed; that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0366] In the several embodiments provided in the present application, it should be understood that the disclosed method can be implemented in other ways. The device embodiments described above are merely schematic. 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.
[0367] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0368] 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 codes.
[0369] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope 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 the 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 used to complete 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
Cited By
Configuration method and device of display panel of intelligent equipment, storage medium and equipment
CN119806357A
Dynamic video light performance customization regulation and control system and method
CN120659197A
Configuration method and electronic device
EP4661381A1
