Response method and control method for external control and electronic equipment

By implementing a button response mechanism in the unconnected state in the home appliance device, the problem of response delay when the Bluetooth control device is not connected to the home appliance device is solved, achieving faster response speed and lower latency.

CN120085574APending Publication Date: 2025-06-03HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410405987.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-27
Publication Date
2025-06-03

AI Technical Summary

Technical Problem

After the home appliance is turned on, if the user presses the button on the Bluetooth control device, if the Bluetooth control device does not establish a connection with the home appliance, it will cause the home appliance response to delay and cause the problem of delayed response.

Method used

A response method for external control is provided, allowing the appliance device to immediately respond to the user's key operation on the control device without establishing a connection with the control device. The specific implementation method includes receiving the connection broadcast sent by the control device after the home appliance device is turned on, and analyzing and obtaining the key key value corresponding to the key, and directly executing the response action.

Benefits of technology

Through this method, when the home appliance device is in an unconnected state with the control device, it can quickly respond to the user's key operation, reduce the response time, and avoid the problem of delayed response.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120085574A_ABST
    Figure CN120085574A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an external control response method, a control method and electronic equipment, relates to the technical field of electronics, and aims to reduce the response time of a household appliance to key control of a user on control equipment when the household appliance and the control equipment are in a disconnected state and reduce the problem of response delay. The external control response method is applied to the first electronic equipment. The method comprises the following steps: starting up first electronic equipment; the first electronic equipment and the second electronic equipment are in a disconnected state, and the first electronic equipment responds to a first key operation of a user on the first key on the second electronic equipment and executes a response action operation corresponding to the first key; the second electronic equipment is paired electronic equipment of the first electronic equipment; the first key is a non-power key of the second electronic equipment; a first electronic device establishes a first connection with a second electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The application number of the original application is 202311591416.0, the original application date is November 27, 2023, and the entire content of the original application is incorporated herein by reference. Technical Field

[0002] Embodiments of this application relate to the field of electronic technologies, and in particular, to a method for responding to external control, a control method, and an electronic device. Background Art

[0003] Devices such as home appliances can usually be controlled by a control device. In related technologies, the control device includes an infrared control device that emits infrared rays, and a Bluetooth control device that is wirelessly connected via Bluetooth or the like.

[0004] After the Bluetooth control device is successfully paired with the home appliance device, and then the home appliance device is powered on, the Bluetooth control device needs to first establish a connection with the home appliance device, and then the user can control the home appliance device through the Bluetooth control device. Generally, if the Bluetooth control device has not been used for a long time, it will enter a sleep state, and the user needs to wake up the Bluetooth control device by pressing a button.

[0005] After the home appliance device is powered on, when the user presses a button on the Bluetooth control device, it is usually hoped to control the home appliance device to perform a response action through the Bluetooth control device. If the Bluetooth control device is not connected to the home appliance device at this time, the home appliance device needs to first establish a connection with the Bluetooth control device before it can respond to the button press of the Bluetooth control device and perform the corresponding response action. In this scenario, the response time of the home appliance device to the button control of the user on the control device is relatively long, and there may be a problem of delayed response. Summary of the Invention

[0006] Embodiments of this application provide a method for responding to external control, a control method, and an electronic device, which are used to reduce the response time of a home appliance device to the button control of a user on a control device and reduce the problem of delayed response when the home appliance device and the control device are in an unconnected state.

[0007] To achieve the above object, the embodiments of this application adopt the following technical solutions:

[0008] In a first aspect, a method for responding to external control is provided. The method is applied to a first electronic device. The method includes:

[0009] The first electronic device is turned on. The first electronic device and the second electronic device are in an unconnected state. The first electronic device responds to the user's operation on the first button on the second electronic device and performs a response action corresponding to the first button. The second electronic device is an electronic device that has been paired with the first electronic device. The first button is a non-power button of the second electronic device. In addition, the first electronic device may also establish a first connection with the second electronic device in response to the user's operation on the first button on the second electronic device.

[0010] Compared with the related art, in which the first electronic device needs to receive the reissued key value and respond after the first electronic device establishes a connection with the second electronic device, in this solution, the first electronic device can respond to the key operation before the connection is established. Therefore, when the first electronic device and the second electronic device are not connected, the response speed of the first electronic device to the key operation of the user on the second electronic device is improved, avoiding the problem of delayed response.

[0011] In a possible implementation of the first aspect, the first electronic device and the second electronic device are in an unconnected state, and the first electronic device responds to the user's operation on the first button on the second electronic device and performs a response action corresponding to the first button, which may specifically include: the first electronic device and the second electronic device are in an unconnected state, and receive a first connection broadcast issued by the second electronic device. Among them, the first connection broadcast is triggered by the second electronic device in response to the user's operation on the first button of the second electronic device; the first connection broadcast is used to indicate that the second electronic device is in a connectable state, and the first connection broadcast is used to control the first electronic device to perform a response action. Then, the first electronic device parses the first connection broadcast and obtains the first button key value corresponding to the first button. Finally, the first electronic device responds to the first button key value and performs the response action corresponding to the first button.

[0012] In this solution, the first electronic device can receive the key value and respond before the connection is established. Therefore, when the first electronic device and the second electronic device are not connected, the response speed of the first electronic device to the key operation of the user on the second electronic device is improved to avoid the problem of delayed response.

[0013] In a possible implementation of the first aspect, after the first electronic device establishes a first connection with the second electronic device, the method further includes: the first electronic device receives a second key value sent by the second electronic device through the first connection. The second key value is sent by the second electronic device in response to a user's operation on the second key on the second electronic device; the second key includes a power key and a non-power key of the second electronic device. Then, in response to the second key value, the first electronic device executes a response action corresponding to the second key value.

[0014] In this solution, after the first electronic device and the second electronic device successfully establish a connection, the first electronic device can receive the key values of the keys sent by the second electronic device later through the established connection. In this way, the power consumption required for the second electronic device to send the key values of the keys can be relatively low.

[0015] In a possible implementation manner of the first aspect, the first electronic device includes a Bluetooth module, a Bluetooth driver, an input subsystem, and an application. After the first electronic device is powered on, the above method further includes: the first electronic device creates a first input device node in the input subsystem.

[0016] In this implementation manner, the first electronic device receiving the first connection broadcast sent by the second electronic device may specifically include: the Bluetooth module of the first electronic device receives the first connection broadcast sent by the second electronic device.

[0017] In this implementation manner, the first electronic device parses the first connection broadcast to obtain the first key value corresponding to the first key, which may specifically include: the Bluetooth module transmits the first connection broadcast to the Bluetooth driver. The Bluetooth driver parses the first connection broadcast to obtain the first key value corresponding to the first key.

[0018] In this implementation manner, the first electronic device responds to the first key value and executes the response action corresponding to the first key, which may specifically include: the Bluetooth driver writes the first key value in the first input device node. After the input subsystem obtains the first key value through the first input device node, it reports the first key value to the application. Finally, the application responds to the first key value and executes the response action corresponding to the first key.

[0019] In this solution, the first electronic device will create a first input device node in the input subsystem immediately after being powered on. In this way, when the first electronic device and the second electronic device are in an unconnected state, after the Bluetooth driver of the first electronic device receives the key values uploaded by the Bluetooth chip, it can report the received key values to the upper layer through the first input device node. Thus, when the first electronic device and the second electronic device are in an unconnected state, the first electronic device can respond to the key operation of the user on the second electronic device based on the key values. This can reduce the response time of the first electronic device in this case, improve the response speed, and avoid the problem of delayed response.

[0020] In a possible implementation of the first aspect, after the first electronic device establishes a first connection with the second electronic device, the method may further include: the Bluetooth driver of the first electronic device creates a second input device node corresponding to the second electronic device in the input subsystem. The second input device node is used for the Bluetooth driver to transmit key values of keys to the input subsystem. In this way, after the first electronic device establishes a connection with the second electronic device, the Bluetooth driver of the first electronic device can report the received key values of keys to the application through the second input device node.

[0021] In a possible implementation of the first aspect, when the first electronic device is powered on, it may include: the first electronic device is powered on in response to a triggering operation by the user on the power button of the first electronic device.

[0022] In a possible implementation of the first aspect, when the first electronic device is powered on, it may include: the first electronic device is powered on by powering up.

[0023] In a possible implementation of the first aspect, when the first electronic device is powered on, it may include: the first electronic device is powered on in response to a power-on instruction sent by a device other than the second electronic device.

[0024] In a possible implementation of the first aspect, when the first electronic device is powered on, it may include: the first electronic device is powered on in response to a voice power-on instruction.

[0025] In a possible implementation of the first aspect, the first electronic device includes a display screen; the method may further include: the first electronic device displays an interface corresponding to the response result of the operation of the first button on the display screen in response to the operation of the user on the first button on the second electronic device. In this way, it is convenient to prompt the user that the response has been made.

[0026] In a possible implementation of the first aspect, after the first electronic device is powered on, the method further includes: the first electronic device and the second electronic device are in a non-connected state, and the first electronic device receives a second connection broadcast sent by the second electronic device. The second connection broadcast is used to indicate that the second electronic device is in a connectable state; the second connection broadcast is triggered by the second electronic device in response to the operation of the user on the third button on the second electronic device. The third button is the power button of the second electronic device. Finally, the first electronic device maintains the power-on state and establishes a second connection with the second electronic device based on the second connection broadcast.

[0027] In this solution, when the first electronic device is powered on and the first electronic device and the second electronic device are in an unconnected state, if the user presses the power button of the second electronic device, the first electronic device can receive the second connection broadcast sent by the second electronic device. The first electronic device can establish a connection with the second electronic device based on this second connection broadcast. And the first electronic device remains powered on. In this way, it is convenient for the user to press a button on the second electronic device later, and the first electronic device can receive the key value of the button press through the established connection and respond accordingly.

[0028] In a possible implementation manner of the first aspect, the first electronic device stores preset identification information of the electronic devices paired with the first electronic device. After the first electronic device is powered on, it starts scanning. The first electronic device can scan the connection broadcast sent by any electronic device. After the first electronic device scans the connection broadcast, it can parse and obtain the identification information in the connection broadcast. This identification information is used to uniquely represent the electronic device that sent the connection broadcast. The first electronic device compares the identification information with the preset identification information to verify and determine whether the electronic device that sent the connection broadcast is paired with the first electronic device. If the identification information carried in the connection broadcast is consistent with the preset identification information, it can be determined that the electronic device that sent the connection broadcast is the above-mentioned second electronic device.

[0029] In a possible implementation manner of the first aspect, if the identification information carried in the connection broadcast is inconsistent with the preset identification information, then the electronic device that sent the connection broadcast is not paired with the first electronic device. In this solution, the first electronic device may not respond to this connection broadcast.

[0030] In a possible implementation manner of the first aspect, the first connection broadcast is a Bluetooth reconnection broadcast.

[0031] In a possible implementation manner of the first aspect, the second connection broadcast is a Bluetooth reconnection broadcast.

[0032] In a second aspect, the present application further provides a control method, which is applied to the second electronic device. The second electronic device is paired with the first electronic device. The method includes:

[0033] When the second electronic device and the first electronic device are in an unconnected state, in response to the user's operation on the first button of the second electronic device, control the first electronic device to execute the response action corresponding to the first button. And, the second electronic device establishes a first connection with the first electronic device. Wherein, the first button is a non-power button of the second electronic device.

[0034] In this solution, the second electronic device is in a disconnected state from the first electronic device. When the user operates a non-power button on the second electronic device, the first electronic device can still make a response action. In this way, the response time of the first electronic device to the button operation in this case is shortened, the response speed can be improved, and the problem of delayed response can be avoided.

[0035] In a possible implementation of the second aspect, when the second electronic device is in a disconnected state from the first electronic device, in response to the user's operation on the first button of the second electronic device, controlling the first electronic device to execute the response action corresponding to the first button may specifically include: when the second electronic device is in a disconnected state from the first electronic device, in response to the user's operation on the first button of the second electronic device, obtaining the first button key value corresponding to the first button. Here, the first button is a non-power button. The second electronic device sends a first connection broadcast based on the first button key value. The first connection broadcast includes the first button key value; the first connection broadcast is used to indicate that the second electronic device is in a connectable state, and the first connection broadcast is used to control the first electronic device to execute the response action corresponding to the first button key value. Finally, the second electronic device and the first electronic device establish a first connection.

[0036] In this solution, the second electronic device is in a disconnected state from the first electronic device. When the user operates a non-power button on the second electronic device, the second electronic device can carry the button key value in the sent connection broadcast. Thus, even when the second electronic device is in a disconnected state from the first electronic device, the first electronic device can still make a response action according to the connection broadcast. In this way, the response time of the first electronic device to the button operation in this case is shortened, the response speed can be improved, and the problem of delayed response can be avoided.

[0037] In a possible implementation of the second aspect, after the second electronic device and the first electronic device establish a first connection, the method further includes: the second electronic device, in response to the user's operation on the second button of the second electronic device, obtains the second button key value corresponding to the second button. The second electronic device sends the second button key value to the first electronic device through the first connection. The second button key value is used to control the first electronic device to execute the response action corresponding to the second button.

[0038] In this solution, when the second electronic device is in a connected state with the first electronic device, in response to the user's button operation on the second electronic device, it can send the button key value to the first electronic device through the established connection. In this way, the power consumption required for the second electronic device to send the button key value can be reduced.

[0039] In a possible implementation of the second aspect, when the second electronic device and the first electronic device are in a disconnected state, in response to a user's operation on a third button of the second electronic device, a second connection broadcast is sent. Here, the third button is the power button. The second connection broadcast does not include the key value of the third button. The second connection broadcast is used to indicate that the second electronic device is in a connectable state. After the first electronic device scans the second connection broadcast, it can establish a connection with the first electronic device. That is, the second electronic device and the first electronic device establish a first connection. In this solution, when the second electronic device and the first electronic device are in a disconnected state, the user presses the power button on the second electronic device, and the second electronic device sends the second connection broadcast. Thus, a connection is established between the second electronic device and the first electronic device, facilitating the subsequent use by the user to control the first electronic device to perform a response action with the second electronic device.

[0040] In a possible implementation of the second aspect, the above-mentioned second connection broadcast is further used to instruct the first electronic device to power on. If the first electronic device scans the second connection broadcast in the standby state, it can power on and establish a connection with the second electronic device. If the first electronic device scans the second connection broadcast in the powered-on state, it can establish a connection with the second electronic device.

[0041] In a possible implementation of the second aspect, the first connection broadcast is a Bluetooth reconnection broadcast.

[0042] In a possible implementation of the second aspect, the second connection broadcast is a Bluetooth reconnection broadcast.

[0043] In a third aspect, the present application further provides an electronic device, which may be the first electronic device. The first electronic device may include: a Bluetooth module, a processor, and a memory. The Bluetooth module is used to communicate with the second electronic device. The memory is used to store computer execution instructions. When the first electronic device runs, the processor executes the computer execution instructions stored in the memory, so that the first electronic device executes the response method for external control as described in any one of the above first aspects.

[0044] In a fourth aspect, the present application further provides an electronic device, which may be the second electronic device. The second electronic device may include: a Bluetooth module, a processor, and a memory. The Bluetooth module is used to communicate with the first electronic device. The memory is used to store computer execution instructions. When the second electronic device runs, the processor executes the computer execution instructions stored in the memory, so that the second electronic device executes the control method as described in any one of the above second aspects.

[0045] Fifth aspect, the present application further provides a communication system, which may include the electronic device of any one of the third aspect and the second electronic device of any one of the fourth aspect. Among them, the second electronic device is used to control the first electronic device to perform a response action.

[0046] Sixth aspect, the present application provides a computer-readable storage medium, in which instructions are stored. When it runs on a computer, it enables the computer to execute the response method of external control of any one of the above first aspects, or the control method of any one of the above second aspects.

[0047] Seventh aspect, a computer program product containing instructions is provided. When it runs on an electronic device, it enables the electronic device to execute the response method of external control of any one of the above first aspects, or the control method of any one of the above second aspects.

[0048] Eighth aspect, a device (for example, the device may be a chip system) is provided. The device includes a processor for supporting the electronic device to implement the functions involved in the above first aspect. In a possible design, the device further includes a memory for storing necessary program instructions and data of the electronic device. When the device is a chip system, it may be composed of chips or may include chips and other discrete devices.

[0049] Among them, the technical effects brought by any one of the design methods in the third aspect to the eighth aspect can be referred to the technical effects brought by different design methods in the first aspect and / or the second aspect, which will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 It is a schematic diagram of a communication system provided by an embodiment of the present application;

[0051] Figure 2 It is a schematic diagram of a usage scenario of a smart screen provided by an embodiment of the present application;

[0052] Figure 3 It is a schematic diagram of a usage scenario of a smart screen provided by an embodiment of the present application;

[0053] Figure 4 It is a schematic flowchart of the response of a smart screen to the key operation of a user on a control device provided by an embodiment of the present application;

[0054] Figure 5 It is a schematic hardware structure diagram of an electronic device provided by an embodiment of the present application;

[0055] Figure 6 It is a data flow diagram of the interaction between a smart screen and a control device provided by an embodiment of the present application;

[0056] Figure 7 Schematic diagram of a response method with external control provided by an embodiment of this application;

[0057] Figure 8 Schematic diagram of a response method with external control provided by an embodiment of this application;

[0058] Figure 9 Schematic diagram of a control method provided by an embodiment of this application;

[0059] Figure 10 Schematic diagram of a control method provided by an embodiment of this application;

[0060] Figure 11 Schematic diagram of an interaction process between a smart screen and a control device provided by an embodiment of this application;

[0061] Figure 12 Schematic diagram of an interaction process between a smart screen and a control device provided by an embodiment of this application;

[0062] Figure 13 Schematic diagram of an interaction process between a smart screen and a control device provided by an embodiment of this application;

[0063] Figure 14 Schematic diagram of an interaction process between a smart screen and a control device provided by an embodiment of this application;

[0064] Figure 15 Frame diagram of a chip system provided by an embodiment of this application. Detailed implementation manners

[0065] First, a brief description of technical terms related to the embodiments of this application is given.

[0066] Pass-through, that is, transparent transmission, means that in communication, regardless of the content of the transmitted service, it only responsible for transmitting the transmitted content from the source address to the destination address without making any changes to the service data content.

[0067] In related technologies, some electronic devices can be controlled by a control device. Exemplarily, the electronic device can be a smart screen.

[0068] Such as Figure 1As shown in the figure, the smart screen 10 includes a power button 11. The control device 20 includes a power button 21 and a plurality of function buttons 22 (non-power buttons). After the smart screen 10 and the control device 20 are successfully paired, the user can perform a button operation on the control device 20 to control the smart screen 10 to perform a corresponding response action. Exemplarily, the user can use the control device 20 to control the smart screen 10 to perform operations such as power on, power off, channel switching, volume adjustment, and returning to the desktop. Among them, for the specific implementation process of pairing between the smart screen 10 and the control device 20, reference can be made to the description in the related art.

[0069] In some embodiments, after the smart screen 10 and the control device 20 are successfully paired, every time the smart screen 10 is powered on, it needs to establish a connection with the control device 20 first. After establishing the connection, the control device 20 can control the smart screen 10 to perform a corresponding response action. The smart screen 10 usually does not respond to the button control of the control device 20 that has not been paired with itself.

[0070] To ensure that the smart screen 10 only responds to the control of the control device 20 paired with itself, before the smart screen 10 establishes a connection with the control device 20 that scans the connection broadcast every time it is powered on, the smart screen 10 can first determine whether the control device 20 corresponding to the scanned connection broadcast is the control device 20 paired with the smart screen 10 (such as the control device 20).

[0071] In some embodiments, after the smart screen 10 and the control device 20 are successfully paired, the smart screen 10 can save the identification information of the control device 20. After the smart screen 10 scans the connection broadcast, it can compare the identification information of the control device 20 carried in the connection broadcast with the identification information of the control device 20 stored in the smart screen 10 to determine whether the control device 20 corresponding to the scanned connection broadcast is the control device 20. If the control device 20 corresponding to the scanned connection broadcast is the control device 20, the smart screen 10 can establish a connection with the control device 20 to enable the user to control the smart screen 10 to perform corresponding response actions through the control device 20.

[0072] As Figure 2 As shown in the figure, after the smart screen 10 is connected to the power supply line, in response to the user's trigger operation on the power button 11 on the smart screen 10, it can be powered on and display the desktop 101. After that, the user can control the smart screen 10 through the control device 20.

[0073] Figure 2The desktop 101 shown includes application icons such as live broadcast, settings, game center, app store, and home camera. The currently selected application icon is the live broadcast application icon 102. In response to the user's triggering operation on the "confirm" function key among the function keys 22 on the control device 20, the control device 20 can send a confirmation instruction to the smart screen 10. In response to this confirmation instruction, the smart screen 10 can enter the live broadcast application and display Figure 2 the live broadcast application interface 103 shown.

[0074] Figure 3 The scenario where the user controls the smart screen to turn on by the control device 20 is shown. In this scenario, after the smart screen 10 is connected to the power supply cable, the user can trigger the power key 21 of the control device 20 on the control device 20. In response to the user's triggering operation on the power key 21, the control device 20 sends a power-on instruction to the smart screen 10. After receiving the power-on instruction sent from the control device 20, the smart screen can power on in response to this power-on instruction and display the desktop 201.

[0075] In some embodiments, the control device 20 establishes communication with the smart screen 10 via Bluetooth. In the related art, there are at least two ways for the control device 20 to send control instructions to the smart screen 10: One is that the control device 20 sends control instructions to the smart screen 10 by sending Bluetooth broadcasts. Another way is that the control device 20 establishes a Bluetooth connection with the smart screen 10 and sends control instructions to the smart screen 10 through this Bluetooth connection. Compared with the way of sending control instructions through a Bluetooth connection, the way of sending control instructions through Bluetooth broadcasts will bring greater power consumption to the control device 20. Therefore, usually after the smart screen 10 is started, the control device 20 can establish a connection with the smart screen 10. After that, the control device 20 can send control instructions to the smart screen 10 through this connection to reduce the power consumption of the control device 20.

[0076] The control device 20 uses the Bluetooth connection method to send control instructions to the smart screen 10. After the control device 20 and the smart screen 10 are successfully paired, every time the smart screen 10 is powered on later, the control device 20 needs to first establish a connection with the smart screen 10, and then the user can control the smart screen 10 through this control device 20. Generally, if the control device 20 has not been used for a long time, it will enter the sleep state and the user needs to wake up the control device 20. Exemplarily, the user can wake up the control device 20 by pressing a key on the control device 20.

[0077] After the smart screen 10 is powered on, the user presses a button on the control device 20, aiming to control the home appliance device to perform a corresponding response action through the Bluetooth control device 20. If the control device 20 is not connected to the smart screen 10 at this time, the smart screen 10 needs to establish a connection with the control device 20 first before it can respond to the button press of the control device 20 and perform the corresponding response action. Figure 4 Figure 4 shows the interaction process between the smart screen 10 and the control device 20 in the scenario where, after the smart screen 10 is powered on, the user triggers the control device 20 to switch from the sleep state to the working state through button operations. This interaction process includes the following steps:

[0078] S1. The smart screen 10 is powered on.

[0079] Exemplarily, the smart screen 10 can be powered on in the Figure 2 shown manner, that is, the smart screen 10 is powered on in response to the user's trigger operation on the power button on the smart screen 10.

[0080] S2. The smart screen 10 starts scanning.

[0081] S3. In response to the user's button operation 1, the control device 20 switches from the sleep state to the working state.

[0082] Before the control device 20 detects this button operation 1, it is in the sleep state. Since the smart screen 10 has been powered on, the user's button operation on the control device 20 at this time is usually a button operation on a non-power button of the control device 20.

[0083] S4. The control device 20 sends a reconnection broadcast.

[0084] S5. The smart screen 10 scans the reconnection broadcast.

[0085] S6. The smart screen 10 initiates a reconnection interaction.

[0086] S7. The control device 20 and the smart screen 10 perform a reconnection interaction.

[0087] For the control device 20, different buttons correspond to a button key value respectively. In the two scenarios before the control device 20 is connected to the smart screen 10 and after the control device 20 is connected to the smart screen 10, the operations performed by the control device 20 in response to the user's button operation on the control device 20 are different. For example, before the control device 20 is connected to the smart screen 10, the control device 20 is usually in the sleep state. At this time, in response to the user's button operation on the control device 20, the control device 20 can send a connection broadcast. After the control device 20 is in the working state and is connected to the smart screen 10, in response to the user's button operation on the control device 20, the control device 20 can directly send the button key value through this connection.

[0088] Among them, before the control device 20 establishes a connection with the smart screen 10, in response to the user's key operation on the control device 20, the control device 20 sends a connection broadcast, which can be divided into two situations. The first situation is that the user operates a non-power button on the control device 20. In this case, the control device 20 can send a reconnection broadcast. The reconnection broadcast is used to indicate that the control device 20 is in a connectable state. After other devices scan the reconnection broadcast, they can establish a connection with the control device 20 according to the reconnection broadcast. For example, after the smart screen 10 scans the reconnection broadcast, the smart screen 10 will establish a connection with the control device 20. In addition, after the control device 20 successfully reconnects with the smart screen, the control device 20 will also resend the key value corresponding to the key operation through the reconnection connection channel. The key value is used to control the smart screen 10 to perform response actions, such as S8 and S9.

[0089] S8. After the control device 20 successfully reconnects with the smart screen 10, it resends the key value corresponding to key operation 1.

[0090] Specifically, when the control device 20 resends the button value, the button value can be sent through the back-connection channel established between the control device 20 and the smart screen 10.

[0091] S9. The smart screen 10 receives the key value of the button, responds to the key value of the button, and executes the corresponding response action.

[0092] After the control device 20 establishes a connection with the smart screen 10, the control device 20 will directly send the key value through the connection established with the smart screen 10 in response to the user's key operation on the control device 20. When the user triggers the key operation of the power button on the control device 20, the control device 20 can send the key value corresponding to the power button to the smart screen 10, and the smart screen 10 shuts down in response to the key value. When the user triggers the key operation of a non-power button on the control device 20, the control device 20 can send the key value corresponding to the non-power button to the smart screen 10, and the smart screen 10 performs the corresponding response action in response to the key value.

[0093] Figure 4 In the process shown, when the user first triggers key operation 1 on the key of the control device 20 when the control device 20 is in the dormant state, the control device 20 needs to successfully reconnect with the smart screen 10 before it can send the key value corresponding to the key operation 1 to the smart screen 10. After that, the smart screen 10 can respond to the key value. In this way, the response time required by the smart screen 10 for the user to press the key on the control device 20 is long, and a delayed response problem may occur.

[0094] Based on this, an embodiment of the present application proposes a response method for external control, which can be applied to an electronic device (which can be recorded as a first electronic device) that supports control by a control device 20. In this method, after the electronic device is turned on, even if the electronic device and the target control device 20 (which can be recorded as a second electronic device) are in an unconnected state, the electronic device can also respond to the user's key operation on the first key of the target control device 20, and perform a response action corresponding to the first key. Among them, the target control device 20 is a paired control device 20 of the electronic device. In addition, the electronic device can also establish a first connection with the target control device 20. Among them, the first key is a non-power key of the target control device.

[0095] In this solution, when the electronic device is turned on and is not connected to the target control device, after the user triggers a key operation on the non-power key of the paired target control device 20, the electronic device can directly respond to the key operation and establish a connection with the target control device 20. Compared with the related art that requires the smart screen 10 to receive the reissued key value and respond after the smart screen 10 establishes a connection with the control device 20, in the technical solution proposed in the embodiment of the present application, the smart screen 10 can respond to the key operation before the connection is established. Therefore, when the smart screen 10 and the control device 20 are not connected, the response speed of the smart screen 10 to the user's key operation on the control device 20 is improved to avoid the problem of delayed response.

[0096] In some embodiments of the present application, when the electronic device is turned on and is not connected to a target control device, it can receive a connection broadcast sent by a user operating a non-power key on the target control device, and respond to the user's operation on the target control device based on the connection broadcast.

[0097] Exemplarily, the electronic device (i.e., the first electronic device) can be a smart screen 10, a mobile phone, a tablet computer, a personal computer (PC), a desktop, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, wearable devices such as smart watches, artificial intelligence (AI) speakers, and in-vehicle devices. It can also be various teaching aids (such as learning machines, early education machines), smart toys, portable robots, personal digital assistants (PDAs), augmented reality (AR) / virtual reality (VR) devices, media players, etc. It can also be a device with mobile office functions, a device with smart home functions, a device with audio-visual entertainment functions, a device supporting smart travel, etc. The specific form of the device is not particularly limited in the embodiments of the present application.

[0098] The above control device (i.e., the second electronic device) can be a remote control, a mobile phone, a tablet computer, or other devices with control functions.

[0099] As Figure 5 Shown is a schematic diagram of the hardware structure of the electronic device 100 provided by an embodiment of the present application. Exemplarily, the electronic device can be the first electronic device, such as the above-mentioned smart screen 10. The electronic device 100 can include a processor 110, an external memory interface 120, an internal memory 130, a power module 140, a communication interface 150, a wireless communication module 160, an audio module 170, a display screen 180, a camera 190, and a button 191, etc.

[0100] Exemplarily, the electronic device 100 can be the above-mentioned smart screen 10. It can be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can include more or fewer components than shown, or combine certain components, or split certain components, or have different component arrangements. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.

[0101] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors. For example, the processor 110 is used to execute the external control response method in the embodiments of the present application.

[0102] Among them, the controller may be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.

[0103] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can save the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0104] 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 electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. For example, files such as music and videos are saved in the external memory card.

[0105] The internal memory 130 can be used to store computer-executable program code, and the executable program code includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 130. The internal memory 130 may include a program storage area and a data storage area. Among them, the program storage area can store the operating system and at least one application program required for a function (such as a sound playback function, an image playback function, etc.).

[0106] In addition, the internal memory 130 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0107] The power supply module 140 can be used to receive a power input and supply power to the processor 110, the internal memory 130, the wireless communication module 160, the display screen 180, the camera 190, etc. In some embodiments, the power supply module 140 may also be disposed in the processor 110.

[0108] The communication interface 150 can be used to communicate with external devices such as a control device (such as the second electronic device proposed in the embodiments of the present application), a set-top box, a router, and a USB flash drive. The communication interface 150 can be any possible interface such as a network interface or a universal serial bus (USB) interface.

[0109] The USB interface is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.

[0110] The wireless communication module 160 can provide wireless communication solutions applied to the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite systems (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via an antenna, frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive signals to be sent from the processor 110, frequency-modulate them, amplify them, and convert them into electromagnetic waves via the antenna for radiation.

[0111] The electronic device 100 can implement audio functions through the audio module 170, the application processor, etc. For example, music playback, recording, etc.

[0112] The audio module 170 is used to convert digital audio signals into analog audio signals for output, and is also used to convert analog audio inputs into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 can be disposed in the processor 110, or some functional modules of the audio module 170 can be disposed in the processor 110. The audio module 170 can include a speaker 170A and a microphone 170B.

[0113] The speaker 170A, also known as the "loudspeaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 170A, or conduct a video conference, etc.

[0114] The microphone 170B, also known as the "microphone", is used to convert sound signals into electrical signals. When making a video call, a video conference, or using a voice assistant, the user can speak by bringing the mouth close to the microphone 170B to input the sound signal into the microphone 170B. The electronic device 100 can be provided with at least one microphone 170B. In some other embodiments, the electronic device 100 can be provided with two microphones 170B, which can not only collect sound signals but also implement a noise reduction function. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170B to implement sound signal collection, noise reduction, and can also identify the sound source to implement functions such as directional recording.

[0115] The display screen 180 is used to display images, videos, etc. The electronic device 100 realizes the display function through the GPU, the display screen 180, and the application processor, etc. The GPU is a microprocessor for image processing, which is connected to the display screen 180 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs, which execute program instructions to generate or change display information.

[0116] The camera 190 is used to capture static images or videos. In some embodiments, the electronic device 100 can include one or N cameras 190, where N is a positive integer greater than 1. In some embodiments, the camera 190 can be a lift-up camera. Generally, the lift-up camera is hidden inside the electronic device 100 and is invisible to the user. When the user uses the electronic device 100 to conduct a video call or a video conference with other users, the lift-up camera can pop out from the top of the electronic device 100, so that the lift-up camera can collect the user's image and send the user's image to the devices of other users through the wireless communication module 160 and the antenna, etc. In some other embodiments, the camera 190 can also be embedded inside the display screen of the electronic device 100.

[0117] The button 191 includes a power-on button, a volume button, a settings button, etc. The button 191 can be a mechanical button or a touch button. The electronic device 100 can receive button inputs and generate key signal inputs related to the user settings and function controls of the electronic device 100.

[0118] The response methods for external control in the following embodiments can all be implemented in the electronic device 100 with the above hardware structure.

[0119] Figure 6 The interaction schematic diagram between the smart screen and the control device in some embodiments is shown. In some embodiments, the software architecture of the electronic device is divided into an application layer, a framework layer (framework), and a kernel layer (kernel). The hardware layer of the electronic device includes a Bluetooth chip.

[0120] Among them, the application layer can include multiple applications. The framework layer includes a window manager, an input dispatcher (inputdispatcher), and an input reader (input reader). In some embodiments, the input dispatcher and the input reader can be referred to as an input (input) subsystem. The kernel layer includes a Bluetooth driver (BT driver) and an input device node.

[0121] Among them, the input device node can also be referred to as an input event (input event). The electronic device can register one or more input device nodes in the kernel layer. The Bluetooth driver can write data to the input device node.

[0122] The window manager provides a window management service (window manager service, WMS). The WMS can be used for window management, window animation management, surface (surface) management, and as a transfer station for the input system. The window manager can synchronously update the current window information of the electronic device (including information such as the clickable area of the window and the focused window) to the input dispatcher in real time.

[0123] The input reader can register a listening callback function with the input device node in the kernel layer. When data is written to the input device node, the input reader can obtain the data through the input device node. After that, the input reader can transmit the data to the input dispatcher.

[0124] The input dispatcher combines the current window information of the electronic device to determine which application to distribute the data from the input reader to.

[0125] The following combines Figure 6 The architecture shown to introduce the process of the response method for external control in some embodiments of the present application.

[0126] When the control device is in the sleep state, it can detect the user's key operation on the control device. When the control device detects a key operation, in response to the key operation, the control device switches from the sleep state to the working state. After the control device enters the working state, it starts to send connection broadcast 1. Among them, the key corresponding to the key operation is a non-power key, and the key value corresponding to the key operation is denoted as key value 1. In some embodiments of the present application, when the control device switches from the sleep state to the working state in response to the key operation of the non-power key, the key value corresponding to the key operation will be carried in the sent connection broadcast. That is, the above-mentioned connection broadcast 1 sent by the control device carries key value 1.

[0127] After the electronic device is powered on, it receives the connection broadcast 1 sent by the control device through the Bluetooth chip. The Bluetooth chip can parse the connection broadcast to obtain the control device identification information carried therein. At the same time, after the electronic device is powered on, the Bluetooth driver will create an input device node (which can be denoted as the first input device node).

[0128] Then, the Bluetooth chip can check whether the control device is paired with the electronic device according to the control device identification information, so as to decide whether to establish a connection with the control device. After determining that the control device is paired with the electronic device according to the control device identification information, the electronic device can establish a connection with the control device through the Bluetooth chip. Among them, the Bluetooth chip of the electronic device and the control device interact based on the Bluetooth protocol.

[0129] At the same time, the Bluetooth chip of the electronic device can transmit the received connection broadcast 1 to the Bluetooth driver. In some embodiments, the Bluetooth chip can transmit the connection broadcast 1 to the Bluetooth driver after receiving the connection broadcast. In this embodiment, the Bluetooth driver parses the connection broadcast 1 to obtain the control device identification information and key value 1 carried therein. After the Bluetooth driver determines that the control device is the control device paired with the electronic device according to the identification information in the connection broadcast 1, it writes the key value 1 into the input device node. In some embodiments, the Bluetooth driver checks and reports the key value 1 according to the identification information, and the Bluetooth chip checks according to the identification information and establishes a connection with the control device, which can be executed synchronously. In this way, without waiting for the electronic device to complete the connection with the control device, the electronic device can respond to the key value 1, which can improve the response speed of the electronic device to the key value 1.

[0130] It can be understood that if the Bluetooth driver checks and determines that the control device is not paired with the electronic device according to the control device identification information, the Bluetooth driver may not report the key value 1 to the input subsystem and the application, that is, the Bluetooth driver will not write the key value 1 into the input device node.

[0131] In some other embodiments, after the Bluetooth chip determines that the control device is paired with the electronic device according to the control device identification information carried in the connection broadcast 1, the Bluetooth chip sends the connection broadcast 1 to the Bluetooth driver. In this embodiment, the Bluetooth driver parses the connection broadcast 1 to obtain the key value 1 carried therein and writes the key value 1 to the input device node. In some embodiments, the operation of the Bluetooth driver reporting the key value 1 to the input subsystem and the application can be executed synchronously with the Bluetooth chip establishing a connection with the control device. In this way, without waiting for the electronic device to complete the connection with the control device, the electronic device can respond to the key value 1, which can improve the response speed of the electronic device to the key value 1.

[0132] It can be understood that if the Bluetooth chip determines through verification of the control device identification information that the control device is not paired with the electronic device, the Bluetooth chip may not transmit the connection broadcast 1 to the Bluetooth driver.

[0133] Among them, in some embodiments, since the electronic device and the control device are in an unconnected state at this time, the input device node used by the Bluetooth driver to report the key value 1 to the input subsystem and the application may be the first input device node created when the electronic device is powered on.

[0134] After detecting that data is written to the input device node, the input reader in the framework layer can obtain the key value 1 through the input device node. Then, the input reader can transmit the key value 1 to the input dispatcher. The input dispatcher combines the current window information obtained in real time from the WMS and distributes the key value 1 to the corresponding application. After receiving the key value 1, the application makes a response action to the key value 1. In some embodiments, after the application makes a response action to the key value 1, it can display the interface corresponding to the corresponding response result.

[0135] In some embodiments, after the Bluetooth chip successfully establishes a connection with the control device, it sends a connection success notification message to the Bluetooth driver. After receiving the message notifying the connection success, the Bluetooth driver can create an input device node corresponding to the control device (which can be denoted as the second input device node). The Bluetooth chip receives the key value from the control device through the established connection and transmits the key value to the Bluetooth driver. After receiving the key value, the Bluetooth driver can write the key value to the input device node corresponding to the control device to report the key value to the input subsystem and the application.

[0136] In some embodiments, the specific implementation process of the electronic device establishing a connection with the control device through the Bluetooth chip may include the following steps: The Bluetooth chip of the electronic device sends a connection request to the control device. After receiving the above connection request, the control device checks and determines whether the electronic device is paired with the control device according to the connection request. After the control device checks and confirms that the electronic device corresponding to the connection request is paired with the control device, it establishes a lower-layer link with the Bluetooth chip of the electronic device in response to the connection request. After that, the Bluetooth chip of the electronic device sends an encryption request to the control device, and the control device encrypts in response to the encryption request and returns encryption success to the Bluetooth chip of the electronic device.

[0137] Next, in combination with the accompanying drawings, the external control response method proposed in the embodiments of the present application will be introduced in detail. Figure 7 Shows the flow of the external control response method in some embodiments.

[0138] S501. The smart screen 10 is powered on.

[0139] It should be noted that in some embodiments, in S501, the smart screen 10 is powered on not in response to the power-on instruction sent by the control device.

[0140] In some embodiments, in S501, the smart screen 10 can be powered on in response to the user's trigger operation on the power button on the smart screen 10; as Figure 2 shown in the scenario.

[0141] In other embodiments, in S501, the smart screen 10 can also be powered on by detecting power-on.

[0142] In other embodiments, in S501, the smart screen 10 can also be powered on in response to the power-on instruction sent by other devices; among them, other devices can include intelligent control speakers, etc.

[0143] Or, the smart screen 10 supports voice control in the standby state. In S501, the smart screen 10 can also be powered on in response to the power-on instruction issued by the user through voice.

[0144] It can be understood that the above embodiments are only examples for the implementation method of the smart screen 10 being powered on. In other embodiments, the smart screen 10 can also be triggered to be powered on by other means.

[0145] S502. The smart screen 10 starts scanning.

[0146] In some embodiments, the smart screen 10 can scan the broadcasts sent by the control devices within the preset range of the smart screen 10.

[0147] S503. The smart screen 10 determines whether a connection broadcast is scanned.

[0148] After the smart screen 10 is powered on, it will continuously scan. In some embodiments, the smart screen 10 can determine whether a connection broadcast is scanned at regular intervals, that is, the smart screen 10 can execute S503 at regular intervals (such as a preset time). If the judgment result of S503 is negative, it means that the smart screen 10 has not scanned the connection broadcast. At this time, the smart screen 10 can return to continue executing S503.

[0149] In some other embodiments, if the judgment result of S503 is positive, it means that the smart screen 10 has scanned the connection broadcast. At this time, the smart screen 10 can execute the subsequent steps.

[0150] In some embodiments, the connection broadcast can be a reconnection broadcast.

[0151] Furthermore, in some embodiments, the connection broadcast is a non-directional Bluetooth broadcast. Then, the connection broadcast can be scanned by any Bluetooth device within a certain range. Therefore, after the smart screen 10 scans the connection broadcast, it still needs to determine whether the control device that sent the connection broadcast has been paired with the smart screen 10 according to the connection broadcast, such as S504.

[0152] S504. The smart screen 10 determines whether the control device that sent the connection broadcast has been paired with the smart screen 10.

[0153] In some embodiments, the connection broadcast carries the identification information of the control device that sent the connection broadcast. The smart screen 10 can determine whether the control device that sent the connection broadcast has been paired with the smart screen 10 according to the identification information. Exemplarily, after the smart screen 10 is paired with the control device, it can save the identification information of the control device. In this way, after the smart screen 10 receives the connection broadcast, it can determine whether the control device that sent the connection broadcast is the control device that has been paired with the smart screen 10 according to the identification information carried in the connection broadcast.

[0154] Among them, the identification information can be used to uniquely identify the control device. In some embodiments, the identification information of the control device can be the media access control address (MAC).

[0155] If the control device that sent the connection broadcast has not been paired with the smart screen 10, the smart screen 10 will not respond to the connection broadcast. It can be understood that the situation where the judgment result of S504 is negative is not shown in Figure 7 is not shown.

[0156] If the control device that sent the connection broadcast has been paired with the smart screen 10, the smart screen 10 can establish a connection with the control device.

[0157] S505. The smart screen 10 reads the key value of the button in the connection broadcast, and executes the corresponding response action in response to the key value of the button.

[0158] S506. The smart screen 10 establishes a connection with the control device that sends the connection broadcast.

[0159] In some embodiments, the connection broadcast is a broadcast sent via the Bluetooth protocol. In this embodiment, the specific implementation process of the smart screen 10 establishing a connection with the control device that sends the connection broadcast in S506 can refer to the process of establishing a connection between the electronic device and the control device via the Bluetooth chip in the previous text.

[0160] In some embodiments, S505 may be executed before S506, or S505 and S506 may be executed simultaneously.

[0161] In the technical solution provided in the embodiment of the present application, for the smart screen 10, after determining that the control device that sends the connection broadcast is a control device that has been paired with the smart screen 10, the smart screen 10 can respond to the key values ​​carried in the connection broadcast 1. Compared with the related art that requires the smart screen 10 to establish a connection with the control device that sends the connection broadcast, and then the smart screen 10 receives the reissued key values ​​and responds, in the technical solution proposed in the embodiment of the present application, the smart screen 10 can respond to the key values ​​before the connection is established. Thereby, when the smart screen 10 and the control device are in an unconnected state, the response speed of the smart screen 10 to the user's key operations on the control device is improved, avoiding the problem of delayed response.

[0162] Combined with the above description, it can be known that when the control device is in a dormant state, a user's key operation on the control device is detected, which can be divided into two different situations according to different keys. In the embodiment of the present application, the control device sends a connection broadcast in response to the user's key operation on the control device, carrying the key value. Therefore, in the embodiment of the present application, when the control device is in a dormant state, different connection broadcasts can be sent in response to the user's key operation on the power key and the non-power key.

[0163] In some embodiments, the control device is in a dormant state, and in response to a user pressing a non-power key on the control device, a connection broadcast carrying a key value of the non-power key can be issued. The connection broadcast is used to indicate that the control device is in a connectable state, and the connection broadcast is used to control the smart screen 10 to perform a corresponding response action. After receiving the connection broadcast, the smart screen 10 can establish a connection with the control device, and perform a corresponding response action in response to the key value carried by the connection broadcast.

[0164] In some other embodiments, the control device is in a sleep state. In response to a user's key operation on the power key of the control device, a connection broadcast without a key value can be sent. This connection broadcast is used to indicate that the control device is in a connectable state. After receiving this connection broadcast, the smart screen 10 can also establish a connection with the control device. Meanwhile, this connection broadcast can also be used to turn on the smart screen 10 in the standby state. After receiving this connection broadcast, the smart screen 10 can respond, that is, turn on.

[0165] That is to say, in some embodiments, the connection broadcast scanned by the smart screen 10 may not carry a key value. Therefore, as Figure 8 shown, before S505, the above method further includes S601.

[0166] S601. The smart screen 10 determines whether the connection broadcast carries a key value.

[0167] If the determination result of S601 is yes, the smart screen 10 can execute S505.

[0168] In some other embodiments, if the connection broadcast does not carry a key value, the smart screen 10 establishes a connection with the control device that sends this connection broadcast based on this connection broadcast, as in S602.

[0169] S602. The smart screen 10 establishes a connection with the control device that sends this connection broadcast based on the connection broadcast.

[0170] In addition, since this connection broadcast is sent by the control device in the sleep state in response to the user's operation on the power key, in some embodiments, this connection broadcast can also be used to indicate turning on the smart screen 10. It can be seen from S501 that the smart screen 10 is currently in the on state. In some embodiments, after the smart screen 10 receives the connection broadcast in the on state, when it is determined through verification of the connection broadcast that the control device that sends this connection broadcast is paired with the smart screen 10, the smart screen 10 will not perform a response action in response to this connection broadcast. That is, the smart screen 10 will not turn off in response to this connection broadcast, but will remain in the on state.

[0171] In the technical solution provided by the embodiments of the present application, after the smart screen 10 scans the connection broadcast, it first confirms whether the connection broadcast carries a key value. If the connection broadcast carries a key value, after the smart screen 10 receives the connection broadcast, it can respond to the key value. And establish a connection with the control device, so that the control device can control the smart screen 10 to execute a response action later. In this way, when the smart screen 10 and the control device are in an unconnected state, the response time of the smart screen 10 to the key operation of the user on the control device can be reduced, the response speed can be increased, and the problem of delayed response can be avoided. If the connection broadcast does not carry a key value, after receiving the connection broadcast, the smart screen 10 establishes a connection with the control device. In this way, it can facilitate the control device to control the smart screen 10 to execute a response action later.

[0172] Further, after the smart screen 10 establishes a connection with the control device, when the user triggers a key operation on the control device again, the control device can send the key value corresponding to the key operation through the established connection. That is to say, the smart screen 10 can receive the key value sent by the control device through the established connection. And, the smart screen 10 can respond to the key value and execute a corresponding response action. As Figure 8 shown in S603 and S604.

[0173] S603. The smart screen 10 receives the key value through the connection.

[0174] S604. The smart screen 10 responds to the key value and executes a corresponding response action.

[0175] In some embodiments, the smart screen 10 responds to the key value received from the control device through the connection, executes a response action and displays the interface corresponding to the response result.

[0176] In the technical solution provided by the embodiments of the present application, after the smart screen 10 establishes a connection with the control device, it can receive the key value from the control device through this connection. In this way, it can facilitate the control device to control the smart screen 10.

[0177] Figure 9 Shows the flow of the control method provided in some embodiments of the present application. This method can be applied to the second electronic device, such as the above-mentioned control device 20.

[0178] S701. The control device 20 detects the key operation 1 of the user on the key 1 of the control device 20.

[0179] In some embodiments, the control device 20 may detect a key operation 1 in the sleep state. At this time, the control device 20 will switch from the sleep state to the working state in response to the key operation 1. When the control device 20 is in the sleep state, it will not send a connection broadcast, and usually there is no way to establish a connection with other devices (such as a smart screen). After the control device 20 switches from the sleep state to the working state, it can start sending a connection broadcast.

[0180] In other embodiments, the control device 20 may also detect a key operation 1 in the working state. In this case, it can be divided into two situations: The first situation is that the control device 20 has already established a connection with the smart screen, then the control device can directly send the key value of the key 1 to the smart screen through this connection. The second situation is that the control device 20 has not established a connection with the smart screen. At this time, the control device 20 can send a connection broadcast in response to the key operation 1.

[0181] Therefore, when the control device 20 detects a key operation 1, it can first determine whether a connection has been established with other devices (such as a smart screen), as in S702.

[0182] S702. The control device 20 determines whether it is connected to the smart screen.

[0183] If the judgment result of S702 is negative, it means that the control device 20 has not established a connection with the smart screen yet, and the control device 20 can send a connection broadcast. Combining the above description, it can be seen that the control device 20 can make different responses in response to the user pressing different keys, such as sending different connection broadcasts. In some embodiments of the present application, when the control device 20 responds to the user pressing the power key, it can send a connection broadcast without a key value. In other embodiments, when the control device responds to the user pressing a non-power key of the control device, it can send a connection broadcast carrying the key value. Therefore, before the control device 20 sends a connection broadcast in response to the key operation 1, it can also first determine whether the key 1 corresponding to the currently detected key operation 1 is the power key, as in S703.

[0184] S703. The control device 20 determines whether the key 1 is the power key.

[0185] It should be noted that the specific implementation process for the control device 20 to determine whether the key 1 is the power key can refer to the description in the related art.

[0186] If the judgment result of S703 is negative, it means that the key pressed by the current user on the control device is not the power key, but a function key. At this time, the control device 20 can carry the key value of this key in the connection broadcast to be sent, as in S704.

[0187] S704. The control device 20 sends out a connection broadcast 1, and the connection broadcast 1 carries the key value corresponding to the key operation 1.

[0188] After that, if the smart screen is in the boot state, it will perform a scan. If the smart screen scans the connection broadcast 1, it can establish a connection with the control device 20 based on the connection broadcast. Similarly, for the control device 20, the control device 20 will establish a connection with the smart screen, as in S705.

[0189] S705. The control device 20 establishes a connection 1 with the smart screen.

[0190] It should be noted that for the specific implementation process of the control device 20 establishing a connection 1 with the smart screen, reference can be made to the process of the electronic device establishing a connection with the control device through the Bluetooth chip in the previous text.

[0191] In addition, if the judgment result of the above S702 is yes, it means that when the control device 20 detects the key operation 1, the control device 20 has already established a connection with the smart screen. At this time, the control device 20 can directly send the key value of the key 1 to the smart screen through the established connection, as in S706.

[0192] S706. The control device 20 sends the key value corresponding to the key operation 1 to the smart screen through the established connection.

[0193] In the technical solution provided in the embodiment of the present application, when the control device 20 detects a key operation of the user on the control device 20, if the control device 20 has not established a connection with the smart screen and the user does not press the power key, a connection broadcast carrying the key value can be sent out. On the one hand, this connection broadcast is used to indicate that the control device 20 is currently in a connectable state, so that after the smart screen scans this connection broadcast, it can establish a connection with the control device 20. On the other hand, this connection broadcast can also be used to control the smart screen to perform a response action. In this way, after the smart screen scans the connection broadcast, it can respond to the key operation of the user on the control device 20 based on this connection broadcast. Thus, when the smart screen and the control device 20 are in an unconnected state, the response time of the smart screen to the key operation of the user on the control device 20 can be reduced, the response speed can be improved, and the problem of delayed response can be avoided.

[0194] In some embodiments, the control device 20 uses the Bluetooth standard protocol BLE4.2 to send out the connection broadcast 1. Exemplarily, the broadcast content of the above connection broadcast 1 is as follows:

[0195]

[0196]

[0197] Among them, static uint8_t app_power_adv_data[] represents the content of the reconnection broadcast data, that is, the above-mentioned connection broadcast 1. KEY_CODE represents the key value of the button carried by the connection broadcast 1. DEVICE_MAC_ADDRESS is used for the smart screen to verify whether the control device 20 is paired with the smart screen. When the user presses different buttons on the control device 20, the values of DEVICE_MAC_LEN, DEVICE_MAC_ADDRESS, and KEY_CODE in the above-mentioned connection broadcast 1 can be different.

[0198] When the judgment result of the above S703 is yes, it means that the button 1 pressed by the user is the power button. Combining the above description, when the user presses the power button before the control device 20 is connected to the smart screen, a connection broadcast corresponding to the power button can be sent in response to this button operation. As Figure 10 shown in S707.

[0199] S707. The control device 20 sends out connection broadcast 2, and the connection broadcast 2 does not carry the key value of the button.

[0200] If the smart screen is in the power-on state, it will perform scanning. If the smart screen scans this connection broadcast 2, it can establish a connection with the control device 20 based on this connection broadcast. Similarly, for the control device 20, the control device 20 will establish a connection with the smart screen.

[0201] In addition, since the connection broadcast 2 is sent by the control device 20 in response to the user's operation on the power button of the control device 20, in some embodiments, this connection broadcast 2 can also be used to instruct the smart screen in the standby state to power on. That is, in some embodiments, after the smart screen receives the connection broadcast 2 in the standby state, and after verifying according to the connection broadcast 2 that the control device 20 is paired with the smart screen, the smart screen will power on in response to this connection broadcast 2.

[0202] In some embodiments, the control device 20 uses the Bluetooth standard protocol BLE4.2 to send out the connection broadcast 2. Exemplarily, the broadcast content of the above-mentioned connection broadcast 2 is as follows:

[0203]

[0204] Among them, static uint8_t app_power_adv_data[] represents the content of the reconnection broadcast data, that is, the above-mentioned connection broadcast 2.

[0205] In the technical solution provided by the embodiment of the present application, if the control device 20 establishes a connection with the smart screen, then the control device 20 can send a connection broadcast 2 without a key value in response to a key operation on the power button of the control device 20. After the smart screen scans the connection broadcast 2, it can establish a connection with the control device 20 based on the connection broadcast 2 and turn on the power.

[0206] Further, after the control device 20 establishes a connection 1 with the smart screen, when the user triggers a key operation on the control device 20 later, the control device 20 can send the key value of the key to the smart screen through the connection 1, such as Figure 10 As shown, the above method further includes S708.

[0207] S708. The control device 20 sends the key value of the key 2 to the smart screen through the connection 1 in response to a key operation 2 on the key 2 of the control device 20 by the user.

[0208] It can be understood that the key 2 in S708 can be the power button of the control device 20 or a non-power button.

[0209] In some embodiments, after the control device 20 detects a key operation 2 on the key 2, it can obtain the key value of the key 2. Then, the control device 20 can send the key value of the key 2 to the smart screen through the above connection 1.

[0210] In the technical solution provided by the embodiment of the present application, after the control device 20 establishes a connection with the smart screen, when it detects a key operation by the user on the control device 20, it can directly send the key value to the smart screen through the established connection. Sending the key value through the connection can save the power consumption of the control device 20 compared with the method of sending the key value through Bluetooth broadcast.

[0211] Next, in combination with Figure 11 Regarding the interaction between the control device 20 and the smart screen 10, and the internal module interaction process of the smart screen 10 when the user triggers a key operation on the non-power button of the control device 20 while the control device 20 is in the sleep state.

[0212] The user performs a power-on operation on the smart screen 10.

[0213] S7000. The smart screen 10 is powered on.

[0214] In some embodiments, after the smart screen 10 is powered on, each module of the smart screen 10 will be powered on in sequence. In order to enable the smart screen 10 to respond to the key operation of the user on the control device when the smart screen 10 and the control device 20 are in an unconnected state, after the smart screen 10 is powered on, it is necessary to create a first input device node in the input subsystem.

[0215] S7001. The smart screen 10 creates a first input device node in the input subsystem.

[0216] S7002. The Bluetooth chip starts scanning.

[0217] After the smart screen 10 is powered on, when the user has the control device 20 in the sleep state and presses the button (non-power button) of the control device 20 for the first time. In response to this button operation, the control device 20 will send a connection broadcast (such as a reconnection broadcast).

[0218] S7003. The control device 20 sends a reconnection broadcast carrying the button key value.

[0219] In some embodiments, the reconnection broadcast further includes the MAC address of the control device 20.

[0220] S7004. The Bluetooth chip of the smart screen 10 scans the reconnection broadcast.

[0221] S7005. The Bluetooth chip forwards the reconnection broadcast to the Bluetooth driver.

[0222] S7006. The Bluetooth driver verifies the MAC address and reads the button key value.

[0223] In some embodiments, the Bluetooth driver may read the button key value carried in the reconnection broadcast after verifying that the MAC address determines that the control device 20 is the control device 20 paired with the smart screen 10.

[0224] S7007. The Bluetooth driver writes the button key value to the first input device node of the input subsystem.

[0225] In some embodiments, after the Bluetooth driver writes the button key value to the first input device node, the input subsystem can obtain the button key value.

[0226] In some embodiments, during the process of the smart screen 10 being powered on and interacting with the control device 20, logs will be printed and saved. In some embodiments, after the input subsystem obtains the button key value, the smart screen 10 will print a first log. This first log is used to indicate that the input subsystem has obtained the button key value. Exemplarily, this first log can specifically be an input reader (inputreader: UL_Input down(&)). Where & is a different key value for different operations.

[0227] In some embodiments, the above first log can be an operating system log printed by the smart screen 10.

[0228] S7008. The input subsystem reports the button key value to the application.

[0229] S7009. Apply the key value of the response button and execute the corresponding response action.

[0230] Meanwhile, the Bluetooth chip can also reconnect to the control device 20 according to the reconnection broadcast. Such as S7010 - S7023.

[0231] S7010. The Bluetooth chip verifies the MAC address and decides whether to initiate a reconnection request.

[0232] In some embodiments, after the Bluetooth chip verifies and determines that the MAC address of the control device 20 is the control device 20 paired with the smart screen 10, the smart screen 10 can initiate a reconnection request to the control device 20.

[0233] S7011. The Bluetooth chip initiates a reconnection request to the control device 20.

[0234] S7012. The control device 20 verifies the MAC address of the smart screen 10 to determine whether it has been paired.

[0235] In some embodiments, the control device 20 can verify the MAC address of the smart screen 10 in the reconnection request to determine whether the smart screen 10 has been paired with the control device 20. If so, execute S7013.

[0236] S7013. The control device 20 sends a message in response to the reconnection request to the Bluetooth chip of the smart screen 10.

[0237] After the Bluetooth chip receives the message in response to the reconnection request, it can establish a lower - layer link with the control device 20.

[0238] And after the lower - layer link is successfully established, it returns a message indicating the successful establishment of the lower - layer link to the control device 20.

[0239] S7014. The Bluetooth chip returns that the lower - layer link is successfully established to the control device 20.

[0240] In some embodiments, after the Bluetooth chip of the smart screen 10 successfully establishes a lower - layer link with the control device 20, the smart screen 10 will print a second log. This second log is used to indicate the successful establishment of the lower - layer link between the smart screen 10 and the control device 20. Exemplarily, the second log can specifically include: sub - event code: HCI Bluetooth enhanced connection complete (subevent_code:HCI_LE_enhanced_connection_complete).

[0241] In some embodiments, the above - mentioned second log can be the Bluetooth log printed by the smart screen.

[0242] In some embodiments, the time when the input subsystem of the smart screen 10 receives the key value of a key can be determined according to the printing times of the first log and the second log, and the sequence of the time when the input subsystem of the smart screen 10 receives the key value of a key and the time when the smart screen 10 establishes a connection with the control device 20 can be determined. Exemplarily, if the printing time of the first log is earlier than the printing time of the second log, it can be considered that the time when the input subsystem of the smart screen 10 receives the key value of a key is prior to the time when the smart screen 10 establishes a connection with the control device 20. That is to say, the input subsystem of the smart screen 10 has received the key value of a key before the smart screen 10 establishes a connection with the control device 20.

[0243] S7015. The Bluetooth chip also sends an encryption request to the control device 20.

[0244] The control device 20 encrypts in response to the encryption request and returns a message indicating successful encryption to the Bluetooth chip of the smart screen 10.

[0245] S7016. The control device 20 returns successful encryption to the Bluetooth chip of the smart screen 10.

[0246] S7017. The Bluetooth chip notifies the Bluetooth driver that the reconnection is successful.

[0247] S7018. The Bluetooth driver creates a second input device node corresponding to the control device 20 in the input subsystem.

[0248] After that, when the user presses a key on the control device 20, the control device 20 can send the key value of the key to the smart screen 10 through the established connection.

[0249] S7019. The control device 20 sends the key value of the key through the established connection in response to the key operation.

[0250] S7020. The Bluetooth chip sends the key value of the key to the Bluetooth driver.

[0251] S7021. The Bluetooth driver writes the key value of the key to the second input device node of the input subsystem.

[0252] S7022. The input subsystem reports the key value of the key to the application.

[0253] S7023. The application responds to the key value of the key and performs a corresponding response action.

[0254] It can be understood that in some embodiments, the above S7005 - S7009 and S7010 - S7023 can be executed synchronously. In other embodiments, the above S7005 - S7009 can also be executed before S7010 - S7023. In the related art, the smart screen 10 needs to wait until the connection with the control device 20 is successful before receiving and responding to the key values reissued by the control device 20. Compared with the related art, in the method proposed in the embodiments of the present application, the smart screen 10 can respond to the key operations of the control device 20 even when the connection with the control device 20 is not yet successful. In this way, when the smart screen 10 and the control device 20 are in an unconnected state, the response time required for the smart screen 10 to respond to the user's keys on the control device 20 can be reduced, the response speed can be improved, and the problem of delayed response can be avoided.

[0255] Next, with reference to the accompanying drawings, the interaction process between the control device 20 and the smart screen 10 when the user presses different keys on the control device 20 in different scenarios will be described.

[0256] Figure 12 In the illustrated embodiment, after the smart screen 10 is powered on, the user triggers a key operation on the non - power key of the control device 20 when the control device 20 is in a sleep state. The smart screen 10 and the control device 20 are already paired.

[0257] S800. The smart screen 10 is powered on.

[0258] S801. The smart screen 10 starts scanning.

[0259] Specifically, the smart screen 10 starts scanning for connection broadcasts.

[0260] S802. The control device 20 is in a sleep state and detects that the user performs a key operation 3 on the key 3 of the control device 20.

[0261] In some embodiments, the key 3 can be denoted as the first key. The key operation 3 can be denoted as the user's operation on the first key of the control device 20. In some embodiments, the key 3 is a non - power key of the control device 20. Exemplarily, the key 3 can be Figure 1 any one of the function keys 21 on the control device 20 as shown.

[0262] S803. The control device 20 responds to the key operation 3 and sends out a connection broadcast 3.

[0263] In some embodiments, the above S803 can specifically include: the control device 20 responds to the key operation 3, switches from the sleep state to the working state. After the control device 20 enters the working state, it sends out a connection broadcast 3.

[0264] As described above, since the control device 20 is not connected to the smart screen 10, when the control device 20 detects a key operation on a non-power button, it can send a connection broadcast carrying the key value of the button. In some embodiments, the connection broadcast 3 carries the key value 3 of the button 3.

[0265] In some embodiments, the control device 20 carries the key value 3 of the button in the sent connection broadcast 3, which may specifically include: the control device 20 adds a preset field to the connection broadcast 3, and this preset field is used to store the key value 3 of the button.

[0266] In addition, the connection broadcast 3 may also carry the identification information of the control device 20, and this identification information is used to represent the identity of the control device 20. After that, the device that scans the connection broadcast 3 can determine whether the control device 20 is the control device 20 that has been paired with this device according to this identification information.

[0267] S804. The smart screen 10 scans the connection broadcast 3.

[0268] In some embodiments, the connection broadcast 3 is a non-directional Bluetooth broadcast. Then, after the control device 20 sends the connection broadcast 3, the Bluetooth devices within a certain range of the control device 20 can all scan this connection broadcast 3. Therefore, after the smart screen 10 scans the connection broadcast 3, it also needs to determine whether the control device 20 has been paired with the smart screen 10 according to the connection broadcast 3. In some embodiments, the connection broadcast 3 can be recorded as the first connection broadcast.

[0269] S805. The smart screen 10 determines whether the control device 20 belongs to the control device that has been paired with the smart screen 10 based on the connection broadcast 3.

[0270] In some embodiments, the connection broadcast 3 carries the identification information of the control device 20. After the smart screen 10 scans the connection broadcast 3, it can parse this connection broadcast 3 to obtain the identification information of the control device 20. Then, the smart screen 10 can query whether the control device 20 has been paired with the smart screen 10 according to this identification information.

[0271] After the smart screen 10 is successfully paired with the control device 20, it can save the identification information of the control device 20. Therefore, in some embodiments, when the smart screen 10 queries whether the control device 20 has been paired with the smart screen 10 according to the identification information, it may specifically include: the smart screen 10 searches in the identification information of the control device 20 stored in the smart screen 10 to find whether there is the identification information carried in the connection broadcast 3. If the identification information carried in the connection broadcast 3 is stored in the smart screen 10, it means that the control device 20 corresponding to this connection broadcast 3 is the control device 20 that has been paired with the smart screen 10. In some embodiments, the control device 20 that has been paired with the smart screen 10 can be recorded as the target control device 20.

[0272] In some embodiments, the smart screen 10 can be paired with multiple control devices 20 simultaneously, and the smart screen 10 stores identification information of multiple control devices 20. That is to say, when the user uses any control device 20 paired with the smart screen 10, the smart screen 10 can be controlled.

[0273] The identification information of the control device 20 is used to uniquely identify the control device 20. In some embodiments, the identification information of the control device 20 can be the MAC address of the control device 20.

[0274] As can be seen from the above description, the control device 20 has been paired with the smart screen 10, so the judgment result of S805 is yes. At this time, the smart screen 10 can respond to the connection broadcast 3. Exemplarily, the specific process of the smart screen 10 responding to the connection broadcast 3 can refer to S806 - S807.

[0275] S806. The smart screen 10 performs a response action corresponding to the key operation 3 based on the connection broadcast 3.

[0276] In some embodiments, the above S806 may specifically include: the smart screen 10 parses the connection broadcast 3 to obtain the key value 3 of the key 3 carried in the connection broadcast 3. The smart screen 10 performs a response action corresponding to the key value 3.

[0277] Exemplarily, when the key 3 corresponds to the confirmation key on the control device 20, after the smart screen 10 performs the response action corresponding to the key 3, a corresponding interface can be displayed. For Figure 2 example, when the smart screen 10 displays the desktop 101, after performing the operation corresponding to the key 3, the live application interface 103 can be displayed.

[0278] S807. The smart screen 10 establishes a connection 3 with the control device 20.

[0279] In some embodiments, S806 can be executed before S807; or, S806 and S807 can be executed synchronously.

[0280] In some embodiments, the connection 3 can be denoted as the first connection.

[0281] In the technical solution provided in the embodiment of the present application, after determining that the control device 20 is the target control device 20 that has been paired with the smart screen 10, the smart screen 10 can respond to the user's key operations on the non-power key on the control device 20. Compared with the related art that requires the smart screen 10 to receive the key value reissued by the control device 20 and respond after establishing a connection with the control device 20, in the technical solution proposed in the embodiment of the present application, the smart screen 10 can respond to the key value before the connection is established. Thereby, when the smart screen 10 and the control device 20 are in an unconnected state, the response speed of the smart screen 10 to the user's key operations on the non-power key on the control device 20 is improved, avoiding the problem of delayed response.

[0282] Furthermore, after the smart screen 10 establishes a connection 3 with the control device 20 , the user triggers a key operation on the button 4 on the control device 20 , and the control device 20 can send the corresponding button value to the smart screen 10 through the connection 3 .

[0283] S808 . The control device 20 is in a dormant state, and a key operation 4 on a key 4 of the control device 20 is detected.

[0284] The button 4 may be a power button or a non-power button. In some embodiments, the button 4 may be recorded as a second button. The button operation 4 may be recorded as an operation of the second button of the control device 20 by the user.

[0285] S809. The control device 20 responds to key operation 4 and sends key value 4 of key 4 to the smart screen 10 through connection 3.

[0286] S810. The smart screen 10 executes the response action corresponding to the key value 4.

[0287] In some embodiments, when button 4 is a power button, in S810, the smart screen 10 executes a response action corresponding to button value 4, that is, shutting down. Exemplarily, after the smart screen 10 executes the shutdown operation, the screen display can be stopped.

[0288] In other embodiments, when button 4 is a function key (such as a confirmation key), the smart screen 10 executes a response action corresponding to button value 4 in S810, which is the operation corresponding to the function key (such as confirmation).

[0289] Figure 13 In the illustrated embodiment, after the smart screen 10 is turned on, the user triggers a key operation on the power button of the control device 20 when the control device 20 is in a dormant state. The smart screen 10 and the control device 20 are paired.

[0290] S900. Smart Screen 10 is turned on.

[0291] S901. The smart screen 10 starts scanning.

[0292] S902. The control device 20 is in a sleep state, and a key operation 5 on the key 5 of the control device 20 is detected by the user.

[0293] Among them, the key 5 is the power key of the control device 20. In some embodiments, the key 5 can be denoted as the third key. The key operation 5 can be denoted as the operation of the user on the third key of the control device 20.

[0294] S903. The control device 20 responds to the key operation 5 and sends out a connection broadcast 4.

[0295] As can be seen from the above description, when the control device 20 is in a sleep state, in response to the key operation of the user on the power key, a connection broadcast without a key value will be sent out. That is, the above connection broadcast 4 does not carry a key value. This connection broadcast 4 is used to indicate that the control device 20 is in a connectable state, and the above connection broadcast 4 is used to instruct the smart screen 10 to power on. In some embodiments, the connection broadcast 5 can be denoted as the second connection broadcast.

[0296] S904. The smart screen 10 scans the connection broadcast 4.

[0297] S905. The smart screen 10 determines whether the control device 20 belongs to the control device that has been paired with the smart screen 10 based on the connection broadcast 4.

[0298] Since the smart screen 10 and the control device 20 have been paired, the judgment result of S905 is yes; then S906 can be executed.

[0299] S906. The smart screen 10 establishes a connection 4 with the control device 20.

[0300] In some embodiments, since the smart screen 10 is already in the powered-on state, the smart screen 10 will not perform the corresponding response action in response to the connection broadcast 4, that is, the smart screen 10 will not power off.

[0301] S907. The control device 20 detects a key operation 6 on the key 6 of the control device 20 by the user.

[0302] The key 6 can be the power key of the control device 20 or a non-power key of the control device 20.

[0303] S908. The control device 20 sends the key value 5 of the key 6 to the smart screen 10 through the connection 4.

[0304] S909. The smart screen 10 executes the response action corresponding to the key value 5.

[0305] In some embodiments, when the button 6 is the power button, in S909, the smart screen 10 performs the response action corresponding to the button key value 5, which is to turn off the machine. Exemplarily, after the smart screen 10 performs the shutdown operation, the display of the screen can be stopped.

[0306] In some other embodiments, when the button 6 is a function button (such as a confirmation button), in S909, the smart screen 10 performs the response action corresponding to the button key value 5, which is the operation corresponding to the function button (such as confirmation).

[0307] In the technical solution provided by the embodiments of the present application, when the user controls the device 20 to be in the sleep state and triggers the button operation of the power button, a connection broadcast without a button key value will be sent. After the smart screen 10 establishes a connection with the control device 20 based on this connection broadcast, it is convenient for the user to use the control device 20 to control the smart screen 10 later. The control device 20 can send the button key value through the established connection. The control device 20 sending the button key value through the established connection can reduce the power consumption of the control device 20.

[0308] Figure 14 Some embodiments show the process of the smart screen 10 scanning the connection broadcast sent by the unpaired control device 20. The smart screen 10 and the control device 20 are not paired.

[0309] S1000. The smart screen 10 is powered on.

[0310] S1001. The smart screen 10 starts scanning.

[0311] S1002. The control device 20 is in the sleep state and detects that the user performs the button operation 7 on the button 7 of the control device 20.

[0312] The button 7 can be a power button or a non-power button.

[0313] S1003. In response to the button operation 7, the control device 20 sends a connection broadcast 5.

[0314] S1004. The smart screen 10 scans the connection broadcast 5.

[0315] S1005. The smart screen 10 determines whether the control device 20 belongs to the control device paired with the smart screen 10 based on the connection broadcast 5.

[0316] Since the smart screen 10 and the control device 20 are not paired, the judgment result of S1005 is negative; afterwards, the smart screen 10 can execute S1006.

[0317] S1006. The smart screen 10 does not respond to the connection broadcast 5.

[0318] In the technical solution provided by the embodiments of the present application, when the smart screen 10 scans the connection broadcast of a control device 20 that has not been paired before, it will not respond to it. In this way, the response accuracy of the smart screen 10 can be ensured.

[0319] Some other embodiments of the present application provide an electronic device, which may be a first electronic device (such as the smart screen 10). The first electronic device may include: a Bluetooth module, a memory, and one or more processors. The Bluetooth module, the memory are coupled to the processor. The Bluetooth module is used to establish a connection with the control device. The memory is further used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the first electronic device can execute each function or step executed by the smart screen 10 in the above method embodiments. The structure of the first electronic device may refer to Figure 5 the structure of the electronic device 100 shown.

[0320] Some embodiments of the present application also provide an electronic device, which may be a second electronic device control device (such as the control device). The second electronic device may include a Bluetooth module, a memory, and one or more processors. The Bluetooth module is used to establish a connection with the smart screen 10. The memory is further used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the second electronic device can execute each function or step executed by the control device 20 in the above method embodiments.

[0321] Some embodiments of the present application also provide a communication system, which may include the above first electronic device and second electronic device. The second electronic device can be paired with the first electronic device. The second electronic device can control the first electronic device to perform a response action.

[0322] Embodiments of the present application also provide a chip system, such as Figure 15 shown, the chip system 1500 includes at least one processor 1501 and at least one interface circuit 1502. The processor 1501 and the interface circuit 1502 can be interconnected through a line. For example, the interface circuit 1502 can be used to receive signals from other devices (such as the memory of a computer). For another example, the interface circuit 1502 can be used to send signals to other devices (such as the processor 1501). Exemplarily, the interface circuit 1502 can read the instructions stored in the memory and send the instructions to the processor 1501. When the instructions are executed by the processor 1501, the computer can execute each step in the above embodiments. Of course, the chip system may also include other discrete devices, and the embodiments of the present application do not make specific limitations on this.

[0323] The embodiments of the present application also provide a computer-readable storage medium, which includes computer instructions. When the computer instructions run on the above-mentioned electronic device (such as the smart screen 10), the electronic device is enabled to execute each function or step that the smart screen 10 executes in the above method embodiments.

[0324] The embodiments of the present application also provide a computer program product. When the computer program product runs on a computer, the computer is enabled to execute each function or step that the smart screen 10 executes in the above method embodiments. Among them, the computer may be an electronic device, such as the smart screen 10.

[0325] Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and conciseness of description, only the above division of each functional module is used as an example. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

[0326] In several embodiments provided by the present application, it should be understood that the disclosed device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules or units is only a logical functional division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection may be through some interfaces. The indirect coupling or communication connection of the device or unit may be in an electrical, mechanical or other form.

[0327] The unit described as a separated component may or may not be physically separated. The component displayed as a unit may be a physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0328] In addition, each functional unit in the various embodiments of the present application may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

[0329] When an integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiments of the present application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions for causing a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods of the various embodiments of the present application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store program codes.

[0330] The above content is only the specific implementation manner 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 covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. An externally controlled response method, It is characterized in that The method is applied to a first electronic device; the method comprises: At a first time point, the first electronic device receives a first connection broadcast sent by a second electronic device, where the first connection broadcast is sent when a first button of the second electronic device is pressed; before the first time point, no wireless connection is established between the first electronic device and the second electronic device, and the first electronic device and the second electronic device are paired; After receiving the first connection broadcast, the first electronic device establishes the wireless connection with the second electronic device, and the first electronic device displays a first interface corresponding to the operation of pressing the first button; After the first electronic device and the second electronic device establish the wireless connection, at a second time point, the first electronic device receives first information sent by the second electronic device, the first information being sent when a second button of the second electronic device is pressed, and the first information is not sent through connection broadcasting; After receiving the first information, the first electronic device displays a second interface, where the second interface corresponds to an operation of pressing the second button.

2. The method according to claim 1, It is characterized in that After the first electronic device receives the first connection broadcast, the first electronic device establishes the wireless connection with the second electronic device, and the first electronic device displays a first interface, including: The first electronic device establishes the wireless connection with the second electronic device in response to the first connection broadcast, and the first electronic device displays a first interface.

3. The method according to claim 1 or 2, It is characterized in that The method further comprises: After the first electronic device and the second electronic device disconnect the wireless connection and unpair, at a third time point, the first electronic device receives a third connection broadcast sent by the second electronic device, where the third connection broadcast is sent when the first button of the second electronic device is pressed; after the third time point, the first electronic device does not establish the wireless connection with the second electronic device, and the first electronic device does not display the first interface.

4. The method according to any one of claims 1 to 3, It is characterized in that The method further comprises: After the first electronic device and the second electronic device disconnect the wireless connection, at a fourth time point, the first electronic device receives a second connection broadcast sent by the second electronic device; the second connection broadcast is sent when a third button of the second electronic device is pressed; before the fourth time point, the first electronic device and the second electronic device have been paired; the third button is a power button of the second electronic device; After receiving the second connection broadcast, the first electronic device establishes the wireless connection with the second electronic device, and the first electronic device remains powered on.

5. The method according to any one of claims 1 to 4, It is characterized in that the first button is a non-power button of the second electronic device; the second button is a power button or a non-power button of the second electronic device.

6. The method according to any one of claims 1-5, It is characterized in that the first information includes the key value corresponding to the second button.

7. The method according to any one of claims 1-5, It is characterized in that the first connection broadcast carries second information corresponding to the first button.

8. The method according to claim 7, It is characterized in that the first electronic device includes a Bluetooth module, a Bluetooth driver, an input subsystem, and an application; before the first time point, the method further includes: the first electronic device creates a first input device node in the input subsystem; the first electronic device receives a first connection broadcast sent by the second electronic device, including: the Bluetooth module of the first electronic device receives the first connection broadcast sent by the second electronic device; after the first electronic device receives the first connection broadcast, the method further includes: the Bluetooth module transmits the first connection broadcast to the Bluetooth driver; the Bluetooth driver parses the first connection broadcast to obtain the second information; the first electronic device displays a first interface, including: the Bluetooth driver writes the second information in the first input device node; after the input subsystem obtains the second information through the first input device node, it reports the second information to the application; the application displays the first interface in response to the second information.

9. The method according to claim 8, It is characterized in that after the first electronic device and the second electronic device establish the wireless connection, the method further includes: the Bluetooth driver of the first electronic device creates a second input device node corresponding to the second electronic device in the input subsystem; the second input device node is used for the Bluetooth driver to transmit the key value of the button to the input subsystem.

10. The method according to any one of claims 1-9, It is characterized in that before the first time point, the method further includes any one of the following: the first electronic device is powered on by responding to a trigger operation of the user on the power button of the first electronic device; or, the first electronic device is powered on; or, the first electronic device is powered on by responding to a power-on instruction sent by a device other than the second electronic device; or, the first electronic device is powered on by responding to a voice power-on instruction.

11. A method for responding to external control, It is characterized in that the method is applied to a first electronic device, and the method includes: at a first time point, the first electronic device receives a first connection broadcast sent by a second electronic device; the first connection broadcast is sent when a first button of the second electronic device is pressed; before the first time point, no wireless connection is established between the first electronic device and the second electronic device, and the first electronic device and the second electronic device have been paired; After receiving the first connection broadcast, the first electronic device establishes the wireless connection with the second electronic device, and the first electronic device displays a first interface corresponding to the operation of pressing the first button; After the first electronic device and the second electronic device disconnect the wireless connection and unpair, at a third time point, the first electronic device receives a third connection broadcast sent by the second electronic device, where the third connection broadcast is sent when the first button of the second electronic device is pressed; after the third time point, the first electronic device does not establish the wireless connection with the second electronic device, and the first electronic device does not display the first interface.

12. An electronic device, It is characterized in that The electronic device is a first electronic device; the first electronic device comprises: a display screen, a Bluetooth module, a processor and a memory; the Bluetooth module and the memory are coupled to the processor; The display screen is used to display that the Bluetooth module of the first electronic device is used to communicate with the second electronic device; the memory stores computer program code, and the computer program code includes computer instructions. When the computer instructions are executed by the processor, the first electronic device executes the method described in any one of claims 1-11.

13. A communication system, It is characterized in that The system comprises: a first electronic device and a second electronic device; The second electronic device is configured to: send a first connection broadcast when a first key is pressed at a first time point; before the first time point, no wireless connection is established between the first electronic device and the second electronic device, and the first electronic device and the second electronic device are paired; The second electronic device is further configured to: after the first electronic device and the second electronic device establish the wireless connection, at a second time point, send the first information when the second button is pressed; The first electronic device is configured to: receive, at a first time point, a first connection broadcast sent by the second electronic device; the first electronic device establishes the wireless connection with the second electronic device, and the first electronic device displays a first interface corresponding to an operation of pressing the first button; The first electronic device is also configured to: after the first electronic device and the second electronic device establish the wireless connection, at a second time point, receive the first information sent by the second electronic device; the first electronic device displays a second interface, and the second interface corresponds to the operation of pressing the second button.

14. A computer-readable storage medium, It is characterized in that The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 11.