WO2023040848A9 - Device control method and apparatus - Google Patents

Device control method and apparatus Download PDF

Info

Publication number
WO2023040848A9
WO2023040848A9 PCT/CN2022/118543 CN2022118543W WO2023040848A9 WO 2023040848 A9 WO2023040848 A9 WO 2023040848A9 CN 2022118543 W CN2022118543 W CN 2022118543W WO 2023040848 A9 WO2023040848 A9 WO 2023040848A9
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
interface
data
target
control
Prior art date
Application number
PCT/CN2022/118543
Other languages
French (fr)
Chinese (zh)
Other versions
WO2023040848A1 (en
Inventor
刘华军
杨金华
杨毅轩
Original Assignee
荣耀终端有限公司
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 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2023040848A1 publication Critical patent/WO2023040848A1/en
Publication of WO2023040848A9 publication Critical patent/WO2023040848A9/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present application relates to the technical field of terminals, and in particular to a device control method and device.
  • terminal equipment has become a part of people's work and life.
  • a terminal device often needs a third terminal to complete. For example, when the first terminal needs to execute the target function, it needs to use the second terminal to control the first terminal to complete the target function.
  • the present application provides a device control method and device, which can enable the user to perform simple operations, realize target functions more conveniently by using the second terminal to control the first terminal, and improve the user's operation efficiency.
  • the present application provides a device control method, which is applied to a communication system.
  • the communication system includes a first terminal and a second terminal.
  • the method includes: the first terminal is in the first state, wherein, when the first terminal is in the first state, it can Execute the first function; the first terminal sends control information to the second terminal based on the established communication connection; the second terminal activates the target function unit in response to the control information; the second terminal cooperates with the first terminal to execute the first function based on the target function unit. Function.
  • the user only needs to establish a communication connection between the first terminal and the second terminal.
  • the first terminal sends control information to the second terminal.
  • the second terminal turns on the target function unit in response to the control information. Further, the second terminal cooperates with the first terminal to execute the first function based on the target function unit. Furthermore, the user's operation steps are simplified, and the second terminal can cooperate with the first terminal to execute the first function based on the target function unit, thereby improving the operation efficiency.
  • the second terminal cooperates with the first terminal to execute the first function based on the target functional unit, including: the second terminal sends target data to the first terminal in response to a trigger operation on the target functional unit; A terminal performs a first function associated with target data.
  • the target functional unit is a virtual text button in the second interface
  • the target data is text data.
  • the first terminal being in the first state includes: the first terminal displays a first interface, where the first interface includes an area where text is to be input.
  • the first terminal executes the first function associated with the target data, including: when the first terminal displays the first interface, inputting text data in an area where text is to be input on the first interface.
  • the user needs at most two operations to realize the text data input in the first interface of the first terminal by means of the second terminal. Furthermore, the user's operation steps are simplified, and the operation efficiency is improved.
  • the target data is control data.
  • the first terminal being in the first state includes: the first terminal displays a first interface, where the first interface includes game characters.
  • Executing the first function associated with the target data by the first terminal includes: when the first terminal displays the first interface, controlling the game character in the first interface to perform the game behavior corresponding to the control data.
  • the user needs at most two operations to control the game character in the first terminal to perform the game behavior associated with the triggering operation by means of the second terminal. Furthermore, the user's operation steps are simplified, and the operation efficiency is improved.
  • the target functional unit is a virtual control keyboard in the second interface, where the virtual control keyboard includes virtual keys for controlling the game behavior of the game character.
  • the control data is attitude data
  • the target functional unit is an attitude sensor of the second terminal for collecting attitude data.
  • the target functional unit is a virtual control keyboard in the second interface
  • the method further includes: the second terminal receives the first The first interface data of the interface.
  • the second terminal displays second interface data on the second interface, where the second interface data includes display content corresponding to the first interface data.
  • the target functional unit is a video collection module
  • the target data is the second video data collected by the video collection module.
  • the first terminal being in the first state includes: the first terminal displays a first interface, where the first interface includes first video data from the third terminal.
  • the first terminal executes the first function associated with the target data, including: the first terminal receives the second video data from the second terminal when the first interface is displayed; the first terminal sends the second video data to the third terminal.
  • the user needs at most two operations to implement the function of the first terminal performing video interaction with the help of the second terminal, and the user's hands are freed. Furthermore, the user's operation steps are simplified, and the operation efficiency is improved.
  • the method further includes: the second terminal receives the first video data from the first terminal.
  • the second terminal displays a second interface, where the second interface includes the first video data.
  • the user can also watch the first video data from the third terminal on the second terminal.
  • the method for establishing a communication connection includes: when the first terminal is in the first state, performing device discovery; when the first terminal discovers the second terminal, establishing a communication connection with the second terminal .
  • the device identifier of the first terminal stored in the target electronic device is acquired; the second terminal establishes a communication connection with the first terminal according to the device identifier.
  • the first terminal receives voice information input by the user; wherein, the voice information is used to indicate connection with the second terminal; the first terminal performs device discovery, and the first terminal establishes communication with the second terminal when the second terminal is found connect.
  • the second terminal transmits a UWB signal
  • the UWB signal carries the device identifier of the second terminal
  • the first terminal receives the UWB signal from the second terminal
  • the first terminal establishes a communication connection with the second terminal according to the device identifier in the UWB signal .
  • the method before the first terminal sends the control information to the second terminal based on the established communication connection, the method further includes: the second terminal displays a fifth interface, the fifth interface includes a First control to exit third preset mode. The second terminal responds to the trigger operation on the first control, and the second terminal is in the third preset mode.
  • control information is information indicating that the first terminal is in the first state
  • the second terminal starts the target function unit in response to the control information, including: the second terminal indicates that the first terminal is in the first state. status information, enable the target functional unit.
  • control information is an instruction for enabling the target functional unit
  • the second terminal responds to the control information for enabling the target functional unit, including: the second terminal activates the target functional unit according to the instruction for enabling the target functional unit.
  • the target functional unit may be activated by the first terminal decision, or the target functional unit may be activated by the second terminal decision.
  • the present application also provides a device control device, which is applied to a first terminal.
  • the device control device provided in the present application includes: a first processing unit, configured to control the first terminal to be in the first state, wherein the first terminal While in the first state, a first function can be performed.
  • the first communication unit is configured to send control information to the second terminal based on the established communication connection. Wherein, the control information is used to instruct the second terminal to activate the target function unit, so as to cooperate with the first terminal to execute the first function.
  • the first communication unit is further configured to receive target data from the second terminal.
  • the first processing unit is further configured to execute a first function associated with the target data.
  • the target functional unit is a virtual text button in the second interface
  • the target data is text data.
  • the first processing unit is specifically configured to control the first terminal to display the first interface, where the first interface includes an area where text is to be input.
  • the first processing unit is further specifically configured to control the first terminal to input text data in an area where text is to be input on the first interface when the first interface is displayed.
  • the target data is control data.
  • the first processing unit is specifically configured to control the first terminal to display the first interface, where the first interface includes game characters.
  • the first processing unit is further specifically configured to control the first terminal to control the game character in the first interface to perform the game behavior corresponding to the control data when the first interface is displayed.
  • the target functional unit is a virtual control keyboard in the second interface, where the virtual control keyboard includes virtual keys for controlling the game behavior of the game character.
  • the control data is attitude data
  • the target functional unit is an attitude sensor of the second terminal for collecting attitude data.
  • the target functional unit is a video collection module
  • the target data is the second video data collected by the video collection module.
  • the first processing unit is specifically configured to control the first terminal to display the first interface, wherein the first interface includes first video data from the third terminal, and the first processing unit is specifically configured to control the first terminal to display the first video data. interface, receiving the second video data from the second terminal; sending the second video data to the third terminal.
  • the present application further provides a device control device, which is applied to a second terminal.
  • the device control device provided in the third aspect includes: a second communication unit, configured to receive a communication from the first terminal based on an established communication connection control information.
  • the second processing unit is configured to enable the target function unit in response to the control information.
  • the second processing unit is further configured to cooperate with the first terminal to execute the first function based on the target function unit.
  • the second processing unit is specifically configured to, in response to a trigger operation on the target functional unit, control the second communication unit to send target data to the first terminal; where the target data is used to indicate that the first terminal A first function associated with the target data is performed.
  • the target functional unit is a virtual text button in the second interface
  • the target data is text data
  • the text data is used to indicate that when the first terminal displays the first interface, the key to be input in the first interface Text field to enter text data.
  • the target data is control data
  • the target data is used to instruct the first terminal to control the game character in the first interface to perform the game behavior corresponding to the control data when the first interface is displayed.
  • the target function unit is a virtual control keyboard in the second interface, wherein the virtual control keyboard includes virtual keys for controlling the game behavior of the game character; or, the control data is gesture data, and the target function The unit is an attitude sensor of the second terminal for collecting attitude data.
  • the target functional unit is a video collection module
  • the target data is second video data collected by the video collection module
  • the second video data is used to instruct the first terminal to display the first video data including the first video data. interface, sending the second video data to the third terminal.
  • control information is information indicating that the first terminal is in the first state
  • the second processing unit is specifically configured to enable the target functional unit according to the information indicating that the first terminal is in the first state.
  • control information is an instruction for enabling the target functional unit
  • the second processing unit is specifically configured to enable the target functional unit according to the instruction for enabling the target functional unit.
  • the present application also provides a computer-readable storage medium, the computer-readable storage medium stores instructions, and when the instructions are executed, the computer executes the computer as described in the first aspect or any implementation manner of the first aspect. The method executed by the first terminal or the second terminal.
  • the present application further provides a computer program product, including a computer program, which, when the computer program is run, causes the computer to execute the first terminal or the first terminal described in any implementation manner of the first aspect or the first aspect. The method executed by the terminal.
  • FIG. 1-FIG. 2 are schematic diagrams of the interface for inputting text data in the first interface displayed by the mobile phone 200 to the smart TV 200;
  • FIG. 3 is a schematic diagram of a hardware system architecture of a terminal device provided in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a software system architecture of a terminal device provided in an embodiment of the present application.
  • FIG. 5 is a schematic diagram of obtaining the device identity of the smart TV 100 by the mobile phone 200 approaching the remote control 300 of the smart TV 100 provided by the embodiment of the present application;
  • FIG. 6 is a schematic diagram of the mobile phone 200 receiving the voice information "connect to TV" input by the user provided by the embodiment of the present application;
  • FIG. 7 is a schematic diagram of establishing a communication connection between the mobile phone 200 and the smart TV 100 provided by the embodiment of the present application;
  • FIG. 8 is a schematic diagram of an interface in which the smart TV 100 sends the interface identifier of the first interface 101 to the mobile phone 200 during the process of displaying the first interface 101 provided by the embodiment of the present application;
  • Fig. 9 shows that in the process of displaying the second interface 207 of the mobile phone 200 provided by the embodiment of the present application, in response to the user's trigger operation on the virtual text button in the second interface 207, input in the first interface 101 of the smart TV 100 Schematic diagram of account and password;
  • FIG. 10 is a schematic diagram of an interface for establishing a communication connection with a mobile phone 100 when the smart TV 100 provided in the embodiment of the present application displays a game interface;
  • FIG. 11 is a schematic diagram of an interface of the smart TV 100 sending the interface identifier of the game interface to the mobile phone 200 during the process of displaying the game interface provided by the embodiment of the present application;
  • FIG. 12 shows that the mobile phone 200 provided by the embodiment of the present application responds to the user's trigger operation on the light-hand attack button "A" in the second interface 207, and controls the game character A in the first interface 101 of the smart TV 100 to control the light-hand attack game.
  • FIG. 13 is a schematic diagram of an interface for establishing a communication connection with a smart TV 200 when the mobile phone 200 displays the video playback interface provided by the embodiment of the present application;
  • FIG. 14 is a schematic diagram of the interface of the mobile phone 200 implementing the large-screen video interaction function by means of the software and hardware of the smart TV 100 provided by the embodiment of the present application;
  • FIG. 15 is a schematic diagram of an interface for setting the mobile phone 200 in the third preset mode provided by the embodiment of the present application.
  • FIG. 16 is one of the schematic flowcharts of the device control method provided by the embodiment of the present application.
  • FIG. 17 is a schematic diagram of a functional architecture in which the first terminal executes the function associated with the target data by means of the second terminal provided by the embodiment of the present application;
  • FIG. 18 is a structural block diagram of a terminal device 1800 provided in an embodiment of the present application.
  • FIG. 19 is a structural block diagram of a terminal device 1900 provided in an embodiment of the present application.
  • FIG. 20 is a schematic diagram of a hardware structure of a terminal device provided in an embodiment of the present application.
  • FIG. 21 is a schematic structural diagram of a chip provided by an embodiment of the present application.
  • words such as “first” and “second” are used to distinguish the same or similar items with basically the same function and effect.
  • the first value and the second value are only used to distinguish different values, and their sequence is not limited.
  • words such as “first” and “second” do not limit the quantity and execution order, and words such as “first” and “second” do not necessarily limit the difference.
  • At least one means one or more, and “multiple” means two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the contextual objects are an “or” relationship.
  • “At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items.
  • At least one item (piece) of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple .
  • the first terminal often needs the second terminal to complete them more conveniently.
  • the first terminal as the smart TV 100 and the second terminal as the mobile phone 200 as an example, with reference to FIGS. 1-2 , how the smart TV 100 can more conveniently complete a certain function with the help of the mobile phone 200 is described.
  • the smart TV 100 displays a first interface 101, which includes an account input area A and a password input area B, and the user needs to input an account in the account input area A and a password in the password input area B. , to complete the login and use the smart TV 100.
  • the user may use the mobile phone 200 to perform at least the following steps to enter the account and password on the first interface 101 .
  • Step 1 As shown in FIG. 1 , the user can establish a communication connection between the mobile phone 200 and the smart TV 100 .
  • Step 2 As shown in (a)-(b) in FIG. 2 , the mobile phone 200 displays the system main interface 201 in response to the user's unlocking operation.
  • Step 3 As shown in (b) in Figure 2, the main interface 201 of the display system includes the icon 202 of the "cooperative” application, and the mobile phone 200 responds to the user's trigger operation on the icon 202 of the "cooperative” application, as shown in Figure 2 As shown in (c), the main interface 203 of the "collaboration" application is displayed.
  • Step 4 As shown in (c) of FIG. 2 , the main interface 203 of the "cooperation" application includes a control 204 for instructing to realize the coordination function.
  • the mobile phone 200 may display the function list interface 205 in response to the user's trigger operation on the control 204 .
  • the “text input application”, “handle application” and “game application” are displayed in the function list interface 205 , and switch controls 206 are displayed on one side of the “text input application”, “handle application” and “game application”.
  • Step 5 As shown in (c)-(d) in FIG. 2 , the mobile phone 200 may display a second interface 207 in response to the user's trigger operation on the switch control 206 on the "text input application" side, the second interface 207 includes virtual keys.
  • the mobile phone 200 can control the smart TV 100 to input an account in the account input area A and a password in the password input area B in response to the user's trigger operation on the virtual key, so as to complete the login.
  • the above smart TV 100 uses the mobile phone 200 to complete the function of inputting the account and password, at least requiring the user to operate the above steps 1-5, the operation steps are complicated and inefficient.
  • an embodiment of the present application provides a device control method.
  • the first terminal displays the first interface and needs to use the second terminal to complete a certain function
  • a communication connection can be established between the first terminal and the second terminal; and , the first terminal sends the identifier of the first interface to the second terminal; the second terminal recognizes the identifier of the first interface, and displays the second interface corresponding to the identifier of the first interface; during the process of displaying the second interface, the second terminal, The target data is acquired; the second terminal sends the target data to the first terminal; the first terminal executes a function associated with the target data. In this way, the user's operation steps are reduced, and the process in which the first terminal completes the target function by means of the second terminal can be realized, thereby improving efficiency.
  • the terminal device can be mobile phone, smart TV, wearable device, tablet computer (Pad), computer with wireless transceiver function, virtual reality (virtual reality, VR) terminal device, augmented reality (augmented reality, AR) terminal Equipment, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grid, transportation Wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, etc.
  • the embodiment of the present application does not limit the specific technology and specific device form adopted by the terminal device.
  • FIG. 3 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.
  • the terminal device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, an antenna 1, an antenna 2, and a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a sensor module 180, a button 190, an indicator 192, a camera 193, and a display screen 194, etc.
  • a processor 110 an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, an antenna 1, an antenna 2, and a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a sensor module 180, a button 190, an indicator 192, a camera 193, and a
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the combination of the gyro sensor 180B and the acceleration sensor 180E can be understood as an attitude sensor.
  • the structure shown in the embodiment of the present application does not constitute a specific limitation on the terminal device.
  • the terminal device may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • Processor 110 may include one or more processing units. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the terminal device, and can also be used to transmit data between the terminal device and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the power management module 141 is used for connecting the charging management module 140 and the processor 110 .
  • the wireless communication function of the terminal device can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Antennas in end devices can be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on terminal equipment.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system ( global navigation satellite system (GNSS), frequency modulation (frequency modulation, FM) and other wireless communication solutions.
  • WLAN wireless local area networks
  • Wi-Fi wireless fidelity
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • the terminal device realizes the display function through the GPU, the display screen 194, and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • the display screen 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the terminal device may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the terminal device can realize the shooting function through ISP, camera 193 , video codec, GPU, display screen 194 and application processor.
  • Camera 193 is used to capture still images or video.
  • the terminal device may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the internal memory 121 can be used to store the first object table and the second object table.
  • Table 1 For the specific content of the first target table, refer to Table 1 in the following embodiments, and for the specific content of the second target table, refer to Table 2 in the following embodiments, which will not be introduced here.
  • the terminal device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • Speaker 170A also referred to as a "horn” is used to convert audio electrical signals into sound signals.
  • the terminal device can play music or listen to voice through the speaker 170A.
  • the receiver 170B also called “earpiece”, is used to convert audio electrical signals into audio signals. When the terminal device answers a phone call or voice information, the receiver 170B can be placed close to the human ear to listen to the voice.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals, such as collecting voice.
  • the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • pressure sensor 180A may be disposed on display screen 194 .
  • the gyroscope sensor 180B can be used to determine the motion posture of the terminal device.
  • the air pressure sensor 180C is used to measure air pressure.
  • the magnetic sensor 180D includes a Hall sensor.
  • the acceleration sensor 180E can detect the acceleration of the terminal device in various directions (generally three axes).
  • the distance sensor 180F is used to measure the distance.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the ambient light sensor 180L is used for sensing ambient light brightness.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the temperature sensor 180J is used to detect temperature.
  • the touch sensor 180K is also called “touch device”.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the keys 190 include a power key, a volume key and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the terminal device can receive key input and generate key signal input related to user settings and function control of the terminal device.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the software system of the terminal device may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture, etc., which will not be repeated here.
  • the embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the terminal device.
  • FIG. 4 is a software structural block diagram of a terminal device applicable to an embodiment of the present application.
  • the layered architecture divides the software system of the terminal device into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
  • the Android system can be divided into five layers, namely applications, application framework, Android runtime, system library, and hardware abstraction layer. layer, HAL) and the kernel layer (kernel).
  • the application program layer may include a series of application program packages, and the application program layer runs the application program by calling an application program interface (application programming interface, API) provided by the application program framework layer.
  • the application package can include applications such as camera, text input, game, handle, collaborative control, WeChat, phone, map, navigation, WLAN, and Bluetooth information.
  • the display interface when the text input application is opened includes a virtual text key, and the virtual text key is used for inputting text.
  • the virtual text keys include number keys, letter keys, and symbol keys, etc., which are not limited herein.
  • the display interface is the game interface.
  • the game interface may include game character A and game character B in a fighting game.
  • the display interface when the handle application is opened may include a virtual control keyboard.
  • the virtual control keyboard can include forward button “ ⁇ ”, back button “ ⁇ ”, jump button “ ⁇ ”, squat button “ ⁇ ”, light hand attack button “A”, heavy hand attack button “B”, light foot attack button “C” and the heavy foot attack button “D”.
  • the coordinated control application can be used to call application programs such as text input application, joystick application, and video application.
  • the coordinated control application can also be used to call hardware modules such as the acceleration sensor 180E, the gyroscope sensor 180B, the microphone 170A, and the speaker 170C.
  • the application framework layer provides API and programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions. As shown in Figure 4, the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
  • a window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
  • the view system can be used to build applications.
  • a display interface can consist of one or more views.
  • the Android runtime includes core libraries and a virtual machine.
  • the Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application program layer and the application program framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • a system library can include multiple function modules.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
  • the hardware abstraction layer can contain multiple library modules, such as camera library modules, motor library modules, etc.
  • the Android system can load corresponding library modules for the device hardware, and then realize the purpose of the application framework layer accessing the device hardware.
  • Device hardware may include, for example, speakers, display screens, and cameras in terminal devices.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer is used to drive the hardware and make the hardware work.
  • the kernel layer includes at least a display driver, a motor driver, a sensor driver, etc., which are not limited in this embodiment of the present application.
  • the smart TV 100 displays a first interface 101 (that is, the smart TV 100 is in a first state).
  • the first interface 101 includes an account input area A where text is to be input, and a password input area B (ie, the area where text is to be input) (ie, the smart TV 100 can realize the function of text input, ie, the first function).
  • the first interface 101 can be understood as a text input interface.
  • the user needs to use the mobile phone 200 to enter the account and password in the first interface 101 (that is, the smart TV 100 needs to use the mobile phone 200 to input text data), and the user can use the smart TV 100 only after the smart TV 100 successfully verifies the account and password.
  • the user uses the smart TV 100 to watch live channels, order movies, and play games.
  • the smart TV 100 Before the user enters the account and password on the first interface 101 with the help of the mobile phone 200 , the smart TV 100 needs to establish a communication connection with the mobile phone 200 .
  • the ways for the mobile phone 200 to communicate with the smart TV 100 may include but not limited to the following ways:
  • the first type the smart TV 100 performs device discovery during the process of displaying the first interface 101 .
  • the smart TV 100 discovers the mobile phone 200 , it establishes a communication connection with the mobile phone 200 .
  • the communication connection may be a Bluetooth connection, a WiFi connection, an NFC connection, UWB, etc., which is not limited herein. In this way, the communication connection between the smart TV 100 and the mobile phone 200 can be realized without user operation, which can reduce user operation steps and improve efficiency.
  • the second type as shown in FIG. 5 , the mobile phone 200 is close to the remote control 300 of the smart TV 100 (for example, the user uses the mobile phone 200 to touch the remote control 300 once), and the mobile phone 200 can establish an NFC communication connection with the remote control 300 .
  • the mobile phone 200 can obtain the device identifier of the smart TV 100 stored in the remote controller 300 through NFC communication (which may include the communication address of the smart TV 100 ).
  • the mobile phone 200 can establish a communication connection with the smart TV 100 according to the device identifier. In this way, the user only needs to bring the mobile phone 200 close to the remote control 300 to establish a communication connection between the mobile phone 200 and the smart TV 100 , which is convenient and fast.
  • the mobile phone 200 may establish a communication connection with the smart TV 100 only when the mobile phone 200 establishes NFC communication with the remote control 300 twice (that is, the user uses the mobile phone 200 to touch the remote control 300 twice).
  • the aforementioned remote controller 300 may be replaced with a router, or a smart TV 100 , etc., which is not limited herein. It can be understood that the aforementioned remote control 300 , router, or smart TV 100 are target electronic devices.
  • the mobile phone 200 can receive the voice message "connect with TV" input by the user. Furthermore, as still shown in FIG. 7 , the mobile phone 200 discovers the smart TV 100 and establishes a communication connection with the smart TV 100 . Understandably, the above voice information is used to indicate a communication connection with the smart TV 100 . In this way, the above-mentioned voice information may also be replaced with "connect TV", etc., which is not limited here.
  • the fourth type: the mobile phone 200 can transmit UWB signals.
  • the UWB signal carries the device identification of the mobile phone 200 (may include the communication address of the mobile phone 200).
  • the smart TV 100 can receive the device identification of the mobile phone 200 .
  • the smart TV 100 establishes a communication connection with the mobile phone 200 according to the device identifier. In this way, the user only needs to align the mobile phone 200 with the smart TV 100 to establish a communication connection between the mobile phone 200 and the smart TV 100 , which is convenient and quick.
  • the smart TV 100 controls the mobile phone 200 to display the second interface during the process of displaying the first interface 101 .
  • the second interface includes a virtual text button, and the virtual text button is used for inputting text.
  • the virtual text keys include number keys, letter keys, and symbol keys, etc., which are not limited herein. Understandably, the above-mentioned second interface is a keyboard interface. In the following, how the smart TV 100 controls the mobile phone 200 to display the second interface will be described in conjunction with Table 1 and Table 2 respectively.
  • the mobile phone 200 may store a first target table, and the first target table includes a mapping relationship between the interface identifier of the smart TV 100 and the interface identifier of the mobile phone 200 .
  • the contents of the first target table may be shown in Table 1 below:
  • Interface logo of smart TV 100 The interface identification of the mobile phone 200 Interface ID of the text input interface Interface ID for the keyboard interface Interface ID of the game interface Interface ID of the handle interface Interface ID of the video playback interface Interface ID of the video playback interface
  • the mobile phone 200 After the mobile phone 200 is successfully connected with the smart TV 100, as shown in FIG. , that is, control information).
  • the mobile phone 200 searches out the interface identifier of the second interface 207 (ie, the interface identifier of the keyboard interface) from the first target table according to the interface identifier of the first interface 101 .
  • the mobile phone 200 displays the second interface 207 (ie, the keyboard interface) according to the found interface identifier.
  • mapping relationship can also be replaced by: the mapping relationship between the interface identifier of the smart TV 100 and the program package name of the mobile phone 200 .
  • content of the first target table may also be shown in Table 2 below:
  • Interface logo of smart TV 100 The program package name of the mobile phone 200 Interface ID of the text input interface The package name of the keyboard application Interface ID of the game interface The package name of the controller application Interface ID of the video playback interface The package name of the video application
  • the mobile phone 200 may also find out the program package name of the keyboard application from the first target table according to the interface identifier of the first interface 101 . Furthermore, the mobile phone 200 opens the keyboard application to display the second interface 207 according to the found program package name of the keyboard application.
  • the mobile phone 200 may respond to the user's trigger operation on the virtual text button in the second interface 207, and enter the account and password.
  • the ways for the mobile phone 200 to input the account and password on the first interface 101 include but not limited to the following two:
  • the first type the virtual text button is marked with a button identifier.
  • the button identification can be a number "0" or “1", etc., an English letter “a” or “b” and so on.
  • the mobile phone 200 may, in response to the user's trigger operation on the virtual text key, send the key identification (ie target data) of the triggered virtual text key to the smart TV 100 .
  • the smart TV 100 inputs the received button identification on the first interface 101 .
  • the second type a button identifier is marked on the virtual text button.
  • the button identification may be a number "0" or "1", and an English letter "a” or "b”.
  • both the smart TV 100 and the mobile phone 200 store a second target table, and the second target table includes a mapping relationship between key identifiers and key codes.
  • the content of the second target table may be shown in Table 3 below:
  • button identification Second key code Button ID "0" 48 Button ID “1” 49 Button ID “2” 50 Button identification "3" 51 Button identification "4" 52 Button identification "5" 53 Button identification "6” 54 Button identification "7” 55 Button identification "8” 56 Button identification "9” 57 Button identification "Enter” 13 Button identification "A” 65 Button identification "B” 66 Button identification "C” 67 ... ... Button identification "Z” 90
  • the mobile phone 200 may, in response to the user's trigger operation on the virtual text key, search out the key code corresponding to the key identifier of the triggered virtual text key from the second target table.
  • the mobile phone 200 sends the found key code to the smart TV 100 .
  • the smart TV 100 finds the keyboard identifier corresponding to the key code from the second target table, and inputs the found key identifier on the first interface 101 .
  • the user only needs to establish a communication connection between the smart TV 100 and the mobile phone 200 .
  • the smart TV 100 sends the identifier of the first interface to the mobile phone 200 .
  • the mobile phone 200 recognizes the first interface identifier, it displays the second interface corresponding to the first interface identifier.
  • the mobile phone 200 receives a user's trigger operation; the smart TV 100 inputs the account and password corresponding to the trigger operation on the first interface.
  • the user needs at most two operations to realize the account and password entered in the first interface of the smart TV 100 by means of the mobile phone 200 .
  • the user's operation steps are simplified, and the operation efficiency is improved.
  • the first interface 101 of the smart TV 100 is used as the text input interface, and the user enters the account and password on the text input interface of the smart TV 100 by means of the mobile phone 200 as an example.
  • the user enters the account and password on the text input interface of the smart TV 100 by means of the mobile phone 200 as an example.
  • taking the first interface 101 of the smart TV 100 as the game interface as an example how the user controls the game character in the game interface of the smart TV 100 to execute the game behavior with the help of the mobile phone 200 .
  • the smart TV 100 displays a first interface 101 (that is, the smart TV 100 is in a first state).
  • the first interface 101 includes game character A and game character B (that is, the smart TV 100 has a function of controlling the behavior of the game character, that is, the first function). Understandably, the first interface 101 is a game interface.
  • the mobile phone 200 displays the system main interface 201 at this moment.
  • the main interface 201 of the system displayed on the mobile phone 200 can also be replaced by the mobile phone 200 being in a locked screen state or displaying other browsing interfaces, etc., and this is just an example.
  • the smart TV 100 needs to establish a communication connection with the mobile phone 200 .
  • the manner of the communication connection between the mobile phone 200 and the smart TV 100 may refer to the description in the foregoing embodiments, which will not be repeated here.
  • the smart TV 100 controls the mobile phone 200 to display the second interface 207 during the process of displaying the first interface 101 .
  • the mobile phone 200 displays the second interface 207 according to the interface identifier of the first interface 101 .
  • the principle of the mobile phone 200 displaying the second interface 207 according to the interface identifier of the first interface 101 is the same as that in the above-mentioned embodiment, and will not be repeated here.
  • the second interface 207 may include a virtual control keyboard 208 .
  • the virtual control keyboard 208 includes virtual keys for controlling the game behavior of the game character A.
  • the virtual control keyboard 208 may include a forward key " ⁇ ”, a backward key “ ⁇ ”, a jump key “ ⁇ ”, a squat key “ ⁇ ”, a light hand attack key “A”, a heavy hand attack key “B”, a light hand Foot attack button “C” and heavy foot attack button "D”.
  • the mobile phone 200 can also receive the interface data displayed on the first interface 101 from the smart TV 100, and display the interface data of the first interface 101 on the second interface 207, and then , the user can view the interface data of the first interface 101 in the smart TV 100 at close range on the mobile phone 200 .
  • the mobile phone 200 when the mobile phone 200 is displaying the second interface 207 , the mobile phone 200 can control the game behavior of the game character A in the first interface 101 in response to a user's trigger operation.
  • the mobile phone 200 can control the game character A in the first interface 101 of the smart TV 100 to lightly respond to the user's trigger operation on the light hand attack button "A" in the second interface 207.
  • Hand attack game character B the principle that the user controls the game character A in the first interface 101 of the smart TV 100 to attack the game character B with the help of the mobile phone 200 is the same as in the above-mentioned embodiment, the user uses the mobile phone 200 to control the game character A in the first interface 101 of the smart TV 100.
  • the principle of entering the account and password is the same, and will not be repeated here. It can be understood that the mobile phone 200 can also control the game character A in the first interface 101 of the smart TV 100 to perform other operations based on the same principle, which will not be limited or repeated here.
  • FIG. 11 may also be replaced with (c) in the above-mentioned FIG. 11 .
  • the mobile phone 200 displays a second interface 211 .
  • the second interface 211 includes a virtual control keyboard 212, wherein, when the virtual control keyboard 211 is triggered, control data (i.e. target data) on the game character is generated, wherein the control data is used to control the game character A in the first interface 211 the behavior of.
  • control data i.e. target data
  • the virtual control keyboard 212 may include a forward key “ ⁇ ”, a backward key “ ⁇ ”, a jump key “ ⁇ ”, a squat key “ ⁇ ”, a light hand attack key “A”, a heavy hand attack key “B”, a light foot attack key Button “C” and heavy foot attack button “D”.
  • the second interface 211 is the handle interface.
  • the mobile phone 200 can also control the game character A in the first interface 101 of the smart TV 100 to lightly attack the game character B in response to the user's trigger operation on the light-hand attack button "A" in the second interface 211 .
  • the mobile phone 200 displays a third interface 213 .
  • the first prompt information is displayed on the third interface 213 .
  • the first prompt information is used to indicate that the mobile phone 200 is in the first preset mode, where the first preset mode can be understood as the mobile phone 200 turning on the game mode.
  • the first prompt information may be but not limited to text information of "in game mode”.
  • the mobile phone 200 also finds out the attitude sensor according to the logo of the first interface 101 of the smart TV 100 and the preset mapping relationship. In this way, the mobile phone 200 can share the attitude data of the mobile phone 200 collected by the attitude sensor to the smart TV 100 . After receiving the gesture data, the smart TV 100 can control the game character A to perform operations associated with the gesture data.
  • the smart TV 100 when the mobile phone 200 moves to the right, it sends right gesture data (ie target data) to the smart TV 100 .
  • the smart TV 100 can control the game character A to move to the right according to the gesture data of the movement to the right.
  • the mobile phone 200 moves downward, it sends downward posture data to the smart TV 100 .
  • the smart TV 100 can control the game character A to squat according to the downward posture data.
  • the mobile phone 200 is turned forward, it sends the attitude data of the forward turn to the smart TV 100 . In this way, the smart TV 100 can control the game character A to attack the game character B with a light hand according to the posture data flipped forward.
  • the user only needs to establish a communication connection between the smart TV 100 and the mobile phone 200 .
  • the smart TV 100 sends the identifier of the first interface to the mobile phone 200 .
  • the mobile phone 200 displays the second interface corresponding to the identifier of the first interface.
  • the mobile phone 200 receives the user's trigger operation, and controls the game character in the smart TV 100 to perform the game behavior associated with the trigger operation.
  • the user needs at most two operations to control the game character in the smart TV 100 to perform the game behavior associated with the triggering operation by means of the mobile phone 200 .
  • the user's operation steps are simplified, and the operation efficiency is improved.
  • the smart TV 100 uses the software and/or hardware of the mobile phone 200 to implement a certain function.
  • the smart TV 100 uses the mobile phone 200 to input the account and password; or, the smart TV 100 uses the mobile phone 200 to control the game character to execute the game behavior.
  • the mobile phone 200 implements the large-screen video interactive function by means of the software and hardware of the smart TV 100 .
  • the user's mobile phone 200 receives a video call request from the third terminal.
  • the mobile phone 200 receives the first video data from the third terminal and collects the second video data in response to the confirmation operation of the video call request input by the user.
  • the first video data includes the image D collected by the third terminal and first sound data.
  • the second video data includes the first sound data collected by the microphone of the mobile phone 200 and the image C collected by the camera of the mobile phone 200 .
  • the mobile phone 200 displays the first interface 209 (i.e.
  • the mobile phone 200 plays the first sound data on the speaker of the mobile phone 200 (That is, the mobile phone 200 has a function of video interaction, that is, the first function).
  • the mobile phone 200 sends the second video data to the third terminal, so that the third terminal can play the second video data. In this way, video interaction between the mobile phone 200 and the third terminal can be realized.
  • the mobile phone 200 can use the smart TV 100 to collect the second video data.
  • the mobile phone 200 may use the smart TV 100 to display image C and image D. 13 and 14, how the mobile phone 200 collects the second video data with the smart TV 100, and how the mobile phone 200 displays the image C and the image D with the smart TV 100.
  • the mobile phone 200 establishes a communication connection with the smart TV 100 during the process of displaying the first interface 209 .
  • the manner of the communication connection between the mobile phone 200 and the smart TV 100 may refer to the description in the foregoing embodiments, which will not be repeated here.
  • the mobile phone 200 After the mobile phone 200 establishes a communication connection with the smart TV 100 , the mobile phone 200 controls the smart TV 100 to display the second interface 103 during the process of displaying the first interface 209 . Wherein, image C and image D are also included in the second interface 103 . Next, the process of how the mobile phone 200 controls the smart TV 100 to display the second interface 103 will be specifically introduced.
  • the mobile phone 200 sends the interface identification of the first interface 209 to the smart TV 100 (i.e. the interface identification of the video playback interface, i.e. the control information).
  • the smart TV 100 finds the identifier of the second interface 103 and the identifier of the speaker according to the interface identifier of the first interface 209 and the preset mapping relationship.
  • the smart TV 100 receives the first video data from the mobile phone 200, and the first video data includes the image D collected by the third terminal and the first sound data.
  • the smart TV 100 displays the second interface 103 (namely, the video playback interface), wherein the second interface 103 includes the image D, and the speaker of the smart TV 100 plays the first sound data.
  • the size of the image D displayed on the smart TV 100 is larger than the size of the image D displayed on the mobile phone 200 . In this way, the user can watch the image D on the smart TV 100 more clearly.
  • the mobile phone 200 may also display a fourth interface 210 after sending the first video data to the smart TV 100 .
  • Second prompt information is displayed on the fourth interface 210 .
  • the second prompt information is used to indicate that the mobile phone 200 is in a second preset mode (such as video mode).
  • the first prompt information may be, but not limited to, text information of "in video call”.
  • the smart TV 100 also finds the identifier of the microphone and the identifier of the camera according to the interface identifier of the first interface 209 and the preset mapping relationship.
  • the smart TV 100 displays the second interface 103
  • the camera of the smart TV 100 collects the image C
  • the microphone of the smart TV 100 collects the second sound data.
  • the smart TV 100 also sends second video data (ie target data) to the mobile phone 200 , the second video data includes image C and second sound data.
  • the mobile phone 200 sends the second video data to the third terminal, so that the third terminal can play the second video data. In this way, the mobile phone 200 implements video interaction with the third terminal through the smart TV 100 . Since the second video data is collected by the smart TV 100, the user does not need to hold the mobile phone 200 to collect the second video data, which frees the user's hands.
  • the user only needs to establish a communication connection between the smart TV 100 and the mobile phone 200 .
  • the mobile phone 200 sends the identifier of the video playback interface of the smart TV 100 to the smart TV 100 .
  • the smart TV 100 After the smart TV 100 recognizes the first interface identifier, it displays the video playback interface corresponding to the identifier of the video playback interface, and the speaker of the smart TV 100 plays the first sound data from the mobile phone 200 .
  • the smart TV 100 collects the second video data.
  • the smart TV 100 sends the second video data to the mobile phone 200 .
  • the mobile phone 200 sends the second video data to the third terminal, so that the third terminal can play the second video data.
  • the user needs at most two operations to realize the function of the mobile phone 200 controlling the smart TV 100 to perform large-screen video interaction, and frees the user's hands. Furthermore, the user's operation steps are simplified, and the operation efficiency is improved.
  • the mobile phone 200 in order to further prevent the mobile phone 200 and the smart TV 100 from establishing a communication connection by mistake.
  • the mobile phone 200 needs to be in the third preset mode before it can establish a communication connection with the smart TV 100 .
  • the user can trigger the mobile phone 200 to be in the third preset mode.
  • the third preset mode can be understood as a sharing mode, a collaborative mode, and the like.
  • the mobile phone 200 can display a function list interface 212 (that is, the fifth interface) in response to the user's trigger operation on the "settings" icon 211 in the system main interface 201.
  • the function list interface 212 includes a first control 213 for controlling entering/exiting the third preset mode.
  • the mobile phone 200 may be in the third preset mode in response to the trigger operation on the first control 213 .
  • the mobile phone 200 can establish a communication connection with the smart TV 100 .
  • FIG. 16 is one of the schematic flowcharts of the device control method provided by the embodiment of the present application. As shown in Figure 16, the device control method provided in the embodiment of the present application may include:
  • the first terminal displays a first interface.
  • the first interface may be a text input interface, a game interface, or a video playback interface, etc. in the above embodiments, which is not limited herein.
  • the first terminal may be the smart TV 100 in the above-mentioned embodiment
  • the second terminal may be the above-mentioned mobile phone 200 . That is to say, the smart TV 100 can act as a function demander, and realize functions such as text input and game character behavior control with the help of the mobile phone 200 as a function provider.
  • the first terminal may also be the aforementioned mobile phone 200
  • the second terminal may also be the aforementioned smart TV 100 . That is, the mobile phone 200 may serve as a function demander, and realize functions such as video interaction with the help of the smart TV 100 as a function provider.
  • the first terminal sends control information to the second terminal.
  • the control information is used to instruct the second terminal to enable the target function unit, and when the target function unit is triggered, it can realize the trigger-associated function.
  • the target function unit may be a second interface including a virtual text key; when the virtual text key is triggered, the function of inputting text data (that is, target data) to the text input interface of the first terminal may be implemented.
  • the second interface includes a virtual text key and is triggered, the function of inputting text data to the text input interface of the first terminal can be realized, and the introduction of FIGS.
  • the target functional unit can also be the second interface of the virtual control keyboard.
  • the target functional unit can also be a gesture sensor, and when the gesture sensor is triggered, it can control the game character on the first interface of the first terminal to perform the game behavior associated with the trigger.
  • the virtual control keyboard or the gesture sensor when triggered, it can be realized to control the game character on the first interface of the first terminal to perform the game behavior associated with the trigger.
  • the target functional unit may be a video acquisition module (such as a camera, a microphone).
  • the video acquisition module When the video acquisition module is turned on, it can control the first terminal and the third terminal to realize the video interaction function.
  • the first terminal and the third terminal may be controlled to realize video interaction function, and reference may be made to the above introduction to FIG. 14 , which will not be repeated here.
  • S1604 The second terminal responds to the trigger operation on the target function unit, so that the first terminal executes a function associated with the trigger operation when the first interface is displayed.
  • the second terminal may respond to the user triggering the virtual text key Operation, get text data. Understandably, the text data is the target data.
  • the game character on the first interface of the first terminal is controlled to perform the game behavior associated with the trigger. Understandably, the game character on the first interface of the first terminal is controlled to perform a game behavior associated with the trigger, that is, a function associated with the trigger operation.
  • the second terminal may respond to a user's trigger operation, so that the gesture data of the second terminal collected by the gesture sensor; to control the first terminal
  • the game character on the first interface executes the game behavior associated with the trigger.
  • the game character on the first interface of the first terminal is controlled to perform a game behavior associated with the trigger, that is, a function associated with the trigger operation.
  • the first interface is a video playback interface
  • the target functional unit includes a video acquisition module (such as a microphone and a camera)
  • the first terminal and the third terminal may be controlled to implement a video interaction function.
  • the first terminal and the third terminal are controlled to implement a video interaction function, that is, a function associated with a trigger operation.
  • Figure 17 shows that when the first terminal is a smart TV 100 and the second terminal is a mobile phone 200 provided by the embodiment of the present application, the smart TV 100 implements the function associated with the target data with the help of the mobile phone 200, or the first terminal is the mobile phone 200 and the second terminal When the terminal is the smart TV 100 , the mobile phone 200 implements the functional architecture associated with the target data by means of the smart TV 100 .
  • the smart TV 100 and the mobile phone 200 can be connected through a short-distance communication module.
  • the short-distance communication module may be a Bluetooth module, a WiFi module or an NFC module, etc., which are not limited herein.
  • the coordinated control application of the smart TV 100 invoked and opened the video playback interface (comprising image C and image D) of the video application and called the speaker to play the video from the mobile phone 200.
  • the cooperative control application of the smart TV 100 decides to call the video application, speaker, camera, and microphone based on the interface identifier of the video playback interface.
  • the collaborative control application of the mobile phone 100 may also generate instructions for invoking video applications, speakers, cameras, and microphones in the video playback interface.
  • Smart TV 200 invokes video application, speaker, camera and microphone after receiving the instruction from mobile phone 100 .
  • the mobile phone 100 can also decide to call a video application, a speaker, a camera, and a microphone.
  • the mobile phone 200 receives the image C and the second sound data from the smart TV 100, and sends the image C and the second sound data to the third terminal.
  • the mobile phone 200 can use the smart TV 100 to realize a large-screen video interactive function. It can be understood that the interface identification of the above-mentioned video playback interface and the instructions for invoking the video application, speaker, camera, and microphone are all control information.
  • the smart TV 200 can decide to call the video application, speaker, camera, and microphone according to the functions currently running on the smart TV 200 and the functions currently running on the mobile phone 100;
  • the functions currently running and the functions currently running on the smart TV 200 decide to call a video application, a speaker, a camera, and a microphone.
  • the cooperative control application decision of the mobile phone 200 calls the text input application to open the keyboard interface.
  • the mobile phone 200 sends text data associated with the trigger operation to the smart TV 100 .
  • the smart TV 100 displays the received text data.
  • the collaborative control application of the smart TV 200 can also decide to generate an instruction to call the text input application based on the same principle as above, and control the mobile phone 100 to call the text input application to open the keyboard interface, which will not be repeated here.
  • the cooperative control application of the mobile phone 200 decides to invoke the handle application to open the handle interface.
  • the mobile phone 200 sends control data on the game character associated with the trigger operation to the smart TV 100 .
  • the smart TV 100 controls the game character in the game interface to execute the game behavior associated with the control data.
  • the cooperative control application of the mobile phone 200 decides to call the posture sensor to collect the posture data (ie control data) of the mobile phone 200 .
  • the mobile phone 200 sends attitude data to the smart TV 100 .
  • the smart TV 100 controls the game character in the game interface to perform the game behavior associated with the gesture data.
  • the cooperative control application of the smart TV 200 can also decide to generate an instruction to call the handle application or the attitude sensor based on the above-mentioned same principle, and control the mobile phone 100 to call the handle application or the attitude sensor to obtain control data, which will not be repeated here.
  • the carrier of the cooperative control application mentioned above may be an operable icon located on a negative screen, an activity of an application program, or an interface of a background service, etc., which is not limited herein.
  • the trigger operation mentioned may include: click operation, long press operation, and operation of changing the posture of the terminal device, etc., which are not limited here.
  • the first terminal is in the first state and the first terminal displays the first interface as an example.
  • the first terminal is in the first state, and may also be in a state of playing music, and further, the first terminal plays music through the speaker of the second terminal. It is not limited here.
  • the first terminal performs the first function as an example.
  • the first terminal plays music through the speaker of the second terminal, it is the second terminal that performs the first function. That is, the second terminal performs the function of playing music.
  • the embodiment of the present application further provides a device control apparatus 1800, which is applied to a first terminal.
  • the device control apparatus 1800 provided in the embodiment of the present application includes: a first processing unit 1802 configured to control the first terminal to be in the first state, where the first terminal can execute the first function when in the first state.
  • the first communication unit 1801 is configured to send control information to the second terminal based on the established communication connection. Wherein, the control information is used to instruct the second terminal to activate the target function unit, so as to cooperate with the first terminal to execute the first function.
  • the first communication unit 1801 is further configured to receive target data from the second terminal.
  • the first processing unit 1802 is further configured to execute a first function associated with the target data.
  • the target functional unit is a virtual text button in the second interface
  • the target data is text data.
  • the first processing unit 1802 is specifically configured to control the first terminal to display a first interface, where the first interface includes an area where text is to be input.
  • the first processing unit 1802 is further specifically configured to control the first terminal to input text data in an area where text is to be input on the first interface when the first interface is displayed.
  • the target data is control data.
  • the first processing unit 1802 is specifically configured to control the first terminal to display a first interface, where the first interface includes game characters.
  • the first processing unit 1802 is also specifically configured to control the first terminal to control the game character in the first interface to perform the game behavior corresponding to the control data when the first interface is displayed.
  • the target functional unit is a virtual control keyboard in the second interface, where the virtual control keyboard includes virtual keys for controlling the game behavior of the game character.
  • the control data is attitude data
  • the target functional unit is an attitude sensor of the second terminal for collecting attitude data.
  • the target functional unit is a video collection module
  • the target data is the second video data collected by the video collection module.
  • the first processing unit 1802 is specifically configured to control the first terminal to display the first interface, wherein the first interface includes the first video data from the third terminal, and the first processing unit 1802 is specifically configured to control the first terminal to display the first interface.
  • the embodiment of the present application further provides a device control apparatus 1900, which is applied to a second terminal.
  • the device control apparatus 1900 provided in the embodiment of the present application includes: a second communication unit 1901, configured to receive control information from a first terminal based on an established communication connection.
  • the second processing unit 1902 is configured to enable the target function unit in response to the control information.
  • the second processing unit 1902 is further configured to cooperate with the first terminal to execute the first function based on the target function unit.
  • the second processing unit 1902 is specifically configured to control the second communication unit 1901 to send target data to the first terminal in response to a trigger operation on the target functional unit; A terminal performs a first function associated with target data.
  • the target functional unit is a virtual text button in the second interface
  • the target data is text data
  • the text data is used to indicate that when the first terminal displays the first interface, the key to be input in the first interface Text field to enter text data.
  • the target data is control data
  • the target data is used to instruct the first terminal to control the game character in the first interface to perform the game behavior corresponding to the control data when the first interface is displayed.
  • the target function unit is a virtual control keyboard in the second interface, wherein the virtual control keyboard includes virtual keys for controlling the game behavior of the game character; or, the control data is gesture data, and the target function The unit is an attitude sensor of the second terminal for collecting attitude data.
  • the target functional unit is a video collection module
  • the target data is second video data collected by the video collection module
  • the second video data is used to instruct the first terminal to display the first video data including the first video data. interface, sending the second video data to the third terminal.
  • control information is information indicating that the first terminal is in the first state
  • the second processing unit 1902 is specifically configured to enable the target functional unit according to the information indicating that the first terminal is in the first state
  • control information is an instruction for enabling the target functional unit
  • the second processing unit 1902 is specifically configured to enable the target functional unit according to the instruction for enabling the target functional unit.
  • FIG. 20 is a schematic diagram of a hardware structure of a first terminal or a second terminal provided in an embodiment of the present application.
  • the first terminal or the second terminal includes a processor 2001, a communication line 2004 and At least one communication interface (the communication interface 2003 is used as an example in FIG. 20 for illustration).
  • the processor 2001 can be a general-purpose central processing unit (central processing unit, CPU), a microprocessor, a specific application integrated circuit (application-specific integrated circuit, ASIC), or one or more for controlling the implementation of the application program program integrated circuit.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • Communication lines 2004 may include circuitry that communicates information between the components described above.
  • the communication interface 2003 uses any device such as a transceiver for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (wireless local area networks, WLAN) and so on.
  • a transceiver for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (wireless local area networks, WLAN) and so on.
  • the first terminal or the second terminal may further include a memory 2002 .
  • the memory 2002 may be a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types that can store information and instructions It can also be an electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be programmed by a computer Any other medium accessed, but not limited to.
  • the memory may exist independently and be connected to the processor through the communication line 2004 . Memory can also be integrated with the processor.
  • the memory 2002 is used to store computer-executed instructions for implementing the solution of the present application, and the execution is controlled by the processor 2001 .
  • the processor 2001 is configured to execute computer-executed instructions stored in the memory 2002, so as to implement the device control method performed by the first terminal or the second terminal provided in the embodiment of the present application.
  • the computer-executed instructions in the embodiment of the present application may also be referred to as application program code, which is not specifically limited in the embodiment of the present application.
  • the processor 2001 may include one or more CPUs, for example, CPU0 and CPU1 in FIG. 20 .
  • the first terminal or the second terminal may include multiple processors, for example, processor 2001 and processor 2005 in FIG. 20 .
  • processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor.
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • FIG. 21 is a schematic structural diagram of a chip provided by an embodiment of the present application.
  • the chip 210 includes one or more than two (including two) processors 2110 and a communication interface 2130 .
  • the memory 2140 stores the following elements: executable modules or data structures, or subsets thereof, or extensions thereof.
  • the memory 2140 may include a read-only memory and a random access memory, and provides instructions and data to the processor 2110 .
  • a part of the memory 2140 may also include a non-volatile random access memory (non-volatile random access memory, NVRAM).
  • the memory 2140 , the communication interface 2130 and the memory 2140 are coupled together through the bus system 2120 .
  • the bus system 2120 may include not only a data bus, but also a power bus, a control bus, and a status signal bus.
  • various buses are labeled as bus system 2120 in FIG. 21 .
  • the methods described in the foregoing embodiments of the present application may be applied to the processor 2110 or implemented by the processor 2110 .
  • the processor 2110 may be an integrated circuit chip with signal processing capability.
  • each step of the above method may be implemented by an integrated logic circuit of hardware in the processor 2110 or instructions in the form of software.
  • the above-mentioned processor 2110 may be a general-purpose processor (for example, a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), an off-the-shelf programmable gate Array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates, transistor logic devices or discrete hardware components, the processor 2110 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application .
  • DSP digital signal processing
  • ASIC application specific integrated circuit
  • FPGA field-programmable gate array
  • the steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a mature storage medium in the field such as random access memory, read-only memory, programmable read-only memory, or electrically erasable programmable read only memory (EEPROM).
  • the storage medium is located in the memory 2140, and the processor 2110 reads the information in the memory 2140, and completes the steps of the above method in combination with its hardware.
  • the instructions stored in the memory for execution by the processor may be implemented in the form of computer program products.
  • the computer program product may be written in the memory in advance, or may be downloaded and installed in the memory in the form of software.
  • a computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
  • the computer can be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL) or wireless (such as infrared, wireless, microwave, etc.) transmission to another website site, computer, server or data center.
  • Computer readable storage medium can be Any available media capable of being stored by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media.
  • available media may include magnetic media (e.g., floppy disks, hard disks, or tapes), optical media (e.g., A digital versatile disc (digital versatile disc, DVD)), or a semiconductor medium (for example, a solid state disk (solid state disk, SSD)), etc.
  • magnetic media e.g., floppy disks, hard disks, or tapes
  • optical media e.g., A digital versatile disc (digital versatile disc, DVD)
  • a semiconductor medium for example, a solid state disk (solid state disk, SSD)
  • the embodiment of the present application also provides a computer-readable storage medium.
  • the methods performed by the first terminal or the second terminal described in the foregoing embodiments may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • Computer-readable media may include computer storage media and communication media, and may include any medium that can transfer a computer program from one place to another.
  • a storage media may be any target media that can be accessed by a computer.
  • the computer-readable medium may include compact disc read-only memory (compact disc read-only memory, CD-ROM), RAM, ROM, EEPROM or other optical disc storage; the computer-readable medium may include a magnetic disk memory or other disk storage devices.
  • any connected cord is properly termed a computer-readable medium.
  • Disk and disc includes compact disc (CD), laser disc, compact disc, digital versatile disc (DVD), floppy disk and Blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Reproduce data.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present application relates to the technical field of terminals. Provided are a device control method and apparatus. By means of the device control method provided in the present application, a user only needs to establish a communication connection between a first terminal and a second terminal. The method comprises: a first terminal sending control information to a second terminal; the second terminal enabling a target functional unit in response to the control information; and then, the second terminal executing a first function in cooperation with the first terminal on the basis of the target functional unit. Therefore, the operation steps for a user are simplified, that is, a second terminal can execute a first function in cooperation with a first terminal on the basis of a target functional unit, thereby improving the operation efficiency.

Description

设备控制方法和装置Device control method and device
本申请要求于2021年09月16日提交中国国家知识产权局、申请号为202111089487.1、申请名称为“设备控制方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application with application number 202111089487.1 and application title "equipment control method and device" filed with the State Intellectual Property Office of China on September 16, 2021, the entire contents of which are incorporated herein by reference .
技术领域technical field
本申请涉及终端技术领域,尤其涉及一种设备控制方法和装置。The present application relates to the technical field of terminals, and in particular to a device control method and device.
背景技术Background technique
目前,随着终端技术的发展,终端设备已经成为人们工作生活的一部分。而伴随着终端设备的功能越来越丰富,对于比较复杂的功能而言,一个终端设备往往借助需要第三终端才能完成。例如,第一终端需要执行目标功能时,需要借助第二终端控制第一终端完成目标功能。At present, with the development of terminal technology, terminal equipment has become a part of people's work and life. As the functions of terminal devices become more and more abundant, for more complex functions, a terminal device often needs a third terminal to complete. For example, when the first terminal needs to execute the target function, it needs to use the second terminal to control the first terminal to complete the target function.
通常情况下,人们借助第二终端控制第一终端完成目标功能的过程,操作步骤比较繁琐复杂,效率低。Usually, people use the second terminal to control the process of the first terminal to complete the target function, and the operation steps are cumbersome and complicated, and the efficiency is low.
发明内容Contents of the invention
本申请提供一种设备控制方法和装置,可以使得用户仅需简单的操作,可以实现借助第二终端控制第一终端更方便的实现目标功能,提高了用户的操作效率。The present application provides a device control method and device, which can enable the user to perform simple operations, realize target functions more conveniently by using the second terminal to control the first terminal, and improve the user's operation efficiency.
本申请提供一种设备控制方法,应用于通信系统,通信系统包括第一终端和第二终端,该方法包括:第一终端处于第一状态,其中,第一终端在处于第一状态时,能够执行第一功能;第一终端基于已建立的通信连接,向第二终端发送控制信息;第二终端响应于控制信息开启目标功能单元;第二终端基于目标功能单元,配合第一终端执行第一功能。The present application provides a device control method, which is applied to a communication system. The communication system includes a first terminal and a second terminal. The method includes: the first terminal is in the first state, wherein, when the first terminal is in the first state, it can Execute the first function; the first terminal sends control information to the second terminal based on the established communication connection; the second terminal activates the target function unit in response to the control information; the second terminal cooperates with the first terminal to execute the first function based on the target function unit. Function.
本申请提供的设备控制方法,用户仅需将第一终端和第二终端建立通信连接。第一终端向第二终端发送控制信息。第二终端响应于控制信息开启目标功能单元。进而,第二终端基于目标功能单元,配合第一终端执行第一功能。进而,简化了用户的操作步骤,即可实现第二终端基于目标功能单元,配合第一终端执行第一功能,提高了操作效率。In the device control method provided in this application, the user only needs to establish a communication connection between the first terminal and the second terminal. The first terminal sends control information to the second terminal. The second terminal turns on the target function unit in response to the control information. Further, the second terminal cooperates with the first terminal to execute the first function based on the target function unit. Furthermore, the user's operation steps are simplified, and the second terminal can cooperate with the first terminal to execute the first function based on the target function unit, thereby improving the operation efficiency.
在一种可能的实施方式中,第二终端基于目标功能单元,配合第一终端执行第一功能,包括:第二终端响应于对目标功能单元的触发操作,向第一终端发送目标数据;第一终端执行与目标数据关联的第一功能。In a possible implementation manner, the second terminal cooperates with the first terminal to execute the first function based on the target functional unit, including: the second terminal sends target data to the first terminal in response to a trigger operation on the target functional unit; A terminal performs a first function associated with target data.
在一种可能的实施方式中,目标功能单元为第二界面中的虚拟文本按键,目标数据为文本数据。第一终端处于第一状态,包括:第一终端显示第一界面,其中,第一界面包括待输入文本的区域。第一终端执行与目标数据关联的第一功能,包括:第一终端在显示第一界面时,在第一界面的待输入文本的区域输入文本数据。In a possible implementation manner, the target functional unit is a virtual text button in the second interface, and the target data is text data. The first terminal being in the first state includes: the first terminal displays a first interface, where the first interface includes an area where text is to be input. The first terminal executes the first function associated with the target data, including: when the first terminal displays the first interface, inputting text data in an area where text is to be input on the first interface.
如此,用户至多需要两次操作,即可实现借助第二终端在第一终端的第一界面中 输入的文本数据。进而,简化了用户的操作步骤,提高了操作效率。In this way, the user needs at most two operations to realize the text data input in the first interface of the first terminal by means of the second terminal. Furthermore, the user's operation steps are simplified, and the operation efficiency is improved.
在一种可能的实施方式中,目标数据为控制数据。第一终端处于第一状态,包括:第一终端显示第一界面,其中,第一界面包括游戏角色。第一终端执行与目标数据关联的第一功能,包括:第一终端在显示第一界面时,控制第一界面中的游戏角色执行与控制数据对应的游戏行为。In a possible implementation manner, the target data is control data. The first terminal being in the first state includes: the first terminal displays a first interface, where the first interface includes game characters. Executing the first function associated with the target data by the first terminal includes: when the first terminal displays the first interface, controlling the game character in the first interface to perform the game behavior corresponding to the control data.
如此,用户至多需要两次操作,即可实现借助第二终端控制第一终端中的游戏角色执行与触发操作关联的游戏行为。进而,简化了用户的操作步骤,提高了操作效率。In this way, the user needs at most two operations to control the game character in the first terminal to perform the game behavior associated with the triggering operation by means of the second terminal. Furthermore, the user's operation steps are simplified, and the operation efficiency is improved.
在一种可能的实施方式中,目标功能单元为第二界面中的虚拟控制键盘,其中,虚拟控制键盘包括用于控制游戏角色的游戏行为的虚拟按键。或者,控制数据为姿态数据,目标功能单元为第二终端的用于采集姿态数据的姿态传感器。In a possible implementation manner, the target functional unit is a virtual control keyboard in the second interface, where the virtual control keyboard includes virtual keys for controlling the game behavior of the game character. Alternatively, the control data is attitude data, and the target functional unit is an attitude sensor of the second terminal for collecting attitude data.
在一种可能的实施方式中,目标功能单元为第二界面中的虚拟控制键盘,在第一终端向第二终端发送控制信息之后,方法还包括:第二终端接收来自第一终端的第一界面的第一界面数据。第二终端在第二界面中显示第二界面数据,其中,第二界面数据中包括与第一界面数据对应的显示内容。In a possible implementation manner, the target functional unit is a virtual control keyboard in the second interface, and after the first terminal sends the control information to the second terminal, the method further includes: the second terminal receives the first The first interface data of the interface. The second terminal displays second interface data on the second interface, where the second interface data includes display content corresponding to the first interface data.
在一种可能的实施方式中,目标功能单元为视频采集模块,目标数据为视频采集模块采集的第二视频数据。第一终端处于第一状态,包括:第一终端显示第一界面,其中,第一界面中包括来自第三终端的第一视频数据。第一终端执行与目标数据关联的第一功能,包括:第一终端在显示第一界面时,接收来自第二终端的第二视频数据;第一终端向第三终端发送第二视频数据。In a possible implementation manner, the target functional unit is a video collection module, and the target data is the second video data collected by the video collection module. The first terminal being in the first state includes: the first terminal displays a first interface, where the first interface includes first video data from the third terminal. The first terminal executes the first function associated with the target data, including: the first terminal receives the second video data from the second terminal when the first interface is displayed; the first terminal sends the second video data to the third terminal.
如此,用户至多需要两次操作,即可实现第一终端借助第二终端执行视频交互的功能,并解放了用户的双手。进而,简化了用户的操作步骤,提高了操作效率。In this way, the user needs at most two operations to implement the function of the first terminal performing video interaction with the help of the second terminal, and the user's hands are freed. Furthermore, the user's operation steps are simplified, and the operation efficiency is improved.
在一种可能的实施方式中,在第二终端响应于控制信息开启目标功能单元之后,方法还包括:第二终端接收来自第一终端的第一视频数据。第二终端显示第二界面,其中,第二界面包括第一视频数据。In a possible implementation manner, after the second terminal enables the target functional unit in response to the control information, the method further includes: the second terminal receives the first video data from the first terminal. The second terminal displays a second interface, where the second interface includes the first video data.
如此,用户还可以在第二终端观看到来自第三终端的第一视频数据。In this way, the user can also watch the first video data from the third terminal on the second terminal.
在一种可能的实施方式中,通信连接的建立方式,包括:第一终端在处于第一状态时,进行设备发现;第一终端在发现第二终端的情况下,与第二终端建立通信连接。或者,第二终端与目标电子设备的距离小于距离阈值的情况下,获取目标电子设备中存储的第一终端的设备标识;第二终端根据设备标识,与第一终端建立通信连接。或者,第一终端接收用户输入的语音信息;其中,语音信息用于指示与第二终端连接;第一终端进行设备发现,第一终端在发现第二终端的情况下,与第二终端建立通信连接。或者,第二终端发射UWB信号,UWB信号携带有第二终端的设备标识,第一终端接收来自第二终端的UWB信号,第一终端根据UWB信号中的设备标识,与第二终端建立通信连接。In a possible implementation manner, the method for establishing a communication connection includes: when the first terminal is in the first state, performing device discovery; when the first terminal discovers the second terminal, establishing a communication connection with the second terminal . Alternatively, when the distance between the second terminal and the target electronic device is less than the distance threshold, the device identifier of the first terminal stored in the target electronic device is acquired; the second terminal establishes a communication connection with the first terminal according to the device identifier. Alternatively, the first terminal receives voice information input by the user; wherein, the voice information is used to indicate connection with the second terminal; the first terminal performs device discovery, and the first terminal establishes communication with the second terminal when the second terminal is found connect. Alternatively, the second terminal transmits a UWB signal, the UWB signal carries the device identifier of the second terminal, the first terminal receives the UWB signal from the second terminal, and the first terminal establishes a communication connection with the second terminal according to the device identifier in the UWB signal .
在一种可能的实施方式中,在第一终端基于已建立的通信连接,向第二终端发送控制信息之前,方法还包括:第二终端显示第五界面,第五界面包括用于控制处于/退出第三预设模式的第一控件。第二终端响应于对第一控件的触发操作,第二终端处于第三预设模式。In a possible implementation manner, before the first terminal sends the control information to the second terminal based on the established communication connection, the method further includes: the second terminal displays a fifth interface, the fifth interface includes a First control to exit third preset mode. The second terminal responds to the trigger operation on the first control, and the second terminal is in the third preset mode.
在一种可能的实施方式中,控制信息为用于指示第一终端处于第一状态的信息, 第二终端响应于控制信息开启目标功能单元,包括:第二终端根据指示第一终端处于第一状态的信息,开启目标功能单元。或者,控制信息为用于开启目标功能单元的指令,第二终端响应于控制信息开启目标功能单元,包括:第二终端根据用于开启目标功能单元的指令,开启目标功能单元。In a possible implementation manner, the control information is information indicating that the first terminal is in the first state, and the second terminal starts the target function unit in response to the control information, including: the second terminal indicates that the first terminal is in the first state. status information, enable the target functional unit. Alternatively, the control information is an instruction for enabling the target functional unit, and the second terminal responds to the control information for enabling the target functional unit, including: the second terminal activates the target functional unit according to the instruction for enabling the target functional unit.
如此,可以通过第一终端决策开启目标功能单元,也可以通过第二终端决策开启目标功能单元。In this way, the target functional unit may be activated by the first terminal decision, or the target functional unit may be activated by the second terminal decision.
第二方面,本申请还提供一种设备控制装置,应用于第一终端,本申请提供的设备控制装置包括:第一处理单元,用于控制第一终端处于第一状态,其中,第一终端在处于第一状态时,能够执行第一功能。第一通信单元,用于基于已建立的通信连接,向第二终端发送控制信息。其中,控制信息用于指示第二终端开启目标功能单元,以配合第一终端执行第一功能。In a second aspect, the present application also provides a device control device, which is applied to a first terminal. The device control device provided in the present application includes: a first processing unit, configured to control the first terminal to be in the first state, wherein the first terminal While in the first state, a first function can be performed. The first communication unit is configured to send control information to the second terminal based on the established communication connection. Wherein, the control information is used to instruct the second terminal to activate the target function unit, so as to cooperate with the first terminal to execute the first function.
在一种可能的实施方式中,第一通信单元,还用于接收来自第二终端的目标数据。第一处理单元,还用于执行与目标数据关联的第一功能。In a possible implementation manner, the first communication unit is further configured to receive target data from the second terminal. The first processing unit is further configured to execute a first function associated with the target data.
在一种可能的实施方式中,目标功能单元为第二界面中的虚拟文本按键,目标数据为文本数据。第一处理单元,具体用于控制第一终端显示第一界面,其中,第一界面包括待输入文本的区域。第一处理单元,还具体用于控制第一终端在显示第一界面时,在第一界面的待输入文本的区域输入文本数据。In a possible implementation manner, the target functional unit is a virtual text button in the second interface, and the target data is text data. The first processing unit is specifically configured to control the first terminal to display the first interface, where the first interface includes an area where text is to be input. The first processing unit is further specifically configured to control the first terminal to input text data in an area where text is to be input on the first interface when the first interface is displayed.
在一种可能的实施方式中,目标数据为控制数据。第一处理单元,具体用于控制第一终端显示第一界面,其中,第一界面包括游戏角色。第一处理单元,还具体用于控制第一终端在显示第一界面时,控制第一界面中的游戏角色执行与控制数据对应的游戏行为。In a possible implementation manner, the target data is control data. The first processing unit is specifically configured to control the first terminal to display the first interface, where the first interface includes game characters. The first processing unit is further specifically configured to control the first terminal to control the game character in the first interface to perform the game behavior corresponding to the control data when the first interface is displayed.
在一种可能的实施方式中,目标功能单元为第二界面中的虚拟控制键盘,其中,虚拟控制键盘包括用于控制游戏角色的游戏行为的虚拟按键。或者,控制数据为姿态数据,目标功能单元为第二终端的用于采集姿态数据的姿态传感器。In a possible implementation manner, the target functional unit is a virtual control keyboard in the second interface, where the virtual control keyboard includes virtual keys for controlling the game behavior of the game character. Alternatively, the control data is attitude data, and the target functional unit is an attitude sensor of the second terminal for collecting attitude data.
在一种可能的实施方式中,目标功能单元为视频采集模块,目标数据为视频采集模块采集的第二视频数据。第一处理单元,具体用于控制第一终端显示第一界面,其中,第一界面中包括来自第三终端的第一视频数据,第一处理单元,具体用于控制第一终端在显示第一界面时,接收来自第二终端的第二视频数据;向第三终端发送第二视频数据。In a possible implementation manner, the target functional unit is a video collection module, and the target data is the second video data collected by the video collection module. The first processing unit is specifically configured to control the first terminal to display the first interface, wherein the first interface includes first video data from the third terminal, and the first processing unit is specifically configured to control the first terminal to display the first video data. interface, receiving the second video data from the second terminal; sending the second video data to the third terminal.
第三方面,本申请还提供一种设备控制装置,应用于第二终端,第三方面提供的设备控制装置包括:第二通信单元,用于基于已建立的通信连接,接收来自第一终端的控制信息。第二处理单元,用于响应于控制信息开启目标功能单元。第二处理单元,还用于基于目标功能单元,配合第一终端执行第一功能。In a third aspect, the present application further provides a device control device, which is applied to a second terminal. The device control device provided in the third aspect includes: a second communication unit, configured to receive a communication from the first terminal based on an established communication connection control information. The second processing unit is configured to enable the target function unit in response to the control information. The second processing unit is further configured to cooperate with the first terminal to execute the first function based on the target function unit.
在一种可能的实施方式中,第二处理单元,具体用于响应于对目标功能单元的触发操作,控制第二通信单元向第一终端发送目标数据;其中,目标数据用于指示第一终端执行与目标数据关联的第一功能。In a possible implementation manner, the second processing unit is specifically configured to, in response to a trigger operation on the target functional unit, control the second communication unit to send target data to the first terminal; where the target data is used to indicate that the first terminal A first function associated with the target data is performed.
在一种可能的实施方式中,目标功能单元为第二界面中的虚拟文本按键,目标数据为文本数据,文本数据用于指示第一终端在显示第一界面时,在第一界面的待输入文本的区域输入文本数据。In a possible implementation manner, the target functional unit is a virtual text button in the second interface, and the target data is text data, and the text data is used to indicate that when the first terminal displays the first interface, the key to be input in the first interface Text field to enter text data.
在一种可能的实施方式中,目标数据为控制数据,目标数据用于指示第一终端在显示第一界面时,控制第一界面中的游戏角色执行与控制数据对应的游戏行为。In a possible implementation manner, the target data is control data, and the target data is used to instruct the first terminal to control the game character in the first interface to perform the game behavior corresponding to the control data when the first interface is displayed.
在一种可能的实施方式中,目标功能单元为第二界面中的虚拟控制键盘,其中,虚拟控制键盘包括用于控制游戏角色的游戏行为的虚拟按键;或者,控制数据为姿态数据,目标功能单元为第二终端的用于采集姿态数据的姿态传感器。In a possible implementation, the target function unit is a virtual control keyboard in the second interface, wherein the virtual control keyboard includes virtual keys for controlling the game behavior of the game character; or, the control data is gesture data, and the target function The unit is an attitude sensor of the second terminal for collecting attitude data.
在一种可能的实施方式中,目标功能单元为视频采集模块,目标数据为视频采集模块采集的第二视频数据,第二视频数据用于指示第一终端在显示包括第一视频数据的第一界面时,向第三终端发送第二视频数据。In a possible implementation manner, the target functional unit is a video collection module, and the target data is second video data collected by the video collection module, and the second video data is used to instruct the first terminal to display the first video data including the first video data. interface, sending the second video data to the third terminal.
在一种可能的实施方式中,控制信息为用于指示第一终端处于第一状态的信息,第二处理单元,具体用于根据指示第一终端处于第一状态的信息,开启目标功能单元。或者,控制信息为用于开启目标功能单元的指令,第二处理单元,具体用于根据用于开启目标功能单元的指令,开启目标功能单元。In a possible implementation manner, the control information is information indicating that the first terminal is in the first state, and the second processing unit is specifically configured to enable the target functional unit according to the information indicating that the first terminal is in the first state. Alternatively, the control information is an instruction for enabling the target functional unit, and the second processing unit is specifically configured to enable the target functional unit according to the instruction for enabling the target functional unit.
第四方面,本申请还提供一种计算机可读存储介质,计算机可读存储介质存储有指令,当指令被执行时,使得计算机执行如第一方面或第一方面的任一种实现方式中描述的第一终端或第二终端执行的方法。In the fourth aspect, the present application also provides a computer-readable storage medium, the computer-readable storage medium stores instructions, and when the instructions are executed, the computer executes the computer as described in the first aspect or any implementation manner of the first aspect. The method executed by the first terminal or the second terminal.
第五方面,本申请还提供一种计算机程序产品,包括计算机程序,当计算机程序被运行时,使得计算机执行如第一方面或第一方面的任一种实现方式中描述的第一终端或第二终端执行的方法。In the fifth aspect, the present application further provides a computer program product, including a computer program, which, when the computer program is run, causes the computer to execute the first terminal or the first terminal described in any implementation manner of the first aspect or the first aspect. The method executed by the terminal.
应当理解的是,本申请的第二方面至第五方面与本申请的第一方面的技术方案相对应,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。It should be understood that the second aspect to the fifth aspect of the present application correspond to the technical solution of the first aspect of the present application, and the advantageous effects obtained by each aspect and the corresponding feasible implementation manners are similar, so details are not repeated here.
附图说明Description of drawings
图1-图2为手机200向智能电视200显示的第一界面中,输入文本数据的界面示意图;FIG. 1-FIG. 2 are schematic diagrams of the interface for inputting text data in the first interface displayed by the mobile phone 200 to the smart TV 200;
图3为本申请实施例提供的终端设备的硬件系统架构示意图;FIG. 3 is a schematic diagram of a hardware system architecture of a terminal device provided in an embodiment of the present application;
图4为本申请实施例提供的终端设备的软件系统架构示意图;FIG. 4 is a schematic diagram of a software system architecture of a terminal device provided in an embodiment of the present application;
图5为本申请实施例提供的手机200靠近智能电视100的遥控器300,获取智能电视100的设备身份的示意图;5 is a schematic diagram of obtaining the device identity of the smart TV 100 by the mobile phone 200 approaching the remote control 300 of the smart TV 100 provided by the embodiment of the present application;
图6为本申请实施例提供的手机200接收用户输入的语音信息“与电视连接”的示意图;FIG. 6 is a schematic diagram of the mobile phone 200 receiving the voice information "connect to TV" input by the user provided by the embodiment of the present application;
图7为本申请实施例提供的手机200与智能电视100建立通信连接的示意图;FIG. 7 is a schematic diagram of establishing a communication connection between the mobile phone 200 and the smart TV 100 provided by the embodiment of the present application;
图8为本申请实施例提供的智能电视100在显示第一界面101的过程中,向手机200发送第一界面101的界面标识的界面示意图;FIG. 8 is a schematic diagram of an interface in which the smart TV 100 sends the interface identifier of the first interface 101 to the mobile phone 200 during the process of displaying the first interface 101 provided by the embodiment of the present application;
图9为本申请实施例提供的手机200在显示第二界面207的过程中,响应于用户对第二界面207中的虚拟文本按键的触发操作,在智能电视100中的第一界面101中输入账户和密码的示意图;Fig. 9 shows that in the process of displaying the second interface 207 of the mobile phone 200 provided by the embodiment of the present application, in response to the user's trigger operation on the virtual text button in the second interface 207, input in the first interface 101 of the smart TV 100 Schematic diagram of account and password;
图10为本申请实施例提供的智能电视100显示游戏界面时,与手机100建立通信连接的界面示意图;FIG. 10 is a schematic diagram of an interface for establishing a communication connection with a mobile phone 100 when the smart TV 100 provided in the embodiment of the present application displays a game interface;
图11为本申请实施例提供的智能电视100在显示游戏界面的过程中,向手机200 发送游戏界面的界面标识的界面示意图;FIG. 11 is a schematic diagram of an interface of the smart TV 100 sending the interface identifier of the game interface to the mobile phone 200 during the process of displaying the game interface provided by the embodiment of the present application;
图12为本申请实施例提供的手机200响应于用户对第二界面207中的轻手攻击按键“A”的触发操作,控制智能电视100的第一界面101中的游戏角色A轻手攻击游戏角色B的界面示意图;FIG. 12 shows that the mobile phone 200 provided by the embodiment of the present application responds to the user's trigger operation on the light-hand attack button "A" in the second interface 207, and controls the game character A in the first interface 101 of the smart TV 100 to control the light-hand attack game. Interface diagram of character B;
图13为本申请实施例提供的手机200显示视频播放界面时,与智能电视200建立通信连接的界面示意图;FIG. 13 is a schematic diagram of an interface for establishing a communication connection with a smart TV 200 when the mobile phone 200 displays the video playback interface provided by the embodiment of the present application;
图14为本申请实施例提供的手机200借助智能电视100的软件和硬件实现执行大屏视频交互功能的界面示意图;FIG. 14 is a schematic diagram of the interface of the mobile phone 200 implementing the large-screen video interaction function by means of the software and hardware of the smart TV 100 provided by the embodiment of the present application;
图15为本申请实施例提供的设置手机200处于第三预设模式的界面示意图;FIG. 15 is a schematic diagram of an interface for setting the mobile phone 200 in the third preset mode provided by the embodiment of the present application;
图16为本申请实施例提供的设备控制方法的流程示意图之一;FIG. 16 is one of the schematic flowcharts of the device control method provided by the embodiment of the present application;
图17为本申请实施例提供的第一终端借助第二终端执行与目标数据关联的功能架构示意图;FIG. 17 is a schematic diagram of a functional architecture in which the first terminal executes the function associated with the target data by means of the second terminal provided by the embodiment of the present application;
图18为本申请实施例提供的终端设备1800的结构框图;FIG. 18 is a structural block diagram of a terminal device 1800 provided in an embodiment of the present application;
图19为本申请实施例提供的终端设备1900的结构框图;FIG. 19 is a structural block diagram of a terminal device 1900 provided in an embodiment of the present application;
图20为本申请实施例提供的一种终端设备的硬件结构示意图;FIG. 20 is a schematic diagram of a hardware structure of a terminal device provided in an embodiment of the present application;
图21为本申请实施例提供的一种芯片的结构示意图。FIG. 21 is a schematic structural diagram of a chip provided by an embodiment of the present application.
具体实施方式Detailed ways
为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一值和第二值仅仅是为了区分不同的值,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. For example, the first value and the second value are only used to distinguish different values, and their sequence is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.
需要说明的是,本申请中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in this application, words such as "exemplary" or "for example" are used as examples, illustrations or illustrations. Any embodiment or design described herein as "exemplary" or "for example" is not to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In this application, "at least one" means one or more, and "multiple" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the contextual objects are an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one item (piece) of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple .
伴随着终端设备的功能越来越丰富,对于比较复杂的功能而言,第一终端往往借助需要第二终端才能更方便的完成。示例性的,以第一终端为智能电视100,第二终端为手机200为例结合图1-图2,说明智能电视100如何借助手机200更方便的完成某一功能。As the functions of terminal devices become more and more abundant, for more complicated functions, the first terminal often needs the second terminal to complete them more conveniently. Exemplarily, taking the first terminal as the smart TV 100 and the second terminal as the mobile phone 200 as an example, with reference to FIGS. 1-2 , how the smart TV 100 can more conveniently complete a certain function with the help of the mobile phone 200 is described.
如图1所示,智能电视100显示第一界面101,第一界面101中包括账号输入区 域A和密码输入区域B,用户需要在账号输入区域A中输入账户和在密码输入区域B中输入密码,以完成登录并使用智能电视100。例如,用户可以借助手机200至少执行如下步骤,实现在第一界面101中输入账户和密码。As shown in FIG. 1 , the smart TV 100 displays a first interface 101, which includes an account input area A and a password input area B, and the user needs to input an account in the account input area A and a password in the password input area B. , to complete the login and use the smart TV 100. For example, the user may use the mobile phone 200 to perform at least the following steps to enter the account and password on the first interface 101 .
第1步:如图1所示,用户可以将手机200和智能电视100建立通信连接。Step 1: As shown in FIG. 1 , the user can establish a communication connection between the mobile phone 200 and the smart TV 100 .
第2步:如图2中的(a)-(b)所示,手机200响应于用户的解锁操作显示系统主界面201。Step 2: As shown in (a)-(b) in FIG. 2 , the mobile phone 200 displays the system main interface 201 in response to the user's unlocking operation.
第3步:如图2中的(b)所示,显示系统主界面201包括“协同”应用的图标202,手机200响应于用户对“协同”应用的图标202的触发操作,如图2中的(c)所示,显示“协同”应用的主界面203。Step 3: As shown in (b) in Figure 2, the main interface 201 of the display system includes the icon 202 of the "cooperative" application, and the mobile phone 200 responds to the user's trigger operation on the icon 202 of the "cooperative" application, as shown in Figure 2 As shown in (c), the main interface 203 of the "collaboration" application is displayed.
第4步:如图2中的(c)所示,“协同”应用的主界面203包括用于指示实现协同功能的控件204。手机200可以响应于用户对控件204的触发操作,显示功能列表界面205。功能列表界面205中显示有“文本输入应用”、“手柄应用”以及“游戏应用”,而且“文本输入应用”、“手柄应用”以及“游戏应用”的一侧均显示有开关控件206。Step 4: As shown in (c) of FIG. 2 , the main interface 203 of the "cooperation" application includes a control 204 for instructing to realize the coordination function. The mobile phone 200 may display the function list interface 205 in response to the user's trigger operation on the control 204 . The “text input application”, “handle application” and “game application” are displayed in the function list interface 205 , and switch controls 206 are displayed on one side of the “text input application”, “handle application” and “game application”.
第5步:如图2中的(c)-(d)所示,手机200可以响应于用户对“文本输入应用”一侧的开关控件206的触发操作,显示第二界面207,第二界面207中包括虚拟按键。手机200可以响应于用户对虚拟按键的触发操作,控制智能电视100在在账号输入区域A中输入账户和在密码输入区域B中输入密码,以完成登录。Step 5: As shown in (c)-(d) in FIG. 2 , the mobile phone 200 may display a second interface 207 in response to the user's trigger operation on the switch control 206 on the "text input application" side, the second interface 207 includes virtual keys. The mobile phone 200 can control the smart TV 100 to input an account in the account input area A and a password in the password input area B in response to the user's trigger operation on the virtual key, so as to complete the login.
然而,上述的智能电视100借助手机200完成输入账户和密码的功能,至少需要用户操作上述的第1-5步,操作步骤比较繁琐复杂,效率低。However, the above smart TV 100 uses the mobile phone 200 to complete the function of inputting the account and password, at least requiring the user to operate the above steps 1-5, the operation steps are complicated and inefficient.
有鉴于此,本申请实施例提供一种设备控制方法,当第一终端显示第一界面后,需要借助第二终端完成某一功能时,可以将第一终端和第二终端建立通信连接;进而,第一终端向第二终端发送第一界面的标识;第二终端识别第一界面的标识,并显示与第一界面标识对应的第二界面;第二终端在显示第二界面的过程中,获取目标数据;第二终端向第一终端发送目标数据;第一终端执行与目标数据关联的功能。如此,减少了用户的操作步骤,即可实现第一终端借助第二终端完成目标功能的过程,提高了效率。In view of this, an embodiment of the present application provides a device control method. When the first terminal displays the first interface and needs to use the second terminal to complete a certain function, a communication connection can be established between the first terminal and the second terminal; and , the first terminal sends the identifier of the first interface to the second terminal; the second terminal recognizes the identifier of the first interface, and displays the second interface corresponding to the identifier of the first interface; during the process of displaying the second interface, the second terminal, The target data is acquired; the second terminal sends the target data to the first terminal; the first terminal executes a function associated with the target data. In this way, the user's operation steps are reduced, and the process in which the first terminal completes the target function by means of the second terminal can be realized, thereby improving efficiency.
可以理解的是,上述的第一终端和第二终端均可以称为终端设备。终端设备可以是手机(mobile phone)、智能电视、穿戴式设备、平板电脑(Pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备、工业控制(industrial control)中的无线终端、无人驾驶(self-driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等等。本申请的实施例对终端设备所采用的具体技术和具体设备形态不做限定。It can be understood that both the foregoing first terminal and the second terminal may be referred to as terminal devices. The terminal device can be mobile phone, smart TV, wearable device, tablet computer (Pad), computer with wireless transceiver function, virtual reality (virtual reality, VR) terminal device, augmented reality (augmented reality, AR) terminal Equipment, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grid, transportation Wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, etc. The embodiment of the present application does not limit the specific technology and specific device form adopted by the terminal device.
为了能够更好地理解本申请实施例,下面对本申请实施例的终端设备的结构进行介绍。示例性的,图3为本申请实施例提供的一种终端设备的结构示意图。In order to better understand the embodiment of the present application, the structure of the terminal device in the embodiment of the present application is introduced below. Exemplarily, FIG. 3 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.
终端设备可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141, 天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,收话器170B,麦克风170C,传感器模块180,按键190,指示器192,摄像头193,以及显示屏194等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。其中,陀螺仪传感器180B和加速度传感器180E的结合可以理解为姿态传感器。The terminal device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, an antenna 1, an antenna 2, and a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a sensor module 180, a button 190, an indicator 192, a camera 193, and a display screen 194, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc. Wherein, the combination of the gyro sensor 180B and the acceleration sensor 180E can be understood as an attitude sensor.
可以理解的是,本申请实施例示意的结构并不构成对终端设备的具体限定。在本申请另一些实施例中,终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure shown in the embodiment of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器110可以包括一个或多个处理单元。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。处理器110中还可以设置存储器,用于存储指令和数据。 Processor 110 may include one or more processing units. Wherein, different processing units may be independent devices, or may be integrated in one or more processors. A memory may also be provided in the processor 110 for storing instructions and data.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为终端设备充电,也可以用于终端设备与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the terminal device, and can also be used to transmit data between the terminal device and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。电源管理模块141用于连接充电管理模块140与处理器110。The charging management module 140 is configured to receive a charging input from a charger. Wherein, the charger may be a wireless charger or a wired charger. The power management module 141 is used for connecting the charging management module 140 and the processor 110 .
终端设备的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the terminal device can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。终端设备中的天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。 Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Antennas in end devices can be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
移动通信模块150可以提供应用在终端设备上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on terminal equipment. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
无线通信模块160可以提供应用在终端设备上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM)等无线通信的解决方案。The wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system ( global navigation satellite system (GNSS), frequency modulation (frequency modulation, FM) and other wireless communication solutions.
终端设备通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。The terminal device realizes the display function through the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。在一些实施例中,终端设备可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. In some embodiments, the terminal device may include 1 or N display screens 194, where N is a positive integer greater than 1.
终端设备可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The terminal device can realize the shooting function through ISP, camera 193 , video codec, GPU, display screen 194 and application processor.
摄像头193用于捕获静态图像或视频。在一些实施例中,终端设备可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. In some embodiments, the terminal device may include 1 or N cameras 193, where N is a positive integer greater than 1.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端设备的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
内部存储器121可以用于存储计算机可执行程序代码,可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。示例性地,内部存储器121可以用于存储第一目标表格和第二目标表格。其中,第一目标表格的具体内容可以参照下述实施例中的表1,第二目标表格的具体内容可以参照下述实施例中的表2,在此不作介绍。The internal memory 121 may be used to store computer-executable program codes including instructions. The internal memory 121 may include an area for storing programs and an area for storing data. Exemplarily, the internal memory 121 can be used to store the first object table and the second object table. For the specific content of the first target table, refer to Table 1 in the following embodiments, and for the specific content of the second target table, refer to Table 2 in the following embodiments, which will not be introduced here.
终端设备可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,以及应用处理器等实现音频功能。例如音乐播放,录音等。The terminal device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, and the application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。终端设备可以通过扬声器170A播放音乐,或收听语音。收话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当终端设备接听电话或语音信息时,可以通过将收话器170B靠近人耳接听语音。麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号,例如采集语音。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. Speaker 170A, also referred to as a "horn", is used to convert audio electrical signals into sound signals. The terminal device can play music or listen to voice through the speaker 170A. The receiver 170B, also called "earpiece", is used to convert audio electrical signals into audio signals. When the terminal device answers a phone call or voice information, the receiver 170B can be placed close to the human ear to listen to the voice. The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals, such as collecting voice.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。陀螺仪传感器180B可以用于确定终端设备的运动姿态。气压传感器180C用于测量气压。磁传感器180D包括霍尔传感器。加速度传感器180E可检测终端设备在各个方向上(一般为三轴)加速度的大小。距离传感器180F,用于测量距离。接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。环境光传感器180L用于感知环境光亮度。指纹传感器180H用于采集指纹。温度传感器180J用于检测温度。触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。骨传导传感器180M可以获取振动信号。The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . The gyroscope sensor 180B can be used to determine the motion posture of the terminal device. The air pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a Hall sensor. The acceleration sensor 180E can detect the acceleration of the terminal device in various directions (generally three axes). The distance sensor 180F is used to measure the distance. Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The ambient light sensor 180L is used for sensing ambient light brightness. The fingerprint sensor 180H is used to collect fingerprints. The temperature sensor 180J is used to detect temperature. The touch sensor 180K is also called "touch device". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The bone conduction sensor 180M can acquire vibration signals.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。终端设备可以接收按键输入,产生与终端设备的用户设置以及功能控制有关的键信号输入。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The keys 190 include a power key, a volume key and the like. The key 190 may be a mechanical key. It can also be a touch button. The terminal device can receive key input and generate key signal input related to user settings and function control of the terminal device. The indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
终端设备的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构等,在此不再赘述。The software system of the terminal device may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture, etc., which will not be repeated here.
本申请实施例以分层架构的Android系统为例,示例性说明终端设备的软件结构。图4为本申请实施例适用的终端设备的一种软件结构框图。分层架构将终端设备的软件系统分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,可以将Android系统分为五层,分别为应用程序层(applications)、应用程序框架层(application framework)、安卓运行时(Android runtime)和系统库、硬件抽象层(hardware abstract layer,HAL)以及内核层(kernel)。The embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the terminal device. FIG. 4 is a software structural block diagram of a terminal device applicable to an embodiment of the present application. The layered architecture divides the software system of the terminal device into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. In some embodiments, the Android system can be divided into five layers, namely applications, application framework, Android runtime, system library, and hardware abstraction layer. layer, HAL) and the kernel layer (kernel).
应用程序层可以包括一系列应用程序包,应用程序层通过调用应用程序框架层所提供的应用程序接口(application programming interface,API)运行应用程序。如图3所示,应用程序包可以包括相机,文本输入、游戏、手柄、协同控制、微信,电话,地图,导航,WLAN,蓝牙信息等应用程序。其中,文本输入应用被打开时的显示界面包括虚拟文本按键,虚拟文本按键用于输入文本。示例性地,虚拟文本按键包括数字按键、字母按键以及符号按键等,在此不做限定。当游戏应用被打开时的显示界面为游戏界面。例如,游戏界面可以包括格斗游戏中的游戏角色A和游戏角色B。当手柄应用被打开时的显示界面可以包括虚拟控制键盘。虚拟控制键盘可以包括前进按键“←”、后退按键“→”、跳跃按键“↑”、下蹲按键“↓”、轻手攻击按键“A”、重手攻击按键“B”、轻脚攻击按键“C”以及重脚攻击按键“D”。协同控制应用可以用于调用文本输入应用、手柄应用、以及视频应用等应用程序,另外,协同控制应用还可以用于调用加速度传感器180E、陀螺仪传感器180B、麦克风170A、扬声器170C等硬件模块。The application program layer may include a series of application program packages, and the application program layer runs the application program by calling an application program interface (application programming interface, API) provided by the application program framework layer. As shown in Figure 3, the application package can include applications such as camera, text input, game, handle, collaborative control, WeChat, phone, map, navigation, WLAN, and Bluetooth information. Wherein, the display interface when the text input application is opened includes a virtual text key, and the virtual text key is used for inputting text. Exemplarily, the virtual text keys include number keys, letter keys, and symbol keys, etc., which are not limited herein. When the game application is opened, the display interface is the game interface. For example, the game interface may include game character A and game character B in a fighting game. The display interface when the handle application is opened may include a virtual control keyboard. The virtual control keyboard can include forward button "←", back button "→", jump button "↑", squat button "↓", light hand attack button "A", heavy hand attack button "B", light foot attack button "C" and the heavy foot attack button "D". The coordinated control application can be used to call application programs such as text input application, joystick application, and video application. In addition, the coordinated control application can also be used to call hardware modules such as the acceleration sensor 180E, the gyroscope sensor 180B, the microphone 170A, and the speaker 170C.
应用程序框架层为应用程序层的应用程序提供API和编程框架。应用程序框架层包括一些预先定义的函数。如图4所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。The application framework layer provides API and programming framework for applications in the application layer. The application framework layer includes some predefined functions. As shown in Figure 4, the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。A window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc. Content providers are used to store and retrieve data and make it accessible to applications. The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. The view system can be used to build applications. A display interface can consist of one or more views.
安卓运行时包括核心库和虚拟机。安卓运行时负责安卓系统的调度和管理。核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。系统库可以包括多个功能模块。The Android runtime includes core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system. The core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android. The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application program layer and the application program framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection. A system library can include multiple function modules.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
硬件抽象层,可以包含多个库模块,库模块如可以为摄像头库模块、马达库模块等。Android系统可以为设备硬件加载相应的库模块,进而实现应用程序框架层访问设备硬件的目的。设备硬件可以包括如终端设备中的扬声器、显示屏以及摄像头等。The hardware abstraction layer can contain multiple library modules, such as camera library modules, motor library modules, etc. The Android system can load corresponding library modules for the device hardware, and then realize the purpose of the application framework layer accessing the device hardware. Device hardware may include, for example, speakers, display screens, and cameras in terminal devices.
内核层是硬件和软件之间的层。内核层用于驱动硬件,使得硬件工作。内核层至少包含显示驱动,马达驱动,传感器驱动等,本申请实施例对此不做限制。The kernel layer is the layer between hardware and software. The kernel layer is used to drive the hardware and make the hardware work. The kernel layer includes at least a display driver, a motor driver, a sensor driver, etc., which are not limited in this embodiment of the present application.
下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以独立实现,也可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。The technical solution of the present application and how the technical solution of the present application solves the above technical problems will be described in detail below with specific embodiments. The following specific embodiments may be implemented independently, or may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
下面,以第一终端为智能电视100、第二终端为手机200为例,并结合图5-图15的界面示意图对本申请实施例提供的设备控制方法进行说明,该示例并不构成对本申请实施例的限定。下述实施例可以相互结合,对于相同或相似的概念或过程不再赘述。In the following, taking the first terminal as the smart TV 100 and the second terminal as the mobile phone 200 as an example, the device control method provided by the embodiment of the present application will be described in conjunction with the schematic interface diagrams in Figures 5-15. Example limitations. The following embodiments can be combined with each other, and the same or similar concepts or processes will not be repeated.
如图5或图6所示,当用户打开智能电视100时,智能电视100显示第一界面101 (即,智能电视100处于第一状态)。第一界面101包括待输入文本的账户输入区域A、和密码输入区域B(即待输入文本的区域)(即智能电视100能够实现文本输入的功能,即第一功能)。其中,第一界面101可以理解为文本输入界面。如此,用户需要借助手机200在第一界面101中输入账户和密码(即智能电视100需要借助手机200输入文本数据),且智能电视100在验证账户和密码成功后,用户才能使用智能电视100。例如,用户使用智能电视100观看频道直播、点播电影以及玩游戏等。As shown in FIG. 5 or FIG. 6, when the user turns on the smart TV 100, the smart TV 100 displays a first interface 101 (that is, the smart TV 100 is in a first state). The first interface 101 includes an account input area A where text is to be input, and a password input area B (ie, the area where text is to be input) (ie, the smart TV 100 can realize the function of text input, ie, the first function). Wherein, the first interface 101 can be understood as a text input interface. In this way, the user needs to use the mobile phone 200 to enter the account and password in the first interface 101 (that is, the smart TV 100 needs to use the mobile phone 200 to input text data), and the user can use the smart TV 100 only after the smart TV 100 successfully verifies the account and password. For example, the user uses the smart TV 100 to watch live channels, order movies, and play games.
在用户借助手机200在第一界面101中输入账户和密码之前,智能电视100需要与手机200建立通信连接。示例性地,手机200与智能电视100通信连接的方式可以包括但不限于以下几种方式:Before the user enters the account and password on the first interface 101 with the help of the mobile phone 200 , the smart TV 100 needs to establish a communication connection with the mobile phone 200 . Exemplarily, the ways for the mobile phone 200 to communicate with the smart TV 100 may include but not limited to the following ways:
第一种:智能电视100在显示第一界面101的过程中,进行设备发现。智能电视100在发现手机200的情况下,与手机200建立通信连接。其中,通信连接可以是蓝牙连接、WiFi连接或者NFC连接、UWB等,在此不作限定。如此,可以实现无需用户操作,即可实现智能电视100与手机200的通信连接,可以减少用户的操作步骤,提高效率。The first type: the smart TV 100 performs device discovery during the process of displaying the first interface 101 . When the smart TV 100 discovers the mobile phone 200 , it establishes a communication connection with the mobile phone 200 . Wherein, the communication connection may be a Bluetooth connection, a WiFi connection, an NFC connection, UWB, etc., which is not limited herein. In this way, the communication connection between the smart TV 100 and the mobile phone 200 can be realized without user operation, which can reduce user operation steps and improve efficiency.
第二种:如图5所示,手机200靠近智能电视100的遥控器300(如用户使用手机200碰一次遥控器300),手机200可以与遥控器300建立NFC通信连接。如此,手机200可以通过NFC通信获取遥控器300中存储的智能电视100的设备标识(可以包括智能电视100的通信地址)。进而,如图7所示,手机200可以根据设备标识与智能电视100建立通信连接。如此,用户仅需使得手机200靠近遥控器300,即可实现手机200与智能电视100建立通信连接,方便快捷。The second type: as shown in FIG. 5 , the mobile phone 200 is close to the remote control 300 of the smart TV 100 (for example, the user uses the mobile phone 200 to touch the remote control 300 once), and the mobile phone 200 can establish an NFC communication connection with the remote control 300 . In this way, the mobile phone 200 can obtain the device identifier of the smart TV 100 stored in the remote controller 300 through NFC communication (which may include the communication address of the smart TV 100 ). Furthermore, as shown in FIG. 7 , the mobile phone 200 can establish a communication connection with the smart TV 100 according to the device identifier. In this way, the user only needs to bring the mobile phone 200 close to the remote control 300 to establish a communication connection between the mobile phone 200 and the smart TV 100 , which is convenient and fast.
另外,为了避免手机200与遥控器300发生误接触时,导致手机200与智能电视100建立通信连接。手机200可以在与遥控器300建立NFC通信两次(即用户使用手机200碰两次遥控器300)时,手机200才与智能电视100建立通信连接。In addition, in order to prevent the mobile phone 200 from establishing a communication connection with the smart TV 100 when the mobile phone 200 contacts the remote controller 300 by mistake. The mobile phone 200 may establish a communication connection with the smart TV 100 only when the mobile phone 200 establishes NFC communication with the remote control 300 twice (that is, the user uses the mobile phone 200 to touch the remote control 300 twice).
可以替换地,上述的遥控器300可以替换为路由器、或智能电视100等,在此不作限定。可以理解地,上述的遥控器300、路由器、或智能电视100即目标电子设备。Alternatively, the aforementioned remote controller 300 may be replaced with a router, or a smart TV 100 , etc., which is not limited herein. It can be understood that the aforementioned remote control 300 , router, or smart TV 100 are target electronic devices.
第三种:如图6所示,手机200可以接收用户输入的语音信息“与电视连接”。进而,仍如图7所示,手机200发现智能电视100,并与智能电视100建立通信连接。可以理解地,上述的语音信息用于指示与智能电视100通信连接。如此,上述的语音信息还可以替换为“连接电视”等,在此不作限定。The third type: as shown in FIG. 6 , the mobile phone 200 can receive the voice message "connect with TV" input by the user. Furthermore, as still shown in FIG. 7 , the mobile phone 200 discovers the smart TV 100 and establishes a communication connection with the smart TV 100 . Understandably, the above voice information is used to indicate a communication connection with the smart TV 100 . In this way, the above-mentioned voice information may also be replaced with "connect TV", etc., which is not limited here.
第四种:手机200可以发射UWB信号。其中,UWB信号携带有手机200的设备标识(可以包括手机200的通信地址)。当手机200的天线对准智能电视100时,智能电视100可以接收到手机200的设备标识。进而,智能电视100根据设备标识与手机200建立通信连接。如此,用户仅需使得手机200对准智能电视100,即可实现手机200与智能电视100建立通信连接,方便快捷。The fourth type: the mobile phone 200 can transmit UWB signals. Wherein, the UWB signal carries the device identification of the mobile phone 200 (may include the communication address of the mobile phone 200). When the antenna of the mobile phone 200 is aimed at the smart TV 100 , the smart TV 100 can receive the device identification of the mobile phone 200 . Furthermore, the smart TV 100 establishes a communication connection with the mobile phone 200 according to the device identifier. In this way, the user only needs to align the mobile phone 200 with the smart TV 100 to establish a communication connection between the mobile phone 200 and the smart TV 100 , which is convenient and quick.
在手机200与智能电视100连接成功后,智能电视100在显示第一界面101的过程中,控制手机200显示第二界面。其中,第二界面包括虚拟文本按键,虚拟文本按键用于输入文本。示例性地,虚拟文本按键包括数字按键、字母按键以及符号按键等,在此不做限定。可以理解地,上述的第二界面为键盘界面。下面,结合表1和表2分别说明,智能电视100如何控制手机200显示第二界面。After the mobile phone 200 is successfully connected to the smart TV 100 , the smart TV 100 controls the mobile phone 200 to display the second interface during the process of displaying the first interface 101 . Wherein, the second interface includes a virtual text button, and the virtual text button is used for inputting text. Exemplarily, the virtual text keys include number keys, letter keys, and symbol keys, etc., which are not limited herein. Understandably, the above-mentioned second interface is a keyboard interface. In the following, how the smart TV 100 controls the mobile phone 200 to display the second interface will be described in conjunction with Table 1 and Table 2 respectively.
示例性地,手机200可以存储有第一目标表格,第一目标表格包括智能电视100的界面标识和手机200的界面标识的映射关系。其中,第一目标表格的内容可以如下表1所示:Exemplarily, the mobile phone 200 may store a first target table, and the first target table includes a mapping relationship between the interface identifier of the smart TV 100 and the interface identifier of the mobile phone 200 . Wherein, the contents of the first target table may be shown in Table 1 below:
智能电视100的界面标识Interface logo of smart TV 100 手机200的界面标识The interface identification of the mobile phone 200
文本输入界面的界面标识Interface ID of the text input interface 键盘界面的界面标识Interface ID for the keyboard interface
游戏界面的界面标识Interface ID of the game interface 手柄界面的界面标识Interface ID of the handle interface
视频播放界面的界面标识Interface ID of the video playback interface 视频播放界面的界面标识Interface ID of the video playback interface
表1Table 1
在手机200与智能电视100连接成功后,如图8所示,智能电视100在显示第一界面101的过程中,可以向手机200发送第一界面101的界面标识(即文本输入界面的界面标识,即控制信息)。手机200根据第一界面101的界面标识,从第一目标表格中查找出第二界面207的界面标识(即键盘界面的界面标识)。进而,手机200根据查找出的界面标识,显示第二界面207(即键盘界面)。After the mobile phone 200 is successfully connected with the smart TV 100, as shown in FIG. , that is, control information). The mobile phone 200 searches out the interface identifier of the second interface 207 (ie, the interface identifier of the keyboard interface) from the first target table according to the interface identifier of the first interface 101 . Furthermore, the mobile phone 200 displays the second interface 207 (ie, the keyboard interface) according to the found interface identifier.
另外,上述的映射关系还可以替换为:智能电视100的界面标识与手机200的程序包名的映射关系。示例性地,第一目标表格的内容还可以如下表2所示:In addition, the above mapping relationship can also be replaced by: the mapping relationship between the interface identifier of the smart TV 100 and the program package name of the mobile phone 200 . Exemplarily, the content of the first target table may also be shown in Table 2 below:
智能电视100的界面标识Interface logo of smart TV 100 手机200的程序包名The program package name of the mobile phone 200
文本输入界面的界面标识Interface ID of the text input interface 键盘应用的程序包名The package name of the keyboard application
游戏界面的界面标识Interface ID of the game interface 手柄应用的程序包名The package name of the controller application
视频播放界面的界面标识Interface ID of the video playback interface 视频应用的程序包名The package name of the video application
表2Table 2
基于表2,手机200还可以根据第一界面101的界面标识,从第一目标表格中查找出键盘应用的程序包名。进而,手机200根据查找出的键盘应用的程序包名,打开键盘应用以显示第二界面207。Based on Table 2, the mobile phone 200 may also find out the program package name of the keyboard application from the first target table according to the interface identifier of the first interface 101 . Furthermore, the mobile phone 200 opens the keyboard application to display the second interface 207 according to the found program package name of the keyboard application.
如图9所示,手机200在显示第二界面207的过程中,可以响应于用户对第二界面207中的虚拟文本按键的触发操作,在智能电视100中的第一界面101中输入账户和密码。其中,手机200在第一界面101中输入账户和密码的方式包括但不限于以下两种:As shown in FIG. 9 , in the process of displaying the second interface 207, the mobile phone 200 may respond to the user's trigger operation on the virtual text button in the second interface 207, and enter the account and password. Among them, the ways for the mobile phone 200 to input the account and password on the first interface 101 include but not limited to the following two:
第一种:在虚拟文本按键上被标记有按键标识。其中,按键标识可以为数字“0”、或“1”等,英文字母“a”、或“b”等。手机200可以响应于用户对虚拟文本按键的触发操作,向智能电视100发送被触发的虚拟文本按键的按键标识(即目标数据)。智能电视100在第一界面101中输入接收到的按键标识。The first type: the virtual text button is marked with a button identifier. Wherein, the button identification can be a number "0" or "1", etc., an English letter "a" or "b" and so on. The mobile phone 200 may, in response to the user's trigger operation on the virtual text key, send the key identification (ie target data) of the triggered virtual text key to the smart TV 100 . The smart TV 100 inputs the received button identification on the first interface 101 .
第二种:在虚拟文本按键上被标记有按键标识。其中,按键标识可以为数字“0”、或“1”等,以及英文字母“a”、或“b”等。按键标识可以与键控代码存在映射关系。示例性地,智能电视100和手机200均存储有第二目标表格,第二目标表格包括按键标识与键控代码的映射关系。其中,第二目标表格的内容可以如下表3所示:The second type: a button identifier is marked on the virtual text button. Wherein, the button identification may be a number "0" or "1", and an English letter "a" or "b". There may be a mapping relationship between key identifiers and key codes. Exemplarily, both the smart TV 100 and the mobile phone 200 store a second target table, and the second target table includes a mapping relationship between key identifiers and key codes. Wherein, the content of the second target table may be shown in Table 3 below:
按键标识button identification 第二键控代码Second key code
按键标识“0”Button ID "0" 4848
按键标识“1”Button ID "1" 4949
按键标识“2”Button ID "2" 5050
按键标识“3”Button identification "3" 5151
按键标识“4”Button identification "4" 5252
按键标识“5”Button identification "5" 5353
按键标识“6”Button identification "6" 5454
按键标识“7”Button identification "7" 5555
按键标识“8”Button identification "8" 5656
按键标识“9”Button identification "9" 5757
按键标识“Enter”Button identification "Enter" 1313
按键标识“A”Button identification "A" 6565
按键标识“B”Button identification "B" 6666
按键标识“C”Button identification "C" 6767
...... ......
按键标识“Z”Button identification "Z" 9090
表3table 3
手机200可以响应于用户对虚拟文本按键的触发操作,从第二目标表格中查找出与被触发的虚拟文本按键的按键标识对应的键控代码。手机200向智能电视100发送查找出的键控代码。智能电视100从第二目标表格中查找出键控代码对应的键盘标识,并在第一界面101中输入查找出的按键标识。The mobile phone 200 may, in response to the user's trigger operation on the virtual text key, search out the key code corresponding to the key identifier of the triggered virtual text key from the second target table. The mobile phone 200 sends the found key code to the smart TV 100 . The smart TV 100 finds the keyboard identifier corresponding to the key code from the second target table, and inputs the found key identifier on the first interface 101 .
综上所述,在上述的实施例中,用户仅需将智能电视100和手机200建立通信连接。To sum up, in the above embodiments, the user only needs to establish a communication connection between the smart TV 100 and the mobile phone 200 .
如此,智能电视100向手机200发送第一界面的标识。手机200在识别到第一界面标识后,显示与第一界面标识对应的第二界面。手机200在显示第二界面的过程中,接收用户的触发操作;智能电视100在第一界面中输入与触发操作对应的账户和密码。如此,用户至多需要两次操作,即可实现借助手机200在智能电视100的第一界面中输入的账户和密码。进而,简化了用户的操作步骤,提高了操作效率。In this way, the smart TV 100 sends the identifier of the first interface to the mobile phone 200 . After the mobile phone 200 recognizes the first interface identifier, it displays the second interface corresponding to the first interface identifier. During the process of displaying the second interface, the mobile phone 200 receives a user's trigger operation; the smart TV 100 inputs the account and password corresponding to the trigger operation on the first interface. In this way, the user needs at most two operations to realize the account and password entered in the first interface of the smart TV 100 by means of the mobile phone 200 . Furthermore, the user's operation steps are simplified, and the operation efficiency is improved.
需要说明的是,在上述实施例中,是以智能电视100的第一界面101为文本输入界面,用户借助手机200在智能电视100的文本输入界面输入账户和密码为例说明的。下面,以智能电视100的第一界面101为游戏界面为例,说明用户如何借助手机200,控制智能电视100的游戏界面中的游戏角色执行游戏行为的。It should be noted that, in the above embodiment, the first interface 101 of the smart TV 100 is used as the text input interface, and the user enters the account and password on the text input interface of the smart TV 100 by means of the mobile phone 200 as an example. Hereinafter, taking the first interface 101 of the smart TV 100 as the game interface as an example, how the user controls the game character in the game interface of the smart TV 100 to execute the game behavior with the help of the mobile phone 200 .
如图10所示,当用户使用智能电视100玩格斗游戏时,智能电视100显示第一界面101(即,智能电视100处于第一状态)。第一界面101中包括游戏角色A和游戏角色B(即智能电视100具有控制游戏角色行为的功能,即第一功能)。可以理解地,第一界面101即游戏界面。另外,此时手机200显示系统主界面201。当然地,手机200显示系统主界面201还可以替换成手机200处于锁屏状态或者显示其他的浏览界面等,在此只是举例说明。As shown in FIG. 10 , when the user uses the smart TV 100 to play a fighting game, the smart TV 100 displays a first interface 101 (that is, the smart TV 100 is in a first state). The first interface 101 includes game character A and game character B (that is, the smart TV 100 has a function of controlling the behavior of the game character, that is, the first function). Understandably, the first interface 101 is a game interface. In addition, the mobile phone 200 displays the system main interface 201 at this moment. Of course, the main interface 201 of the system displayed on the mobile phone 200 can also be replaced by the mobile phone 200 being in a locked screen state or displaying other browsing interfaces, etc., and this is just an example.
仍如图10所示,若用户想借助手机200控制游戏角色A的游戏行为,则智能电视100需要与手机200建立通信连接。示例性地,手机200与智能电视100通信连接的方式可以参照上述实施例中的描述,在此不再赘述。Still as shown in FIG. 10 , if the user wants to control the game behavior of the game character A through the mobile phone 200 , the smart TV 100 needs to establish a communication connection with the mobile phone 200 . Exemplarily, the manner of the communication connection between the mobile phone 200 and the smart TV 100 may refer to the description in the foregoing embodiments, which will not be repeated here.
手机200与智能电视100建立通信连接后,智能电视100在显示第一界面101的过程中,控制手机200显示第二界面207。After the mobile phone 200 establishes a communication connection with the smart TV 100 , the smart TV 100 controls the mobile phone 200 to display the second interface 207 during the process of displaying the first interface 101 .
示例性地,如图11中的(a)-(b)所示,智能电视100在显示第一界面101的过程中,向手机200发送第一界面101的界面标识(即游戏界面的界面标识,即控制信息)。手机200根据第一界面101的界面标识,显示第二界面207。其中,手机200根据第一界面101的界面标识,显示第二界面207的原理与上述实施例中相同,在此不再赘述。Exemplarily, as shown in (a)-(b) in FIG. , that is, control information). The mobile phone 200 displays the second interface 207 according to the interface identifier of the first interface 101 . Wherein, the principle of the mobile phone 200 displaying the second interface 207 according to the interface identifier of the first interface 101 is the same as that in the above-mentioned embodiment, and will not be repeated here.
示例性地,如图11中的(b)所示,第二界面207可以包括虚拟控制键盘208。其中,虚拟控制键盘208中包括用于控制游戏角色A的游戏行为的虚拟按键。例如,虚拟控制键盘208可以包括前进按键“←”、后退按键“→”、跳跃按键“↑”、下蹲按键“↓”、轻手攻击按键“A”、重手攻击按键“B”、轻脚攻击按键“C”以及重脚攻击按键“D”。Exemplarily, as shown in (b) of FIG. 11 , the second interface 207 may include a virtual control keyboard 208 . Wherein, the virtual control keyboard 208 includes virtual keys for controlling the game behavior of the game character A. For example, the virtual control keyboard 208 may include a forward key "←", a backward key "→", a jump key "↑", a squat key "↓", a light hand attack key "A", a heavy hand attack key "B", a light hand Foot attack button "C" and heavy foot attack button "D".
另外,仍如图11中的(b)所示,手机200还可以接收来自智能电视100的第一界面101显示的界面数据,并在第二界面207中显示第一界面101的界面数据,进而,可以供用户在手机200近距离查阅智能电视100中的第一界面101的界面数据。In addition, as shown in (b) in Figure 11, the mobile phone 200 can also receive the interface data displayed on the first interface 101 from the smart TV 100, and display the interface data of the first interface 101 on the second interface 207, and then , the user can view the interface data of the first interface 101 in the smart TV 100 at close range on the mobile phone 200 .
可以理解地,手机200在显示第二界面207的过程中,手机200可以响应于用户的触发操作,控制第一界面101中的游戏角色A的游戏行为。It can be understood that when the mobile phone 200 is displaying the second interface 207 , the mobile phone 200 can control the game behavior of the game character A in the first interface 101 in response to a user's trigger operation.
如图12中的(a)所示,手机200可以响应于用户对第二界面207中的轻手攻击按键“A”的触发操作,控制智能电视100的第一界面101中的游戏角色A轻手攻击游戏角色B。其中,用户借助手机200,控制智能电视100的第一界面101中的游戏角色A轻手攻击游戏角色B的原理,与上述实施例中,用户借助手机200向智能电视100的第一界面101中的输入账户和密码的原理相同,在此不再赘述。可以理解地,手机200还可以基于相同的原理,控制智能电视100的第一界面101中的游戏角色A执行其他的操作,在此不做限定和赘述。As shown in (a) in Figure 12, the mobile phone 200 can control the game character A in the first interface 101 of the smart TV 100 to lightly respond to the user's trigger operation on the light hand attack button "A" in the second interface 207. Hand attack game character B. Among them, the principle that the user controls the game character A in the first interface 101 of the smart TV 100 to attack the game character B with the help of the mobile phone 200 is the same as in the above-mentioned embodiment, the user uses the mobile phone 200 to control the game character A in the first interface 101 of the smart TV 100. The principle of entering the account and password is the same, and will not be repeated here. It can be understood that the mobile phone 200 can also control the game character A in the first interface 101 of the smart TV 100 to perform other operations based on the same principle, which will not be limited or repeated here.
另外,上述的图11中的(b),还可以替换为上述的图11中的(c)。如图11中的(c)所示,手机200显示第二界面211。第二界面211包括虚拟控制键盘212,其中,当虚拟控制键盘211被触发时,生成对游戏角色的控制数据(即目标数据),其中,控制数据用于控制第一界面211中的游戏角色A的行为。虚拟控制键盘212可以包括前进按键“←”、后退按键“→”、跳跃按键“↑”、下蹲按键“↓”、轻手攻击按键“A”、重手攻击按键“B”、轻脚攻击按键“C”以及重脚攻击按键“D”。可见,第二界面211即手柄界面。手机200也可以响应于用户对第二界面211中的轻手攻击按键“A”的触发操作,控制智能电视100的第一界面101中的游戏角色A轻手攻击游戏角色B。In addition, (b) in the above-mentioned FIG. 11 may also be replaced with (c) in the above-mentioned FIG. 11 . As shown in (c) of FIG. 11 , the mobile phone 200 displays a second interface 211 . The second interface 211 includes a virtual control keyboard 212, wherein, when the virtual control keyboard 211 is triggered, control data (i.e. target data) on the game character is generated, wherein the control data is used to control the game character A in the first interface 211 the behavior of. The virtual control keyboard 212 may include a forward key "←", a backward key "→", a jump key "↑", a squat key "↓", a light hand attack key "A", a heavy hand attack key "B", a light foot attack key Button "C" and heavy foot attack button "D". It can be seen that the second interface 211 is the handle interface. The mobile phone 200 can also control the game character A in the first interface 101 of the smart TV 100 to lightly attack the game character B in response to the user's trigger operation on the light-hand attack button "A" in the second interface 211 .
另外,上述的图11中的(b),还可以替换为上述的图11中的(d)。如图11中的(d)所示,手机200显示第三界面213。第三界面213中显示有第一提示信息。第一提示信息用于指示手机200处于第一预设模式,其中,第一预设模式可以理解为 手机200开启游戏模式。示例性,第一提示信息可以为但不限于“游戏模式中”的文字信息。另外,手机200除了显示第三界面213以外,还根据智能电视100的第一界面101的标识和预设的映射关系,查找出姿态传感器。如此,手机200可以将姿态传感器采集的手机200的姿态数据共享至智能电视100。智能电视100接收到姿态数据后,可以控制游戏角色A执行与姿态数据关联的操作。In addition, (b) in the above-mentioned FIG. 11 may also be replaced with (d) in the above-mentioned FIG. 11 . As shown in (d) of FIG. 11 , the mobile phone 200 displays a third interface 213 . The first prompt information is displayed on the third interface 213 . The first prompt information is used to indicate that the mobile phone 200 is in the first preset mode, where the first preset mode can be understood as the mobile phone 200 turning on the game mode. Exemplarily, the first prompt information may be but not limited to text information of "in game mode". In addition, in addition to displaying the third interface 213 , the mobile phone 200 also finds out the attitude sensor according to the logo of the first interface 101 of the smart TV 100 and the preset mapping relationship. In this way, the mobile phone 200 can share the attitude data of the mobile phone 200 collected by the attitude sensor to the smart TV 100 . After receiving the gesture data, the smart TV 100 can control the game character A to perform operations associated with the gesture data.
示例性地,手机200在向右移动时,向智能电视100发出向右的姿态数据(即目标数据)。如此,智能电视100可以根据向右移动的姿态数据,控制游戏角色A向右移动。再例如,手机200在向下移动时,向智能电视100发出向下的姿态数据。如此,智能电视100可以根据向下的姿态数据,控制游戏角色A下蹲。再例如,手机200在向前翻转时,向智能电视100发出向前翻转的姿态数据。如此,智能电视100可以根据向前翻转的姿态数据,控制游戏角色A轻手攻击游戏角色B。Exemplarily, when the mobile phone 200 moves to the right, it sends right gesture data (ie target data) to the smart TV 100 . In this way, the smart TV 100 can control the game character A to move to the right according to the gesture data of the movement to the right. For another example, when the mobile phone 200 moves downward, it sends downward posture data to the smart TV 100 . In this way, the smart TV 100 can control the game character A to squat according to the downward posture data. For another example, when the mobile phone 200 is turned forward, it sends the attitude data of the forward turn to the smart TV 100 . In this way, the smart TV 100 can control the game character A to attack the game character B with a light hand according to the posture data flipped forward.
综上所述,在上述的实施例中,用户仅需将智能电视100和手机200建立通信连接。To sum up, in the above embodiments, the user only needs to establish a communication connection between the smart TV 100 and the mobile phone 200 .
如此,智能电视100向手机200发送第一界面的标识。手机200在识别到第一界面标识后,显示与第一界面的标识对应的第二界面。手机200在显示第二界面的过程中,接收用户的触发操作,并控制智能电视100中的游戏角色执行与触发操作关联的游戏行为。如此,用户至多需要两次操作,即可实现借助手机200控制智能电视100中的游戏角色执行与触发操作关联的游戏行为。进而,简化了用户的操作步骤,提高了操作效率。In this way, the smart TV 100 sends the identifier of the first interface to the mobile phone 200 . After recognizing the identifier of the first interface, the mobile phone 200 displays the second interface corresponding to the identifier of the first interface. During the process of displaying the second interface, the mobile phone 200 receives the user's trigger operation, and controls the game character in the smart TV 100 to perform the game behavior associated with the trigger operation. In this way, the user needs at most two operations to control the game character in the smart TV 100 to perform the game behavior associated with the triggering operation by means of the mobile phone 200 . Furthermore, the user's operation steps are simplified, and the operation efficiency is improved.
需要说明的是,在上述的两个实施例中,是以智能电视100借助手机200的软件和/或硬件,实现执行某一种功能的。例如,智能电视100借助手机200输入账户和密码;或者,智能电视100借助手机200控制游戏角色执行游戏行为。下面,以第一终端为手机200,第二终端为智能电视100为例,说明手机200借助智能电视100的软件和硬件实现执行大屏视频交互功能。It should be noted that, in the above two embodiments, the smart TV 100 uses the software and/or hardware of the mobile phone 200 to implement a certain function. For example, the smart TV 100 uses the mobile phone 200 to input the account and password; or, the smart TV 100 uses the mobile phone 200 to control the game character to execute the game behavior. In the following, taking the first terminal as the mobile phone 200 and the second terminal as the smart TV 100 as an example, it is explained that the mobile phone 200 implements the large-screen video interactive function by means of the software and hardware of the smart TV 100 .
当用户正在使用智能电视100观看电视节目时,用户的手机200接收到来自第三终端的视频通话请求。如图13所示,手机200在响应于用户输入的对视频通话请求的确认操作时,接收来自第三终端的第一视频数据以及采集第二视频数据。第一视频数据包括第三终端的采集的图像D和第一声音数据。第二视频数据包括手机200的麦克风采集的第一声音数据和手机200的摄像头采集的图像C。如此,手机200显示第一界面209(即视频播放界面,且手机200处于第一状态),其中,第一界面209包括图像C和图像D,以及手机200在手机200的扬声器播放第一声音数据(即手机200具有视频交互的功能,即第一功能)。手机200向第三终端发送第二视频数据,以使第三终端可以播放第二视频数据,如此,可以实现手机200与第三终端的视频交互。When the user is using the smart TV 100 to watch a TV program, the user's mobile phone 200 receives a video call request from the third terminal. As shown in FIG. 13 , the mobile phone 200 receives the first video data from the third terminal and collects the second video data in response to the confirmation operation of the video call request input by the user. The first video data includes the image D collected by the third terminal and first sound data. The second video data includes the first sound data collected by the microphone of the mobile phone 200 and the image C collected by the camera of the mobile phone 200 . In this way, the mobile phone 200 displays the first interface 209 (i.e. the video playback interface, and the mobile phone 200 is in the first state), wherein the first interface 209 includes image C and image D, and the mobile phone 200 plays the first sound data on the speaker of the mobile phone 200 (That is, the mobile phone 200 has a function of video interaction, that is, the first function). The mobile phone 200 sends the second video data to the third terminal, so that the third terminal can play the second video data. In this way, video interaction between the mobile phone 200 and the third terminal can be realized.
若用户在视频交互的过程中不想手持手机200采集第二视频数据(即用户想要解放双手),则手机200可以借助智能电视100采集第二视频数据。可选地,若用户想要更清晰的观看图像C和图像D,手机200可以借助智能电视100显示包括图像C和图像D。下面结合图13和图14说明,手机200如何借助智能电视100采集第二视频数据,以及如何手机200如何借助智能电视100显示图像C和图像D。If the user does not want to hold the mobile phone 200 to collect the second video data during video interaction (that is, the user wants to free his hands), the mobile phone 200 can use the smart TV 100 to collect the second video data. Optionally, if the user wants to view image C and image D more clearly, the mobile phone 200 may use the smart TV 100 to display image C and image D. 13 and 14, how the mobile phone 200 collects the second video data with the smart TV 100, and how the mobile phone 200 displays the image C and the image D with the smart TV 100.
如图13所示,手机200在显示第一界面209的过程中,与智能电视100建立通信 连接。示例性地,手机200与智能电视100通信连接的方式可以参照上述实施例中的描述,在此不再赘述。As shown in FIG. 13 , the mobile phone 200 establishes a communication connection with the smart TV 100 during the process of displaying the first interface 209 . Exemplarily, the manner of the communication connection between the mobile phone 200 and the smart TV 100 may refer to the description in the foregoing embodiments, which will not be repeated here.
手机200与智能电视100建立通信连接后,手机200在显示第一界面209的过程中,控制智能电视100显示第二界面103。其中,在第二界面103中也包括图像C和图像D。下面,具体介绍手机200如何控制智能电视100显示第二界面103的过程。After the mobile phone 200 establishes a communication connection with the smart TV 100 , the mobile phone 200 controls the smart TV 100 to display the second interface 103 during the process of displaying the first interface 209 . Wherein, image C and image D are also included in the second interface 103 . Next, the process of how the mobile phone 200 controls the smart TV 100 to display the second interface 103 will be specifically introduced.
如图14中的(a)-(b)所示,手机200在显示第一界面209的过程中,向智能电视100发送第一界面209的界面标识(即视频播放界面的界面标识,即控制信息)。智能电视100根据第一界面209的界面标识和预设的映射关系,查找到第二界面103的标识、扬声器的标识。智能电视100接收来自手机200的第一视频数据,第一视频数据包括第三终端的采集的图像D和第一声音数据。如此,智能电视100显示第二界面103(即视频播放界面),其中,第二界面103包括图像D,以及在智能电视100的扬声器播放第一声音数据。通常地,在智能电视100上显示的图像D的尺寸大于在手机200上显示的图像D的尺寸。如此,用户可以更清晰地在智能电视100上观看图像D。As shown in (a)-(b) in Fig. 14, in the process of displaying the first interface 209, the mobile phone 200 sends the interface identification of the first interface 209 to the smart TV 100 (i.e. the interface identification of the video playback interface, i.e. the control information). The smart TV 100 finds the identifier of the second interface 103 and the identifier of the speaker according to the interface identifier of the first interface 209 and the preset mapping relationship. The smart TV 100 receives the first video data from the mobile phone 200, and the first video data includes the image D collected by the third terminal and the first sound data. In this way, the smart TV 100 displays the second interface 103 (namely, the video playback interface), wherein the second interface 103 includes the image D, and the speaker of the smart TV 100 plays the first sound data. Generally, the size of the image D displayed on the smart TV 100 is larger than the size of the image D displayed on the mobile phone 200 . In this way, the user can watch the image D on the smart TV 100 more clearly.
另外,可选地,如图14中的(d)所示,手机200还可以在向智能电视100发送第一视频数据后,显示第四界面210。第四界面210中显示有第二提示信息。第二提示信息用于指示手机200处于第二预设模式(如视频模式)。示例性地,第一提示信息可以为但不限于“视频通话中”的文字信息。In addition, optionally, as shown in (d) of FIG. 14 , the mobile phone 200 may also display a fourth interface 210 after sending the first video data to the smart TV 100 . Second prompt information is displayed on the fourth interface 210 . The second prompt information is used to indicate that the mobile phone 200 is in a second preset mode (such as video mode). Exemplarily, the first prompt information may be, but not limited to, text information of "in video call".
另外,智能电视100还根据第一界面209的界面标识和预设的映射关系,查找到麦克风的标识以及摄像头的标识。智能电视100在显示第二界面103的过程中,智能电视100的摄像头采集图像C,以及智能电视100的麦克风采集第二声音数据。进而,如图14中的(c)-(d)所示,智能电视100还向手机200发送第二视频数据(即目标数据),第二视频数据包括图像C和第二声音数据。进而,手机200向第三终端发送第二视频数据,使得第三终端可以播放第二视频数据。如此,手机200实现了借助智能电视100和第三终端视频交互。由于第二视频数据是智能电视100采集的,如此无需用户手持手机200采集第二视频数据,解放了用户的双手。In addition, the smart TV 100 also finds the identifier of the microphone and the identifier of the camera according to the interface identifier of the first interface 209 and the preset mapping relationship. When the smart TV 100 displays the second interface 103 , the camera of the smart TV 100 collects the image C, and the microphone of the smart TV 100 collects the second sound data. Furthermore, as shown in (c)-(d) in FIG. 14 , the smart TV 100 also sends second video data (ie target data) to the mobile phone 200 , the second video data includes image C and second sound data. Furthermore, the mobile phone 200 sends the second video data to the third terminal, so that the third terminal can play the second video data. In this way, the mobile phone 200 implements video interaction with the third terminal through the smart TV 100 . Since the second video data is collected by the smart TV 100, the user does not need to hold the mobile phone 200 to collect the second video data, which frees the user's hands.
综上所述,在上述的实施例中,用户仅需将智能电视100和手机200建立通信连接。To sum up, in the above embodiments, the user only needs to establish a communication connection between the smart TV 100 and the mobile phone 200 .
如此,手机200向发送智能电视100视频播放界面的标识。智能电视100在识别到第一界面标识后,显示与视频播放界面的标识对应的视频播放界面,以及智能电视100扬声器播放来自手机200的第一声音数据。智能电视100在显示视频播放界面的过程中,采集第二视频数据。智能电视100向手机200发送第二视频数据。手机200向第三终端发送第二视频数据,以使第三终端可以播放第二视频数据。如此,用户至多需要两次操作,即可实现手机200控制智能电视100执行大屏视频交互的功能,并解放了用户的双手。进而,简化了用户的操作步骤,提高了操作效率。In this way, the mobile phone 200 sends the identifier of the video playback interface of the smart TV 100 to the smart TV 100 . After the smart TV 100 recognizes the first interface identifier, it displays the video playback interface corresponding to the identifier of the video playback interface, and the speaker of the smart TV 100 plays the first sound data from the mobile phone 200 . During the process of displaying the video playing interface, the smart TV 100 collects the second video data. The smart TV 100 sends the second video data to the mobile phone 200 . The mobile phone 200 sends the second video data to the third terminal, so that the third terminal can play the second video data. In this way, the user needs at most two operations to realize the function of the mobile phone 200 controlling the smart TV 100 to perform large-screen video interaction, and frees the user's hands. Furthermore, the user's operation steps are simplified, and the operation efficiency is improved.
需要说明的是,在上述的三个实施例中,为了进一步地避免手机200和智能电视100误建立通信连接。手机200需要在处于第三预设模式下,才能与智能电视100建立通信连接。示例性地,用户可以触发手机200处于第三预设模式。其中,第三预设模式可以理解为共享模式、协同模式等。如图15中的(a)-(b)所示,手机200可以响应于用户对系统主界面201中的“设置”图标211的触发操作,显示功能列表界 面212(即第五界面)。功能列表界面212中包括用于控制处于/退出第三预设模式的第一控件213。手机200可以响应于对第一控件213的触发操作,处于第三预设模式。在第三预设模式下,手机200可以与智能电视100建立通信连接。It should be noted that, in the above three embodiments, in order to further prevent the mobile phone 200 and the smart TV 100 from establishing a communication connection by mistake. The mobile phone 200 needs to be in the third preset mode before it can establish a communication connection with the smart TV 100 . Exemplarily, the user can trigger the mobile phone 200 to be in the third preset mode. Wherein, the third preset mode can be understood as a sharing mode, a collaborative mode, and the like. As shown in (a)-(b) in FIG. 15 , the mobile phone 200 can display a function list interface 212 (that is, the fifth interface) in response to the user's trigger operation on the "settings" icon 211 in the system main interface 201. The function list interface 212 includes a first control 213 for controlling entering/exiting the third preset mode. The mobile phone 200 may be in the third preset mode in response to the trigger operation on the first control 213 . In the third preset mode, the mobile phone 200 can establish a communication connection with the smart TV 100 .
可以理解地,上述的结合图5-图15介绍中,是以结合界面示意图的方式介绍本申请实施例的。下面,结合图16提供的流程示意图,说明本申请实施例提供的设备控制方法。需要说明的是,图16所提供的设备控制方法,其基本原理及产生的技术效果和上述实施例相同,为简要描述,本申请实施例部分未提及之处,可参考上述的实施例中相应内容。It can be understood that, in the above introduction in conjunction with FIG. 5 to FIG. 15 , the embodiment of the present application is introduced in the manner of a schematic interface diagram. In the following, the device control method provided by the embodiment of the present application will be described with reference to the schematic flowchart provided in FIG. 16 . It should be noted that the basic principles and technical effects of the equipment control method provided in Figure 16 are the same as those of the above-mentioned embodiments. Corresponding content.
图16为本申请实施例提供的设备控制方法的流程示意图之一。如图16所示,本申请实施例提供的设备控制方法可以包括:FIG. 16 is one of the schematic flowcharts of the device control method provided by the embodiment of the present application. As shown in Figure 16, the device control method provided in the embodiment of the present application may include:
S1601:第一终端显示第一界面。S1601: The first terminal displays a first interface.
其中,第一界面可以是上述实施例中的文本输入界面、游戏界面或者视频播放界面等,在此不作限定。Wherein, the first interface may be a text input interface, a game interface, or a video playback interface, etc. in the above embodiments, which is not limited herein.
S1602:第一终端在显示第一界面的过程中,第一终端和第二终端建立通信连接。S1602: When the first terminal is displaying the first interface, the first terminal establishes a communication connection with the second terminal.
其中,S1602的具体过程,可以参考上述的实施例中的介绍,在此不做赘述。其中,第一终端可以是上述实施例中的智能电视100,第二终端可以是上述的手机200。即智能电视100可以作为功能需求方,借助作为功能提供方的手机200实现文本输入、游戏角色的行为控制等功能。当然,第一终端也可以上述的手机200、第二终端也可以是上述的智能电视100。即手机200可以作为功能需求方,借助作为功能提供方的智能电视100实现视频交互等功能。Wherein, for the specific process of S1602, reference may be made to the introduction in the foregoing embodiments, and details are not described here. Wherein, the first terminal may be the smart TV 100 in the above-mentioned embodiment, and the second terminal may be the above-mentioned mobile phone 200 . That is to say, the smart TV 100 can act as a function demander, and realize functions such as text input and game character behavior control with the help of the mobile phone 200 as a function provider. Certainly, the first terminal may also be the aforementioned mobile phone 200 , and the second terminal may also be the aforementioned smart TV 100 . That is, the mobile phone 200 may serve as a function demander, and realize functions such as video interaction with the help of the smart TV 100 as a function provider.
S1603:第一终端在显示第一界面的过程中,第一终端向第二终端发送控制信息。其中,控制信息用于指示第二终端开启目标功能单元,且目标功能单元在被触发时,能够实现触发关联的功能。S1603: During the process of displaying the first interface by the first terminal, the first terminal sends control information to the second terminal. Wherein, the control information is used to instruct the second terminal to enable the target function unit, and when the target function unit is triggered, it can realize the trigger-associated function.
示例性地,目标功能单元可以为包括虚拟文本按键的第二界面;当虚拟文本按键被触发时,可以实现向第一终端的文本输入界面输入文本数据(即目标数据)的功能。其中,当第二界面包括虚拟文本按键被触发时,可以实现向第一终端的文本输入界面输入文本数据的功能,可以参照上述实施例对图8和图9的介绍,在此不作赘述。Exemplarily, the target function unit may be a second interface including a virtual text key; when the virtual text key is triggered, the function of inputting text data (that is, target data) to the text input interface of the first terminal may be implemented. Wherein, when the second interface includes a virtual text key and is triggered, the function of inputting text data to the text input interface of the first terminal can be realized, and the introduction of FIGS.
目标功能单元还可以为虚拟控制键盘的第二界面,当虚拟控制键盘被触发时,可以实现控制第一终端的第一界面上的游戏角色执行与触发关联的游戏行为。目标功能单元还可以为姿态传感器,当姿态传感器被触发时,可以实现控制第一终端的第一界面上的游戏角色执行与触发关联的游戏行为。其中,当虚拟控制键盘或姿态传感器被触发时,可以实现控制第一终端的第一界面上的游戏角色执行与触发关联的游戏行为,可以参照上述实施例对图11-图12的介绍,在此不再赘述。The target functional unit can also be the second interface of the virtual control keyboard. When the virtual control keyboard is triggered, it can control the game character on the first interface of the first terminal to perform the game behavior associated with the trigger. The target functional unit can also be a gesture sensor, and when the gesture sensor is triggered, it can control the game character on the first interface of the first terminal to perform the game behavior associated with the trigger. Wherein, when the virtual control keyboard or the gesture sensor is triggered, it can be realized to control the game character on the first interface of the first terminal to perform the game behavior associated with the trigger. You can refer to the introduction of Fig. 11-Fig. 12 in the above-mentioned embodiment. This will not be repeated here.
目标功能单元可以为视频采集模块(如摄像头、麦克风)。当视频采集模块被开启时,可以控制第一终端与第三终端实现视频交互功能。其中,当视频采集模块被开启时,可以控制第一终端与第三终端实现视频交互功能,可以参照上述对图14的介绍,在此不再赘述。The target functional unit may be a video acquisition module (such as a camera, a microphone). When the video acquisition module is turned on, it can control the first terminal and the third terminal to realize the video interaction function. Wherein, when the video acquisition module is turned on, the first terminal and the third terminal may be controlled to realize video interaction function, and reference may be made to the above introduction to FIG. 14 , which will not be repeated here.
S1604:第二终端响应于对目标功能单元的触发操作,使得第一终端在显示所述第一界面时,执行与触发操作关联的功能。S1604: The second terminal responds to the trigger operation on the target function unit, so that the first terminal executes a function associated with the trigger operation when the first interface is displayed.
示例性地,可以参照上述的对图9的阐述,当第一界面为文本输入界面,目标功能单元为第二界面中的虚拟文本按键时,第二终端可以响应于用户对虚拟文本按键的触发操作,获取文本数据。可以理解地,文本数据即目标数据。Exemplarily, referring to the above-mentioned illustration of FIG. 9, when the first interface is a text input interface and the target functional unit is a virtual text key in the second interface, the second terminal may respond to the user triggering the virtual text key Operation, get text data. Understandably, the text data is the target data.
或者;示例性地,可以参照上述的对图12中的(a)的阐述,当第一界面为游戏界面,目标功能单元为第二界面中的虚拟控制键盘时,第二终端可以响应于用于对第二界面中的虚拟控制键盘的触发操作,控制第一终端的第一界面上的游戏角色执行与触发关联的游戏行为。可以理解地,控制第一终端的第一界面上的游戏角色执行与触发关联的游戏行为,即与触发操作关联的功能。Or; Exemplarily, referring to the above-mentioned explanation of (a) in FIG. Based on the trigger operation on the virtual control keyboard in the second interface, the game character on the first interface of the first terminal is controlled to perform the game behavior associated with the trigger. Understandably, the game character on the first interface of the first terminal is controlled to perform a game behavior associated with the trigger, that is, a function associated with the trigger operation.
或者;示例性地,当第一界面为游戏界面,目标功能单元为姿态传感器时,第二终端可以响应于用户的触发操作,使得姿态传感器采集的第二终端的姿态数据;以控制第一终端的第一界面上的游戏角色执行与触发关联的游戏行为。可以理解地,控制第一终端的第一界面上的游戏角色执行与触发关联的游戏行为,即与触发操作关联的功能。Or; Exemplarily, when the first interface is a game interface and the target functional unit is a gesture sensor, the second terminal may respond to a user's trigger operation, so that the gesture data of the second terminal collected by the gesture sensor; to control the first terminal The game character on the first interface executes the game behavior associated with the trigger. Understandably, the game character on the first interface of the first terminal is controlled to perform a game behavior associated with the trigger, that is, a function associated with the trigger operation.
或者;示例性地,当第一界面为视频播放界面,目标功能单元包括视频采集模块(如麦克风和摄像头)时,可以控制第一终端与第三终端实现视频交互功能。可以理解地,控制第一终端与第三终端实现视频交互功能,即与触发操作关联的功能。Or; Exemplarily, when the first interface is a video playback interface, and the target functional unit includes a video acquisition module (such as a microphone and a camera), the first terminal and the third terminal may be controlled to implement a video interaction function. Understandably, the first terminal and the third terminal are controlled to implement a video interaction function, that is, a function associated with a trigger operation.
图17为本申请实施例提供的第一终端为智能电视100和第二终端为手机200时,智能电视100借助手机200实现执行与目标数据关联的功能,或者第一终端为手机200和第二终端为智能电视100时,手机200借助智能电视100实现执行与目标数据关联的功能架构示意图。Figure 17 shows that when the first terminal is a smart TV 100 and the second terminal is a mobile phone 200 provided by the embodiment of the present application, the smart TV 100 implements the function associated with the target data with the help of the mobile phone 200, or the first terminal is the mobile phone 200 and the second terminal When the terminal is the smart TV 100 , the mobile phone 200 implements the functional architecture associated with the target data by means of the smart TV 100 .
如图17所示,智能电视100和手机200可以通过短距通信模块通信连接。其中,短距通信模块可以是蓝牙模块、WiFi模块或者NFC模块等,在此不作限定。当智能电视100接收到来自手机200的视频播放界面的界面标识时,智能电视100的协同控制应用调用并打开视频应用的视频播放界面(包括图像C和图像D)和调用扬声器播放来自手机200的第一声音数据;并且,调用智能电视100的摄像头采集图像C和麦克风采集第二声音数据。可见,上述是智能电视100的协同控制应用基于视频播放界面的界面标识,决策调用视频应用、扬声器、摄像头以及麦克风的。另外,手机100的协同控制应用还可以在视频播放界面时,生成调用视频应用、扬声器、摄像头以及麦克风的指令。智能电视200接收到来自手机100的指令后调用视频应用、扬声器、摄像头以及麦克风。如此,手机100也可以决策调用视频应用、扬声器、摄像头以及麦克风。手机200接收来自智能电视100的图像C和第二声音数据,并向第三终端发送图像C和第二声音数据。如此,手机200可以借助智能电视100实现大屏视频交互功能。可以理解地,上述的视频播放界面的界面标识和调用视频应用、扬声器、摄像头以及麦克风的指令均为控制信息。As shown in FIG. 17 , the smart TV 100 and the mobile phone 200 can be connected through a short-distance communication module. Wherein, the short-distance communication module may be a Bluetooth module, a WiFi module or an NFC module, etc., which are not limited herein. When the smart TV 100 received the interface identification from the video playback interface of the mobile phone 200, the coordinated control application of the smart TV 100 invoked and opened the video playback interface (comprising image C and image D) of the video application and called the speaker to play the video from the mobile phone 200. The first sound data; and, calling the camera of the smart TV 100 to collect the image C and the microphone to collect the second sound data. It can be seen that the cooperative control application of the smart TV 100 decides to call the video application, speaker, camera, and microphone based on the interface identifier of the video playback interface. In addition, the collaborative control application of the mobile phone 100 may also generate instructions for invoking video applications, speakers, cameras, and microphones in the video playback interface. Smart TV 200 invokes video application, speaker, camera and microphone after receiving the instruction from mobile phone 100 . In this way, the mobile phone 100 can also decide to call a video application, a speaker, a camera, and a microphone. The mobile phone 200 receives the image C and the second sound data from the smart TV 100, and sends the image C and the second sound data to the third terminal. In this way, the mobile phone 200 can use the smart TV 100 to realize a large-screen video interactive function. It can be understood that the interface identification of the above-mentioned video playback interface and the instructions for invoking the video application, speaker, camera, and microphone are all control information.
在上述的过程中,可以理解地,智能电视200可以根据智能电视200的当前运行的功能和手机100当前运行的功能,决策调用视频应用、扬声器、摄像头以及麦克风;手机100也可以根据手机100的当前运行的功能和智能电视200当前运行的功能,决策调用视频应用、扬声器、摄像头以及麦克风。In the above process, it can be understood that the smart TV 200 can decide to call the video application, speaker, camera, and microphone according to the functions currently running on the smart TV 200 and the functions currently running on the mobile phone 100; The functions currently running and the functions currently running on the smart TV 200 decide to call a video application, a speaker, a camera, and a microphone.
当手机200接收到来自智能电视100的文本输入界面的标识时,手机200的协同 控制应用决策调用文本输入应用打开键盘界面。手机200响应于用户对键盘界面的触发操作,向智能电视100发送触发操作关联的文本数据。智能电视100显示接收到的文本数据。另外,智能电视200的协同控制应用还可以基于上述同样的原理,决策生成调用文本输入应用的指令,并控制手机100调用文本输入应用打开键盘界面,在此不再赘述。When the mobile phone 200 received the identification from the text input interface of the smart TV 100, the cooperative control application decision of the mobile phone 200 calls the text input application to open the keyboard interface. In response to the user's trigger operation on the keyboard interface, the mobile phone 200 sends text data associated with the trigger operation to the smart TV 100 . The smart TV 100 displays the received text data. In addition, the collaborative control application of the smart TV 200 can also decide to generate an instruction to call the text input application based on the same principle as above, and control the mobile phone 100 to call the text input application to open the keyboard interface, which will not be repeated here.
当手机200接收到来自智能电视100的游戏界面的标识时,手机200的协同控制应用决策调用手柄应用打开手柄界面。手机200响应于用户对手柄界面的触发操作,向智能电视100发送触发操作关联的对游戏角色的控制数据。智能电视100控制游戏界面中的游戏角色执行与控制数据关联的游戏行为。When the mobile phone 200 receives the identification from the game interface of the smart TV 100, the cooperative control application of the mobile phone 200 decides to invoke the handle application to open the handle interface. In response to the user's trigger operation on the handle interface, the mobile phone 200 sends control data on the game character associated with the trigger operation to the smart TV 100 . The smart TV 100 controls the game character in the game interface to execute the game behavior associated with the control data.
或者,当手机200接收到来自智能电视100的游戏界面的标识时,手机200的协同控制应用决策调用姿态传感器采集手机200的姿态数据(即控制数据)。手机200向智能电视100发送姿态数据。智能电视100控制游戏界面中的游戏角色执行与姿态数据关联的游戏行为。另外,智能电视200的协同控制应用还可以基于上述同样的原理,决策生成调用手柄应用或姿态传感器的指令,并控制手机100调用手柄应用或姿态传感器得到控制数据,在此不再赘述。Or, when the mobile phone 200 receives the identification from the game interface of the smart TV 100 , the cooperative control application of the mobile phone 200 decides to call the posture sensor to collect the posture data (ie control data) of the mobile phone 200 . The mobile phone 200 sends attitude data to the smart TV 100 . The smart TV 100 controls the game character in the game interface to perform the game behavior associated with the gesture data. In addition, the cooperative control application of the smart TV 200 can also decide to generate an instruction to call the handle application or the attitude sensor based on the above-mentioned same principle, and control the mobile phone 100 to call the handle application or the attitude sensor to obtain control data, which will not be repeated here.
需要说明的是,上述的协同控制应用的载体可以是位于负一屏的可操作图标、应用程序的Activity、或者后台服务的接口等,在此不作限定。It should be noted that, the carrier of the cooperative control application mentioned above may be an operable icon located on a negative screen, an activity of an application program, or an interface of a background service, etc., which is not limited herein.
另外,上述的介绍本申请实施例提供的设备控制方法中,提到的触发操作可以包括:点击操作、长按操作、以及改变终端设备的姿态的操作等,在此不做限定。In addition, in the above-mentioned introduction to the device control method provided by the embodiment of the present application, the trigger operation mentioned may include: click operation, long press operation, and operation of changing the posture of the terminal device, etc., which are not limited here.
另外,上述实施例中,都是以第一终端处于第一状态,以第一终端显示第一界面为例说明的。另外,第一终端处于第一状态,还可以是播放音乐的状态,进而,第一终端借助第二终端的扬声器播放音乐。在此不作限定。In addition, in the above-mentioned embodiments, it is described that the first terminal is in the first state and the first terminal displays the first interface as an example. In addition, the first terminal is in the first state, and may also be in a state of playing music, and further, the first terminal plays music through the speaker of the second terminal. It is not limited here.
另外,上述实施例中,都是以第一终端执行第一功能为例说明的,在此处,第一终端借助第二终端的扬声器播放音乐场景中,是第二终端执行第一功能。即第二终端执行音乐播放的功能。In addition, in the above embodiments, the first terminal performs the first function as an example. Here, in the scene where the first terminal plays music through the speaker of the second terminal, it is the second terminal that performs the first function. That is, the second terminal performs the function of playing music.
请参阅图18,本申请实施例还提供一种设备控制装置1800,应用于第一终端。本申请实施例提供的设备控制装置1800包括:第一处理单元1802,用于控制第一终端处于第一状态,其中,第一终端在处于第一状态时,能够执行第一功能。第一通信单元1801,用于基于已建立的通信连接,向第二终端发送控制信息。其中,控制信息用于指示第二终端开启目标功能单元,以配合第一终端执行第一功能。Referring to FIG. 18 , the embodiment of the present application further provides a device control apparatus 1800, which is applied to a first terminal. The device control apparatus 1800 provided in the embodiment of the present application includes: a first processing unit 1802 configured to control the first terminal to be in the first state, where the first terminal can execute the first function when in the first state. The first communication unit 1801 is configured to send control information to the second terminal based on the established communication connection. Wherein, the control information is used to instruct the second terminal to activate the target function unit, so as to cooperate with the first terminal to execute the first function.
在一种可能的实施方式中,第一通信单元1801,还用于接收来自第二终端的目标数据。第一处理单元1802,还用于执行与目标数据关联的第一功能。In a possible implementation manner, the first communication unit 1801 is further configured to receive target data from the second terminal. The first processing unit 1802 is further configured to execute a first function associated with the target data.
在一种可能的实施方式中,目标功能单元为第二界面中的虚拟文本按键,目标数据为文本数据。第一处理单元1802,具体用于控制第一终端显示第一界面,其中,第一界面包括待输入文本的区域。第一处理单元1802,还具体用于控制第一终端在显示第一界面时,在第一界面的待输入文本的区域输入文本数据。In a possible implementation manner, the target functional unit is a virtual text button in the second interface, and the target data is text data. The first processing unit 1802 is specifically configured to control the first terminal to display a first interface, where the first interface includes an area where text is to be input. The first processing unit 1802 is further specifically configured to control the first terminal to input text data in an area where text is to be input on the first interface when the first interface is displayed.
在一种可能的实施方式中,目标数据为控制数据。第一处理单元1802,具体用于控制第一终端显示第一界面,其中,第一界面包括游戏角色。第一处理单元1802,还具体用于控制第一终端在显示第一界面时,控制第一界面中的游戏角色执行与控制数 据对应的游戏行为。In a possible implementation manner, the target data is control data. The first processing unit 1802 is specifically configured to control the first terminal to display a first interface, where the first interface includes game characters. The first processing unit 1802 is also specifically configured to control the first terminal to control the game character in the first interface to perform the game behavior corresponding to the control data when the first interface is displayed.
在一种可能的实施方式中,目标功能单元为第二界面中的虚拟控制键盘,其中,虚拟控制键盘包括用于控制游戏角色的游戏行为的虚拟按键。或者,控制数据为姿态数据,目标功能单元为第二终端的用于采集姿态数据的姿态传感器。In a possible implementation manner, the target functional unit is a virtual control keyboard in the second interface, where the virtual control keyboard includes virtual keys for controlling the game behavior of the game character. Alternatively, the control data is attitude data, and the target functional unit is an attitude sensor of the second terminal for collecting attitude data.
在一种可能的实施方式中,目标功能单元为视频采集模块,目标数据为视频采集模块采集的第二视频数据。第一处理单元1802,具体用于控制第一终端显示第一界面,其中,第一界面中包括来自第三终端的第一视频数据,第一处理单元1802,具体用于控制第一终端在显示第一界面时,接收来自第二终端的第二视频数据;向第三终端发送第二视频数据。In a possible implementation manner, the target functional unit is a video collection module, and the target data is the second video data collected by the video collection module. The first processing unit 1802 is specifically configured to control the first terminal to display the first interface, wherein the first interface includes the first video data from the third terminal, and the first processing unit 1802 is specifically configured to control the first terminal to display the first interface. In the first interface, receiving the second video data from the second terminal; sending the second video data to the third terminal.
请参阅图19,本申请实施例还提供一种设备控制装置1900,应用于第二终端。本申请实施例提供的设备控制装置1900包括:第二通信单元1901,用于基于已建立的通信连接,接收来自第一终端的控制信息。第二处理单元1902,用于响应于控制信息开启目标功能单元。第二处理单元1902,还用于基于目标功能单元,配合第一终端执行第一功能。Referring to FIG. 19 , the embodiment of the present application further provides a device control apparatus 1900, which is applied to a second terminal. The device control apparatus 1900 provided in the embodiment of the present application includes: a second communication unit 1901, configured to receive control information from a first terminal based on an established communication connection. The second processing unit 1902 is configured to enable the target function unit in response to the control information. The second processing unit 1902 is further configured to cooperate with the first terminal to execute the first function based on the target function unit.
在一种可能的实施方式中,第二处理单元1902,具体用于响应于对目标功能单元的触发操作,控制第二通信单元1901向第一终端发送目标数据;其中,目标数据用于指示第一终端执行与目标数据关联的第一功能。In a possible implementation manner, the second processing unit 1902 is specifically configured to control the second communication unit 1901 to send target data to the first terminal in response to a trigger operation on the target functional unit; A terminal performs a first function associated with target data.
在一种可能的实施方式中,目标功能单元为第二界面中的虚拟文本按键,目标数据为文本数据,文本数据用于指示第一终端在显示第一界面时,在第一界面的待输入文本的区域输入文本数据。In a possible implementation manner, the target functional unit is a virtual text button in the second interface, and the target data is text data, and the text data is used to indicate that when the first terminal displays the first interface, the key to be input in the first interface Text field to enter text data.
在一种可能的实施方式中,目标数据为控制数据,目标数据用于指示第一终端在显示第一界面时,控制第一界面中的游戏角色执行与控制数据对应的游戏行为。In a possible implementation manner, the target data is control data, and the target data is used to instruct the first terminal to control the game character in the first interface to perform the game behavior corresponding to the control data when the first interface is displayed.
在一种可能的实施方式中,目标功能单元为第二界面中的虚拟控制键盘,其中,虚拟控制键盘包括用于控制游戏角色的游戏行为的虚拟按键;或者,控制数据为姿态数据,目标功能单元为第二终端的用于采集姿态数据的姿态传感器。In a possible implementation, the target function unit is a virtual control keyboard in the second interface, wherein the virtual control keyboard includes virtual keys for controlling the game behavior of the game character; or, the control data is gesture data, and the target function The unit is an attitude sensor of the second terminal for collecting attitude data.
在一种可能的实施方式中,目标功能单元为视频采集模块,目标数据为视频采集模块采集的第二视频数据,第二视频数据用于指示第一终端在显示包括第一视频数据的第一界面时,向第三终端发送第二视频数据。In a possible implementation manner, the target functional unit is a video collection module, and the target data is second video data collected by the video collection module, and the second video data is used to instruct the first terminal to display the first video data including the first video data. interface, sending the second video data to the third terminal.
在一种可能的实施方式中,控制信息为用于指示第一终端处于第一状态的信息,第二处理单元1902,具体用于根据指示第一终端处于第一状态的信息,开启目标功能单元。或者,控制信息为用于开启目标功能单元的指令,第二处理单元1902,具体用于根据用于开启目标功能单元的指令,开启目标功能单元。In a possible implementation manner, the control information is information indicating that the first terminal is in the first state, and the second processing unit 1902 is specifically configured to enable the target functional unit according to the information indicating that the first terminal is in the first state . Alternatively, the control information is an instruction for enabling the target functional unit, and the second processing unit 1902 is specifically configured to enable the target functional unit according to the instruction for enabling the target functional unit.
示例性的,图20为本申请实施例提供的一种第一终端或第二终端的硬件结构示意图,如图20所示,该第一终端或第二终端包括处理器2001,通信线路2004以及至少一个通信接口(图20中示例性的以通信接口2003为例进行说明)。Exemplarily, FIG. 20 is a schematic diagram of a hardware structure of a first terminal or a second terminal provided in an embodiment of the present application. As shown in FIG. 20 , the first terminal or the second terminal includes a processor 2001, a communication line 2004 and At least one communication interface (the communication interface 2003 is used as an example in FIG. 20 for illustration).
处理器2001可以是一个通用中央处理器(central processing unit,CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。The processor 2001 can be a general-purpose central processing unit (central processing unit, CPU), a microprocessor, a specific application integrated circuit (application-specific integrated circuit, ASIC), or one or more for controlling the implementation of the application program program integrated circuit.
通信线路2004可包括在上述组件之间传送信息的电路。 Communication lines 2004 may include circuitry that communicates information between the components described above.
通信接口2003,使用任何收发器一类的装置,用于与其他设备或通信网络通信,如以太网,无线局域网(wireless local area networks,WLAN)等。The communication interface 2003 uses any device such as a transceiver for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (wireless local area networks, WLAN) and so on.
可能的,该第一终端或第二终端还可以包括存储器2002。Possibly, the first terminal or the second terminal may further include a memory 2002 .
存储器2002可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过通信线路2004与处理器相连接。存储器也可以和处理器集成在一起。The memory 2002 may be a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types that can store information and instructions It can also be an electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be programmed by a computer Any other medium accessed, but not limited to. The memory may exist independently and be connected to the processor through the communication line 2004 . Memory can also be integrated with the processor.
其中,存储器2002用于存储执行本申请方案的计算机执行指令,并由处理器2001来控制执行。处理器2001用于执行存储器2002中存储的计算机执行指令,从而实现本申请实施例所提供的第一终端或第二终端执行的设备控制方法。Wherein, the memory 2002 is used to store computer-executed instructions for implementing the solution of the present application, and the execution is controlled by the processor 2001 . The processor 2001 is configured to execute computer-executed instructions stored in the memory 2002, so as to implement the device control method performed by the first terminal or the second terminal provided in the embodiment of the present application.
可能的,本申请实施例中的计算机执行指令也可以称之为应用程序代码,本申请实施例对此不作具体限定。Possibly, the computer-executed instructions in the embodiment of the present application may also be referred to as application program code, which is not specifically limited in the embodiment of the present application.
在具体实现中,作为一种实施例,处理器2001可以包括一个或多个CPU,例如图20中的CPU0和CPU1。In a specific implementation, as an embodiment, the processor 2001 may include one or more CPUs, for example, CPU0 and CPU1 in FIG. 20 .
在具体实现中,作为一种实施例,第一终端或第二终端可以包括多个处理器,例如图20中的处理器2001和处理器2005。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In a specific implementation, as an example, the first terminal or the second terminal may include multiple processors, for example, processor 2001 and processor 2005 in FIG. 20 . Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
示例性的,图21为本申请实施例提供的一种芯片的结构示意图。芯片210包括一个或两个以上(包括两个)处理器2110和通信接口2130。Exemplarily, FIG. 21 is a schematic structural diagram of a chip provided by an embodiment of the present application. The chip 210 includes one or more than two (including two) processors 2110 and a communication interface 2130 .
在一些实施方式中,存储器2140存储了如下的元素:可执行模块或者数据结构,或者他们的子集,或者他们的扩展集。In some embodiments, the memory 2140 stores the following elements: executable modules or data structures, or subsets thereof, or extensions thereof.
本申请实施例中,存储器2140可以包括只读存储器和随机存取存储器,并向处理器2110提供指令和数据。存储器2140的一部分还可以包括非易失性随机存取存储器(non-volatile random access memory,NVRAM)。In this embodiment of the present application, the memory 2140 may include a read-only memory and a random access memory, and provides instructions and data to the processor 2110 . A part of the memory 2140 may also include a non-volatile random access memory (non-volatile random access memory, NVRAM).
本申请实施例中,存储器2140、通信接口2130以及存储器2140通过总线系统2120耦合在一起。其中,总线系统2120除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。为了便于描述,在图21中将各种总线都标为总线系统2120。In the embodiment of the present application, the memory 2140 , the communication interface 2130 and the memory 2140 are coupled together through the bus system 2120 . Wherein, the bus system 2120 may include not only a data bus, but also a power bus, a control bus, and a status signal bus. For ease of description, various buses are labeled as bus system 2120 in FIG. 21 .
上述本申请实施例描述的方法可以应用于处理器2110中,或者由处理器2110实现。处理器2110可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器2110中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器2110可以是通用处理器(例如,微处理器或常规处理器)、数字信号处理器(digital signal processing,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field-programmable gate array,FPGA) 或者其他可编程逻辑器件、分立门、晶体管逻辑器件或分立硬件组件,处理器2110可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。The methods described in the foregoing embodiments of the present application may be applied to the processor 2110 or implemented by the processor 2110 . The processor 2110 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method may be implemented by an integrated logic circuit of hardware in the processor 2110 or instructions in the form of software. The above-mentioned processor 2110 may be a general-purpose processor (for example, a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), an off-the-shelf programmable gate Array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates, transistor logic devices or discrete hardware components, the processor 2110 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application .
结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。其中,软件模块可以位于随机存储器、只读存储器、可编程只读存储器或带电可擦写可编程存储器(electrically erasable programmable read only memory,EEPROM)等本领域成熟的存储介质中。该存储介质位于存储器2140,处理器2110读取存储器2140中的信息,结合其硬件完成上述方法的步骤。The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. Wherein, the software module may be located in a mature storage medium in the field such as random access memory, read-only memory, programmable read-only memory, or electrically erasable programmable read only memory (EEPROM). The storage medium is located in the memory 2140, and the processor 2110 reads the information in the memory 2140, and completes the steps of the above method in combination with its hardware.
在上述实施例中,存储器存储的供处理器执行的指令可以以计算机程序产品的形式实现。其中,计算机程序产品可以是事先写入在存储器中,也可以是以软件形式下载并安装在存储器中。In the above embodiments, the instructions stored in the memory for execution by the processor may be implemented in the form of computer program products. Wherein, the computer program product may be written in the memory in advance, or may be downloaded and installed in the memory in the form of software.
计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包括一个或多个可用介质集成的服务器、数据中心等数据存储设备。例如,可用介质可以包括磁性介质(例如,软盘、硬盘或磁带)、光介质(例如,数字通用光盘(digital versatile disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, special purpose computer, computer network, or other programmable device. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL) or wireless (such as infrared, wireless, microwave, etc.) transmission to another website site, computer, server or data center. Computer readable storage medium can be Any available media capable of being stored by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. For example, available media may include magnetic media (e.g., floppy disks, hard disks, or tapes), optical media (e.g., A digital versatile disc (digital versatile disc, DVD)), or a semiconductor medium (for example, a solid state disk (solid state disk, SSD)), etc.
本申请实施例还提供了一种计算机可读存储介质。上述实施例中描述的第一终端或第二终端执行的方法可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。计算机可读介质可以包括计算机存储介质和通信介质,还可以包括任何可以将计算机程序从一个地方传送到另一个地方的介质。存储介质可以是可由计算机访问的任何目标介质。The embodiment of the present application also provides a computer-readable storage medium. The methods performed by the first terminal or the second terminal described in the foregoing embodiments may be implemented in whole or in part by software, hardware, firmware or any combination thereof. Computer-readable media may include computer storage media and communication media, and may include any medium that can transfer a computer program from one place to another. A storage media may be any target media that can be accessed by a computer.
作为一种可能的设计,计算机可读介质可以包括紧凑型光盘只读储存器(compact disc read-only memory,CD-ROM)、RAM、ROM、EEPROM或其它光盘存储器;计算机可读介质可以包括磁盘存储器或其它磁盘存储设备。而且,任何连接线也可以被适当地称为计算机可读介质。例如,如果使用同轴电缆,光纤电缆,双绞线,DSL或无线技术(如红外,无线电和微波)从网站,服务器或其它远程源传输软件,则同轴电缆,光纤电缆,双绞线,DSL或诸如红外,无线电和微波之类的无线技术包括在介质的定义中。如本文所使用的磁盘和光盘包括光盘(CD),激光盘,光盘,数字通用光盘(digital versatile disc,DVD),软盘和蓝光盘,其中磁盘通常以磁性方式再现数据,而光盘利用激光光学地再现数据。As a possible design, the computer-readable medium may include compact disc read-only memory (compact disc read-only memory, CD-ROM), RAM, ROM, EEPROM or other optical disc storage; the computer-readable medium may include a magnetic disk memory or other disk storage devices. Also, any connected cord is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave are included in the definition of medium. Disk and disc, as used herein, includes compact disc (CD), laser disc, compact disc, digital versatile disc (DVD), floppy disk and Blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Reproduce data.
上述的组合也应包括在计算机可读介质的范围内。以上,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因 此,本申请的保护范围应以权利要求的保护范围为准。Combinations of the above should also be included within the scope of computer-readable media. The above is only the specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the application, and should cover Within the protection scope of this application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims (25)

  1. 一种设备控制方法,其特征在于,应用于通信系统,所述通信系统包括第一终端和第二终端,所述方法包括:A device control method, characterized in that it is applied to a communication system, the communication system includes a first terminal and a second terminal, and the method includes:
    所述第一终端处于第一状态,其中,所述第一终端在处于所述第一状态时,能够执行第一功能;The first terminal is in a first state, wherein when the first terminal is in the first state, it can perform a first function;
    所述第一终端基于已建立的通信连接,向所述第二终端发送控制信息;The first terminal sends control information to the second terminal based on the established communication connection;
    所述第二终端响应于所述控制信息开启目标功能单元;enabling the target functional unit by the second terminal in response to the control information;
    所述第二终端基于所述目标功能单元,配合所述第一终端执行第一功能。The second terminal cooperates with the first terminal to execute the first function based on the target function unit.
  2. 根据权利要求1所述的方法,其特征在于,所述第二终端基于所述目标功能单元,配合所述第一终端执行所述第一功能,包括:The method according to claim 1, wherein the second terminal cooperates with the first terminal to execute the first function based on the target functional unit, comprising:
    所述第二终端响应于对所述目标功能单元的触发操作,向所述第一终端发送目标数据;The second terminal sends target data to the first terminal in response to a trigger operation on the target functional unit;
    所述第一终端执行与所述目标数据关联的所述第一功能。The first terminal executes the first function associated with the target data.
  3. 根据权利要求2所述的方法,其特征在于,所述目标功能单元为第二界面中的虚拟文本按键,所述目标数据为文本数据,The method according to claim 2, wherein the target functional unit is a virtual text button in the second interface, and the target data is text data,
    所述第一终端处于第一状态,包括:所述第一终端显示第一界面,其中,所述第一界面包括待输入文本的区域;The first terminal being in the first state includes: displaying a first interface by the first terminal, where the first interface includes an area where text is to be input;
    所述第一终端执行与所述目标数据关联的所述第一功能,包括:The first terminal executing the first function associated with the target data includes:
    所述第一终端在显示所述第一界面时,在所述第一界面的所述待输入文本的区域输入所述文本数据。When the first terminal displays the first interface, input the text data in the region where the text is to be input on the first interface.
  4. 根据权利要求2所述的方法,其特征在于,所述目标数据为控制数据,The method according to claim 2, wherein the target data is control data,
    所述第一终端处于第一状态,包括:所述第一终端显示第一界面,其中,所述第一界面包括游戏角色,The first terminal being in the first state includes: the first terminal displays a first interface, wherein the first interface includes a game character,
    所述第一终端执行与所述目标数据关联的所述第一功能,包括:The first terminal executing the first function associated with the target data includes:
    所述第一终端在显示所述第一界面时,控制所述第一界面中的所述游戏角色执行与所述控制数据对应的游戏行为。When the first terminal displays the first interface, it controls the game character in the first interface to execute the game behavior corresponding to the control data.
  5. 根据权利要求4所述的方法,其特征在于,The method according to claim 4, characterized in that,
    所述目标功能单元为第二界面中的虚拟控制键盘,其中,所述虚拟控制键盘包括用于控制所述游戏角色的所述游戏行为的虚拟按键;The target function unit is a virtual control keyboard in the second interface, wherein the virtual control keyboard includes virtual keys for controlling the game behavior of the game character;
    或者,所述控制数据为姿态数据,所述目标功能单元为所述第二终端的用于采集所述姿态数据的姿态传感器。Alternatively, the control data is attitude data, and the target functional unit is an attitude sensor of the second terminal for collecting the attitude data.
  6. 根据权利要求5所述的方法,其特征在于,所述目标功能单元为所述第二界面中的虚拟控制键盘,在所述第一终端向所述第二终端发送控制信息之后,所述方法还包括:The method according to claim 5, wherein the target functional unit is a virtual control keyboard in the second interface, and after the first terminal sends control information to the second terminal, the method Also includes:
    所述第二终端接收来自所述第一终端的所述第一界面的第一界面数据;The second terminal receives first interface data from the first interface of the first terminal;
    所述第二终端在所述第二界面中显示第二界面数据,其中,所述第二界面数据中包括与所述第一界面数据对应的显示内容。The second terminal displays second interface data on the second interface, where the second interface data includes display content corresponding to the first interface data.
  7. 根据权利要求2所述的方法,其特征在于,所述目标功能单元为视频采集模块,所述目标数据为所述视频采集模块采集的第二视频数据,The method according to claim 2, wherein the target functional unit is a video acquisition module, and the target data is the second video data collected by the video acquisition module,
    所述第一终端处于第一状态,包括:所述第一终端显示第一界面,其中,所述第一界面中包括来自第三终端的第一视频数据,The first terminal being in the first state includes: the first terminal displays a first interface, wherein the first interface includes first video data from a third terminal,
    所述第一终端执行与所述目标数据关联的所述第一功能,包括:所述第一终端在显示所述第一界面时,接收来自所述第二终端的所述第二视频数据;所述第一终端向所述第三终端发送所述第二视频数据。The first terminal executing the first function associated with the target data includes: when the first terminal displays the first interface, receiving the second video data from the second terminal; The first terminal sends the second video data to the third terminal.
  8. 根据权利要求7所述的方法,其特征在于,在所述第二终端响应于所述控制信息开启所述目标功能单元之后,所述方法还包括:The method according to claim 7, wherein after the second terminal enables the target functional unit in response to the control information, the method further comprises:
    所述第二终端接收来自所述第一终端的第一视频数据;The second terminal receives first video data from the first terminal;
    所述第二终端显示第二界面,其中,所述第二界面包括所述第一视频数据。The second terminal displays a second interface, where the second interface includes the first video data.
  9. 根据权利要求1所述的方法,其特征在于,所述通信连接的建立方式,包括:The method according to claim 1, wherein the method for establishing the communication connection comprises:
    所述第一终端在处于第一状态时,进行设备发现;所述第一终端在发现所述第二终端的情况下,与所述第二终端建立通信连接;When the first terminal is in the first state, performing device discovery; when the first terminal discovers the second terminal, establishes a communication connection with the second terminal;
    或者,所述第二终端与目标电子设备的距离小于距离阈值的情况下,获取所述目标电子设备中存储的所述第一终端的设备标识;所述第二终端根据所述设备标识,与所述第一终端建立通信连接;Or, when the distance between the second terminal and the target electronic device is less than a distance threshold, acquire the device identifier of the first terminal stored in the target electronic device; The first terminal establishes a communication connection;
    或者,所述第一终端接收用户输入的语音信息;其中,所述语音信息用于指示与所述第二终端连接;所述第一终端进行设备发现,所述第一终端在发现所述第二终端的情况下,与所述第二终端建立通信连接;Alternatively, the first terminal receives voice information input by the user; wherein, the voice information is used to indicate connection with the second terminal; the first terminal performs device discovery, and the first terminal discovers the second terminal In the case of two terminals, establishing a communication connection with the second terminal;
    或者,所述第二终端发射UWB信号,所述UWB信号携带有所述第二终端的设备标识,所述第一终端接收来自所述第二终端的UWB信号,所述第一终端根据所述UWB信号中的所述设备标识,与所述第二终端建立通信连接。Alternatively, the second terminal transmits a UWB signal, the UWB signal carries the device identifier of the second terminal, the first terminal receives the UWB signal from the second terminal, and the first terminal according to the The device identifier in the UWB signal establishes a communication connection with the second terminal.
  10. 根据权利要求1所述的方法,其特征在于,在所述第一终端基于已建立的通信连接,向所述第二终端发送控制信息之前,所述方法还包括:The method according to claim 1, wherein before the first terminal sends control information to the second terminal based on the established communication connection, the method further comprises:
    所述第二终端显示第五界面,所述第五界面包括用于控制处于/退出第三预设模式的第一控件;The second terminal displays a fifth interface, and the fifth interface includes a first control for controlling entering/exiting the third preset mode;
    所述第二终端响应于对所述第一控件的触发操作,所述第二终端处于所述第三预设模式。The second terminal responds to a trigger operation on the first control, and the second terminal is in the third preset mode.
  11. 根据权利要求1-10任一所述的方法,其特征在于,The method according to any one of claims 1-10, characterized in that,
    所述控制信息为用于指示所述第一终端处于第一状态的信息,所述第二终端响应于所述控制信息开启所述目标功能单元,包括:所述第二终端根据所述指示所述第一终端处于第一状态的信息,开启所述目标功能单元;The control information is information indicating that the first terminal is in the first state, and the second terminal starts the target function unit in response to the control information, including: the second terminal according to the indication information that the first terminal is in the first state, and enable the target functional unit;
    或者,所述控制信息为用于开启所述目标功能单元的指令,所述第二终端响应于所述控制信息开启所述目标功能单元,包括:所述第二终端根据所述用于开启所述目标功能单元的指令,开启所述目标功能单元。Alternatively, the control information is an instruction for enabling the target functional unit, and the second terminal activates the target functional unit in response to the control information, including: the second terminal activates the target functional unit according to the instruction for enabling the target functional unit an instruction of the target functional unit to start the target functional unit.
  12. 一种设备控制装置,其特征在于,应用于第一终端,所述装置包括:A device control device, characterized in that it is applied to a first terminal, and the device includes:
    第一处理单元,用于控制所述第一终端处于第一状态,其中,所述第一终端在处于所述第一状态时,能够执行第一功能;A first processing unit, configured to control the first terminal to be in a first state, where the first terminal is capable of performing a first function when in the first state;
    第一通信单元,用于基于已建立的通信连接,向第二终端发送控制信息;The first communication unit is configured to send control information to the second terminal based on the established communication connection;
    其中,所述控制信息用于指示所述第二终端开启目标功能单元,以配合所述第一 终端执行第一功能。Wherein, the control information is used to instruct the second terminal to activate the target function unit, so as to cooperate with the first terminal to perform the first function.
  13. 根据权利要求12所述的装置,其特征在于,所述第一通信单元,还用于接收来自所述第二终端的目标数据;The device according to claim 12, wherein the first communication unit is further configured to receive target data from the second terminal;
    所述第一处理单元,还用于执行与所述目标数据关联的所述第一功能。The first processing unit is further configured to execute the first function associated with the target data.
  14. 根据权利要求13所述的装置,其特征在于,所述目标功能单元为第二界面中的虚拟文本按键,所述目标数据为文本数据,The device according to claim 13, wherein the target functional unit is a virtual text button in the second interface, and the target data is text data,
    所述第一处理单元,具体用于控制所述第一终端显示第一界面,其中,所述第一界面包括待输入文本的区域;The first processing unit is specifically configured to control the first terminal to display a first interface, where the first interface includes an area where text is to be input;
    所述第一处理单元,还具体用于控制所述第一终端在显示所述第一界面时,在所述第一界面的所述待输入文本的区域输入所述文本数据。The first processing unit is further specifically configured to control the first terminal to input the text data in the area where text is to be input on the first interface when the first interface is displayed.
  15. 根据权利要求13所述的装置,其特征在于,所述目标数据为控制数据,The device according to claim 13, wherein the target data is control data,
    所述第一处理单元,具体用于控制所述第一终端显示第一界面,其中,所述第一界面包括游戏角色,The first processing unit is specifically configured to control the first terminal to display a first interface, where the first interface includes game characters,
    所述第一处理单元,还具体用于控制所述第一终端在显示所述第一界面时,控制所述第一界面中的所述游戏角色执行与所述控制数据对应的游戏行为。The first processing unit is further specifically configured to control the first terminal to control the game character in the first interface to perform the game behavior corresponding to the control data when the first interface is displayed.
  16. 根据权利要求15所述的装置,其特征在于,The device according to claim 15, characterized in that,
    所述目标功能单元为第二界面中的虚拟控制键盘,其中,所述虚拟控制键盘包括用于控制所述游戏角色的所述游戏行为的虚拟按键;The target function unit is a virtual control keyboard in the second interface, wherein the virtual control keyboard includes virtual keys for controlling the game behavior of the game character;
    或者,所述控制数据为姿态数据,所述目标功能单元为所述第二终端的用于采集所述姿态数据的姿态传感器。Alternatively, the control data is attitude data, and the target functional unit is an attitude sensor of the second terminal for collecting the attitude data.
  17. 根据权利要求13所述的装置,其特征在于,所述目标功能单元为视频采集模块,所述目标数据为所述视频采集模块采集的第二视频数据,The device according to claim 13, wherein the target functional unit is a video acquisition module, and the target data is the second video data collected by the video acquisition module,
    所述第一处理单元,具体用于控制所述第一终端显示第一界面,其中,所述第一界面中包括来自第三终端的第一视频数据,The first processing unit is specifically configured to control the first terminal to display a first interface, where the first interface includes first video data from a third terminal,
    所述第一处理单元,具体用于控制所述第一终端在显示所述第一界面时,接收来自所述第二终端的所述第二视频数据;向所述第三终端发送所述第二视频数据。The first processing unit is specifically configured to control the first terminal to receive the second video data from the second terminal when displaying the first interface; to send the second video data to the third terminal. Two video data.
  18. 一种设备控制装置,其特征在于,应用于第二终端,所述装置包括:A device control device, characterized in that it is applied to a second terminal, and the device includes:
    第二通信单元,用于基于已建立的通信连接,接收来自第一终端的控制信息;a second communication unit, configured to receive control information from the first terminal based on the established communication connection;
    第二处理单元,用于响应于所述控制信息开启目标功能单元;a second processing unit, configured to enable the target functional unit in response to the control information;
    所述第二处理单元,还用于基于所述目标功能单元,配合所述第一终端执行第一功能。The second processing unit is further configured to cooperate with the first terminal to execute the first function based on the target function unit.
  19. 根据权利要求18所述的装置,其特征在于,所述第二处理单元,具体用于响应于对所述目标功能单元的触发操作,控制所述第二通信单元向所述第一终端发送目标数据;其中,所述目标数据用于指示所述第一终端执行与所述目标数据关联的所述第一功能。The device according to claim 18, wherein the second processing unit is specifically configured to control the second communication unit to send a target message to the first terminal in response to a trigger operation on the target function unit. data; wherein, the target data is used to instruct the first terminal to execute the first function associated with the target data.
  20. 根据权利要求19所述的装置,其特征在于,所述目标功能单元为第二界面中的虚拟文本按键,所述目标数据为文本数据,所述文本数据用于指示所述第一终端在显示第一界面时,在所述第一界面的待输入文本的区域输入所述文本数据。The device according to claim 19, wherein the target functional unit is a virtual text button in the second interface, the target data is text data, and the text data is used to indicate that the first terminal is displaying In the first interface, the text data is input in an area where text is to be input on the first interface.
  21. 根据权利要求19所述的装置,其特征在于,所述目标数据为控制数据,所述目 标数据用于指示所述第一终端在显示第一界面时,控制所述第一界面中的游戏角色执行与所述控制数据对应的游戏行为。The device according to claim 19, wherein the target data is control data, and the target data is used to instruct the first terminal to control the game character in the first interface when the first interface is displayed Execute game behaviors corresponding to the control data.
  22. 根据权利要求21所述的装置,其特征在于,The device according to claim 21, characterized in that,
    所述目标功能单元为第二界面中的虚拟控制键盘,其中,所述虚拟控制键盘包括用于控制所述游戏角色的所述游戏行为的虚拟按键;The target function unit is a virtual control keyboard in the second interface, wherein the virtual control keyboard includes virtual keys for controlling the game behavior of the game character;
    或者,所述控制数据为姿态数据,所述目标功能单元为所述第二终端的用于采集所述姿态数据的姿态传感器。Alternatively, the control data is attitude data, and the target functional unit is an attitude sensor of the second terminal for collecting the attitude data.
  23. 根据权利要求19所述的装置,其特征在于,所述目标功能单元为视频采集模块,所述目标数据为所述视频采集模块采集的第二视频数据,所述第二视频数据用于指示所述第一终端在显示包括第一视频数据的第一界面时,向第三终端发送所述第二视频数据。The device according to claim 19, wherein the target functional unit is a video capture module, the target data is the second video data collected by the video capture module, and the second video data is used to indicate the The first terminal sends the second video data to the third terminal when displaying the first interface including the first video data.
  24. 根据权利要求18-23任一所述的装置,其特征在于,The device according to any one of claims 18-23, characterized in that,
    所述控制信息为用于指示所述第一终端处于第一状态的信息,所述第二处理单元,具体用于根据所述指示所述第一终端处于第一状态的信息,开启所述目标功能单元;The control information is information indicating that the first terminal is in the first state, and the second processing unit is specifically configured to activate the target according to the information indicating that the first terminal is in the first state. functional unit;
    或者,所述控制信息为用于开启所述目标功能单元的指令,所述第二处理单元,具体用于根据所述用于开启所述目标功能单元的指令,开启所述目标功能单元。Alternatively, the control information is an instruction for enabling the target functional unit, and the second processing unit is specifically configured to enable the target functional unit according to the instruction for enabling the target functional unit.
  25. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时,使得计算机执行如权利要求1至11任一项所述的第一终端或第二终端执行的方法。A computer-readable storage medium, the computer-readable storage medium stores a computer program, wherein, when the computer program is executed by a processor, the computer executes the first method according to any one of claims 1 to 11. A method performed by a terminal or a second terminal.
PCT/CN2022/118543 2021-09-16 2022-09-13 Device control method and apparatus WO2023040848A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111089487.1A CN115814403A (en) 2021-09-16 2021-09-16 Equipment control method and device
CN202111089487.1 2021-09-16

Publications (2)

Publication Number Publication Date
WO2023040848A1 WO2023040848A1 (en) 2023-03-23
WO2023040848A9 true WO2023040848A9 (en) 2023-05-25

Family

ID=85515170

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/118543 WO2023040848A1 (en) 2021-09-16 2022-09-13 Device control method and apparatus

Country Status (2)

Country Link
CN (1) CN115814403A (en)
WO (1) WO2023040848A1 (en)

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7634263B2 (en) * 2006-01-30 2009-12-15 Apple Inc. Remote control of electronic devices
CN103634419B (en) * 2013-11-15 2016-08-31 北京洋浦伟业科技发展有限公司 The long-range control method of terminal and terminal
CN103634645A (en) * 2013-12-10 2014-03-12 青岛海尔软件有限公司 Method for controlling smart television by using mobile phone
CN104104992A (en) * 2014-07-08 2014-10-15 深圳市同洲电子股份有限公司 Multi-screen interaction method, device and system
CN105635625B (en) * 2014-10-31 2019-12-20 腾讯科技(深圳)有限公司 Video call method and device
CN104486684A (en) * 2014-12-18 2015-04-01 百度在线网络技术(北京)有限公司 Input method and device for electronic equipment
CN104679239B (en) * 2015-01-23 2018-05-25 深圳市金立通信设备有限公司 A kind of terminal input method
CN106371935A (en) * 2016-08-26 2017-02-01 上海浮罗创业投资有限公司 Game control interface acquisition method and apparatus
CN107750003A (en) * 2017-10-11 2018-03-02 广州指观网络科技有限公司 A kind of long-range touching input system and method
CN113630574B (en) * 2018-05-14 2023-09-29 聚好看科技股份有限公司 Video call method and terminal equipment
CN110138937B (en) * 2019-05-07 2021-06-15 华为技术有限公司 Call method, device and system
CN110337020A (en) * 2019-06-26 2019-10-15 华为技术有限公司 A kind of control method and relevant apparatus showing equipment
CN114489876A (en) * 2020-11-09 2022-05-13 华为技术有限公司 Text input method, electronic equipment and system
CN113032766B (en) * 2021-05-26 2021-09-24 荣耀终端有限公司 Application authority management method and device

Also Published As

Publication number Publication date
CN115814403A (en) 2023-03-21
WO2023040848A1 (en) 2023-03-23

Similar Documents

Publication Publication Date Title
WO2021013158A1 (en) Display method and related apparatus
US20220163932A1 (en) Device control page display method, related apparatus, and system
EP4075249A1 (en) Interaction method for cross-device task processing, and electronic device and storage medium
US11864248B2 (en) Application function implementation method and electronic device
EP4109891A1 (en) Device interaction method and electronic device
WO2021147406A1 (en) Audio output method and terminal device
CN110493626B (en) Video data processing method and device
WO2023010940A1 (en) Split-screen display method and apparatus
CN112527174B (en) Information processing method and electronic equipment
CN112130788A (en) Content sharing method and device
CN113986092A (en) Message display method and device
WO2022048453A1 (en) Unlocking method and electronic device
CN113703849B (en) Screen-casting application opening method and device
CN114356195B (en) File transmission method and related equipment
CN115242994B (en) Video call system, method and device
WO2023040848A9 (en) Device control method and apparatus
EP4202666A1 (en) Application access method and related apparatus
WO2022143310A1 (en) Double-channel screen projection method and electronic device
US20230362782A1 (en) Data Sharing Method, Electronic Device, and System
WO2024109443A1 (en) Device connection method, device and system
WO2023005348A1 (en) Split-screen recommendation method and apparatus
WO2021104000A1 (en) Screen display method and electronic device
WO2024078306A1 (en) Banner notification message display method and electronic device
WO2024104095A1 (en) Data transmission method, apparatus and system
CN117729425A (en) Camera distribution method and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22869217

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE