CN117289642A - Response method and control method of external control and electronic equipment - Google Patents

Response method and control method of external control and electronic equipment Download PDF

Info

Publication number
CN117289642A
CN117289642A CN202311591416.0A CN202311591416A CN117289642A CN 117289642 A CN117289642 A CN 117289642A CN 202311591416 A CN202311591416 A CN 202311591416A CN 117289642 A CN117289642 A CN 117289642A
Authority
CN
China
Prior art keywords
electronic device
key
control device
connection
electronic equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311591416.0A
Other languages
Chinese (zh)
Other versions
CN117289642B (en
Inventor
袁文波
陈振冲
李宁生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202311591416.0A priority Critical patent/CN117289642B/en
Publication of CN117289642A publication Critical patent/CN117289642A/en
Application granted granted Critical
Publication of CN117289642B publication Critical patent/CN117289642B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The embodiment of the application provides an external control response method, a control method and electronic equipment, relates to the technical field of electronics, and aims to reduce response time of household appliances to key control of a user in control equipment and reduce delay response when the household appliances and the control equipment are in an unconnected state. The response method of the external control is applied to the first electronic device. The method comprises the following steps: starting up the first electronic equipment; the first electronic equipment and the second electronic equipment are in an unconnected state, and the first electronic equipment responds to a first key operation of a first key by a user on the second electronic equipment and executes a response action operation corresponding to the first key; the second electronic device is a paired electronic device of the first electronic device; the first key is a non-power key of the second electronic device; the first electronic device establishes a first connection with the second electronic device.

Description

Response method and control method of external control and electronic equipment
Technical Field
The embodiment of the application relates to the technical field of electronics, in particular to an external control response method, a control method and electronic equipment.
Background
Home appliances and the like are generally controllable by a control device. In the related art, the control device includes an infrared control device through infrared emission, and a bluetooth control device through wireless connection such as bluetooth.
After the Bluetooth control device and the household electrical appliance are successfully paired, the household electrical appliance is started, the Bluetooth control device needs to be connected with the household electrical appliance, and then a user can control the household electrical appliance through the Bluetooth control device. The general bluetooth control device is not used for a long time, and enters a dormant state, so that a user is required to wake up the bluetooth control device in a key manner.
After the home device is powered on, a user presses a button on the bluetooth control device, and typically desires to control the home device to perform a response action through the bluetooth control device. If the Bluetooth control device is not connected with the household electrical appliance at this time, the household electrical appliance can respond to the key of the Bluetooth control device to execute the corresponding response action after the connection between the household electrical appliance and the Bluetooth control device is established. In such a scenario, the response time of the home appliance to the key control of the user at the control device is long, and a problem of delayed response may occur.
Disclosure of Invention
The embodiment of the application provides an external control response method, a control method and electronic equipment, which are used for reducing response time of home appliances to key control of a user in control equipment and reducing the problem of delayed response when the home appliances and the control equipment are in an unconnected state.
In order to achieve the above purpose, the embodiments of the present application adopt the following technical solutions:
in a first aspect, a method of responding to external control is provided, the method being applied to a first electronic device. The method comprises the following steps:
the first electronic device is started. The first electronic equipment and the second electronic equipment are in an unconnected state, and the first electronic equipment responds to the operation of a user on the first key by the second electronic equipment to execute a response action corresponding to the first key. The second electronic device is a paired electronic device of the first electronic device. The first key is a non-power key of the second electronic device. And the first electronic equipment responds to the operation of the user on the first key in the second electronic equipment, and can also establish first connection with the second electronic equipment.
In this case, the first electronic device may respond to the key operation before the connection establishment is completed, compared to the case where the first electronic device needs to receive the reissued key value and respond after the connection establishment between the first electronic device and the second electronic device in the related art. Therefore, when the first electronic equipment and the second electronic equipment are in an unconnected state, the response speed of the first electronic equipment to key operation of a user on the second electronic equipment is improved, and the problem of delayed response is avoided.
In a possible implementation manner of the first aspect, the first electronic device and the second electronic device are in an unconnected state, and the first electronic device executes a response action corresponding to the first key in response to an operation of the user on the first key by the second electronic device, which specifically may include: the first electronic equipment and the second electronic equipment are in an unconnected state, and a first connection broadcast sent by the second electronic equipment is received. The first connection broadcast is triggered by the second electronic device in response to the operation of a first key of the second electronic device by a user; the first connection broadcast is used to characterize the second electronic device as being in a connectable state, and the first connection broadcast is used to control the first electronic device to perform a responsive action. Then, the first electronic equipment analyzes the first connection broadcast to obtain a first key value corresponding to the first key. And finally, the first electronic equipment responds to the first key value to execute the response action corresponding to the first key.
In this scheme, the first electronic device may receive the key value and respond before connection establishment is completed. Therefore, when the first electronic equipment and the second electronic equipment are in an unconnected state, the response speed of the first electronic equipment to key operation of a user on the second electronic equipment is improved, and the problem of delayed response is avoided.
In a possible implementation manner of the first aspect, after the first electronic device establishes the 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 equipment in response to the operation trigger of the user on the second key by the second electronic equipment; the second key comprises a power key and a non-power key of the second electronic device. Then, the first electronic device responds to the second key value to execute a response action corresponding to the second key value.
In this scheme, after the first electronic device and the second electronic device successfully establish a connection, the first electronic device may receive a key value sent by the second electronic device after the established connection. In this way, the power consumption required by the second electronic device to send the key values can be made lower.
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 started, the method further comprises the following steps: the first electronic device creates a first input device node at the input subsystem.
In this implementation manner, the receiving, by the first electronic device, the first connection broadcast sent by the second electronic device may specifically include: the Bluetooth module of the first electronic device receives a first connection broadcast sent by the second electronic device.
In this implementation manner, the first electronic device analyzes the first connection broadcast, and obtains a first key value corresponding to the first key, which may specifically include: the bluetooth module transmits a first connection broadcast to the bluetooth driver. The Bluetooth driver analyzes the first connection broadcast to obtain a first key value corresponding to the first key.
In this implementation manner, the first electronic device responds to the first key value to execute the response action corresponding to the first key, which specifically may include: the bluetooth driver writes a first key value at the first input device node. And after the input subsystem acquires the first key value through the first input equipment node, reporting the first key value to the application. And finally, the application responds to the key value of the first key to execute the response action corresponding to the first key.
In this scheme, the first electronic device creates a first input device node at the input subsystem upon power-on. In this way, when the first electronic device and the second electronic device are in the unconnected state, the bluetooth driver of the first electronic device can report the received key value to the upper layer through the first input device node after receiving the key value uploaded by the bluetooth chip. Therefore, when the first electronic device and the second electronic device are in an unconnected state, the first electronic device responds to key operation of the second electronic device by a user based on the key value. The response time of the first electronic device under the condition can be reduced, the response speed is improved, and the problem of response delay is avoided.
In a possible implementation manner of the first aspect, after the first electronic device establishes the 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 in the input subsystem corresponding to the second electronic device. The second input device node is configured to transmit a key value to the input subsystem by a bluetooth driver. In this way, after the first electronic device establishes connection with the second electronic device, the bluetooth driver of the first electronic device reports the received key value to the application, and may report the key value through the second input device node.
In a possible implementation manner of the first aspect, the powering on of the first electronic device may include: the first electronic device is started in response to triggering operation of a power key of the first electronic device by a user.
In a possible implementation manner of the first aspect, the powering on of the first electronic device may include: the first electronic device is powered on and started.
In a possible implementation manner of the first aspect, the powering on of the first electronic device may include: the first electronic device is started in response to a starting instruction sent by a device other than the second electronic device.
In a possible implementation manner of the first aspect, the powering on of the first electronic device may include: the first electronic device is started in response to the voice starting instruction.
In a possible implementation manner of the first aspect, the first electronic device includes a display screen; the method may further comprise: and the first electronic equipment responds to the operation of the user on the first key in the second electronic equipment, and an interface corresponding to a response result of the operation of the first key is displayed on the display screen. In this way, the user may be prompted to have responded.
In a possible implementation manner of the first aspect, after the first electronic device is powered on, the method further includes: the first electronic equipment and the second electronic equipment are in an unconnected state, and second connection broadcast sent by the second electronic equipment is received. The second connection broadcast is used for representing that the second electronic equipment is in a connectable state; the second connection broadcast is triggered by the second electronic device in response to a user's operation of the third key at the second electronic device. The third key is a power key of the second electronic device. Finally, the first electronic device remains powered on and establishes a second connection with the second electronic device based on the second connection broadcast.
In the scheme, the first electronic equipment is started, the first electronic equipment and the second electronic equipment are in an unconnected state, and the user presses a power key of the second electronic equipment, so that the first electronic equipment can receive a second connection broadcast sent by the second electronic equipment. The first electronic device may establish a connection with the second electronic device based on the second connection broadcast. And the first electronic device remains powered on. Thus, when the user presses a button on the second electronic device, the first electronic device can receive the key value of the button and respond through the established connection.
In a possible implementation manner of the first aspect, the first electronic device stores preset identification information of an electronic device paired with the first electronic device. After the first electronic device is started, scanning is started. The first electronic device may scan for a connection broadcast sent by any one of the electronic devices. After the first electronic device scans the connection broadcast, the identification information in the connection broadcast may be parsed. The identification information is used to uniquely identify the electronic device that sent the connection broadcast. The first electronic device compares the identification information with preset identification information, and checks to determine whether the electronic device sending 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, the electronic device sending the connection broadcast can be determined to be the second electronic device.
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, the electronic device sending the connection broadcast is not paired with the first electronic device. In this scenario, the first electronic device may not respond to the connection broadcast.
In one possible implementation manner of the first aspect, the first connection broadcast is a bluetooth callback broadcast.
In a possible implementation manner of the first aspect, the second connection broadcast is a bluetooth callback broadcast.
In a second aspect, the present application further provides a control method, where the method is applied to a second electronic device. The second electronic device is paired with the first electronic device. The method comprises the following steps:
and when the second electronic equipment is in an unconnected state with the first electronic equipment, responding to the operation of the user on the first key by the second electronic equipment, and controlling the first electronic equipment to execute the response action corresponding to the first key. And the second electronic device establishes a first connection with the first electronic device. The first key is a non-power key of the second electronic device.
In the scheme, the second electronic equipment is in an unconnected state with the first electronic equipment, the user operates the non-power key on the second electronic equipment, and the first electronic equipment can still respond to the action. Thus, the response time of the first electronic device to the key operation under the condition is shortened, the response speed can be improved, and the problem of response delay is avoided.
In a possible implementation manner of the second aspect, when the second electronic device is in an unconnected state with the first electronic device, the controlling, by the first electronic device, the response action corresponding to the first key in response to the operation of the first key by the user in the second electronic device may specifically include: and when the second electronic equipment is in an unconnected state with the first electronic equipment, responding to the operation of the user on the first key by the second electronic equipment, and acquiring a first key value corresponding to the first key. Wherein the first key is a non-power key. The second electronic device sends out a first connection broadcast based on the first key value. Wherein the first connection broadcast includes a first key value; the first connection broadcast is used for representing that the second electronic equipment is in a connectable state, and the first connection broadcast is used for controlling the first electronic equipment to execute response actions corresponding to the first key values. Finally, the second electronic device establishes a first connection with the first electronic device.
In the scheme, the second electronic equipment and the first electronic equipment are in an unconnected state, a user operates a non-power key on the second electronic equipment, and the second electronic equipment can carry a key value in the sent connection broadcast. So that the first electronic device can respond according to the connection broadcast even if the second electronic device is in an unconnected state with the first electronic device. Thus, the response time of the first electronic device to the key operation under the condition is shortened, the response speed can be improved, and the problem of response delay is avoided.
In a possible implementation manner of the second aspect, after the second electronic device establishes the first connection with the first electronic device, the method further includes: the second electronic equipment responds to the operation of the second key of the second electronic equipment by the user, and a second key value corresponding to the second key is obtained. And the second electronic equipment sends a second key value to the first electronic equipment through the first connection. The second key value is used for controlling the first electronic equipment to execute the response action corresponding to the second key.
In the scheme, the second electronic device is in a connection state with the first electronic device, and in response to key operation of the second electronic device by a user, a key value can be sent to the first electronic device through the established connection. In this way, the power consumption required by the second electronic device to transmit the key values may be reduced.
In a possible implementation manner of the second aspect, the second electronic device is in an unconnected state with the first electronic device, and the second connection broadcast is sent in response to an operation of the third key by the user at the second electronic device. Wherein the third key is a power key. The second connection broadcasts a key value that does not include the third key. The second connection broadcast is used to characterize the second electronic device as being in a connectable state. After the first electronic device scans for the second connection broadcast, a connection may be established with the first electronic device. That is, the second electronic device establishes a first connection with the first electronic device. In the scheme, the second electronic equipment is in an unconnected state with the first electronic equipment, the user presses a power key on the second electronic equipment, and the second electronic equipment sends out a second connection broadcast. Therefore, the second electronic equipment is connected with the first electronic equipment, and a subsequent user can conveniently use the second electronic equipment to control the first electronic equipment to execute response actions.
In a possible implementation manner of the second aspect, the second connection broadcast is further used to instruct the first electronic device to power on. The first electronic device may be powered on and establish a connection with the second electronic device if the second connection broadcast is scanned in the standby state. And the first electronic device may establish a connection with the second electronic device if it scans the second connection broadcast in the on state.
In one possible implementation manner of the second aspect, the first connection broadcast is a bluetooth callback broadcast.
In a possible implementation manner of the second aspect, the second connection broadcast is a bluetooth callback broadcast.
In a third aspect, the present application also provides an electronic device, which may be the first electronic device. The first electronic device may include: bluetooth module processor and memory. The Bluetooth module is used for communicating with a second electronic device. The memory is configured to store computer-executable instructions that, when executed by the first electronic device, cause the first electronic device to perform the response method of external control as in any of the first aspects described above.
In a fourth aspect, the present application also provides an electronic device, which may be a second electronic device. The second electronic device may include: bluetooth module processor and memory. The Bluetooth module is used for communicating with the first electronic equipment. The memory is configured to store computer-executable instructions that, when the second electronic device is operating, cause the second electronic device to perform the control method according to any one of the second aspects described above.
In a fifth aspect, the present application also provides a communication system, which may comprise the electronic device of any one of the third aspect and the second electronic device of any one of the fourth aspect. The second electronic device is used for controlling the first electronic device to execute response actions.
In a sixth aspect, the present application provides a computer-readable storage medium having instructions stored therein that, when run on a computer, cause the computer to perform the response method of the external control of any one of the above first aspects, or the control method of any one of the above second aspects.
In a seventh aspect, there is provided a computer program product comprising instructions which, when run on an electronic device, enable the electronic device to perform the method of inter-device connection of any of the above first aspects.
In an eighth aspect, there is provided an apparatus (e.g. the apparatus may be a system-on-a-chip) comprising a processor for supporting an electronic device to implement the functions referred to in the first aspect above. In one possible design, the apparatus further includes a memory for storing program instructions and data necessary for the electronic device. When the device is a chip system, the device can be formed by a chip, and can also comprise the chip and other discrete devices.
The technical effects caused by any one of the design manners of the third aspect to the eighth aspect may be referred to the technical effects caused by the different design manners of the first aspect and/or the second aspect, and are not described herein.
Drawings
Fig. 1 is a schematic diagram of a communication system according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a usage scenario of an intelligent screen according to an embodiment of the present application;
FIG. 3 is a schematic view of a usage scenario of an intelligent screen according to an embodiment of the present application;
FIG. 4 is a flow chart of a response of an intelligent screen to a key operation of a user in a control device according to an embodiment of the present application;
fig. 5 is a schematic hardware structure of an electronic device according to an embodiment of the present application;
FIG. 6 is a data flow diagram of an intelligent screen interacting with a control device according to an embodiment of the present application;
fig. 7 is a flow chart of a response method of external control according to an embodiment of the present application;
FIG. 8 is a flow chart of an external control response method according to an embodiment of the present disclosure;
fig. 9 is a schematic flow chart of a control method according to an embodiment of the present application;
fig. 10 is a schematic flow chart of a control method according to an embodiment of the present application;
FIG. 11 is a schematic diagram of an interaction flow between an intelligent screen and a control device according to an embodiment of the present application;
FIG. 12 is a schematic diagram of an interaction flow between an intelligent screen and a control device according to an embodiment of the present application;
fig. 13 is a schematic diagram of an interaction flow between an intelligent screen and a control device according to an embodiment of the present application;
FIG. 14 is a schematic diagram of an interaction flow between an intelligent screen and a control device according to an embodiment of the present application;
fig. 15 is a frame diagram of a chip system according to an embodiment of the present application.
Detailed Description
First, technical words related to embodiments of the present application will be briefly described.
Transparent transmission, i.e. transparent transmission, means that in communication, no matter what the traffic content is transmitted, it is only responsible for transmitting the transmitted content from the source address to the destination address without any change to the traffic data content.
In the related art, some electronic devices may be controlled by a control device. The electronic device may be, for example, a smart screen.
As shown in fig. 1, the smart screen 10 includes a power key 11. The control device 20 includes a power key 21 and a plurality of function keys 22 (non-power keys). After the smart screen 10 is successfully paired with the control device 20, the user can control the smart screen 10 to perform a response action by performing a key operation on the control device 20. For example, the user may control the smart screen 10 to perform operations of turning on, turning off, switching channels, adjusting volume, and returning to the desktop using the control device 20. The specific implementation process of pairing between the intelligent screen 10 and the control device 20 can be referred to as description in the related art.
In some embodiments, after the smart screen 10 and the control device 20 are successfully paired, each time the smart screen 10 is powered on, a connection needs to be established with the control device 20. After the connection is established, the control device 20 can control the intelligent screen 10 to perform a response action. The smart screen 10 typically does not respond to the key controls of the control device 20 that are not paired with itself.
To ensure that the smart screen 10 only responds to the control of the control device 20 paired with itself, each time the smart screen 10 is powered on, the smart screen 10 may determine whether the control device 20 corresponding to the scanned connection broadcast is the control device 20 paired with the smart screen 10 (e.g., the control device 20) before the connection is established with the control device 20 scanning the connection broadcast.
In some embodiments, after the smart screen 10 and the control device 20 are successfully paired, the smart screen 10 may save the identification information of the control device 20. After the smart screen 10 scans the connection broadcast, the identification information of the control device 20 carried in the connection broadcast may be compared 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 may establish a connection with the control device 20 to enable the user to control the smart screen 10 to perform a corresponding response action through the control device 20.
As shown in fig. 2, after the smart screen 10 is powered on, the desktop 101 may be turned on and displayed in response to a user's trigger operation of the power key 11 on the smart screen 10. Thereafter, the user can control the intelligent screen 10 through the control device 20.
Desktop 101 shown in fig. 2 includes application icons such as live, setup, gaming center, application mall, home camera, etc. The currently selected application icon is the live application icon 102. The control device 20 may send a confirmation instruction to the smart screen 10 in response to a user's trigger operation on the control device 20 for a "confirm" function key of the function keys 22. In response to the confirmation instruction, the smart screen 10 may enter the live application, displaying the live application interface 103 shown in fig. 2.
Fig. 3 shows a scenario in which a user controls the smart screen to be turned on through the control device 20. In this scenario, the smart screen 10, after switching on the power line, may trigger the power key 21 of the control device 20 at the control device 20. The control device 20 transmits a power-on instruction to the smart screen 10 in response to a user's trigger operation of the power key 21. After receiving the power-on command from the control device 20, the smart screen may start up in response to the power-on command and display the desktop 201.
In some embodiments, the control device 20 establishes communication with the smart screen 10 via bluetooth. In the related art, the manner in which the control device 20 sends the control instruction to the smart screen 10 includes at least two of the following: one is that the control device 20 transmits control instructions to the smart screen 10 by transmitting bluetooth broadcasts. Alternatively, the control device 20 establishes a bluetooth connection with the smart screen 10 and transmits control instructions to the smart screen 10 through the bluetooth connection. The manner in which control instructions are transmitted via bluetooth broadcast will result in greater power consumption by the control device 20 than by way of a bluetooth connection. Thus, the control device 20 may establish a connection with the smart screen 10, typically after the smart screen 10 is activated. Thereafter, the control device 20 can transmit a control instruction to the smart screen 10 through the connection to reduce the power consumption of the control device 20.
The control device 20 sends a control instruction to the intelligent screen 10 by adopting a Bluetooth connection mode, after the control device 20 and the intelligent screen 10 are successfully paired, the control device 20 needs to establish connection with the intelligent screen 10 every time after the intelligent screen 10 is started, and then a user can control the intelligent screen 10 through the control device 20. And the general control device 20 is not used for a long time, it enters a sleep state, and a user is required to wake up the control device 20. Illustratively, the user may wake up the control device 20 by pressing a key on the control device 20.
After the smart screen 10 is started, a user presses a button on the control device 20 to control the home appliance to execute a response action through the bluetooth control device 20. If the control device 20 does not establish a connection with the smart screen 10 at this time, the smart screen 10 needs to establish a connection with the control device 20 before responding to the key of the control device 20 to execute the corresponding response. Fig. 4 shows the interaction process between the smart screen 10 and the control device 20 in a scenario in which the user triggers the control device 20 to switch from the sleep state to the operating state by key operation after the smart screen 10 is turned on. The interactive process comprises the following steps:
s1, starting up the intelligent screen 10.
For example, the smart screen 10 may be powered on in the manner shown in fig. 2, i.e., the smart screen 10 is powered on in response to the user's triggering operation of the power key on the smart screen 10.
S2, the intelligent screen 10 starts scanning.
S3, the control device 20 responds to the key operation 1 of the user and is switched from the dormant state to the working state.
The control device 20 is in a sleep state before detecting the key operation 1. Since the smart screen 10 is already on, the user is now pressing the key to the control device 20, typically pressing the key to a non-power key of the control device 20.
And S4, the control device 20 sends out a back connection broadcast.
S5, the intelligent screen 10 scans the callback broadcasting.
S6, the intelligent screen 10 initiates a back connection interaction.
S7, the control device 20 performs back connection interaction with the intelligent screen 10.
For the control device 20, different keys correspond to one key value, respectively. In both of the cases before the control device 20 establishes a connection with the smart screen 10 and after the control device 20 establishes a connection with the smart screen 10, the control device 20 performs operations that are different in response to a key operation of the user at the control device 20. For example, the control device 20 is typically in a sleep state before the control device 20 establishes a connection with the smart screen 10. At this time, the control device 20 may issue a connection broadcast in response to a key operation of the control device 20 by the user. After the control device 20 is in an operating state and the control device 20 establishes a connection with the smart screen 10, the control device 20 may directly transmit a key value through the connection in response to a key operation of the control device 20 by a user.
Wherein, before the control device 20 establishes a connection with the smart screen 10, the control device 20 issues a connection broadcast in response to a key operation of the control device 20 by a user, which can be divided into two cases. The first case is a key operation of a non-power key by the user on the control device 20. In this case, the control device 20 may issue a back-to-back broadcast. The loopback broadcast is used to characterize that the control device 20 is in a connectable state, and after other devices scan the loopback broadcast, a connection can be established with the control device 20 according to the loopback broadcast. For example, after the smart screen 10 scans the callback broadcast, the smart screen 10 establishes a connection with the control device 20. And, after the control device 20 and the intelligent screen are connected in a back-to-back manner, the control device 20 also reissues the key value corresponding to the key operation through the back-to-back connection channel. The key value is used to control the smart screen 10 to perform a response action as S8 and S9.
S8, after the intelligent screen 10 is connected with the intelligent screen, the control device 20 supplements the key value corresponding to the key operation 1.
Specifically, when the control device 20 reissues the key value, the key value may be sent through a return channel established between the control device 20 and the smart screen 10.
S9, the intelligent screen 10 receives the key value, responds to the key value and executes corresponding response action.
After the control device 20 establishes a connection with the smart screen 10, the control device 20 directly transmits a key value through the connection established with the smart screen 10 in response to a key operation of the control device 20 by a user. When a user triggers a key operation on the power key on the control device 20, the control device 20 may send a key value corresponding to the power key to the smart screen 10, and the smart screen 10 shuts down in response to the key value. When the user triggers a key operation on the non-power key on the control device 20, the control device 20 may send a key value corresponding to the non-power key to the smart screen 10, and the smart screen 10 performs a corresponding response action in response to the key value.
In the flow shown in fig. 4, when the control device 20 is in the sleep state, the user triggers the key operation 1 to the key of the control device 20 for the first time, and the control device 20 needs to send the key value corresponding to the key operation 1 to the smart screen 10 after connecting back to the smart screen 10. The smart screen 10 may then respond to the key value. As such, the smart screen 10 requires a long response time for the user to press a key on the control device 20, and a problem of delayed response may occur.
Based on this, the embodiment of the present application proposes a response method of external control, which can be applied to an electronic device (which may be referred to as a first electronic device) supporting control by the 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 may be referred to as a second electronic device) are in an unconnected state, the electronic device may respond to a key operation of a first key of the target control device 20 by a user, and execute a response action corresponding to the first key. Wherein the target control device 20 is a paired control device 20 of the electronic device. And the electronic device may also establish a first connection with the target control device 20. Wherein the first key is a non-power key of the target control device.
In this scheme, when the electronic device is turned on and is in an unconnected state with the target control device, after the user triggers a key operation on a non-power key of the paired target control device 20, the electronic device can directly respond to the key operation, and meanwhile, a connection is established with the target control device 20. Compared to the technical scheme proposed in the embodiment of the present application, which requires that after the smart screen 10 establishes a connection with the control device 20, the smart screen 10 receives the reissued key values and responds, in the technical scheme proposed in the embodiment of the present application, the smart screen 10 can respond to the key operation before the connection is established. Thus, when the intelligent screen 10 and the control device 20 are in an unconnected state, the response speed of the intelligent screen 10 to the key operation of the user on the control device 20 is improved, and the problem of delayed response is avoided.
In some embodiments of the present application, when the electronic device is powered on and is in an unconnected state with the target control device, a connection broadcast sent by the user on the operation of the target control device on the non-power key may be received, and a response is made to the operation of the user on the target control device according to the connection broadcast.
The electronic device (i.e., the first electronic device) may be a smart screen 10, a mobile phone, a tablet computer, a personal computer (personal icomputer, PC), a desktop, a laptop, a handheld computer, a notebook, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, a smart watch, etc., a wearable device, an artificial intelligence (artificial intelligence, AI) speaker, a vehicle-mounted device, various teaching aids (e.g., a learning machine, an early education machine), an intelligent toy, a portable robot, a personal digital assistant (personal digital assistant, a PDA), an augmented reality (augmented reality, AR), a Virtual Reality (VR) device, a media player, etc., a device with a mobile office function, a device with an intelligent home function, a device with an audio-visual entertainment function, a device supporting intelligent travel, etc., as examples. The embodiment of the present application does not particularly limit the specific form of the apparatus.
The control device (i.e., the second electronic device) may be a remote controller, a mobile phone, a tablet computer, or other devices having a control function.
Fig. 5 is a schematic hardware structure of an electronic device 100 according to an embodiment of the present application. The electronic device may be, for example, a first electronic device such as the smart screen 10 described above. The electronic device 100 may 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 180, a camera 190, and keys 191, etc.
By way of example, the electronic device 100 may be the smart screen 10 described above. It is to 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, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors. For example, the processor 110 is configured to perform the response method of the external control in the embodiment of the present application.
The controller may be a neural hub and a command center of the electronic device 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
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. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it may be called directly from memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 130 may be used to store computer executable program code that includes instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 130. The internal memory 130 may include a storage program area and a storage data area. The storage program area may store application programs (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system.
In addition, the internal memory 130 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The power module 140 may be used to receive power input and to power the processor 110, the internal memory 130, the wireless communication module 160, the display 180, the camera 190, and the like. In some embodiments, the power module 140 may also be disposed in the processor 110.
The communication interface 150 may be used to communicate with external devices such as a control device (e.g., a second electronic device provided in the embodiment of the present application), a set-top box, a router, and a usb disk. The communication interface 150 may be any possible interface such as a network interface or a universal serial bus (universal serial bus, USB) interface.
The USB interface is an interface conforming to the USB standard specification, and can be specifically a Mini USB interface, a Micro USB interface, a USB Type C interface and the like.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via an antenna, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via an antenna.
The electronic device 100 may implement audio functions through the audio module 170, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio signals to analog audio signal outputs and also to convert analog audio inputs to digital audio signals. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110. The audio module 170 may include a speaker 170A and a microphone 170B.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music, or conduct a video conference, etc., through the speaker 170A.
Microphone 170B, also known as a "microphone," is used to convert sound signals into electrical signals. When a video call, a video conference, or a voice assistant is used, a user can sound near the microphone 170B through the mouth, inputting a sound signal to the microphone 170B. The electronic device 100 may be provided with at least one microphone 170B. In other embodiments, the electronic device 100 may be provided with two microphones 170B, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170B to enable collection of sound signals, noise reduction, identification of sound sources, directional recording, etc.
The display 180 is used to display images, videos, and the like. The electronic device 100 implements display functions through a GPU, a display screen 180, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 180 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The camera 190 is used to capture still images or video. In some embodiments, electronic device 100 may include 1 or N cameras 190, N being a positive integer greater than 1. In some embodiments, camera 190 may be a lift camera. Typically, the lift camera is hidden inside the electronic device 100 and is not visible to the user. When a user uses the electronic device 100 to conduct a video call or a video conference with other users, the lift type camera may pop up from the top of the electronic device 100, so that the lift type camera may collect user images and transmit the user images to the devices of other users through the wireless communication module 160, the antenna, and the like. In other embodiments, camera 190 may be embedded within the display of electronic device 100.
The keys 191 include a power-on key, a volume key, a set key, and the like. The key 191 may be a mechanical key. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The response method of the external control in the following embodiments may be implemented in the electronic apparatus 100 having the above-described hardware configuration.
Fig. 6 illustrates a schematic of interactions between a smart screen and a control device in some embodiments. In some embodiments, the software architecture of an 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.
Wherein the application layer may comprise a plurality of applications. The framework layer includes a window manager, an input dispatcher (input dispatcher), and an input reader (input reader). In some embodiments, the input distributor and input reader may be referred to as an input subsystem. The kernel layer includes bluetooth driver (BT driver) and input device nodes.
Wherein the input device node may also be referred to as an input event (input event). The electronic device may register one or more input device nodes in the kernel layer. The bluetooth driver may write data to the input device node.
The window manager provides a window management service (window manager service, WMS) that may be used for window management, window animation management, surface (surface) management, and as a relay station for an input system. The window manager may synchronize and update current window information (including clickable area of window, focus window, etc.) of the electronic device to the input distributor in real time.
The input reader may register a snoop callback function with an input device node of the kernel layer. When data is written in an input device node, the input reader can acquire the data through the input device node. The input reader may then transmit the data to the input distributor.
The input dispatcher, in conjunction with the current window information of the electronic device, determines to which application to dispatch the data from the input reader.
The flow of the response method of the external control of some embodiments of the present application is described below in conjunction with the architecture shown in fig. 6.
The control device may detect a key operation of the user on the control device in the sleep state. When the control device detects a key operation, the control device is switched from the sleep state to the working state in response to the key operation. After the control device enters the working state, the connection broadcast 1 starts to be transmitted. Wherein, the key corresponding to the key operation is a non-power key, and the key value corresponding to the key operation is recorded as a 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 control device carries a key value corresponding to the key operation in the sent connection broadcast. That is, the above connection broadcast 1 sent by the control device carries the key value 1.
After the electronic equipment is started, the connection broadcast 1 sent by the control equipment is received through the Bluetooth chip. The bluetooth chip can analyze the connection broadcast to obtain the control equipment identification information carried therein. Meanwhile, after the electronic device is powered on, the bluetooth driver creates an input device node (which may be referred to as a first input device node).
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 determine whether to establish connection with the control device. After the control device is paired with the electronic device according to the control device identification information, the electronic device can establish connection with the control device through the Bluetooth chip. The Bluetooth chip of the electronic device and the control device interact based on a Bluetooth protocol.
Meanwhile, the bluetooth chip of the electronic device may transmit the received connection broadcast 1 to the bluetooth driver. In some embodiments, the bluetooth chip may transmit 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 the key value 1 carried therein. The Bluetooth driver writes the key value 1 in the input device node after determining that the control device is the control device paired with the electronic device according to the identification information in the connection broadcast 1. In some embodiments, the bluetooth driver checks and reports the key value 1 according to the identification information, and may perform synchronization with the bluetooth chip according to the identification information, and establish a connection with the control device. Therefore, the electronic equipment can respond to the key value 1 without waiting for the electronic equipment to be connected with the control equipment, and the response speed of the electronic equipment to the key value 1 can be improved.
It can be understood that if the bluetooth driver determines that the control device is not paired with the electronic device according to the verification of the control device identification information, the bluetooth driver may not report the key value 1 to the input subsystem and the application, i.e. the bluetooth driver may not write the key value 1 in the input device node.
In other embodiments, the bluetooth chip sends the connection broadcast 1 to the bluetooth driver after determining that the control device is paired with the electronic device according to the control device identification information carried in the connection broadcast 1. 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 in the input device node. In some embodiments, the bluetooth driver may establish a connection with the bluetooth chip and the control device to perform the operation of reporting the key value 1 to the input subsystem and the application. Therefore, the electronic equipment can respond to the key value 1 without waiting for the electronic equipment to be connected with the control equipment, and the response speed of the electronic equipment to the key value 1 can be improved.
It can be appreciated that if the bluetooth chip determines that the control device is not paired with the electronic device according to the control device identification information verification, the bluetooth chip may not broadcast 1 to the bluetooth driver transmission connection.
In some embodiments, since the electronic device and the control device are not connected at this time, the input device node used when the bluetooth driver reports the key value 1 to the input subsystem and the application may be the first input device node created when the electronic device is turned on.
After detecting that data is written in an input device node, an input reader of the framework layer can acquire a key value 1 through the input device node. The input reader may then transmit the key value 1 to the input distributor. The input distributor distributes the key value 1 to the corresponding application in combination with the current window information acquired from the WMS in real time. After the application receives the key value 1, the application responds to the key value 1. In some embodiments, after the application makes a response action to the key value 1, an interface corresponding to the corresponding response result may be displayed.
In some embodiments, after the connection is established with the control device, the bluetooth chip sends a notification message of the connection success to the bluetooth driver. The bluetooth driver may create an input device node (which may be denoted as a second input device node) corresponding to the control device upon receiving the message informing that the connection was successful. 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 the Bluetooth driver receives the key value, the key value can be written in the input device node corresponding to the control device, so as to report the key value to the input subsystem and the application.
In some embodiments, the specific implementation process of establishing a connection between the electronic device and the control device through the bluetooth chip may include the following steps: the Bluetooth chip of the electronic device initiates a connection request to the control device. After receiving the connection request, the control device determines whether the electronic device is paired with the control device according to the connection request. After the electronic equipment corresponding to the verification and confirmation connection request is paired with the control equipment, the control equipment responds to the connection request and establishes a bottom link with a Bluetooth chip of the electronic equipment. And then, the Bluetooth chip of the electronic equipment sends an encryption request to the control equipment, the control equipment responds to the encryption request to encrypt, and the encryption success is returned to the Bluetooth chip of the electronic equipment.
Next, a response method of the external control proposed in the embodiment of the present application will be described in detail with reference to the accompanying drawings. FIG. 7 illustrates a flow of a response method of the external control in some embodiments.
S501, starting up the intelligent screen 10.
It should be noted that, in some embodiments, the smart screen 10 is turned on in S501, rather than being turned on in response to the power-on instruction sent by the control device.
In some embodiments, in S501, the smart screen 10 may be powered on by the smart screen 10 in response to the user triggering the power key on the smart screen 10; as in the scenario shown in fig. 2.
In other embodiments, in S501, the smart screen 10 may be powered up by detecting power-up.
In other embodiments, in S501, the smart screen 10 may also be started in response to a start command sent by another device; other devices may include intelligent control speakers, etc.
Alternatively, the smart screen 10 supports voice control in a standby state. In S501, the smart screen 10 may also be started in response to a start-up instruction sent by the user through voice.
It will be appreciated that the above embodiments are merely examples of the implementation of powering on the smart screen 10, and that in other embodiments, the smart screen 10 may be triggered by other ways.
S502, the intelligent screen 10 starts scanning.
In some embodiments, the smart screen 10 may scan broadcasts from control devices within a preset range of the smart screen 10.
S503, the intelligent screen 10 judges whether the connection broadcast is scanned.
The intelligent screen 10 is continuously scanned after being started. In some embodiments, the smart screen 10 may determine whether the connection broadcast is scanned every a certain time, i.e., the smart screen 10 may perform S503 at a certain time (e.g., a preset time). If the judgment result of S503 is no, it means that the smart screen 10 has not scanned the connection broadcast, at which point the smart screen 10 may return to continue to S503.
In other embodiments, if the determination at S503 is yes, it indicates that the smart screen 10 has scanned the connection broadcast. At this point, the smart screen 10 may perform the subsequent steps.
In some embodiments, the connection broadcast may be a back-connection broadcast.
Further, in some embodiments, the connection broadcast is a non-directional bluetooth broadcast. Then the connection broadcast may be scanned by any bluetooth device within a certain range. Therefore, after the smart screen 10 scans the connection broadcast, it is also necessary to determine whether the control device transmitting the connection broadcast has been paired with the smart screen 10 according to the connection broadcast, as by S504.
S504, the intelligent screen 10 judges whether the control device transmitting the connection broadcast is paired with the intelligent screen 10.
In some embodiments, the connection broadcast carries identification information of the control device transmitting the connection broadcast, and the smart screen 10 may determine whether the control device transmitting the connection broadcast is paired with the smart screen 10 according to the identification information. For example, after the smart screen 10 is paired with the control device, the identification information of the control device may be saved. Thus, after receiving the connection broadcast, the smart screen 10 can determine whether the control device transmitting the connection broadcast is a control device paired with the smart screen 10 according to the identification information carried in the connection broadcast.
Wherein the identification information may be used to uniquely identify the control device. In some embodiments, the identification information of the control device may be a media access control address (media access control address, MAC).
If the control device transmitting the connection broadcast is not paired with the smart screen 10, the smart screen 10 will not respond to the connection broadcast. It will be understood that the case where the determination result of S504 is no is not shown in fig. 7.
If the control device transmitting the connection broadcast is paired with the smart screen 10, the smart screen 10 may establish a connection with the control device.
S505, the smart screen 10 reads the key value of the key in the connection broadcast, and responds to the key value to execute corresponding response actions.
S506, the intelligent screen 10 establishes connection with the control equipment which sends the connection broadcast.
In some embodiments, the connection broadcast is a broadcast transmitted over the bluetooth protocol. In this embodiment, the specific implementation process of establishing the connection between the smart screen 10 and the control device that transmits the connection broadcast in S506 may refer to the foregoing process of establishing the connection between the electronic device and the control device through the bluetooth chip.
In some embodiments, S505 may be performed before S506, or S505 may be performed in synchronization with S506.
In the technical solution provided in this embodiment of the present application, for the smart screen 10, after determining that the control device sending the connection broadcast is the control device paired with the smart screen 10, the smart screen 10 may respond to the key value carried in the connection broadcast 1. Compared to the case where the smart screen 10 receives the reissued key value and responds after the smart screen 10 establishes the connection with the control device that transmits the connection broadcast in the related art, in the technical solution provided in the embodiment of the present application, the smart screen 10 may respond to the key value before the connection establishment is completed. Therefore, when the intelligent screen 10 and the control device are in an unconnected state, the response speed of the intelligent screen 10 to key operation of a user on the control device is improved, and the problem of delayed response is avoided.
As can be seen from the above description, when the control device is in the sleep state, the key operation of the control device by the user is detected, and the two different situations can be classified according to the keys. In the embodiment of the application, the control device responds to the key operation of the user in the control device to send out the connection broadcast carrying the key value. Therefore, in the embodiment of the application, when the control device is in the sleep state, different connection broadcasts can be sent out in response to the key operation of the power key and the non-power key by the user.
In some embodiments, the control device is in a dormant state, and in response to a user's key operation on a non-power key of the control device, a connection broadcast carrying a key value of the non-power key may be sent. The connection broadcast is used to characterize the control device as being in a connectable state and to control the smart screen 10 to perform a corresponding responsive action. After receiving the connection broadcast, the smart screen 10 may establish a connection with the control device, and execute a corresponding response action in response to the key value carried by the connection broadcast.
In other embodiments, the control device is in a dormant state, and a connection broadcast without a key value may be issued in response to a user's key operation of a power key of the control device. The connection broadcast is used to characterize the control device as being in a connectable state. After the smart screen 10 receives the connection broadcast, a connection may also be established with the control device. At the same time, the connection broadcast can also be used to control the power-on of the intelligent screen 10 in standby mode. The smart screen 10 may respond, i.e. power on, upon receiving the connection broadcast.
That is, in some embodiments, the smart screen 10 may not carry a key value in the connection broadcast scanned. Thus, as shown in fig. 8, the above method further includes S601 before S505.
S601, the intelligent screen 10 judges whether the connection broadcast has a key value.
If the judgment result of S601 is yes, the intelligent screen 10 may execute S505.
In other embodiments, if the connection broadcast does not carry a key value, the smart screen 10 establishes a connection with the control device transmitting the connection broadcast based on the connection broadcast, as shown in S602.
S602, the intelligent screen 10 establishes connection with a control device which transmits the connection broadcast based on the connection broadcast.
In addition, since the connection broadcast is issued in response to a user's operation of the power key while the control device is in a sleep state, the connection broadcast may also be used to indicate that the smart screen 10 is on in some embodiments. As shown in S501, the smart screen 10 is already in the power-on state. In some embodiments, after the smart screen 10 receives the connection broadcast in the on state, the smart screen 10 will not perform a response action in response to the connection broadcast if it is determined that the control device transmitting the connection broadcast is paired with the smart screen 10 according to the connection broadcast check. I.e. the smart screen 10 does not broadcast a power down in response to the connection, but remains on.
In the technical solution provided in the embodiment of the present application, after the smart screen 10 scans the connection broadcast, it is first confirmed whether the connection broadcast carries the key value. If the connection broadcast carries a key value, the smart screen 10 may respond to the key value after receiving the connection broadcast. And establishes a connection with the control device so that the control device can then control the intelligent screen 10 to perform a responsive action. Therefore, when the intelligent screen 10 and the control device are in an unconnected state, the response time of the intelligent screen 10 to the key operation of the user on the control device is reduced, the response speed is improved, and the problem of delayed response is avoided. If the connection broadcast does not carry a key value, the smart screen 10 establishes a connection with the control device after receiving the connection broadcast. In this way, it is possible to facilitate that the control device can then control the intelligent screen 10 to perform a responsive action.
Further, after the smart screen 10 establishes a connection with the control device, when the user triggers a key operation on the control device, the control device may send a key value corresponding to the key operation through the established connection. That is, the smart screen 10 may receive a key value transmitted from the control device through the established connection. And, the smart screen 10 may respond to the key value of the key to perform a corresponding response action. S603 and S604 shown in fig. 8.
S603, the intelligent screen 10 receives key values through connection.
S604, the intelligent screen 10 responds to the key value of the key press to execute corresponding response actions.
In some embodiments, the smart screen 10 performs a response action in response to a key value received from the control device through the connection and displays an interface corresponding to the response result.
In the technical solution provided in the embodiment of the present application, after the smart screen 10 establishes a connection with the control device, the key value of the key from the control device may be received through the connection. In this way, the control device can be facilitated to control the intelligent screen 10.
Fig. 9 illustrates a flow of a control method provided in some embodiments of the present application. The method may be applied to a second electronic device, such as the control device 20 described above.
S701. the control device 20 detects a key operation 1 of the key 1 of the control device 20 by the user.
In some embodiments, the control device 20 may detect the key operation 1 in the sleep state. At this time, the control device 20 will switch from the sleep state to the operating state in response to the key operation 1. When the control device 20 is in a dormant state, no connection broadcast is sent, and there is usually no way to establish a connection with other devices (e.g., a smart screen). And the control device 20 may start to issue a connection broadcast after switching from the sleep state to the active state.
In other embodiments, the control device 20 may also detect the key operation 1 in the operating state. In this case, two cases can be classified: in the first case, the control device 20 has established a connection with the smart screen, and the control device can then send the key value of the key 1 directly to the smart screen via this connection. In the second case, the control device 20 does not establish a connection with the smart screen. At this time, the control device 20 may issue a connection broadcast in response to the key operation 1.
Therefore, when the control device 20 detects the key operation 1, it may be first determined whether or not a connection is currently established with another device (e.g., a smart screen) as by S702.
S702, the control device 20 judges whether to connect with the intelligent screen.
If the judgment result of S702 is no, it indicates that the control device 20 has not established a connection with the smart screen, and the control device 20 may issue a connection broadcast. As will be appreciated in connection with the above description, the control device 20 may respond differently, such as by issuing a different connection broadcast, in response to the user pressing a different key. In some embodiments of the present application, control device 20 may issue a connection broadcast without a key value in response to a user pressing a power key. In other embodiments, the control device may issue a connection broadcast carrying a key-press key value in response to a user pressing a non-power key of the control device. Therefore, before the control device 20 issues a connection broadcast in response to the key operation 1, it may also be determined whether the key 1 corresponding to the currently detected key operation 1 is a power key or not, as by S703.
S703. the control device 20 determines whether the key 1 is a power key.
Note that, the control device 20 may refer to the description in the related art for determining whether the key 1 is a specific implementation procedure of the power key.
If the determination result in S703 is no, it indicates that the current user presses the function key instead of the power key. At this time, the control device 20 may carry a key value of the key in a connection broadcast to be issued as S704.
S704, the control device 20 sends out a connection broadcast 1, and the connection broadcast 1 carries a key value corresponding to the key operation 1.
Then, if the intelligent screen is in the on state, scanning is performed. If the smart screen scans the connection broadcast 1, a connection is established with the control device 20 based on the connection broadcast. Also, for the control device 20, the control device 20 establishes a connection with the smart screen as by S705.
S705. the control device 20 establishes a connection 1 with the smart screen.
It should be noted that, for a specific implementation procedure of the connection 1 between the control device 20 and the smart screen, reference may be made to the foregoing procedure of establishing a connection between the electronic device and the control device through the bluetooth chip.
Further, if the determination of the above S702 is yes, it means that the control device 20 has established a connection with the smart screen when the control device 20 detects the key operation 1. At this time, the control device 20 may directly transmit the key value of the key 1 to the smart screen through the established connection as S706.
S706, the control device 20 sends the key value corresponding to the key operation 1 to the intelligent screen through the established connection.
In the technical solution provided in the embodiment of the present application, when the control device 20 detects that the user is operating the key of the control device 20, if the control device 20 does not establish a connection with the smart screen, and if the user presses a key other than the power key, a connection broadcast carrying the key value of the key may be sent. The connection broadcast is used on the one hand to characterize that the control device 20 is currently in a connectable state, so that the smart screen can establish a connection with the control device 20 after scanning the connection broadcast. On the other hand, the connection broadcast can also be used to control the smart screen to perform a response action. In this way, the smart screen, after scanning for the connection broadcast, is enabled to perform key operations on the control device 20 by the user based on the connection broadcast. Therefore, the intelligent screen and the control device 20 are in an unconnected state, the response time of the intelligent screen to the key operation of the user on the control device 20 is reduced, the response speed is improved, and the problem of delayed response is avoided.
In some embodiments, the control device 20 issues the connection broadcast 1 using the bluetooth standard protocol BLE 4.2. The broadcast content of the connection broadcast 1 is exemplified as follows:
static uint8_t app_reconnect_adv_data[] =
{
0x02,/length
0x01, type = "identifier" (type = "flags")/x =
0x05,/bluetooth low energy limited discoverable mode (LE limited discoverable mode), bluetooth basic rate/bluetooth enhanced data rate not supported (BR/EDR not supported)/i
0x03, /* length */
0x03,/-type= "universal unique identification code available over 16 bits" (type= "More 16-bit UUIDs available"), -x-
0x12, 0x18, /* HID Service */
0x03, /* length */
0x19,/type = "public" ("type =" application "),/type =
0xc1, 0x03,/keyboard
DEVICE_NAME_LEN,/* length */
0x09, type = "complete device name" (type = "complete local name")/x
device_name/(DEVICE NAME
0x05, /* length */
0xFF,/. Manufacturer information (vendor information)
0x02, 0x7D, 0x04, 0x11,/manufacturer information
device_mac_len/(DEVICE MAC address length
device_mac_address,/DEVICE MAC ADDRESS
key_code,/KEY value × -
};
Wherein, the static uint 8_app_power_adv_data [ ] represents the content of the back-broadcasting data, i.e., the above-mentioned connection broadcasting 1.Key_code represents the KEY value carried by connection broadcast 1. Device_mac_address is used to check whether the control DEVICE 20 is paired with the smart screen. The device_mac_len, device_mac_address, and key_code in the above-described connection broadcast 1 may be different values when the user presses different KEYs by the control DEVICE 20.
In some embodiments, it may be that
When the determination result of S703 is yes, it means that the key 1 pressed by the user is a power key. As is apparent from the above description, when the user presses the power key while the control device 20 has not established a connection with the smart screen, a connection broadcast corresponding to the power key can be issued in response to the key operation. As shown in S707 of fig. 10.
S707. the control apparatus 20 issues a connection broadcast 2, the connection broadcast 2 not carrying a key value.
If the intelligent screen is in the on state, scanning will be performed. If the smart screen scans the connection broadcast 2, a connection is established with the control device 20 based on the connection broadcast. Also, for the control device 20, the control device 20 will establish a connection with the smart screen.
In addition, since the connection broadcast 2 is issued by the control device 20 in response to a user's operation of a power key of the control device 20, the connection broadcast 2 may also be used to indicate that the smart screen is on in a standby state in some embodiments. That is, in some embodiments, after the smart screen receives the connection broadcast 2 in the standby state, the smart screen will be turned on in response to the connection broadcast 2 if it is determined that the control device 20 is paired with the smart screen based on the connection broadcast 2 check.
In some embodiments, the control device 20 issues the connection broadcast 2 using the bluetooth standard protocol BLE 4.2. The broadcast content of the connection broadcast 2 is exemplified as follows:
static uint8_t app_power_adv_data[] =
{
0x02, /* length */
0x01, /* type="flags"*/
0x04, /* BR/EDR not supported */
0x03, /* length*/
0x03, /* type="more 16-bit UUIDs available" */
0x12, 0x18,/bluetooth hidden device service (HID service)/bluetooth hidden device service)
0x03, /* length */
0x19, /* type="appearance" */
0xc1, 0x03, /* keyboard */
0x0D, /* length */
0xFF, /* vendor information */
0xC6, 0x09, 0x03, 0x00, /* vendor information */
0x06, /* device mac len */
DEVICE_MAC_ADDRESS /* device mac address */
};
Wherein, the static uint 8_app_power_adv_data [ ] represents the content of the back-broadcasting data, i.e. the above-mentioned connection broadcasting 2.
In the technical solution provided in the embodiment of the present application, if the control device 20 establishes a connection with the smart screen, the control device 20 may send out the connection broadcast 2 without carrying the key value in response to the key operation of the power key of the user on the control device 20. So that after the smart screen scans the connection broadcast 2, a connection is established with the control device 20 based on the connection broadcast 2 and is powered on.
Further, after the control device 20 establishes the connection 1 with the smart screen, the user triggers a key operation on the control device 20, and the control device 20 may send a key value to the smart screen through the connection 1, as shown in fig. 10, and the method further includes S708.
S708, the control device 20 responds to the key operation 2 of the key 2 by the user at the control device 20, and sends a key value of the key 2 to the intelligent screen through the connection 1.
It will be appreciated that key 2 in S708 may be a power key or a non-power key of control device 20.
In some embodiments, the control device 20 may obtain a key value of a key 2 after detecting a key operation 2 on the key 2. Thereafter, the control device 20 may send the key value of the key 2 to the smart screen via the connection 1.
In the technical solution provided in the embodiment of the present application, after the control device 20 establishes a connection with the smart screen, it detects the key operation of the user controlling the device 20 again, and may send the key value to the smart screen directly through the established connection. By transmitting the key values through the connection, power consumption of the control device 20 can be saved compared to a manner of transmitting the key values through bluetooth broadcasting.
In the following, referring to fig. 11, when the user triggers a key operation to the non-power key of the control device 20 while the control device 20 is in the sleep state, the interaction between the control device 20 and the smart screen 10 and the interaction flow of the internal modules of the smart screen 10 are performed.
The user performs a power-on operation on the smart screen 10.
And S7000, starting up the intelligent screen 10.
In some embodiments, after the smart screen 10 is powered on, the modules of the smart screen 10 are powered on sequentially. In order to enable the smart screen 10 to respond to a user's key operation at the control device in a state in which the smart screen 10 is not connected to the control device 20, it is necessary to create a first input device node in the input subsystem after the smart screen 10 is powered on.
S7001. the smart screen 10 creates a first input device node in the input subsystem.
S7002, the Bluetooth chip starts scanning.
After the smart screen 10 is turned on, the user first presses a key (non-power key) of the control device 20 while the control device 20 is in a sleep state. In response to the key operation, the control device 20 will issue a connection broadcast (e.g., a callback broadcast).
S7003. the control device 20 transmits a callback broadcast carrying the key value of the key.
In some embodiments, the loopback broadcast also includes the MAC address of control device 20.
S7004, the Bluetooth chip of the intelligent screen 10 scans to the callback broadcast.
S7005, the Bluetooth chip transmits back a continuous broadcast to the Bluetooth driver.
S7006, the Bluetooth driver checks the MAC address and reads the key value.
In some embodiments, the bluetooth driver may read the key value carried in the retrieved connection broadcast after verifying that the MAC address determines that the control device 20 is a paired control device 20 with the smart screen 10.
S7007, the Bluetooth driver writes key values into a first input device node of the input subsystem.
In some embodiments, after the bluetooth driver writes a key value to the first input device node, the input subsystem may obtain the key value.
In some embodiments, the smart screen 10 prints and saves the log during power-up and interaction with the control device 20. In some embodiments, the smart screen 10 prints the first log after the input subsystem has obtained the key value. The first log is used to indicate that the input subsystem has acquired a key-press key value. The first log may be, for example, specifically an Input reader (inputreader: ul_input down (≡)). Wherein, the key values are different key values, representing different operations.
In some embodiments, the first log may be an operating system log printed by the smart screen 10.
S7008, the input subsystem reports key values to the application.
S7009, the application responds to the key value of the key, and corresponding response actions are executed.
Meanwhile, the bluetooth chip may be connected back to the control device 20 according to the back connection broadcast. As in S7010-S7023.
S7010, checking the MAC address by the Bluetooth chip to determine whether to initiate a reconnection request.
In some embodiments, after the bluetooth chip re-checks to determine that the MAC address determines that the control device 20 is a paired control device 20 with the smart screen 10, the smart screen 10 may initiate a connect back request to the control device 20.
S7011, the Bluetooth chip initiates a reconnection request to the control device 20.
S7012, the control device 20 checks the MAC address of the intelligent screen 10 to determine whether pairing is performed.
In some embodiments, the control device 20 may check the MAC address of the smart screen 10 in the connect-back request to determine whether the smart screen 10 has been paired with the control device 20. If yes, S7013 is executed.
S7013 the control device 20 sends a message to the bluetooth chip of the smart screen 10 in response to the callback request.
The bluetooth chip may establish an underlying link with the control device 20 after receiving a message in response to the callback request.
And returns a message of the successful establishment of the underlying link to the control device 20 after the successful establishment of the underlying link.
S7014. the bluetooth chip returns to the control device 20 that the underlying link establishment was successful.
In some embodiments, the smart screen 10 prints the second log after the bluetooth chip successfully establishes the underlying link with the control device 20. The second log is used to indicate that the underlying link between the smart screen 10 and the control device 20 was established successfully. The second log may specifically include: sub-event code: HCI Bluetooth enhanced connection completion (test_code: HCI_LE_enhanced_connection_complete).
In some embodiments, the second log may be a bluetooth log printed by a smart screen.
In some embodiments, the time at which the key value is received by the input subsystem of the smart screen 10 may be determined according to the printing time of the first log and the second log, and the time at which the smart screen 10 establishes a connection with the control device 20 may be sequenced. For example, if the printing time of the first log is earlier than the printing time of the second log, the input subsystem of the smart screen 10 may be considered to receive the key value before the time of establishing the connection between the smart screen 10 and the control device 20. That is, the input subsystem of the smart screen 10 has received the key values before the smart screen 10 establishes a connection with the control device 20.
S7015, the bluetooth chip also sends an encryption request to the control device 20.
The control device 20 encrypts in response to the encryption request and returns a message of encryption success to the bluetooth chip of the smart screen 10.
S7016, the control device 20 returns encryption success to the Bluetooth chip of the intelligent screen 10.
S7017, the Bluetooth chip informs the Bluetooth driver to work back.
S7018. the bluetooth driver creates a second input device node in the input subsystem corresponding to the control device 20.
Thereafter, the user presses a key on the control device 20, and the control device 20 may send a key value to the smart screen 10 through the established connection.
S7019. the control device 20 transmits a key value through the established connection in response to the key operation.
S7020, the Bluetooth chip sends the key value to the Bluetooth driver.
S7021, the Bluetooth driver writes key values into a second input device node of the input subsystem.
S7022, the input subsystem reports key values to the application.
S7023, the application responds to the key value of the key press to execute corresponding response actions.
It will be appreciated that in some embodiments, the above-described S7005-S7009 and S7010-S7023 may be performed in synchronization. In other embodiments, the above-described S7005-S7009 may also be performed prior to S7010-S7023. In the related art, the smart screen 10 needs to wait for the control device 20 to be connected back to the power, and then receive and respond to the key value of the key complement sent by the control device 20. Compared to the related art, the method proposed in the embodiment of the present application, the smart screen 10 may respond to the key operation of the control device 20 when the smart screen is not connected to the control device 20. In this way, when the intelligent screen 10 and the control device 20 are in an unconnected state, the response time required by the intelligent screen 10 to respond to the key of the control device 20 by the user is reduced, the response speed is improved, and the problem of delayed response is avoided.
Next, the interaction flow between the control device 20 and the intelligent screen 10 when the user presses different keys on the control device 20 in different scenes will be described with reference to the accompanying drawings.
In the embodiment shown in fig. 12, after the smart screen 10 is turned on, the user triggers a key operation to the non-power key of the control device 20 when the control device 20 is in the sleep state. The intelligent screen 10 is paired with the control device 20.
S800, starting up the intelligent screen 10.
S801. the smart screen 10 starts scanning.
Specifically, the smart screen 10 begins scanning for connection broadcasts.
S802. the control device 20 is in a sleep state, and detects a key operation 3 of the user on the control device 20 on the key 3.
In some embodiments, key 3 may be denoted as a first key. The key operation 3 may be denoted as an operation of a first key of the control device 20 by a user. In some embodiments, the key 3 is a non-power key of the control device 20. The key 3 may be, for example, any one of the function keys 21 on the control device 20 shown in fig. 1.
S803. the control device 20 issues a connection broadcast 3 in response to the key operation 3.
In some embodiments, the step S803 may specifically include: the control device 20 switches from the sleep state to the operation state in response to the key operation 3. After the control device 20 enters the operating state, a connection broadcast 3 is issued.
As is apparent from the above description, since the control device 20 does not establish a connection with the smart screen 10, the control device 20 can issue a connection broadcast carrying a key value of a key when detecting a key operation of a non-power key by a user. In some embodiments, connection broadcast 3 carries key value 3 for key 3.
In some embodiments, the control device 20 carries the key value 3 in the sent connection broadcast 3, which may specifically include: the control device 20 adds a preset field for storing the key value 3 to the connection broadcast 3.
Furthermore, the connection broadcast 3 may also carry identification information of the control device 20, which identification information is used to characterize the identity of the control device 20. After that, the device connected to the broadcast 3 is scanned, and it can be determined whether the control device 20 is the control device 20 paired with the device based on the identification information.
S804, the intelligent screen 10 scans to the connection broadcast 3.
In some embodiments, connection broadcast 3 is a non-directional bluetooth broadcast. Then, after the control device 20 issues the connection broadcast 3, bluetooth devices within a certain range of the control device 20 can scan for the connection broadcast 3. Therefore, after the smart screen 10 scans the connection broadcast 3, it is also necessary to determine whether the control device 20 has been paired with the smart screen 10 according to the connection broadcast 3. In some embodiments, connection broadcast 3 may be denoted as a first connection broadcast.
S805. 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 3.
In some embodiments, the connection broadcast 3 carries identification information of the control device 20. After the smart screen 10 scans the connection broadcast 3, the connection broadcast 3 may be parsed to obtain identification information of the control device 20. Then, the smart screen 10 may inquire of the control device 20 whether it is paired with the smart screen 10 based on the identification information.
The intelligent screen 10 may save the identification information of the control device 20 after successful pairing with the control device 20. Thus, in some embodiments, the smart screen 10 queries whether the control device 20 is paired with the smart screen 10 based on the identification information, which may specifically include: the smart screen 10 searches for the presence or absence of the identification information carried in the connection broadcast 3 among the identification information of the control device 20 stored in the smart screen 10. If the identification information carried by the connection broadcast 3 is stored in the smart screen 10, it indicates that the control device 20 corresponding to the connection broadcast 3 is the control device 20 paired with the smart screen 10. In some embodiments, the control device 20 paired with the smart screen 10 may be designated as the target control device 20.
In some embodiments, the smart screen 10 may be paired with a plurality of control devices 20 at the same time, and the smart screen 10 stores identification information of the plurality of control devices 20. That is, the user can control the smart screen 10 using any one of the control devices 20 paired with the smart screen 10.
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 may be a MAC address of the control device 20.
As can be seen from the above description, the control device 20 has already been paired with the smart screen 10, so the determination result of S805 is yes. At this time, the smart screen 10 may respond to the connection broadcast 3. For example, specific procedures for the smart screen 10 to respond to the connection broadcast 3 may refer to S806-S807.
S806. the smart screen 10 performs a response action corresponding to the key operation 3 based on the connection broadcast 3.
In some embodiments, the step S806 may specifically include: the smart screen 10 parses the connection broadcast 3 to obtain the key value 3 of the key 3 carried by the connection broadcast 3. The smart screen 10 performs a response operation corresponding to the key value 3.
For example, when the key 3 corresponds to a confirm key on the control device 20, the smart screen 10 may display a corresponding interface after performing a response action corresponding to the key 3. When the desktop 101 is displayed by the smart screen 10 shown in fig. 2, after the corresponding operation of the key 3 is performed, the live application interface 103 may be displayed.
S807. smart screen 10 establishes connection 3 with control device 20.
In some embodiments, S806 may be performed before S807; alternatively, S806 and S807 may be performed synchronously.
In some embodiments, connection 3 may be denoted as a first connection.
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 paired with the smart screen 10, the smart screen 10 may respond to the key operation of the non-power key on the control device 20 by the user. Compared to the technical solution proposed in the embodiment of the present application, which requires that the smart screen 10 receives and responds to the key value of the key issued by the control device 20 after the connection is established with the control device 20, the smart screen 10 can respond to the key value before the connection is established. Therefore, when the intelligent screen 10 and the control device 20 are in an unconnected state, the response speed of the intelligent screen 10 to the key operation of the user on the control device 20 for the non-power key is improved, and the problem of delayed response is avoided.
Further, after the smart screen 10 establishes the connection 3 with the control device 20, the user triggers a key operation on the key 4 at the control device 20, and the control device 20 can send a corresponding key value to the smart screen 10 through the connection 3.
S808, the control device 20 is in a dormant state, and the key operation 4 of the user on the control device 20 on the key 4 is detected.
The key 4 may be a power key or a non-power key. In some embodiments, key 4 may be denoted as a second key. The key operation 4 may be denoted as an operation of a second key of the control device 20 by the user.
S809. the control device 20 transmits the key value 4 of the key 4 to the smart screen 10 through the connection 3 in response to the key operation 4.
S810, the intelligent screen 10 executes response actions corresponding to the key values 4.
In some embodiments, when the key 4 is a power key, the smart screen 10 performs a response action corresponding to the key value 4 in S810, i.e. power off. Illustratively, the smart screen 10 may stop displaying the screen after performing the shutdown operation.
In other embodiments, when the key 4 is a function key (e.g. a confirm key), the smart screen 10 performs a response operation corresponding to the key value 4 in S810, i.e. an operation corresponding to the function key (e.g. confirm).
In the embodiment shown in fig. 13, after the smart screen 10 is turned on, the user triggers a key operation on the power key of the control device 20 when the control device 20 is in the sleep state. The intelligent screen 10 is paired with the control device 20.
S900, starting up the intelligent screen 10.
S901. the intelligent screen 10 starts scanning.
S902. the control device 20 is in a sleep state, and a key operation 5 of the user on the control device 20 on the key 5 is detected.
Wherein the key 5 is a power key of the control device 20. In some embodiments, key 5 may be denoted as a third key. The key operation 5 may be denoted as an operation of a third key of the control device 20 by the user.
S903. the control device 20 issues a connection broadcast 4 in response to the key operation 5.
As is apparent from the above description, the control device 20 is in the sleep state, and in response to the user's key operation on the power key, a connection broadcast without carrying the key value will be sent. I.e. the connection broadcast 4 does not carry a key value. The connection broadcast 4 is used to indicate that the control device 20 is in a connectable state, and the connection broadcast 4 is used to instruct the smart screen 10 to power on. In some embodiments, connection broadcast 5 may be denoted as a second connection broadcast.
S904. the smart screen 10 scans to the connection broadcast 4.
S905. 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 4.
Since the smart screen 10 and the control apparatus 20 have already been paired, the judgment result of S905 is yes; s906 may then be performed.
S906, the intelligent screen 10 establishes a connection 4 with the control device 20.
In some embodiments, since the smart screen 10 is already on, the smart screen 10 does not perform a corresponding response in response to the connection broadcast 4, i.e., the smart screen 10 does not shut down.
S907. the control device 20 detects a key operation 6 of the key 6 by the user on the control device 20.
The key 6 may be a power key of the control device 20 or may be a non-power key of the control device 20.
S908 the control device 20 sends the key value 5 of the key 6 to the smart screen 10 via the connection 4.
S909, the intelligent screen 10 executes a response action corresponding to the key value 5.
In some embodiments, when the key 6 is a power key, the smart screen 10 performs a response corresponding to the key value 5 in S909, that is, power-off. Illustratively, the smart screen 10 may stop displaying the screen after performing the shutdown operation.
In other embodiments, when the key 6 is a function key (e.g., a confirm key), the smart screen 10 performs a response operation corresponding to the key value 5 in S909, i.e., an operation corresponding to the function key (e.g., confirm).
In the technical solution provided in the embodiment of the present application, when the user triggers the key operation of the power key while the control device 20 is in the sleep state, a connection broadcast without a key value will be sent. After the smart screen 10 establishes a connection with the control device 20 based on the connection broadcast, the control device 20 can transmit a key value through the established connection, facilitating a subsequent user to control the smart screen 10 using the control device 20. The control device 20 transmits the key value through the established connection, and power consumption of the control device 20 can be reduced.
Fig. 14 illustrates the flow of a connection broadcast from the intelligent screen 10 to unpaired control device 20 in some embodiments. The intelligent screen 10 is unpaired with the control device 20.
S1000, starting up the intelligent screen 10.
S1001, the intelligent screen 10 starts scanning.
S1002. the control device 20 is in a sleep state, and detects a key operation 7 of the key 7 by the user on the control device 20.
The key 7 may be a power key or a non-power key.
S1003. the control device 20 issues a connection broadcast 5 in response to the key operation 7.
S1004. the smart screen 10 scans to the connection broadcast 5.
S1005, the intelligent screen 10 determines whether the control device 20 belongs to the control device paired with the intelligent screen 10 based on the connection broadcast 5.
Since the smart screen 10 and the control device 20 are not paired, the judgment result of S1005 is no; after that, the intelligent screen 10 may perform S1006.
S1006, intelligent screen 10 does not respond to connection broadcast 5.
In the technical solution provided in the embodiment of the present application, the smart screen 10 does not respond to the connection broadcast of the unpaired control device 20 when it is scanned. In this way, it is possible to ensure that the response of the intelligent screen 10 is accurate.
Other embodiments of the present application provide an electronic device that may be a first electronic device (e.g., a smart screen 10). The first electronic device may include: a bluetooth module, a memory, and one or more processors. The bluetooth module, memory, and processor are coupled. The Bluetooth module is used for establishing connection with the control equipment. The memory is also used to store computer program code, which includes computer instructions. When the processor executes the computer instructions, the first electronic device may perform the various functions or steps performed by the smart screen 10 in the method embodiments described above. The structure of the first electronic device may refer to the structure of the electronic device 100 shown in fig. 5.
In some embodiments of the present application, an electronic device is also provided, which may be a second electronic device control device (e.g., a 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 also used to store computer program code, which includes computer instructions. When the processor executes the computer instructions, the second electronic device may perform the various functions or steps performed by the control device 20 in the method embodiments described above.
Some embodiments of the present application also provide a communication system that may include the first electronic device and the second electronic device described above. The second electronic device may be paired with the first electronic device. The second electronic device may control the first electronic device to perform the responsive action.
Embodiments of the present application also provide a chip system, as shown in fig. 15, 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 may be interconnected by wires. For example, interface circuit 1502 may be used to receive signals from other devices, such as a memory of a computer. For another example, interface circuit 1502 may be used to send signals to other devices (e.g., processor 1501). Illustratively, the interface circuit 1502 may read instructions stored in the memory and send the instructions to the processor 1501. The instructions, when executed by the processor 1501, may cause a computer to perform the steps of the embodiments described above. Of course, the chip system may also include other discrete devices, which are not specifically limited in this embodiment of the present application.
Embodiments of the present application also provide a computer-readable storage medium that includes computer instructions that, when executed on an electronic device (e.g., the smart screen 10) described above, cause the electronic device to perform the functions or steps performed by the smart screen 10 in the method embodiments described above.
The present embodiments also provide a computer program product which, when run on a computer, causes the computer to perform the functions or steps performed by the intelligent screen 10 in the method embodiments described above. The computer may be an electronic device such as a smart screen 10.
It will be apparent to those skilled in the art from this description that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts shown as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions to cause a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a specific embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (15)

1. A response method of external control, characterized in that the method is applied to a first electronic device; the method comprises the following steps:
starting up the first electronic equipment;
the first electronic equipment and the second electronic equipment are in an unconnected state, and the first electronic equipment responds to the operation of a user on a first key by the second electronic equipment and executes a response action corresponding to the first key; the second electronic device is a paired electronic device of the first electronic device; the first key is a non-power key of the second electronic device;
the first electronic device establishes a first connection with the second electronic device.
2. The method of claim 1, wherein the first electronic device and the second electronic device are in an unconnected state, and the first electronic device executing a response action corresponding to a first key in response to a user operation of the first key at the second electronic device, including:
The first electronic equipment and the second electronic equipment are in an unconnected state, and a first connection broadcast sent by the second electronic equipment is received; the first connection broadcast is triggered by the second electronic device in response to the operation of a first key of the second electronic device by a user; the first connection broadcast is used for representing that the second electronic device is in a connectable state, and the first connection broadcast is used for controlling the first electronic device to execute a response action;
the first electronic equipment analyzes the first connection broadcast to obtain a first key value corresponding to the first key;
and the first electronic equipment responds to the first key value and executes the response action corresponding to the first key.
3. The method of claim 2, wherein after the first electronic device establishes the first connection with the second electronic device, the method further comprises:
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 equipment in response to the triggering of the operation of the second key by the user on the second electronic equipment; the second key comprises a power key and a non-power key of the second electronic device;
And the first electronic equipment responds to the second key value and executes a response action corresponding to the second key value.
4. The method of claim 2, wherein the first electronic device comprises a bluetooth module, a bluetooth driver, an input subsystem, and an application;
after the first electronic device is started, the method further comprises the following steps: the first electronic device creating a first input device node at the input subsystem;
the first electronic device receiving a first connection broadcast sent by the second electronic device, including:
the Bluetooth module of the first electronic device receives a first connection broadcast sent by the second electronic device;
the first electronic device analyzing the first connection broadcast, obtaining a first key value corresponding to the first key, including:
the Bluetooth module transmits the first connection broadcast to the Bluetooth driver;
the Bluetooth driver analyzes the first connection broadcast to obtain a first key value corresponding to the first key;
the first electronic device responds to the first key value to execute a response action corresponding to the first key, and the response action comprises the following steps:
The Bluetooth driver writes the first key value in the first input device node;
the input subsystem reports the first key value to the application after acquiring the first key value through the first input equipment node;
and the application responds to the first key value and executes the response action corresponding to the first key.
5. The method of claim 4, wherein after the first electronic device establishes the first connection with the second electronic device, the method further comprises:
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 configured to transmit a key value to the input subsystem by using the bluetooth driver.
6. The method of any of claims 1-5, wherein the first electronic device is powered on, comprising any of:
the first electronic equipment is started in response to triggering operation of a user on a power key of the first electronic equipment; or the first electronic equipment is powered on and started; or the first electronic device starts up in response to a starting-up instruction sent by a device other than the second electronic device; or the first electronic equipment is started in response to a voice starting instruction.
7. The method of any one of claims 1-5, wherein the first electronic device comprises a display screen; the method further comprises the steps of:
and the first electronic equipment responds to the operation of the user on the first key by the second electronic equipment, and an interface corresponding to a response result of the operation of the first key is displayed on the display screen.
8. The method of any of claims 1-5, wherein after the first electronic device is powered on, the method further comprises:
the first electronic equipment and the second electronic equipment are in an unconnected state, and second connection broadcast sent by the second electronic equipment is received; the second connection broadcast is used for representing that the second electronic equipment is in a connectable state; the second connection broadcast is triggered by the second electronic device in response to the operation of a third key by a user on the second electronic device; the third key is a power key of the second electronic device;
the first electronic device remains powered on and establishes a second connection with the second electronic device based on the second connection broadcast.
9. A control method, characterized in that the method is applied to a second electronic device paired with a first electronic device; the method comprises the following steps:
When the second electronic equipment is in an unconnected state with the first electronic equipment, responding to the operation of a user on a first key by the second electronic equipment, and controlling the first electronic equipment to execute a response action corresponding to the first key; and the second electronic device establishes a first connection with the first electronic device; wherein the first key is a non-power key of the second electronic device.
10. The method of claim 9, wherein when the second electronic device is in an unconnected state with the first electronic device, the controlling the first electronic device to execute the response action corresponding to the first key in response to the operation of the first key by the user at the second electronic device includes:
the method comprises the steps that when the second electronic equipment is in an unconnected state with the first electronic equipment, a first key value corresponding to a first key is obtained in response to the operation of a user on the first key by the second electronic equipment; the first key is a non-power key;
the second electronic equipment sends out a first connection broadcast based on the first key value; the first connection broadcast includes the first key value; the first connection broadcast is used for representing that the second electronic equipment is in a connectable state, and the first connection broadcast is used for controlling the first electronic equipment to execute a response action corresponding to the first key value;
The second electronic device establishes a first connection with the first electronic device.
11. The method of claim 10, wherein after the second electronic device establishes the first connection with the first electronic device, the method further comprises:
the second electronic equipment responds to the operation of a user on a second key of the second electronic equipment, and a second key value corresponding to the second key is obtained;
the second electronic equipment sends the second key value to the first electronic equipment through the first connection; the second key value is used for controlling the first electronic equipment to execute the response action corresponding to the second key.
12. An electronic device, characterized in that the electronic device is a first electronic device; the first electronic device includes: the Bluetooth module, the processor and the memory; the Bluetooth module and the memory are coupled with the processor;
the Bluetooth module is used for communicating with the second electronic equipment; the memory has stored therein computer program code comprising computer instructions which, when executed by the processor, cause the first electronic device to perform the method of any of claims 1-8.
13. An electronic device, characterized in that the electronic device is a second electronic device; the second electronic device includes: the Bluetooth module, the processor and the memory; the Bluetooth module and the memory are coupled with the processor;
the Bluetooth module is used for communicating with the first electronic equipment; the memory has stored therein computer program code comprising computer instructions which, when executed by the processor, cause the first electronic device to perform the method of any of claims 9-11.
14. A communication system, the system comprising: the electronic device of claim 12, and the electronic device of claim 13; the electronic device of claim 13 for controlling the electronic device of claim 12 to perform a responsive action.
15. A computer readable storage medium comprising computer instructions which, when run on a first electronic device, cause the first electronic device to perform the method of any of claims 1-8 or which, when run on a second electronic device, cause the second electronic device to perform the method of any of claims 9-11.
CN202311591416.0A 2023-11-27 2023-11-27 Response method and control method of external control and electronic equipment Active CN117289642B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311591416.0A CN117289642B (en) 2023-11-27 2023-11-27 Response method and control method of external control and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311591416.0A CN117289642B (en) 2023-11-27 2023-11-27 Response method and control method of external control and electronic equipment

Publications (2)

Publication Number Publication Date
CN117289642A true CN117289642A (en) 2023-12-26
CN117289642B CN117289642B (en) 2024-04-16

Family

ID=89248450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311591416.0A Active CN117289642B (en) 2023-11-27 2023-11-27 Response method and control method of external control and electronic equipment

Country Status (1)

Country Link
CN (1) CN117289642B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120011553A1 (en) * 2010-07-08 2012-01-12 Verizon Patent And Licensing Inc. Method and apparatus for supporting services via a set-top box
CN104318741A (en) * 2014-10-20 2015-01-28 小米科技有限责任公司 Bluetooth device control method and device
CN110012328A (en) * 2019-03-13 2019-07-12 青岛海信传媒网络技术有限公司 A kind of method and device interacted with smart television
CN111935517A (en) * 2020-07-09 2020-11-13 深圳市华曦达科技股份有限公司 Awakening method and device of intelligent set top box, electronic equipment and storage medium
CN112530149A (en) * 2019-09-17 2021-03-19 青岛海信宽带多媒体技术有限公司 Remote control method and device
US20220030403A1 (en) * 2018-08-01 2022-01-27 Huawei Technologies Co., Ltd. Bluetooth Communication Method and Dual-Mode Bluetooth Terminal
CN116419436A (en) * 2021-12-30 2023-07-11 中兴通讯股份有限公司 Networking method of Bluetooth equipment, terminal equipment and Bluetooth equipment
CN116708646A (en) * 2022-11-22 2023-09-05 荣耀终端有限公司 Equipment cooperative control method, electronic equipment and equipment cooperative control system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120011553A1 (en) * 2010-07-08 2012-01-12 Verizon Patent And Licensing Inc. Method and apparatus for supporting services via a set-top box
CN104318741A (en) * 2014-10-20 2015-01-28 小米科技有限责任公司 Bluetooth device control method and device
US20220030403A1 (en) * 2018-08-01 2022-01-27 Huawei Technologies Co., Ltd. Bluetooth Communication Method and Dual-Mode Bluetooth Terminal
CN110012328A (en) * 2019-03-13 2019-07-12 青岛海信传媒网络技术有限公司 A kind of method and device interacted with smart television
CN112530149A (en) * 2019-09-17 2021-03-19 青岛海信宽带多媒体技术有限公司 Remote control method and device
CN111935517A (en) * 2020-07-09 2020-11-13 深圳市华曦达科技股份有限公司 Awakening method and device of intelligent set top box, electronic equipment and storage medium
CN116419436A (en) * 2021-12-30 2023-07-11 中兴通讯股份有限公司 Networking method of Bluetooth equipment, terminal equipment and Bluetooth equipment
CN116708646A (en) * 2022-11-22 2023-09-05 荣耀终端有限公司 Equipment cooperative control method, electronic equipment and equipment cooperative control system

Also Published As

Publication number Publication date
CN117289642B (en) 2024-04-16

Similar Documents

Publication Publication Date Title
EP3468068B1 (en) Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
US11979251B2 (en) Home device control method and device
US20230039861A1 (en) Projection Connection Control Method And Electronic Device
CN111372325A (en) Method and device for establishing Wi-Fi point-to-point connection
EP3905786A1 (en) Method and device for controlling networking of smart home device
WO2021104114A1 (en) Method for providing wireless fidelity (wifi) network access service, and electronic device
CN111641916B (en) Audio sharing method and electronic equipment
CN112312366B (en) Method, electronic equipment and system for realizing functions through NFC (near field communication) tag
CN110060675B (en) Method and equipment for waking up sound box
WO2022052791A1 (en) Method for playing multimedia stream and electronic device
WO2021190373A1 (en) Interaction method, interaction system, and display device
CN112580051A (en) Starting-up control method and device
CN109688393B (en) Screen projection control method and first electronic device
EP4138462A1 (en) Information sharing method, electronic devices and system
CN111641864A (en) Video information acquisition method, device and equipment
CN117289642B (en) Response method and control method of external control and electronic equipment
WO2019154183A1 (en) Method for registration to network, and mobile terminal
CN115665671A (en) Audio data sharing method and device, electronic equipment and storage medium
CN115914704A (en) Bluetooth master device, bluetooth slave device and volume control method
CN116702105A (en) Account association method, device, computer equipment and storage medium
CN113938738A (en) Control method and system for display device, playing device and storage medium
WO2024093597A1 (en) Method for configuring a plurality of devices, device, and system
WO2023246045A1 (en) Device connection method and apparatus, audio playing device and apparatus, and storage medium
RU2795130C2 (en) Terminal device, method and system for screen projection with one touch using remote control
CN113014998B (en) Audio output method, device, television and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant