WO2022095820A1 - Text input method, electronic device, and system - Google Patents

Text input method, electronic device, and system Download PDF

Info

Publication number
WO2022095820A1
WO2022095820A1 PCT/CN2021/127888 CN2021127888W WO2022095820A1 WO 2022095820 A1 WO2022095820 A1 WO 2022095820A1 CN 2021127888 W CN2021127888 W CN 2021127888W WO 2022095820 A1 WO2022095820 A1 WO 2022095820A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
user
input
text
mobile phone
Prior art date
Application number
PCT/CN2021/127888
Other languages
French (fr)
Chinese (zh)
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 WO2022095820A1 publication Critical patent/WO2022095820A1/en

Links

Images

Classifications

    • 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
    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72415User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72436User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. SMS or e-mail
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/4222Remote control device emulator integrated into a non-television apparatus, e.g. a PDA, media center or smart toy

Definitions

  • the present application relates to the field of terminals, and more particularly, to a method, electronic device and system for text input.
  • the input operation of smart large-screen devices is mainly controlled by the handheld remote control equipped with the smart large screen.
  • the remote control due to the limitation of the size of the handheld remote control, the remote control only has channel switching, volume adjustment, As well as a few physical buttons such as up, down, left, and right direction controls, it is extremely inconvenient to input text content such as text, account numbers, and passwords.
  • the present application provides a method, electronic device and system for text input, which help to improve the convenience of a user when entering text on the device, and can also reduce interference to the user.
  • a system in a first aspect, includes a first electronic device and a second electronic device, the first electronic device is configured to display a text input interface through a display screen, the text input interface includes a text input box; the first electronic device an electronic device, which is further configured to send a first message in response to displaying the text input interface, where the first message is used to indicate that the first electronic device needs to perform text input; the second electronic device is configured to detect the user's preset set to operate and monitor the first message; the second electronic device is also used to detect the content input by the user in response to detecting the user's preset operation and receiving the first message; the second electronic device is also used to In response to detecting an operation of the user inputting the first content, the first content is sent to the first electronic device; the first electronic device is further configured to display text content corresponding to the first content in the text input box.
  • the user when the first electronic device needs to input text, the user can pick up any device around him (for example, a mobile phone, a Pad) for input, which helps to improve the convenience of the user when inputting text. to enhance the user experience.
  • the second electronic device before the user performs a preset operation on the second electronic device and receives the first message, the second electronic device will not display any prompt information that may interfere with the user, thereby avoiding interference to the user, thereby helping to improve user experience.
  • the first electronic device is specifically configured to: in response to displaying the text input interface, send a plurality of first messages within a preset time period.
  • the second electronic device is specifically configured to: start monitoring the first message in response to detecting the user's preset operation; and detect the content input by the user in response to receiving the first message.
  • the second electronic device starts to monitor the first message after detecting the user's preset operation, so as to avoid interference to the user caused by the device not detecting the preset operation prompting the user for input.
  • the second electronic device is specifically configured to: in response to receiving the first message, detect a user's preset operation; in response to detecting the user's preset operation, detect content input by the user.
  • the second electronic device may be in a state of monitoring the first message all the time, and when the second electronic device receives the first message, it starts to detect the user's preset operation, which can prevent other devices from receiving the first message without
  • the electronic device that detects the preset operation prompts the user for input and causes interference to the user.
  • the second electronic device is specifically configured to: in response to receiving the first message, detect a user's preset operation; in response to detecting the user's preset operation and receiving the first message and When it is detected that the time interval between the preset operations of the user is less than the preset time interval, the content input by the user is detected.
  • other electronic devices may not detect the user's operation for a period of time after receiving the first message, and the user may not use other electronic devices for input. Then, when the other electronic devices detect the preset operation of the user, the other electronic devices may ignore the first message, or the other electronic devices may not prompt the user for input.
  • the second electronic device is specifically configured to: in response to detecting a preset operation of the user and receiving the first message, and the first electronic device is at a preset angle of the second electronic device Within the range (for example, the device facing the second electronic device is the first electronic device), the content input by the user is detected.
  • the second electronic device is specifically configured to: in response to detecting the user's preset operation and receiving the first message, display an input method; The text content entered by the input method.
  • the second electronic device when the second electronic device detects the user's preset operation and receives the first message, it can display the input method, which helps to improve the convenience of the user when entering text, thereby improving the user's experience. At the same time, before the user performs a preset operation on the second electronic device and receives the first message, the second electronic device will not display any prompt information that may interfere with the user, thereby avoiding interference to the user, thereby helping to improve user experience.
  • the second electronic device is specifically configured to: in response to detecting the user's preset operation and receiving the first message, detect the voice content input by the user; After detecting the operation of the user inputting the first voice content, send the first voice content to the first electronic device; wherein, the first electronic device is specifically used to: determine the text content corresponding to the first voice content; The text content is displayed in the text input box.
  • the second electronic device when the second electronic device detects the user's preset operation and receives the first message, it can monitor the voice content input by the user, which helps to improve the convenience of the user when entering text. Thereby improving the user experience.
  • the second electronic device before the user performs a preset operation on the second electronic device and receives the first message, the second electronic device will not display any prompt information that may interfere with the user, thereby avoiding interference to the user, thereby helping to improve user experience.
  • the second electronic device is specifically configured to: in response to detecting the user's preset operation and receiving the first message, prompt the user to select text input or voice input; when it is detected that the user selects text
  • the input method is displayed; when an operation of the user selecting voice input is detected, the voice content input by the user is detected.
  • the second electronic device is further configured to: before detecting the content input by the user, display first prompt information, where the first prompt information is used to prompt the first prompt information
  • the second electronic device is a device capable of inputting to the first electronic device.
  • the second electronic device when the second electronic device detects the preset operation of the user and receives the first message, the second electronic device can prompt the user to input text through a reminder box, which helps the user to clarify that the second electronic device can be used as an input device
  • the first electronic device is further configured to: display second prompt information through the display screen before displaying the text content in the text input box, the second The prompt information is used to prompt the user to input to the first electronic device through the second electronic device.
  • the first electronic device may prompt the user to input through the second electronic device through the display screen, which helps the user to clarify that the second electronic device can be used as the input device .
  • the second electronic device is specifically configured to: start monitoring the first message when an operation of starting the first application program by the user is detected.
  • the first application is a remote control application.
  • the first electronic device is a smart TV.
  • a second aspect provides a text input method, which is applied to an electronic device, wherein the method includes: the electronic device detects a user's preset operation and monitors a first message, where the first message is used to indicate Another electronic device needs to perform text input; in response to detecting the preset operation of the user and receiving the first message, the electronic device detects the content input by the user; in response to detecting the operation of the user inputting the first content, the electronic device The device sends the first content to the other electronic device.
  • the electronic device in response to detecting the preset operation of the user and receiving the first message, detects the content input by the user, including: in response to detecting the preset operation of the user, starting to monitor the first message; in response to receiving the first message, detecting the content input by the user.
  • the electronic device detecting the content input by the user in response to detecting the preset operation of the user and receiving the first message, includes: in response to receiving the first message, detecting the user's Preset operation; in response to detecting the user's preset operation, the content input by the user is detected.
  • the electronic device detecting the content input by the user in response to detecting the preset operation of the user and receiving the first message, includes: in response to receiving the first message, detecting the user's Preset operation; in response to detecting the user's preset operation and the time interval between receiving the first message and detecting the user's preset operation is less than the preset time interval, detecting the content input by the user.
  • the electronic device in response to detecting the preset operation of the user and receiving the first message, detects the content input by the user, including: in response to detecting the preset operation of the user and receiving the first message The first message, and the first electronic device is within a preset angle range of the second electronic device (for example, the device facing the second electronic device is the first electronic device) to detect the content input by the user.
  • the electronic device in response to detecting the user's and preset operation and receiving the first message, detects the user's input, including: in response to detecting the user's input the preset operation of the device and receiving the first message, the electronic device displays the input method; the electronic device detects the text content input by the user through the input method.
  • the electronic device in response to detecting the user's and preset operation and receiving the first message, detects the user's input, including: in response to detecting the user's input and the preset operation and receiving the first message, the electronic device detects the voice content input by the user.
  • the electronic device in response to detecting the user's preset operation and receiving the first message, detects the user's input, including: in response to detecting the user's preset operation and receiving the user's input
  • the first message prompts the user to select text input or voice input; when an operation of selecting text input by the user is detected, the input method is displayed; when an operation of selecting voice input by the user is detected, the voice content input by the user is detected.
  • the method before the electronic device detects the content input by the user, the method further includes: the electronic device displays prompt information, where the prompt information is used to prompt the user that the electronic device is capable of A device for input to the other electronic device.
  • the electronic device detecting a preset operation of the user includes: the electronic device detecting an operation of the user starting the first application program.
  • the first application is a remote control application.
  • the other electronic device is a smart TV.
  • a text input device comprising: a first detection unit for detecting a user's preset operation; a receiving unit for monitoring a first message, where the first message is used to indicate another The electronic device needs to perform text input; the second detection unit is used to detect the content input by the user in response to the first detection unit detecting the preset operation of the user and the receiving unit receiving the first message; the sending unit is used to respond After the second detection unit detects an operation of the user inputting the first content, the first content is sent to the other electronic device.
  • an electronic device comprising: one or more processors; a memory; and one or more computer programs. Wherein, one or more computer programs are stored in the memory, the one or more computer programs comprising instructions. When the instruction is executed by the electronic device, the electronic device is caused to perform the method of text input in any possible implementation of the above-mentioned second aspect.
  • a computer program product comprising instructions, when the computer program product is run on a first electronic device, the electronic device is made to perform the text input method of the second aspect above.
  • a computer-readable storage medium comprising instructions that, when the instructions are executed on an electronic device, cause the electronic device to perform the text input method described in the second aspect above.
  • a chip for executing an instruction, and when the chip runs, the chip executes the text input method described in the second aspect above.
  • FIG. 1 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
  • FIG. 2 is a block diagram of a software structure provided by an embodiment of the present application.
  • FIG. 3 is a set of graphical user interfaces provided by an embodiment of the present application.
  • FIG. 4 is another set of graphical user interfaces provided by an embodiment of the present application.
  • FIG. 5 is another set of graphical user interfaces provided by the embodiments of the present application.
  • FIG. 6 is another set of graphical user interfaces provided by an embodiment of the present application.
  • FIG. 7 is another set of graphical user interfaces provided by the embodiments of the present application.
  • FIG. 8 is a system architecture diagram provided in an embodiment of the present application.
  • FIG. 9 is a schematic flowchart of a method for text input provided by an embodiment of the present application.
  • FIG. 10 is a schematic block diagram of an apparatus for text input provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • first and second are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implicitly indicating the number of indicated technical features.
  • a feature defined as “first” or “second” may expressly or implicitly include one or more of that feature.
  • plural means two or more.
  • the methods provided in the embodiments of the present application can be applied to mobile phones, tablet computers, wearable devices, in-vehicle devices, augmented reality (AR)/virtual reality (VR) devices, notebook computers, ultra-mobile personal computers (ultra mobile personal computers) -mobile personal computer, UMPC), netbook, personal digital assistant (personal digital assistant, PDA) and other electronic devices, the embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
  • AR augmented reality
  • VR virtual reality
  • notebook computers notebook computers
  • netbook personal digital assistant
  • PDA personal digital assistant
  • FIG. 1 shows a schematic structural diagram of an electronic device 100 .
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
  • SIM Subscriber identification module
  • 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, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • graphics processor graphics processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate operation control signals according to the instruction opcode and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may contain multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate with each other through the I2C bus interface, so as to realize the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • the processor 110 may contain multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is typically used to connect the processor 110 with the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
  • the processor 110 communicates with the camera 193 through a CSI interface, so as to realize the photographing function of the electronic device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the electronic device 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
  • the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones.
  • the interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140 and supplies power to the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 194 is used to display images, videos, and the like.
  • Display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the electronic device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
  • the electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy and so on.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos of various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG Moving Picture Experts Group
  • MPEG2 moving picture experts group
  • MPEG3 MPEG4
  • MPEG4 Moving Picture Experts Group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100 .
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing the instructions stored in the internal memory 121 .
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 100 and the like.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be answered by placing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the earphone jack 170D is used to connect wired earphones.
  • the earphone interface 170D may be the USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • the pressure sensor 180A may be provided on the display screen 194 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the motion attitude of the electronic device 100 .
  • the angular velocity of electronic device 100 about three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the angle at which the electronic device 100 shakes, calculates the distance that the lens module needs to compensate for according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse motion to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the electronic device 100 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 100 emits infrared light to the outside through the light emitting diode.
  • Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking pictures with fingerprints, answering incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect the temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by the low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may 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 touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the location where the display screen 194 is located.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal.
  • the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
  • the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
  • the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
  • Motor 191 can generate vibrating cues.
  • the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be contacted and separated from the electronic device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to realize functions such as call and data communication.
  • the electronic device 100 employs an eSIM, ie: an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiments of the present application take an Android system with a layered architecture as an example to exemplarily describe the software structure of the electronic device 100 .
  • FIG. 2 is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and so on.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include window managers, content providers, view systems, telephony managers, resource managers, notification managers, and the like.
  • 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, take screenshots, etc.
  • Content providers are used to store and retrieve data and make these data accessible to applications.
  • the data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
  • a display interface can consist of one or more views.
  • the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide the communication function of the electronic device 100 .
  • the management of call status including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
  • the notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device vibrates, and the indicator light flashes.
  • Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
  • the core library consists of two parts: one is the function functions that the java language needs to call, and the other 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 layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
  • a system library can include multiple functional modules. For example: surface manager (surface manager), media library (media library), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • surface manager surface manager
  • media library media library
  • 3D graphics processing library eg: OpenGL ES
  • 2D graphics engine eg: SGL
  • the Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
  • FIG. 3 is a set of graphical user interfaces (graphical user interface, GUI) provided by the embodiments of the present application.
  • the user is using the TV remote control to search for movies
  • the movie search display interface is displayed on the smart TV
  • the cursor of the smart TV is located in the text input box 301 at this time.
  • a broadcast message can be sent to surrounding devices, and the broadcast message can be used to indicate that the smart TV needs to perform text input.
  • the smart TV can also send the broadcast message to surrounding devices when it detects that the user moves the cursor to a certain key (eg, "ABC" key) in the input method displayed by the smart TV.
  • a certain key eg, "ABC” key
  • the movie search display interface displayed by the smart TV as shown in (a) of FIG. 3 can also be referred to as a text input interface.
  • the text input interface in this embodiment of the present application may include a text input box, or the text input interface may include a text input box and an input method.
  • the broadcast message may further carry a communication address of the smart TV (for example, an internet protocol (Internet protocol, IP) address, a port number, or a Bluetooth address, etc.).
  • a communication address of the smart TV for example, an internet protocol (Internet protocol, IP) address, a port number, or a Bluetooth address, etc.
  • a reminder box 302 appears on the mobile phone, and the user may choose not to use the TV remote control for text input, but to select the mobile phone for text input.
  • the prompt box 302 may prompt the user "it is detected that the smart TV needs to perform text input, whether to open the remote control application for input".
  • the GUI shown in (c) of FIG. 3 can be displayed.
  • the mobile phone when the mobile phone detects that the user clicks on the control 303, the mobile phone can establish a connection with the smart TV through the communication address carried in the broadcast message.
  • the mobile phone can also send device information of the mobile phone to the smart TV (for example, the device name "P40" of the mobile phone and the user name "Tom” of the mobile phone).
  • the smart TV can display prompt information on the display screen of the smart TV, for example, the prompt information is "Please enter text on Tom's P40".
  • the GUI is the display interface of the remote control application on the mobile phone.
  • the display interface includes a number of functional controls, such as on/off, mute, input, menu, extended keys, change channel, volume down or up, and back.
  • the mobile phone can turn on the camera to collect the user's face information. If the face information collected by the camera matches the face information preset in the mobile phone, the mobile phone can be unlocked first to enter the non-lock screen interface, and the remote control application will be automatically opened in the non-lock screen interface.
  • the mobile phone can collect the user's fingerprint information. If the collected fingerprint information matches the preset fingerprint information in the mobile phone, the mobile phone can be unlocked first, thereby entering the non-lock screen interface, and automatically opening the remote control application in the non-lock screen interface.
  • the GUI is another display interface of the remote control application on the mobile phone.
  • the mobile phone detects that the user clicks on the control 304, the mobile phone can call up the input method of the mobile phone.
  • the user can input the text content through the input method called up by the mobile phone.
  • the mobile phone detects that the user has input the text content "movie 1" in the text input box 306 and clicks the control 305, the mobile phone can send the text content to the smart TV.
  • the mobile phone when the mobile phone detects that the user clicks on the control 303, the mobile phone can also directly display the GUI shown in (d) of FIG. 3 . That is to say, after the mobile phone detects the user's operation of clicking on the control 303, the mobile phone can first perform an unlocking operation through the collected face information or fingerprint information, thereby entering the non-lock screen interface. In the non-lock screen interface, the mobile phone automatically opens the remote control application and calls up the input method of the mobile phone, thereby displaying the GUI shown in (d) of FIG. 3 .
  • the mobile phone can directly call up the input method of the mobile phone on the non-lock screen interface without opening the remote control application.
  • the user can input text through the input method called up by the mobile phone.
  • the mobile phone detects that the user has input the text content "movie 1" in the text input box 306 through the input method and clicks the control 305, the mobile phone can send the text content to the smart TV.
  • the mobile phone can also send the text content input by the user to the smart TV in real time.
  • the text information can be sent to the smart TV, so that the text content "electricity” is displayed in the text input box 301 of the smart TV.
  • the mobile phone detects that the user then enters the text content "Shadow” in the text input box 306, the mobile phone can continue to send the text content "Shadow” to the smart TV, so that the text content "movie” is displayed in the text input box 301 of the smart TV .
  • the mobile phone When the mobile phone detects that the user then enters the text content "1" in the text input box 306, the mobile phone can continue to send the text content "1" to the smart TV, so that the text content "movie 1" is displayed in the text input box 301 of the smart TV ".
  • the mobile phone can indicate the text content deleted by the user to the smart TV in real time, so that the text content in the text input box 301 of the smart TV is the same as The text content in the text input box 306 of the mobile phone is synchronized.
  • the smart TV can display the text content (eg, "movie 1") in the text input box 301 of the smart TV.
  • the smart TV can display information corresponding to the movie 1 (for example, information such as genre, director, starring, etc.).
  • the mobile phone after receiving the broadcast message sent by the smart TV, the mobile phone can provide text input for the smart TV, which helps to improve the convenience of the user when entering text. At the same time, the mobile phone and the smart TV do not need to be devices under the same account. As long as the mobile phone is near the smart TV, it can provide text content input for the smart TV, which helps to improve the user experience.
  • FIG. 4 is another set of GUIs provided by the embodiments of the present application.
  • the mobile phone when the mobile phone receives the broadcast message sent by the smart TV, the mobile phone can display a text input icon 401 on the lock screen interface.
  • the GUI as shown in (b) of FIG. 4 can be displayed.
  • the mobile phone when the mobile phone detects that the user clicks on the icon 401, the mobile phone can establish a connection with the smart TV according to the communication address of the smart TV carried in the broadcast message.
  • the GUI is a display interface after the mobile phone detects that the user has clicked the icon 401 .
  • the mobile phone can display the input method on the lock screen interface, and the user can input text content in the text input box 403 .
  • the mobile phone detects that the user has entered text content (eg, "movie 1") in the text input box 403 and clicked the operation of the control 402, the mobile phone can send the text content to the smart TV.
  • the smart TV can display a GUI as shown in (e) of FIG. 3 .
  • the mobile phone can send the content in the text input box 403 to the smart TV in real time, so that the text content in the text input box 301 of the smart TV is synchronized with the content in the text input box 403 of the mobile phone.
  • an icon can be used to prompt the user that the mobile phone can assist the smart TV to input text content, so that the input of the text content can be completed in the locked screen state.
  • the mobile phone can provide text input for the smart TV under the lock screen interface, which helps to improve the convenience of the user when entering text on the large-screen device, thereby improving the user experience.
  • the mobile phone and the smart TV do not need to be devices under the same account. As long as the mobile phone is near the smart TV, it can provide text content input for the smart TV, which helps to improve the user experience.
  • the GUI is the display interface after the mobile phone detects that the user has clicked the icon 401 .
  • the mobile phone can turn on the camera to collect the user's face information. If the face information collected by the camera matches the preset face information in the mobile phone, the mobile phone can be unlocked first, so as to enter the non-lock screen interface, and automatically call up the input method of the mobile phone in the non-lock screen interface.
  • the mobile phone can collect the fingerprint information of the user. If the collected fingerprint information matches the preset fingerprint information in the mobile phone, the mobile phone can be unlocked first, thereby entering the non-lock screen interface, and the input method of the mobile phone is automatically called up in the non-lock screen interface.
  • an icon can be used to prompt the user that the mobile phone can assist the smart TV to input text content, and the mobile phone can automatically call up the input method after entering the non-lock screen interface. , you don't need your phone to open the remote control app.
  • the mobile phone can provide text input for the smart TV without starting the application on the non-lock screen interface, which helps to improve the convenience of the user when entering text on the large-screen device, thereby improving the user experience.
  • FIG. 5 is another set of GUIs provided by the embodiments of the present application.
  • a movie search display interface is displayed on the smart TV, and the cursor of the smart TV is located in the text input box 501 at this time.
  • a broadcast message may be sent to surrounding devices, and the broadcast message may be used to indicate that the smart TV needs to perform text input.
  • the broadcast message may also carry the communication address (eg, IP address, port number, or Bluetooth address, etc.) of the smart TV.
  • the communication address eg, IP address, port number, or Bluetooth address, etc.
  • the user can pick up the mobile phone, at this time the mobile phone can be in an unlocked state and the mobile phone displays the mobile phone desktop.
  • the GUI is the desktop of the mobile phone.
  • the mobile phone detects that the user clicks the icon 502 of the remote control application on the desktop, the mobile phone can open the remote control application.
  • the mobile phone detects that the user has opened the remote control application, it can start listening to the broadcast messages sent by the surrounding devices.
  • the mobile phone can display the GUI shown in (d) of FIG. 5 .
  • the GUI is the display interface of the remote control application of the mobile phone.
  • the mobile phone can display a reminder box 503, wherein the reminder box 503 includes the prompt information "it is detected that the smart TV needs to perform text input, whether to use the input function for input".
  • the mobile phone can display the GUI shown in (e) of FIG. 5 .
  • the mobile phone when the mobile phone detects that the user clicks on the control 504, the mobile phone can establish a connection with the smart TV according to the communication address of the smart TV carried in the broadcast message.
  • the GUI is another display interface of the remote control application of the mobile phone.
  • the mobile phone After the mobile phone detects that the user clicks on the control 504, the mobile phone can call up the input method of the mobile phone.
  • the mobile phone detects that the user has input the text content "movie 1" in the text input box 506 and clicks the control 505, the mobile phone can send the text content to the smart TV.
  • the GUI is another display interface of the remote control application of the mobile phone.
  • the mobile phone After the mobile phone detects that the user clicks on the control 504, the mobile phone can detect the voice content input by the user. As shown in (f) of FIG. 5, the user utters the voice content "movie 1". After the mobile phone detects the voice content input by the user, it can determine the text content "movie 1" corresponding to the voice content, so that the mobile phone sends the text content to the smart TV.
  • the mobile phone may include a speech recognition (automatic speech recognition, ASR) module, and the main function of the ASR module is to recognize the user's speech content as text content.
  • ASR automatic speech recognition
  • the mobile phone can also send the voice content to the smart TV after detecting the voice content input by the user.
  • the smart TV can convert the voice content into text content, so as to be displayed in the text input box 501 .
  • the mobile phone may further prompt the user to select text input or voice input. If the user selects text input, the mobile phone can call up an input method, so that the user can input text content through the input method; or, if the user selects voice input, the mobile phone can start to detect the voice content input by the user.
  • the mobile phone when the mobile phone detects the operation of the user opening the remote control application, it can start to monitor the broadcast message.
  • the mobile phone may not display the reminder box 503, and the mobile phone may directly call up the input method to detect the text content input by the user, or the mobile phone may start to monitor the voice content input by the user.
  • the mobile phone can send the content in the text input box 506 to the smart TV in real time, so that the text content in the text input box 501 of the smart TV is synchronized with the content in the text input box 506 of the mobile phone.
  • the smart TV can display the text content (for example, "movie 1") in the input box 501 of the smart TV.
  • the smart TV can display information corresponding to the movie 1 (for example, information such as genre, director, starring, etc.).
  • the mobile phone and the smart TV do not need to be connected or bound in advance, but a connection between the input and the input is temporarily established through dynamic matching when the smart TV needs input.
  • the user can pick up any device (eg, mobile phone, Pad) around him to input, which helps to improve the convenience of the user when inputting text, thereby improving the user experience.
  • the mobile phone starts monitoring after opening the remote control application, and prompts the user to input text through a reminder box after listening to the broadcast message, which helps the user to clarify that the mobile phone can be used as an input device.
  • the mobile phone Before the user initiates an input operation on the mobile phone, the mobile phone will not display any prompt information that may interfere with the user, thereby avoiding interference to the user, thereby helping to improve the user experience.
  • FIG. 6 is another set of GUIs provided by the embodiments of the present application.
  • the GUI is the desktop of the mobile phone.
  • the mobile phone detects that the user clicks the icon of the remote control application on the desktop, the mobile phone can start monitoring broadcast messages sent by surrounding devices and display the GUI shown in (b) of FIG. 6 .
  • the GUI is the display interface of the remote control application of the mobile phone.
  • the color of the buttons on the display interface is gray (gray means the controls are unavailable).
  • the GUI is another display interface of the remote control application of the mobile phone.
  • the color of the buttons on the display interface changes from gray to black (black indicates that the controls can be used).
  • the user can use the input function on the remote control to input the text content.
  • the mobile phone detects that the user clicks on the input control 601, the mobile phone can display a GUI as shown in (d) of FIG. 6 .
  • the mobile phone when the mobile phone receives the broadcast message sent by the smart TV, the mobile phone can establish a connection with the smart TV according to the communication address of the smart TV carried in the broadcast message.
  • the GUI is another display interface of the remote control application of the mobile phone.
  • the mobile phone After the mobile phone detects that the user clicks on the input control 601, the mobile phone can call up the input method of the mobile phone.
  • the mobile phone detects that the user has input the text content "movie 1" in the text input box 602 and clicks the control 603, the mobile phone can send the text content to the smart TV.
  • the mobile phone when the mobile phone receives the broadcast message sent by the smart TV, the mobile phone can directly display the GUI shown in (d) of FIG. 6 . That is to say, when the mobile phone receives the broadcast message sent by the smart TV, the color of the buttons on the display interface changes from gray to black, and the mobile phone can automatically call up the input method of the mobile phone.
  • the GUI is another display interface of the remote control application of the mobile phone.
  • the mobile phone can detect the voice content input by the user.
  • the user utters the voice content "movie 1".
  • the mobile phone detects the user's voice content, it can determine the text content "movie 1" corresponding to the voice content, so that the mobile phone sends the text content to the smart TV.
  • the color of the buttons on the display interface of the remote control application changes from gray to black, and the mobile phone can also prompt the user to select text input or voice input. If the user selects text input, the mobile phone can call up an input method, so that the user can input text content through the input method; or, if the user selects voice input, the mobile phone can start to detect the voice content input by the user.
  • the mobile phone can send the content in the text input box 602 to the smart TV in real time, so that the text content in the text input box of the smart TV is synchronized with the content in the text input box 602 of the mobile phone.
  • the smart TV After receiving the text content sent by the mobile phone, the smart TV can display the text content (for example, "movie 1") in the input box of the smart TV. In addition, the smart TV can display information corresponding to the movie 1 (for example, information such as genre, director, starring, etc.).
  • the mobile phone and the smart TV do not need to be connected or bound in advance, but a connection between the input and the input is temporarily established through dynamic matching when the smart TV needs input.
  • the smart TV needs to input, the user can pick up any device (eg, mobile phone, Pad) around him to input, which helps to improve the convenience of the user when inputting text, thereby improving the user experience.
  • the mobile phone starts monitoring after opening the remote control application, and reminds the mobile phone that the mobile phone can be used as an input device through the change of the color of the control after monitoring the broadcast message.
  • the mobile phone Before the user initiates an input operation on the mobile phone, the mobile phone will not display any prompt information that may interfere with the user, thereby avoiding interference to the user, thereby helping to improve the user experience.
  • FIG. 7 is another set of GUIs provided by the embodiments of the present application.
  • the GUI is the lock screen interface of the mobile phone.
  • the mobile phone detects the user's preset operation on the lock screen interface (for example, the mobile phone detects that the user draws "S" on the lock screen interface)
  • the mobile phone can start monitoring broadcast messages sent by surrounding devices.
  • the mobile phone detects the broadcast message sent by the smart TV, the mobile phone can display the GUI as shown in (b) in Figure 7 .
  • the triggering condition for the mobile phone to start monitoring broadcast messages sent by surrounding devices may be that the mobile phone detects that the user draws a pattern of a preset shape on the currently displayed interface; Empty gesture; alternatively, the mobile phone may detect that the user presses the physical buttons of the mobile phone (for example, the volume key and the power button); alternatively, the mobile phone may detect the user's preset gesture on the current interface and press the physical button operation.
  • the GUI is another lock screen interface of the mobile phone.
  • the mobile phone may display a text input icon 701 on the lock screen interface.
  • the GUI as shown in (c) in FIG. 7 may be displayed, or the GUI as shown in (d) in FIG. 7 may be displayed.
  • the GUI is the display interface after the mobile phone detects that the user has clicked the icon 701 .
  • the mobile phone can display the input method on the lock screen interface, and the user can input text content in the text input box 703 .
  • the mobile phone detects that the user has input text content (eg, "movie 1") in the text input box 703 and clicks the operation of the control 702, the mobile phone can send the text content to the smart TV.
  • the smart TV can display a GUI as shown in (e) of FIG. 3 .
  • the GUI is another display interface after the mobile phone detects that the user has clicked the icon 701 .
  • the mobile phone can turn on the camera to collect the user's face information. If the face information collected by the camera matches the preset face information in the mobile phone, the mobile phone can be unlocked first, so as to enter the non-lock screen interface, and automatically call up the input method of the mobile phone in the non-lock screen interface.
  • the mobile phone can collect the fingerprint information of the user.
  • the mobile phone can be unlocked first, thereby entering the non-lock screen interface, and the input method of the mobile phone is automatically called up in the non-lock screen interface.
  • the mobile phone detects that the user has input text content (eg, "movie 1") in the text input box 703 and clicks the operation of the control 702
  • the mobile phone can send the text content to the smart TV.
  • the smart TV can display a GUI as shown in (e) of FIG. 3 .
  • the mobile phone after detecting the user's preset operation, if the mobile phone receives a broadcast message sent by the smart TV, it can directly display the GUI shown in (c) or (d) of FIG. 7 . That is, in response to the mobile phone receiving the broadcast message sent by the smart TV, the mobile phone can also directly call up the input method on the lock screen interface, or the mobile phone can call up the input method after entering the non-lock screen interface.
  • the mobile phone can also send the text content input by the user to the smart TV in real time.
  • the text information can be sent to the smart TV, so that the text content "electricity” is displayed in the text input box of the smart TV.
  • the mobile phone detects that the user then enters the text content "Shadow” in the text input box 703, the mobile phone can continue to send the text content "Shadow” to the smart TV, thereby displaying the text content "Movie” in the text input box of the smart TV.
  • the mobile phone When the mobile phone detects that the user then enters the text content "1" in the text input box 703, the mobile phone can continue to send the text content "1" to the smart TV, so that the text content "movie 1" is displayed in the text input box of the smart TV .
  • FIG. 8 shows a system architecture diagram provided in an embodiment of the present application.
  • the system includes device A and device B, where device A is an input device (eg, the mobile phone in FIG. 3 to FIG. 7 ); device B is an input device (eg, the smart TV in FIG. 3 and FIG. 5 ).
  • device A is an input device (eg, the mobile phone in FIG. 3 to FIG. 7 );
  • device B is an input device (eg, the smart TV in FIG. 3 and FIG. 5 ).
  • Device B detects that the text input box of device B has the focus, and device B enters the input state at this time.
  • the input management module 810 of the device B After the input management module 810 of the device B receives the information that the device B has entered the input state, it notifies the input state sending module 820 of the device B to send a broadcast message to the surrounding devices, and the broadcast message is used to indicate that the device B needs to perform text input; at the same time; , the input content receiving module 830 of the notification device B enters the input content receiving state.
  • the input state sending module 820 of device B After receiving the above instruction, the input state sending module 820 of device B sends the broadcast message to surrounding devices. After receiving the input content receiving state instruction, the input content receiving module 830 of the device B starts to monitor the messages containing the input content sent by the surrounding devices.
  • the broadcast message may be a Bluetooth low energy (Bluetooth low energy, BLE) data packet
  • the BLE data packet may carry indication information, where the indication information is used to indicate that the device B needs to perform text input.
  • the BLE data packet includes a protocol data unit (PDU), and the indication information may be carried in the service data (service data) field in the PDU, or may also be carried in the manufacturer specific data (manufacturer specific data) in the PDU ) field.
  • the payload of the service data field may include multiple bits, wherein the multiple bits include scalable bits.
  • Device A and Device B can agree on the content of a certain extensible bit. When a certain extensible bit is 1, device A can know that device B needs to perform text input.
  • the broadcast message may also carry the media access control (media access control, MAC) address of device B.
  • media access control media access control
  • the MAC address of device B may be carried in an access address (access address) field in the BLE data packet.
  • the broadcast message may be a user datagram protocol (user datagram protocol, UDP) data packet
  • the UDP data packet may carry the indication information, and the indication information is used to indicate that the device B needs to perform text input.
  • the UPD packet includes the data portion of the IP datagram.
  • the data portion of an IP datagram may include extensible bits.
  • Device A and Device B can agree on the content of a certain extensible bit. When a certain extensible bit is 1, device A can know that device B needs to perform text input.
  • the UDP data packet can carry the IP address and port number of device B (including source port number and destination port number, wherein the source port number refers to the port number used by device B when sending data, and the destination port number is Refers to the port used by device B to receive data).
  • the IP address and port number of device B can be carried in the UDP header of the data part of the IP datagram.
  • the UDP data packet may also carry the IP address instead of the port number.
  • the input state receiving module 850 of the device A may always be in a broadcast message monitoring state. After receiving the broadcast message sent by the input state sending module 820 of the device B, the input state receiving module 850 notifies the input management module 840 of the device A of the event that the device B needs text input. The input management module 840 of device A notifies the display screen to display a reminder box (as shown in (b) in FIG. 3 ), or prompts the user with a text input icon (as shown in (a) in FIG. 4 ).
  • the device A After detecting that the user clicks on the control 303, the device A opens the remote control application. After device A detects that the user has clicked on the input control 304, the input method is displayed. Alternatively, after detecting the operation of the user clicking the icon 401 on the lock screen interface, the device A displays the input method on the lock screen interface.
  • the input management module 840 of the device A can send the text content to the input content sending module 860 of the device A.
  • device A can establish a Bluetooth connection with device B after acquiring the MAC address of device B.
  • Device A can send the text content to device B through BLE data packets.
  • This textual content may be carried in a service data field or a vendor specific data field in the PDU.
  • the payload of the service data field may include multiple bits, wherein the multiple bits include scalable bits.
  • Device A can use encoding methods such as GBK, ISO8859-1 or Unicode (for example, UTF-8, UTF-16) to encode the text content input by the user detected by device A, and carry the encoded information in a or multiple scalable bits.
  • device B After receiving the BLE data packet sent by device A, device B can decode the information on the corresponding bits to obtain the text content input by the user on device A.
  • the UDP data packet carries the IP address and destination port number of device B.
  • Device A can establish a transmission control protocol (TCP) connection with device B through the IP address and destination port number.
  • TCP transmission control protocol
  • Device A can send the text content detected by device A and input by the user to the destination port number through a TCP connection.
  • the device A may not establish a TCP connection with the device B after obtaining the IP address of the device B.
  • Device A can send a UDP data packet to device B, where the UDP data packet can carry the text content input by the user detected on device A.
  • the text content may be carried in a data portion of an IP datagram in a UDP data packet.
  • the data part includes an extensible field, and device A and device B can agree on a certain extensible bit to carry the text content.
  • Device A can use encoding methods such as GBK, ISO8859-1, or Unicode to encode the text content input by the user detected by device A, and carry the encoded information on one or more expandable bits.
  • the device B After receiving the UDP data packet sent by the device A, the device B can decode the information on the corresponding bits, so as to obtain the text content input by the user on the device A.
  • the input content receiving module 830 in the input content receiving state sends the text content to the input management module 810 of the device B.
  • the input management module 810 of device B displays the received text content in the text input box.
  • the internal implementation process in the GUI shown in FIG. 3 and FIG. 4 is given above, wherein the input state receiving module 850 of the device A can always be in the broadcast message listening state.
  • the difference from FIG. 3 and FIG. 4 is that the input state receiving module 850 of device A starts to monitor the broadcast when device A detects the preset operation of the user. information.
  • the input management module 840 After device A detects that the user opens the remote control application, the input management module 840 notifies the input state receiving module 850 to enter the broadcast message monitoring state, thereby starting to monitor the broadcast message; or, when the device A detects that the user clicks on the input control, the input method is displayed. , the input management module 840 monitors that the mobile phone displays the input method. The input management module 840 notifies the input state receiving module 850 to enter the broadcast message monitoring state, thereby starting to monitor broadcast messages.
  • Device A may or may enter the broadcast message listening state after detecting that other applications (for example, App1) are opened.
  • App1 may detect that the user has clicked on the icon of App1
  • App1 of the application layer will send the label corresponding to App1 (eg, process identifier (PID)) to the system service of the application framework layer.
  • PID process identifier
  • the system service can determine that App1 is started according to the label and the process name.
  • the system service can trigger the input state receiving module 850 of device A (eg, the wireless communication module in FIG. 1 ) to enter the broadcast message monitoring state.
  • the device A may also enter the broadcast message monitoring state after detecting the preset operation of the user.
  • the preset operation may be an operation such as double-clicking, long-pressing, folding or unfolding the screen, and the like.
  • the device A detects the user's preset operation, it can trigger the input state receiving module 850 to enter the broadcast message monitoring state.
  • device A receives broadcast messages sent by surrounding devices, it can automatically display the input method.
  • the input state receiving module 850 of device A receives the broadcast message sent by the input state sending module 820 of device B, and learns that device B needs text input. It should be understood that for the manner in which the device B sends the broadcast message, reference may be made to the descriptions in the foregoing embodiments, which are not repeated here for brevity.
  • the input state receiving module 850 of device A notifies the input management module 840 of device A of the event that device B needs text input; the input management module 840 of device A obtains the text content input by the user through the input method service; the input management module of device A 840 invokes the input content sending module 860 of device A to send the text content input by the user to device B. It should be understood that, for the manner in which device A sends user input content to device B, reference may be made to the description in the foregoing embodiment, which is not repeated here for brevity.
  • the input content receiving module 830 of the device B in the input content receiving state sends the text content to the input management module 810 of the device B.
  • the input management module 810 of device B displays the received text content in the text input box.
  • the communication between device A and device B may select Bluetooth communication or local area network communication as required.
  • device B sends a broadcast message to the outside world, it can choose either one of Bluetooth or a local area network, or both methods can be sent at the same time.
  • device A When device A sends the text content input by the user to device B, it can choose the fastest way to send according to whether it has been paired with device B by Bluetooth or whether it is in the same local area network.
  • device A can determine whether Bluetooth pairing with device B has been performed before according to the MAC address of device B. If Bluetooth pairing is performed between device A and device B, device A can perform Bluetooth pairing with device B and establish a Bluetooth connection. After the Bluetooth connection is established, device A can send a BLE data packet to device B, where the BLE data packet carries the text content input by the user.
  • device A can determine whether device A and device B are in the same local area network according to the IP address of device B. If device A is determined to be in the same local area network as device B, then if the UDP data packet also carries the destination port number of device B, then device A can establish a TCP connection with device B. After the TCP connection is established, device A can send the text information to device B through the TCP connection. Alternatively, if device B only carries the IP address of device B without the destination port number in the UDP data packet, device A can send a UDP data packet to device B, where the UDP data packet carries the text content input by the user.
  • device A in order to ensure that the text content input by the user sent by device A to device B is not leaked, device A can use the encryption key of device B to encrypt and send the text content.
  • the public key and the private key are stored in the device B, and the device B can carry its own public key in the broadcast message.
  • the public key of device B may be carried in a service data field or a vendor-specific field in the BLE data packet.
  • device A can send the text content encrypted by the public key to device B through the TCP connection; or, if device A does not establish a TCP connection with device B, then device B A UDP data packet can be sent to device A, and the data part of the IP datagram in the UPD data packet can carry the text content encrypted by the public key; or, device A can send a BLE data packet to device B, the service in the BLE data packet
  • the data field or the vendor-specific field can carry the text content encrypted by the public key.
  • the device B After receiving the text content encrypted by the public key, the device B can decrypt it by using the private key to obtain the text content sent by the device A.
  • Other devices can also monitor the text content encrypted by the public key, but since they do not have the private key of device B, they cannot decrypt the text content encrypted by the public key. Thus, it is ensured that the text content sent by device A to device B is not leaked.
  • device A and device B do not need to actively enter into pairing in advance or establish a connection through the network.
  • device A can dynamically obtain relevant information, and can assist device B to complete the input of text content .
  • FIG. 9 shows a schematic flowchart of a method 900 for text input provided by an embodiment of the present application.
  • the method 900 can be performed by the first electronic device and the second electronic device, and the method 900 includes:
  • the first electronic device displays a text input interface through a display screen, where the text input interface includes a text input box.
  • the display interface of the smart TV is a text input interface
  • the text input interface includes a text input box 301 .
  • S902 In response to displaying the text input interface, the first electronic device sends a first message, where the first message is used to indicate that the first electronic device needs to perform text input.
  • the first electronic device responds to displaying the text input interface, including that the first electronic device responds to the current focus of the first electronic device in the text input box of the text input interface; or, the first electronic device responds In response to displaying the input interface, the device includes that the first electronic device responds that the current focus of the first electronic device is on a certain key of the input method displayed on the text input interface.
  • the display interface of the smart TV is a text input interface
  • the current focus of the smart TV displayed on the text input interface is the text input box 301 .
  • the smart TV sends the first message.
  • sending the first message by the first electronic device in response to displaying the text input interface includes: the first electronic device sending the first message to one or more devices in response to displaying the text input interface.
  • the one or more devices and the first electronic device are devices under the same account (for example, a Huawei account); or, the one or more devices and the first electronic device are under the same family group. account.
  • the one or more devices may be devices that have completed Bluetooth pairing with the first electronic device; or, the one or more devices may be devices under the same Wi-Fi as the first electronic device.
  • sending the first message by the first electronic device in response to displaying the text input interface includes: the first electronic device, in response to displaying the text input interface, sending a broadcast message to surrounding devices, the broadcast message using to indicate that the first electronic device needs to perform text input.
  • the second electronic device detects the preset operation of the user and monitors the first message.
  • the order in which the second electronic device detects the user's operation and monitors the first message is not specifically limited.
  • the second electronic device may first detect the user's operation, and then receive the first message. a message; or, the second electronic device may also receive the first message first, and then detect the user's preset operation.
  • the preset operation may be an operation by the user to open an application; or, the preset operation may be a preset gesture of the user (for example, the user draws a preset pattern on the display screen of the second electronic device. , or the user's space gesture); or, the preset operation may also be an operation of the user pressing a certain physical button; or, the preset operation may also be a combination of a preset gesture and pressing a physical button.
  • the preset operation may be an operation by the user to open an application; or, the preset operation may be a preset gesture of the user (for example, the user draws a preset pattern on the display screen of the second electronic device. , or the user's space gesture); or, the preset operation may also be an operation of the user pressing a certain physical button; or, the preset operation may also be a combination of a preset gesture and pressing a physical button.
  • the preset operation may also be an operation of the user picking up the second electronic device.
  • the second electronic device includes a gyro sensor (eg, the gyro sensor 180B in FIG. 1 ), and the second electronic device can detect whether the user picks up the second electronic device through the gyro sensor.
  • a gyro sensor eg, the gyro sensor 180B in FIG. 1
  • the preset operation may also be an operation for the user to unlock the second electronic device.
  • the second electronic device may detect whether the first electronic device is within a preset angle range of the second electronic device while detecting the user's preset operation and monitoring the first message.
  • the second electronic device may be a device capable of calculating an angle of arrival (AOA).
  • the second electronic device may include a compass, a Bluetooth/Wi-Fi antenna array, and the like.
  • the second electronic device can calculate the orientation of the first electronic device, the Bluetooth/WiFi antenna array of the second electronic device can receive the wireless signal of the first electronic device, and calculate the first electronic device according to formulas (1) and (2).
  • d is the distance between the Bluetooth/Wi-Fi antenna array of the second electronic device and the Bluetooth/Wi-Fi antenna of the first electronic device, is the phase difference between the Bluetooth/Wi-Fi antenna array of the second electronic device and the Bluetooth/Wi-Fi antenna of the first electronic device
  • is the phase difference of the Bluetooth signal (for example, the first message) sent by the first electronic device wavelength
  • is the angle of arrival.
  • the second electronic device detects the user's preset operation and monitors the first message, including: the second electronic device detects the user's preset operation; in response to detecting the user's preset operation, the second electronic device detects the user's preset operation. The device starts listening for the first message.
  • the first electronic device can display the text input interface within the first preset time period (for example, 1 minute) to send multiple first messages. In this way, it can be ensured that the second electronic device can receive the first message after detecting the user's preset operation.
  • the first preset time period For example, 1 minute
  • the second electronic device detects the preset operation of the user and monitors the first message, including: the second electronic device monitors the first message; in response to receiving the first message, the second electronic device detects the user's Preset action.
  • the mobile phone before the mobile phone detects that the user has opened the remote control application, the mobile phone receives the first message. However, since the mobile phone has not detected the user's preset operation, the mobile phone can first save the first message without giving the user any text input prompt. As shown in (d) in FIG. 5 , when the mobile phone detects the operation of the user opening the remote control application, the mobile phone can directly display the reminder box 503, thereby prompting the user to use the mobile phone to input text to the smart TV; or, when the mobile phone detects When the user opens the remote control application, the mobile phone can directly call up the input method to display the GUI shown in (e) of FIG. 5 .
  • the mobile phone receives the first message before the mobile phone detects that the user draws “S” on the lock screen interface. However, since the mobile phone has not detected the preset operation of the user, the mobile phone can first save the first message without giving the user any text input prompt.
  • the mobile phone can directly display the GUI shown in (b) in FIG. 7 ; or, the mobile phone can directly display the GUI shown in (c) in FIG. 7 ; or , the mobile phone displays the GUI shown in (d) in FIG. 7 after entering the lock screen interface.
  • the second electronic device may also monitor the first message all the time. If the mobile phone detects the user's preset gesture after receiving the first message. In this case, when detecting that the text input interface is displayed, the first electronic device may send a plurality of first messages within a second preset time period (for example, 5 seconds). After receiving the first message, the second electronic device can start to detect the user's preset operation.
  • a second preset time period for example, 5 seconds
  • the second electronic device in response to detecting the user's preset operation and receiving the first message, the second electronic device detects the content input by the user.
  • the second electronic device may start to monitor the first message in response to detecting the user's preset operation; or, the second electronic device may start to detect the user's preset operation in response to monitoring the first message .
  • the second electronic device in response to detecting the user's preset operation and receiving the first message, detects the content input by the user, including: in response to detecting the user's preset operation and receiving the first message , and the time interval between the second electronic device detecting the user's preset operation and the second electronic device receiving the first message is less than the preset time interval, and the second electronic device detecting the content input by the user .
  • the second electronic device in response to detecting the user's preset operation and receiving the first message, detects the content input by the user, including: in response to detecting the user's preset operation, receiving the first message and determining that the first electronic device is within a preset angle range of the second electronic device, and the second electronic device detects the content input by the user.
  • the second electronic device in response to detecting the user's preset operation and receiving the first message, detects the content input by the user, including: if the second electronic device receives the first message in the first The user's preset operation is detected within three preset time periods, and the second electronic device detects the user's input.
  • the second electronic device may not detect the user's preset operation for a long time after receiving the first message, so the user may not use the second electronic device to input text to the first electronic device.
  • the second electronic device may ignore the first message after exceeding the third preset time period. That is, if the second electronic device detects the user's preset operation after the third preset time period, the second electronic device will not give the user any text input prompt; or, the second electronic device will not call up the input method. In this way, interference to the user caused by performing a preset operation on the second electronic device after the user has not used the second electronic device for a long time can be avoided.
  • the mobile phone when the mobile phone detects that the user has opened the remote control application and receives the first message, the mobile phone can call up the input method, so that the mobile phone starts to detect the content input by the user.
  • the mobile phone when the mobile phone detects that the user draws an “S” on the lock screen interface and receives the first message, the mobile phone can call up the input method, so that the mobile phone can call up the input method. Start detecting user input.
  • the first message sent by the first electronic device may be received by multiple electronic devices (for example, the multiple electronic devices include a second electronic device, a third electronic device, and a fourth electronic device). If within a fourth preset time period after the first electronic device sends the first message, the second electronic device and the third electronic device request to establish a connection with the first electronic device, the first electronic device can communicate with the second electronic device, the third electronic device The three electronic devices establish a connection, so that the second electronic device and the third electronic device can call up the input method to detect the content input by the user.
  • the multiple electronic devices include a second electronic device, a third electronic device, and a fourth electronic device.
  • the fourth electronic device After the fourth preset time period, if the fourth electronic device also receives the first message, the fourth electronic device requests to establish a connection with the first electronic device. At this time, the first electronic device may reject the request of the fourth electronic device, so that no text input prompt will be displayed on the fourth electronic device or the fourth electronic device will not call up the input method. This also helps to avoid interference to the user caused by the prompt information or input method displayed on the electronic device that receives the first message after a period of time.
  • the first electronic device may also only establish a connection with the device (eg, the second electronic device) that first requests to establish a connection. For requests from other electronic devices, the first electronic device may ignore its requests. This helps avoid interference when inputting from multiple devices.
  • the second electronic device sends the first content to the first electronic device in response to detecting an operation of the user inputting the first content.
  • the mobile phone can send the text content to the intelligence.
  • the mobile phone after the mobile phone detects the operation of the user inputting the voice content movie 1", the mobile phone can send the text content to the intelligence.
  • the mobile phone can send the text content to the intelligence.
  • the mobile phone after the mobile phone detects the operation of the user inputting the text content movie 1", the mobile phone can send the text content to the intelligence.
  • the mobile phone can send the detected content to the smart TV in real time, and the specific process can refer to the description in the above embodiment, which is not repeated here for brevity.
  • the first electronic device displays the text content corresponding to the first content in the text input box.
  • the smart TV may display the text content in the text input box.
  • the smart TV can first convert the voice content into text content, so as to display the text content in the text input box 301 .
  • the second electronic device can also convert the voice content into text content and send it to the first electronic device, so that the first electronic device can Corresponding text content is displayed in the text input box 301 .
  • the user when the first electronic device needs to input text, the user can pick up any device (eg, mobile phone, Pad) around him to input, which helps to improve the convenience of the user when inputting text. to enhance the user experience.
  • the second electronic device can prompt the user to input text through a reminder box when detecting the user's preset operation and receiving the first message, which helps the user to identify that the second electronic device can be used as an input device.
  • the second electronic device will not display any prompt information that may interfere with the user, thereby avoiding interference to the user, thereby helping to improve user experience .
  • FIG. 10 shows a schematic block diagram of an apparatus 1000 for text input provided by an embodiment of the present application.
  • the apparatus 1000 can be set in the second electronic device in the above-mentioned FIG. 9 , and the apparatus 1000 includes: a first detection unit 1010 for detecting a preset operation of a user; a receiving unit 1020 for monitoring the first message, the The first message is used to indicate that another electronic device needs to perform text input; the second detection unit 1030 is also used to detect the user when the first detection unit 1010 detects the user's preset operation and the receiving unit 1020 receives the first message The input content; the sending unit 1040 is configured to send the first content to the other electronic device in response to the second detection unit 1030 detecting an operation of the user inputting the first content.
  • FIG. 11 shows a schematic structural diagram of an electronic device 1100 provided by an embodiment of the present application.
  • the electronic device includes: one or more processors 1110, one or more memories 1120, and the one or more memory stores 1120 store one or more computer programs, the one or more computer programs Include instructions.
  • the instruction is executed by the one or more processors 1110, the second electronic device (or, the mobile phone in the above embodiment) executes the technical solution in the above embodiment.
  • An embodiment of the present application provides a system for text input, including a first electronic device and a second electronic device, and the system is used to implement the technical solution for text input in the foregoing embodiment.
  • the implementation principle and technical effect thereof are similar to the related embodiments of the above method, and are not repeated here.
  • the embodiments of the present application provide a computer program product, which enables the second electronic device (or the mobile phone in the above embodiment) to execute the technical solutions in the above embodiments when the computer program product runs on the second electronic device.
  • the implementation principle and technical effect thereof are similar to the related embodiments of the above method, and are not repeated here.
  • An embodiment of the present application provides a readable storage medium, where the readable storage medium contains instructions, when the instructions are executed on a second electronic device (or, the mobile phone in the above-mentioned embodiment), the second electronic device causes the second electronic device to be executed.
  • the technical solutions of the above embodiments are implemented. The implementation principle and technical effect thereof are similar, and are not repeated here.
  • An embodiment of the present application provides a chip, which is used for executing an instruction, and when the chip is running, executes the technical solutions in the foregoing embodiments.
  • the implementation principle and technical effect thereof are similar, and are not repeated here.
  • the disclosed system, apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer-readable storage medium.
  • the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution, and the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes .

Abstract

Provided are a text input method, electronic device, and system, said method comprising: a first electronic device displaying a text input interface by means of a display screen, the text input interface comprising a text input box; in response to the display of the text input interface, the first electronic device sending a first message, the first message being used for indicating that text input is required for the first electronic device; a second electronic device detecting a preset operation of a user and monitoring for said first message; in response to detecting a preset operation of the user and receiving the first message, the second electronic device detecting content inputted by the user; in response to an operation of the user inputting the first content, the second electronic device sending the first content to the first electronic device; the first electronic device displaying in the text input box text content corresponding to the first content. The invention helps to increase user convenience when inputting text on a device, and also reduces disruption to the user.

Description

一种文本输入的方法、电子设备和系统A method, electronic device and system for text input
本申请要求于2020年11月9日提交中国专利局、申请号为202011240756.5、申请名称为“一种文本输入的方法、电子设备和系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number of 202011240756.5 and the application title of "A Text Input Method, Electronic Device and System" filed with the China Patent Office on November 9, 2020, the entire contents of which are incorporated by reference in this application.
技术领域technical field
本申请涉及终端领域,并且更具体地,涉及一种文本输入的方法、电子设备和系统。The present application relates to the field of terminals, and more particularly, to a method, electronic device and system for text input.
背景技术Background technique
当前智慧大屏设备(例如,智能电视)的输入操作主要通过智慧大屏配备的手持遥控器进行操作控制,但是受限于手持遥控器大小的限制,遥控器上仅有频道切换、音量调节、以及上下左右方向控制等少许物理按键,在进行文字、账号、密码等文本内容输入时极其不方便。At present, the input operation of smart large-screen devices (for example, smart TVs) is mainly controlled by the handheld remote control equipped with the smart large screen. However, due to the limitation of the size of the handheld remote control, the remote control only has channel switching, volume adjustment, As well as a few physical buttons such as up, down, left, and right direction controls, it is extremely inconvenient to input text content such as text, account numbers, and passwords.
随着智能设备的发展,需要进行输入的设备越来越多,例如使用智能冰箱储存生鲜时设置食品保质期甚至设置自动采购计划。向每个智能设备输入都使用其专用的遥控器既麻烦又繁琐。With the development of smart devices, there are more and more devices that require input, such as setting the shelf life of food or even setting an automatic purchase plan when using a smart refrigerator to store fresh food. Using its own dedicated remote for input to each smart device is cumbersome and tedious.
发明内容SUMMARY OF THE INVENTION
本申请提供一种文本输入的方法、电子设备和系统,有助于提升用户在设备上进行文本输入时的便捷性,同时也可以减少对用户的干扰。The present application provides a method, electronic device and system for text input, which help to improve the convenience of a user when entering text on the device, and can also reduce interference to the user.
第一方面,提供了一种系统,该系统包括第一电子设备和第二电子设备,该第一电子设备,用于通过显示屏显示文本输入界面,该文本输入界面包括文本输入框;该第一电子设备,还用于响应于显示该文本输入界面,发送第一消息,该第一消息用于指示该第一电子设备需要进行文本输入;该第二电子设备,用于在检测用户的预设操作以及监听该第一消息;该第二电子设备,还用于响应于检测到用户的预设操作以及接收到该第一消息,检测用户输入的内容;该第二电子设备,还用于响应于检测到用户输入第一内容的操作时,向该第一电子设备发送该第一内容;该第一电子设备,还用于在该文本输入框中显示该第一内容对应的文本内容。In a first aspect, a system is provided, the system includes a first electronic device and a second electronic device, the first electronic device is configured to display a text input interface through a display screen, the text input interface includes a text input box; the first electronic device an electronic device, which is further configured to send a first message in response to displaying the text input interface, where the first message is used to indicate that the first electronic device needs to perform text input; the second electronic device is configured to detect the user's preset set to operate and monitor the first message; the second electronic device is also used to detect the content input by the user in response to detecting the user's preset operation and receiving the first message; the second electronic device is also used to In response to detecting an operation of the user inputting the first content, the first content is sent to the first electronic device; the first electronic device is further configured to display text content corresponding to the first content in the text input box.
本申请实施例中,在第一电子设备需要进行文本输入时,用户可以随手拿起身边的任意一个设备(例如,手机、Pad)进行输入,这样有助于提升用户在进行文本输入时的便捷性,从而提升用户体验。同时,用户在第二电子设备上进行预设操作以及接收到第一消息之前,第二电子设备不会出现可能对用户造成干扰的任何提示信息,避免了对用户的干扰,从而有助于提升用户体验。In the embodiment of the present application, when the first electronic device needs to input text, the user can pick up any device around him (for example, a mobile phone, a Pad) for input, which helps to improve the convenience of the user when inputting text. to enhance the user experience. At the same time, before the user performs a preset operation on the second electronic device and receives the first message, the second electronic device will not display any prompt information that may interfere with the user, thereby avoiding interference to the user, thereby helping to improve user experience.
在一些可能的实现方式中,该第一电子设备具体用于:响应于显示该文本输入界面,在预设时长内发送多个第一消息。In some possible implementations, the first electronic device is specifically configured to: in response to displaying the text input interface, send a plurality of first messages within a preset time period.
在一些可能的实现方式中,该第二电子设备具体用于:响应于检测到用户的预设操作,开始监听该第一消息;响应于接收到该第一消息,检测用户输入的内容。In some possible implementations, the second electronic device is specifically configured to: start monitoring the first message in response to detecting the user's preset operation; and detect the content input by the user in response to receiving the first message.
本申请实施例中,第二电子设备在检测到用户的预设操作后开始监听该第一消息,这样可以避免没有检测到预设操作的设备向用户提示输入而给用户带来的干扰。In this embodiment of the present application, the second electronic device starts to monitor the first message after detecting the user's preset operation, so as to avoid interference to the user caused by the device not detecting the preset operation prompting the user for input.
在一些可能的实现方式中,该第二电子设备具体用于:响应于接收到该第一消息,检测用户的预设操作;响应于检测到用户的预设操作,检测用户输入的内容。In some possible implementations, the second electronic device is specifically configured to: in response to receiving the first message, detect a user's preset operation; in response to detecting the user's preset operation, detect content input by the user.
本申请实施例中,第二电子设备可以一直处于监听第一消息的状态,当第二电子设备接收到第一消息后开始检测用户的预设操作,这样可以避免其他接收到第一消息而未检测到预设操作的电子设备向用户提示输入而给用户带来的干扰。In this embodiment of the present application, the second electronic device may be in a state of monitoring the first message all the time, and when the second electronic device receives the first message, it starts to detect the user's preset operation, which can prevent other devices from receiving the first message without The electronic device that detects the preset operation prompts the user for input and causes interference to the user.
在一些可能的实现方式中,该第二电子设备具体用于:响应于接收到该第一消息,检测用户的预设操作;响应于检测到用户的预设操作且接收到该第一消息和检测到用户的预设操作之间的时间间隔小于预设时间间隔时,检测用户输入的内容。In some possible implementations, the second electronic device is specifically configured to: in response to receiving the first message, detect a user's preset operation; in response to detecting the user's preset operation and receiving the first message and When it is detected that the time interval between the preset operations of the user is less than the preset time interval, the content input by the user is detected.
本申请实施例中,其他电子设备在接收到第一消息后的一段时间内可能没有检测到用户的操作,用户可能不会使用其他电子设备进行输入。那么当其他电子设备检测到用户的预设操作时,其他电子设备可以忽略该第一消息,或者,其他电子设备可以不向用户提示输入。In this embodiment of the present application, other electronic devices may not detect the user's operation for a period of time after receiving the first message, and the user may not use other electronic devices for input. Then, when the other electronic devices detect the preset operation of the user, the other electronic devices may ignore the first message, or the other electronic devices may not prompt the user for input.
在一些可能的实现方式中,该第二电子设备具体用于:响应于检测到用户的预设操作以及接收到该第一消息,且该第一电子设备在该第二电子设备的预设角度范围内(例如,第二电子设备正对的设备为该第一电子设备),检测用户输入的内容。In some possible implementations, the second electronic device is specifically configured to: in response to detecting a preset operation of the user and receiving the first message, and the first electronic device is at a preset angle of the second electronic device Within the range (for example, the device facing the second electronic device is the first electronic device), the content input by the user is detected.
结合第一方面,在第一方面的某些实现方式中,该第二电子设备具体用于:响应于检测到用户的预设操作以及接收到该第一消息,显示输入法;检测用户通过该输入法输入的文本内容。With reference to the first aspect, in some implementations of the first aspect, the second electronic device is specifically configured to: in response to detecting the user's preset operation and receiving the first message, display an input method; The text content entered by the input method.
本申请实施例中,当第二电子设备检测到用户的预设操作以及接收到该第一消息时,可以显示输入法,这样有助于提升用户在进行文本输入时的便捷性,从而提升用户体验。同时,用户在第二电子设备上进行预设操作以及接收到第一消息之前,第二电子设备不会出现可能对用户造成干扰的任何提示信息,避免了对用户的干扰,从而有助于提升用户体验。In this embodiment of the present application, when the second electronic device detects the user's preset operation and receives the first message, it can display the input method, which helps to improve the convenience of the user when entering text, thereby improving the user's experience. At the same time, before the user performs a preset operation on the second electronic device and receives the first message, the second electronic device will not display any prompt information that may interfere with the user, thereby avoiding interference to the user, thereby helping to improve user experience.
结合第一方面,在第一方面的某些实现方式中,该第二电子设备具体用于:响应于检测到用户的预设操作以及接收到该第一消息,检测用户输入的语音内容;响应于检测到用户输入第一语音内容的操作,向该第一电子设备发送该第一语音内容;其中,该第一电子设备具体用于:确定该第一语音内容对应的该文本内容;在该文本输入框中显示该文本内容。With reference to the first aspect, in some implementations of the first aspect, the second electronic device is specifically configured to: in response to detecting the user's preset operation and receiving the first message, detect the voice content input by the user; After detecting the operation of the user inputting the first voice content, send the first voice content to the first electronic device; wherein, the first electronic device is specifically used to: determine the text content corresponding to the first voice content; The text content is displayed in the text input box.
本申请实施例中,当第二电子设备检测到用户的预设操作以及接收到该第一消息时,可以监听用户输入的语音内容,这样有助于提升用户在进行文本输入时的便捷性,从而提升用户体验。同时,用户在第二电子设备上进行预设操作以及接收到第一消息之前,第二电子设备不会出现可能对用户造成干扰的任何提示信息,避免了对用户的干扰,从而有助于提升用户体验。In the embodiment of the present application, when the second electronic device detects the user's preset operation and receives the first message, it can monitor the voice content input by the user, which helps to improve the convenience of the user when entering text. Thereby improving the user experience. At the same time, before the user performs a preset operation on the second electronic device and receives the first message, the second electronic device will not display any prompt information that may interfere with the user, thereby avoiding interference to the user, thereby helping to improve user experience.
在一些可能的实现方式中,所述第二电子设备具体用于:响应于检测到用户的预设操作以及接收到该第一消息,提示用户选择文本输入或者语音输入;当检测到用户选择文本 输入的操作时,显示输入法;当检测到用户选择语音输入的操作时,检测用户输入的语音内容。In some possible implementations, the second electronic device is specifically configured to: in response to detecting the user's preset operation and receiving the first message, prompt the user to select text input or voice input; when it is detected that the user selects text When an input operation is performed, the input method is displayed; when an operation of the user selecting voice input is detected, the voice content input by the user is detected.
结合第一方面,在第一方面的某些实现方式中,该第二电子设备还用于:在该检测用户输入的内容之前,显示第一提示信息,该第一提示信息用于提示该第二电子设备为能够向该第一电子设备输入的设备。With reference to the first aspect, in some implementations of the first aspect, the second electronic device is further configured to: before detecting the content input by the user, display first prompt information, where the first prompt information is used to prompt the first prompt information The second electronic device is a device capable of inputting to the first electronic device.
本申请实施例中,第二电子设备在检测到用户的预设操作以及接收到第一消息时可以通过提醒框来提示用户进行文本输入,有助于用户明确第二电子设备可以作为输入的设备In this embodiment of the present application, when the second electronic device detects the preset operation of the user and receives the first message, the second electronic device can prompt the user to input text through a reminder box, which helps the user to clarify that the second electronic device can be used as an input device
结合第一方面,在第一方面的某些实现方式中,该第一电子设备还用于:在该文本输入框中显示该文本内容之前,通过该显示屏显示第二提示信息,该第二提示信息用于提示用户通过该第二电子设备向该第一电子设备输入。With reference to the first aspect, in some implementations of the first aspect, the first electronic device is further configured to: display second prompt information through the display screen before displaying the text content in the text input box, the second The prompt information is used to prompt the user to input to the first electronic device through the second electronic device.
本申请实施例中,第一电子设备在从第二电子设备接收用户的输入之前,可以通过显示屏提示用户通过第二电子设备进行输入,有助于用户明确第二电子设备可以作为输入的设备。In this embodiment of the present application, before receiving the user's input from the second electronic device, the first electronic device may prompt the user to input through the second electronic device through the display screen, which helps the user to clarify that the second electronic device can be used as the input device .
结合第一方面,在第一方面的某些实现方式中,该第二电子设备具体用于:在检测到用户启动第一应用程序的操作时,开始监听该第一消息。With reference to the first aspect, in some implementations of the first aspect, the second electronic device is specifically configured to: start monitoring the first message when an operation of starting the first application program by the user is detected.
结合第一方面,在第一方面的某些实现方式中,该第一应用程序为遥控器应用。With reference to the first aspect, in some implementations of the first aspect, the first application is a remote control application.
结合第一方面,在第一方面的某些实现方式中,该第一电子设备为智能电视。With reference to the first aspect, in some implementations of the first aspect, the first electronic device is a smart TV.
第二方面,提供了一种文本输入的方法,该方法应用于电子设备,其特征在于,该方法包括:该电子设备检测用户的预设操作以及监听第一消息,该第一消息用于指示另一电子设备需要进行文本输入;响应于检测到用户的该预设操作以及接收到该第一消息,该电子设备检测用户输入的内容;响应于检测到用户输入第一内容的操作,该电子设备向该另一电子设备发送该第一内容。A second aspect provides a text input method, which is applied to an electronic device, wherein the method includes: the electronic device detects a user's preset operation and monitors a first message, where the first message is used to indicate Another electronic device needs to perform text input; in response to detecting the preset operation of the user and receiving the first message, the electronic device detects the content input by the user; in response to detecting the operation of the user inputting the first content, the electronic device The device sends the first content to the other electronic device.
在一些可能的实现方式中,该响应于检测到用户的该预设操作以及接收到该第一消息,该电子设备检测用户输入的内容,包括:响应于检测到用户的预设操作,开始监听该第一消息;响应于接收到该第一消息,检测用户输入的内容。In some possible implementations, in response to detecting the preset operation of the user and receiving the first message, the electronic device detects the content input by the user, including: in response to detecting the preset operation of the user, starting to monitor the first message; in response to receiving the first message, detecting the content input by the user.
在一些可能的实现方式中,该响应于检测到用户的该预设操作以及接收到该第一消息,该电子设备检测用户输入的内容,包括:响应于接收到该第一消息,检测用户的预设操作;响应于检测到用户的预设操作,检测用户输入的内容。In some possible implementations, in response to detecting the preset operation of the user and receiving the first message, the electronic device detecting the content input by the user includes: in response to receiving the first message, detecting the user's Preset operation; in response to detecting the user's preset operation, the content input by the user is detected.
在一些可能的实现方式中,该响应于检测到用户的该预设操作以及接收到该第一消息,该电子设备检测用户输入的内容,包括:响应于接收到该第一消息,检测用户的预设操作;响应于检测到用户的预设操作且接收到该第一消息和检测到用户的预设操作之间的时间间隔小于预设时间间隔时,检测用户输入的内容。In some possible implementations, in response to detecting the preset operation of the user and receiving the first message, the electronic device detecting the content input by the user includes: in response to receiving the first message, detecting the user's Preset operation; in response to detecting the user's preset operation and the time interval between receiving the first message and detecting the user's preset operation is less than the preset time interval, detecting the content input by the user.
在一些可能的实现方式中,该响应于检测到用户的该预设操作以及接收到该第一消息,该电子设备检测用户输入的内容,包括:响应于检测到用户的预设操作以及接收到该第一消息,且该第一电子设备在该第二电子设备的预设角度范围内(例如,第二电子设备正对的设备为该第一电子设备),检测用户输入的内容。In some possible implementations, in response to detecting the preset operation of the user and receiving the first message, the electronic device detects the content input by the user, including: in response to detecting the preset operation of the user and receiving the first message The first message, and the first electronic device is within a preset angle range of the second electronic device (for example, the device facing the second electronic device is the first electronic device) to detect the content input by the user.
结合第二方面,在第二方面的某些实现方式中,该响应于检测到用户的与预设操作以及接收到该第一消息,该电子设备检测用户的输入,包括:响应于检测到用户的该预设操作以及接收到该第一消息,该电子设备显示输入法;该电子设备检测用户通过该输入法输 入的文本内容。With reference to the second aspect, in some implementations of the second aspect, in response to detecting the user's and preset operation and receiving the first message, the electronic device detects the user's input, including: in response to detecting the user's input the preset operation of the device and receiving the first message, the electronic device displays the input method; the electronic device detects the text content input by the user through the input method.
结合第二方面,在第二方面的某些实现方式中,该响应于检测到用户的与预设操作以及接收到该第一消息,该电子设备检测用户的输入,包括:响应于检测到用户的与预设操作以及接收到该第一消息,该电子设备检测用户输入的语音内容。With reference to the second aspect, in some implementations of the second aspect, in response to detecting the user's and preset operation and receiving the first message, the electronic device detects the user's input, including: in response to detecting the user's input and the preset operation and receiving the first message, the electronic device detects the voice content input by the user.
在一些可能的实现方式中,该响应于检测到用户的与预设操作以及接收到该第一消息,该电子设备检测用户的输入,包括:响应于检测到用户的预设操作以及接收到该第一消息,提示用户选择文本输入或者语音输入;当检测到用户选择文本输入的操作时,显示输入法;当检测到用户选择语音输入的操作时,检测用户输入的语音内容。In some possible implementations, in response to detecting the user's preset operation and receiving the first message, the electronic device detects the user's input, including: in response to detecting the user's preset operation and receiving the user's input The first message prompts the user to select text input or voice input; when an operation of selecting text input by the user is detected, the input method is displayed; when an operation of selecting voice input by the user is detected, the voice content input by the user is detected.
结合第二方面,在第二方面的某些实现方式中,该电子设备检测用户输入的内容之前,该方法还包括:该电子设备显示提示信息,该提示信息用于提示用户该电子设备为能够向该另一电子设备输入的设备。With reference to the second aspect, in some implementations of the second aspect, before the electronic device detects the content input by the user, the method further includes: the electronic device displays prompt information, where the prompt information is used to prompt the user that the electronic device is capable of A device for input to the other electronic device.
结合第二方面,在第二方面的某些实现方式中,该电子设备检测到用户的预设操作,包括:该电子设备检测到用户启动第一应用程序的操作。With reference to the second aspect, in some implementations of the second aspect, the electronic device detecting a preset operation of the user includes: the electronic device detecting an operation of the user starting the first application program.
结合第二方面,在第二方面的某些实现方式中,该第一应用程序为遥控器应用。With reference to the second aspect, in some implementations of the second aspect, the first application is a remote control application.
结合第二方面,在第二方面的某些实现方式中,该另一电子设备为智能电视。In conjunction with the second aspect, in some implementations of the second aspect, the other electronic device is a smart TV.
第三方面,提供了一种文本输入的装置,该装置包括:第一检测单元,用于检测用户的预设操作;接收单元,用于监听第一消息,该第一消息用于指示另一电子设备需要进行文本输入;第二检测单元,用于响应于第一检测单元检测到用户的该预设操作以及接收单元接收到该第一消息,检测用户输入的内容;发送单元,用于响应于第二检测单元检测到用户输入第一内容的操作,向该另一电子设备发送该第一内容。In a third aspect, a text input device is provided, the device comprising: a first detection unit for detecting a user's preset operation; a receiving unit for monitoring a first message, where the first message is used to indicate another The electronic device needs to perform text input; the second detection unit is used to detect the content input by the user in response to the first detection unit detecting the preset operation of the user and the receiving unit receiving the first message; the sending unit is used to respond After the second detection unit detects an operation of the user inputting the first content, the first content is sent to the other electronic device.
第四方面,提供了一种电子设备,包括:一个或多个处理器;存储器;以及一个或多个计算机程序。其中,一个或多个计算机程序被存储在存储器中,一个或多个计算机程序包括指令。当指令被电子设备执行时,使得电子设备执行上述第二方面中任一项可能的实现中的文本输入的方法。In a fourth aspect, an electronic device is provided, comprising: one or more processors; a memory; and one or more computer programs. Wherein, one or more computer programs are stored in the memory, the one or more computer programs comprising instructions. When the instruction is executed by the electronic device, the electronic device is caused to perform the method of text input in any possible implementation of the above-mentioned second aspect.
第五方面,提供了一种包含指令的计算机程序产品,当所述计算机程序产品在第一电子设备上运行时,使得所述电子设备执行上述第二方面所述的文本输入的方法。In a fifth aspect, there is provided a computer program product comprising instructions, when the computer program product is run on a first electronic device, the electronic device is made to perform the text input method of the second aspect above.
第六方面,提供了一种计算机可读存储介质,包括指令,当所述指令在电子设备上运行时,使得所述电子设备执行上述第二方面所述的文本输入的方法。In a sixth aspect, a computer-readable storage medium is provided, comprising instructions that, when the instructions are executed on an electronic device, cause the electronic device to perform the text input method described in the second aspect above.
第七方面,提供了一种芯片用于执行指令,当所述芯片运行时,所述芯片执行上述第二方面所述的文本输入的方法。In a seventh aspect, a chip is provided for executing an instruction, and when the chip runs, the chip executes the text input method described in the second aspect above.
附图说明Description of drawings
图1是本申请实施例提供的一种电子设备的硬件结构示意图。FIG. 1 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
图2是本申请实施例提供的软件结构框图。FIG. 2 is a block diagram of a software structure provided by an embodiment of the present application.
图3是本申请实施例提供的一组图形用户界面。FIG. 3 is a set of graphical user interfaces provided by an embodiment of the present application.
图4是本申请实施例提供的另一组图形用户界面。FIG. 4 is another set of graphical user interfaces provided by an embodiment of the present application.
图5是本申请实施例提供的另一组图形用户界面。FIG. 5 is another set of graphical user interfaces provided by the embodiments of the present application.
图6是本申请实施例提供的另一组图形用户界面。FIG. 6 is another set of graphical user interfaces provided by an embodiment of the present application.
图7是本申请实施例提供的另一组图形用户界面。FIG. 7 is another set of graphical user interfaces provided by the embodiments of the present application.
图8是本申请实施例中提供的系统架构图。FIG. 8 is a system architecture diagram provided in an embodiment of the present application.
图9是本申请实施例提供的文本输入的方法的示意性流程图。FIG. 9 is a schematic flowchart of a method for text input provided by an embodiment of the present application.
图10是本申请实施例提供的文本输入的装置的示意性框图。FIG. 10 is a schematic block diagram of an apparatus for text input provided by an embodiment of the present application.
图11是本申请实施例提供的电子设备的示意性结构图。FIG. 11 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“复数个”或者“多个”是指两个或多于两个。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. Wherein, in the description of the embodiments of the present application, unless otherwise stated, “/” means or means, for example, A/B can mean A or B; “and/or” in this document is only a description of the associated object The association relationship of , indicates that there can be three kinds of relationships, for example, A and/or B, can indicate that A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "plurality" or "plurality" refers to two or more than two.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。Hereinafter, the terms "first" and "second" are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may expressly or implicitly include one or more of that feature. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
本申请实施例提供的方法可以应用于手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等电子设备上,本申请实施例对电子设备的具体类型不作任何限制。The methods provided in the embodiments of the present application can be applied to mobile phones, tablet computers, wearable devices, in-vehicle devices, augmented reality (AR)/virtual reality (VR) devices, notebook computers, ultra-mobile personal computers (ultra mobile personal computers) -mobile personal computer, UMPC), netbook, personal digital assistant (personal digital assistant, PDA) and other electronic devices, the embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
示例性的,图1示出了电子设备100的结构示意图。电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。Exemplarily, FIG. 1 shows a schematic structural diagram of an electronic device 100 . The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195 and so on. 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, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作 码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the electronic device 100 . The controller can generate operation control signals according to the instruction opcode and timing signal, and complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces. For example, the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate with each other through the I2C bus interface, so as to realize the touch function of the electronic device 100 .
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 . In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160 . For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc. In some embodiments, the processor 110 communicates with the camera 193 through a CSI interface, so as to realize the photographing function of the electronic device 100 . The processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the electronic device 100 .
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 receives input from the battery 142 and/or the charging management module 140 and supplies power to the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 . The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be provided in the processor 110 . In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。 Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Wherein, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and passed to the application processor. The application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 . In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local  area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR). The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light). emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on. In some embodiments, the electronic device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back by the camera 193 . For example, when taking a photo, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin tone. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193 .
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP 加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object is projected through the lens to generate an optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats of image signals. In some embodiments, the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。A digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy and so on.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos of various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process the input information, and can continuously learn by itself. Applications such as intelligent cognition of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口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 electronic device 100 . The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。Internal memory 121 may be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing the instructions stored in the internal memory 121 . The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like. The storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 100 and the like. In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。Speaker 170A, also referred to as a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also referred to as "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or a voice message, the voice can be answered by placing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是 3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone jack 170D is used to connect wired earphones. The earphone interface 170D may be the USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 180A may be provided on the display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, and the like. The capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100 . In some embodiments, the angular velocity of electronic device 100 about three axes (ie, x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the angle at which the electronic device 100 shakes, calculates the distance that the lens module needs to compensate for according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse motion to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F for measuring distance. The electronic device 100 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The light emitting diodes may be infrared light emitting diodes. The electronic device 100 emits infrared light to the outside through the light emitting diode. Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 . The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境 光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touch.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking pictures with fingerprints, answering incoming calls with fingerprints, and the like.
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect the temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by the low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "touch panel". The touch sensor 180K may 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 touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to touch operations may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the location where the display screen 194 is located.
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone. The audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function. The application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。Motor 191 can generate vibrating cues. The motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects. The motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电 子设备100中,不能和电子设备100分离。The SIM card interface 195 is used to connect a SIM card. The SIM card can be contacted and separated from the electronic device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 . The electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as call and data communication. In some embodiments, the electronic device 100 employs an eSIM, ie: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiments of the present application take an Android system with a layered architecture as an example to exemplarily describe the software structure of the electronic device 100 .
图2是本申请实施例的电子设备100的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。应用程序层可以包括一系列应用程序包。FIG. 2 is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present application. The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer. The application layer can include a series of application packages.
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in Figure 2, the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and so on.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 2, the application framework layer may include window managers, content providers, view systems, telephony managers, resource managers, notification managers, and the like.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。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, take screenshots, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make these data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications. A display interface can consist of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide the communication function of the electronic device 100 . For example, the management of call status (including connecting, hanging up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device vibrates, and the indicator light flashes.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。A system library can include multiple functional modules. For example: surface manager (surface manager), media library (media library), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
2D图形引擎是2D绘图的绘图引擎。2D graphics engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
应理解,本申请实施例可以适用于Android、IOS或者鸿蒙等等系统中。It should be understood that the embodiments of the present application may be applicable to systems such as Android, IOS, or Hongmeng.
图3是本申请实施例提供的一组图形用户界面(graphical user interface,GUI)。FIG. 3 is a set of graphical user interfaces (graphical user interface, GUI) provided by the embodiments of the present application.
参见图3中的(a)所示,用户正在使用电视遥控器进行电影搜索,智能电视上显示电影搜索显示界面且此时智能电视的光标位于文本输入框301。当智能电视检测到用户将光标移动至文本输入框301时,可以向周围的设备发送广播消息,该广播消息可以用于指示智能电视需要进行文本输入。Referring to (a) in FIG. 3 , the user is using the TV remote control to search for movies, the movie search display interface is displayed on the smart TV, and the cursor of the smart TV is located in the text input box 301 at this time. When the smart TV detects that the user moves the cursor to the text input box 301, a broadcast message can be sent to surrounding devices, and the broadcast message can be used to indicate that the smart TV needs to perform text input.
一个实施例中,智能电视也可以在检测到用户将光标移动至智能电视显示的输入法中的某个键(例如,“ABC”键)时,向周围的设备发送该广播消息。In one embodiment, the smart TV can also send the broadcast message to surrounding devices when it detects that the user moves the cursor to a certain key (eg, "ABC" key) in the input method displayed by the smart TV.
应理解,如图3中的(a)所示的智能电视显示的电影搜索显示界面也可以称之为文本输入界面。本申请实施例中的文本输入界面上可以包括文本输入框,或者,该文本输入界面可以包括文本输入框以及输入法。It should be understood that the movie search display interface displayed by the smart TV as shown in (a) of FIG. 3 can also be referred to as a text input interface. The text input interface in this embodiment of the present application may include a text input box, or the text input interface may include a text input box and an input method.
一个实施例中,该广播消息中还可以携带智能电视的通信地址(例如,互联网协议(internet protocol,IP)地址、端口号或者蓝牙地址等)。In one embodiment, the broadcast message may further carry a communication address of the smart TV (for example, an internet protocol (Internet protocol, IP) address, a port number, or a Bluetooth address, etc.).
参见图3中的(b)所示,手机上出现提醒框302,用户可以选择不使用电视遥控器进行文本输入,而是选择手机进行文本输入。提醒框302中可以提示用户“检测到智能电视需要进行文本输入,是否打开遥控器应用进行输入”。当手机检测到用户点击控件303的操作后,可以显示如图3中的(c)所示的GUI。Referring to (b) in FIG. 3 , a reminder box 302 appears on the mobile phone, and the user may choose not to use the TV remote control for text input, but to select the mobile phone for text input. The prompt box 302 may prompt the user "it is detected that the smart TV needs to perform text input, whether to open the remote control application for input". After the mobile phone detects that the user clicks on the control 303, the GUI shown in (c) of FIG. 3 can be displayed.
一个实施例中,当手机检测到用户点击控件303的操作时,手机可以通过广播消息中携带的通信地址与智能电视建立连接。In one embodiment, when the mobile phone detects that the user clicks on the control 303, the mobile phone can establish a connection with the smart TV through the communication address carried in the broadcast message.
一个实施例中,当手机和智能电视建立连接后,手机还可以向智能电视发送手机的设备信息(例如,手机的设备名称“P40”以及使用手机的用户名“Tom”)。智能电视在接收到手机发送的设备信息后,可以在通过智能电视的显示屏显示提示信息,例如,该提示信息为“请在Tom的P40上进行文本输入”。In one embodiment, after the mobile phone and the smart TV are connected, the mobile phone can also send device information of the mobile phone to the smart TV (for example, the device name "P40" of the mobile phone and the user name "Tom" of the mobile phone). After receiving the device information sent by the mobile phone, the smart TV can display prompt information on the display screen of the smart TV, for example, the prompt information is "Please enter text on Tom's P40".
参见图3中的(c)所示的GUI,该GUI为手机上遥控器应用的显示界面。该显示界面上包括多个功能控件,例如,开关、静音、输入、菜单、扩展键、更换频道、调低或者调高音量以及返回等功能。当手机检测到用户点击输入控件304的操作后,手机可以显示如图3中的(d)所示的GUI。Referring to the GUI shown in (c) of FIG. 3 , the GUI is the display interface of the remote control application on the mobile phone. The display interface includes a number of functional controls, such as on/off, mute, input, menu, extended keys, change channel, volume down or up, and back. After the mobile phone detects that the user clicks on the input control 304, the mobile phone can display the GUI as shown in (d) of FIG. 3 .
一个实施例中,若手机接收到该广播消息时处于锁屏界面,那么当手机检测到用户点击控件303的操作时,手机可以开启摄像头采集用户的人脸信息。若摄像头采集的人脸信息与手机中预置的人脸信息匹配,手机可以先进行解锁,从而进入非锁屏界面,并在非锁屏界面下自动打开遥控器应用。或者,当手机检测到用户点击控件303的操作时,手机可 以采集用户的指纹信息。若采集到的指纹信息与手机中预置的指纹信息匹配,那么手机可以先进行解锁,从而进入非锁屏界面,并在非锁屏界面下自动打开遥控器应用。In one embodiment, if the mobile phone is in the lock screen interface when receiving the broadcast message, when the mobile phone detects that the user clicks on the control 303, the mobile phone can turn on the camera to collect the user's face information. If the face information collected by the camera matches the face information preset in the mobile phone, the mobile phone can be unlocked first to enter the non-lock screen interface, and the remote control application will be automatically opened in the non-lock screen interface. Alternatively, when the mobile phone detects that the user clicks on the control 303, the mobile phone can collect the user's fingerprint information. If the collected fingerprint information matches the preset fingerprint information in the mobile phone, the mobile phone can be unlocked first, thereby entering the non-lock screen interface, and automatically opening the remote control application in the non-lock screen interface.
参见图3中的(d)所示的GUI,该GUI为手机上遥控器应用的另一显示界面。当手机检测到用户点击控件304后,手机可以调出手机的输入法。用户可以通过手机调出的输入法进行文本内容的输入。当手机检测到用户在文本输入框306中输入了文本内容“电影1”并点击了控件305的操作后,手机可以向智能电视发送该文本内容。Referring to the GUI shown in (d) of FIG. 3 , the GUI is another display interface of the remote control application on the mobile phone. When the mobile phone detects that the user clicks on the control 304, the mobile phone can call up the input method of the mobile phone. The user can input the text content through the input method called up by the mobile phone. When the mobile phone detects that the user has input the text content "movie 1" in the text input box 306 and clicks the control 305, the mobile phone can send the text content to the smart TV.
一个实施例中,当手机检测到用户点击控件303的操作后,手机也可以直接显示如图3中的(d)所示的GUI。也就是说,手机检测到用户点击控件303的操作后,手机可以先通过采集的人脸信息或者指纹信息进行解锁操作,从而进入非锁屏界面。在非锁屏界面下手机自动打开遥控器应用并调出手机的输入法,从而显示如图3中的(d)所示的GUI。In one embodiment, when the mobile phone detects that the user clicks on the control 303, the mobile phone can also directly display the GUI shown in (d) of FIG. 3 . That is to say, after the mobile phone detects the user's operation of clicking on the control 303, the mobile phone can first perform an unlocking operation through the collected face information or fingerprint information, thereby entering the non-lock screen interface. In the non-lock screen interface, the mobile phone automatically opens the remote control application and calls up the input method of the mobile phone, thereby displaying the GUI shown in (d) of FIG. 3 .
一个实施例中,若手机接收到该广播消息时处于非锁屏界面,那么手机可以在该非锁屏界面上直接调出手机的输入法,而无需打开遥控器应用。用户可以通过手机调出的输入法进行文本输入。当手机检测到用户通过输入法在文本输入框306中输入了文本内容“电影1”并点击了控件305的操作后,手机可以向智能电视发送该文本内容。In one embodiment, if the mobile phone is in a non-lock screen interface when receiving the broadcast message, the mobile phone can directly call up the input method of the mobile phone on the non-lock screen interface without opening the remote control application. The user can input text through the input method called up by the mobile phone. When the mobile phone detects that the user has input the text content "movie 1" in the text input box 306 through the input method and clicks the control 305, the mobile phone can send the text content to the smart TV.
一个实施例中,手机也可以实时向智能电视发送用户输入的文本内容。示例性的,当手机检测到用户在文本输入框306中输入文本内容“电”时,就可以将该文本信息发送给智能电视,从而在智能电视的文本输入框301中显示文本内容“电”。当手机检测到用户接着在文本输入框306输入了文本内容“影”时,手机可以继续将文本内容“影”发送给智能电视,从而在智能电视的文本输入框301中显示文本内容“电影”。当手机检测到用户接着在文本输入框306输入了文本内容“1”时,手机可以继续将文本内容“1”发送给智能电视,从而在智能电视的文本输入框301中显示文本内容“电影1”。In one embodiment, the mobile phone can also send the text content input by the user to the smart TV in real time. Exemplarily, when the mobile phone detects that the user inputs the text content "electricity" in the text input box 306, the text information can be sent to the smart TV, so that the text content "electricity" is displayed in the text input box 301 of the smart TV. . When the mobile phone detects that the user then enters the text content "Shadow" in the text input box 306, the mobile phone can continue to send the text content "Shadow" to the smart TV, so that the text content "movie" is displayed in the text input box 301 of the smart TV . When the mobile phone detects that the user then enters the text content "1" in the text input box 306, the mobile phone can continue to send the text content "1" to the smart TV, so that the text content "movie 1" is displayed in the text input box 301 of the smart TV ".
应理解,若手机上检测到用户对文本输入框306中的文本内容删减时,手机可以实时向智能电视指示用户删减的文本内容,从而使得智能电视的文本输入框301中的文本内容与手机的文本输入框306中的文本内容同步。It should be understood that if the mobile phone detects that the user has deleted the text content in the text input box 306, the mobile phone can indicate the text content deleted by the user to the smart TV in real time, so that the text content in the text input box 301 of the smart TV is the same as The text content in the text input box 306 of the mobile phone is synchronized.
参见图3中的(e)所示,智能电视在接收到手机发送的文本内容后,可以在智能电视的文本输入框301中显示该文本内容(例如,“电影1”)。并且,智能电视可以显示电影1对应的信息(例如,类型、导演、主演等信息)。Referring to (e) in FIG. 3 , after receiving the text content sent by the mobile phone, the smart TV can display the text content (eg, "movie 1") in the text input box 301 of the smart TV. In addition, the smart TV can display information corresponding to the movie 1 (for example, information such as genre, director, starring, etc.).
本申请实施例中,手机可以接收到智能电视发送的广播消息后,为智能电视提供文本输入,这样有助于提升用户在进行文本输入时的便捷性。同时,手机和智能电视也无需是同一账号下的设备,只要手机在智能电视附近就可以为智能电视提供文本内容输入,有助于提升用户体验。In the embodiment of the present application, after receiving the broadcast message sent by the smart TV, the mobile phone can provide text input for the smart TV, which helps to improve the convenience of the user when entering text. At the same time, the mobile phone and the smart TV do not need to be devices under the same account. As long as the mobile phone is near the smart TV, it can provide text content input for the smart TV, which helps to improve the user experience.
图4是本申请实施例提供的另一组GUI。FIG. 4 is another set of GUIs provided by the embodiments of the present application.
参见图4中的(a)所示的GUI,当手机接收到智能电视发送的广播消息时,手机可以在锁屏界面上显示文本输入图标401。当手机检测到用户点击图标401的操作时,可以显示如图4中的(b)所示的GUI。Referring to the GUI shown in (a) of FIG. 4 , when the mobile phone receives the broadcast message sent by the smart TV, the mobile phone can display a text input icon 401 on the lock screen interface. When the mobile phone detects the user's operation of clicking on the icon 401, the GUI as shown in (b) of FIG. 4 can be displayed.
一个实施例中,当手机检测到用户点击图标401的操作时,手机可以根据广播消息中携带的智能电视的通信地址,与智能电视建立连接。In one embodiment, when the mobile phone detects that the user clicks on the icon 401, the mobile phone can establish a connection with the smart TV according to the communication address of the smart TV carried in the broadcast message.
参见图4中的(b)所示的GUI,该GUI为手机检测到用户点击了图标401之后的显示界面。手机可以在锁屏界面上显示输入法,用户可以在文本输入框403中输入文本内容。 当手机检测到用户在文本输入框403中输入了文本内容(例如,“电影1”)并点击了控件402的操作后,手机可以将该文本内容发送给智能电视。智能电视可以显示如图3中的(e)所示的GUI。Referring to the GUI shown in (b) of FIG. 4 , the GUI is a display interface after the mobile phone detects that the user has clicked the icon 401 . The mobile phone can display the input method on the lock screen interface, and the user can input text content in the text input box 403 . After the mobile phone detects that the user has entered text content (eg, "movie 1") in the text input box 403 and clicked the operation of the control 402, the mobile phone can send the text content to the smart TV. The smart TV can display a GUI as shown in (e) of FIG. 3 .
一个实施例中,手机可以将文本输入框403中的内容实时发送给智能电视,从而使得智能电视的文本输入框301中的文本内容与手机的文本输入框403中的内容同步。In one embodiment, the mobile phone can send the content in the text input box 403 to the smart TV in real time, so that the text content in the text input box 301 of the smart TV is synchronized with the content in the text input box 403 of the mobile phone.
本申请实施例中,当手机接收到智能电视发送的广播消息后,可以通过图标来提示用户可以通过手机辅助智能电视进行文本内容的输入,这样在锁屏状态下就可以完成文本内容的输入,无需手机进入非锁屏状态,并且也无需手机开启遥控器应用。手机可以在锁屏界面下为智能电视提供文本输入,这样有助于提升用户在进行大屏设备文本输入时的便捷性,从而提升用户体验。同时,手机和智能电视也无需是同一账号下的设备,只要手机在智能电视附近就可以为智能电视提供文本内容输入,有助于提升用户体验。In the embodiment of the present application, after the mobile phone receives the broadcast message sent by the smart TV, an icon can be used to prompt the user that the mobile phone can assist the smart TV to input text content, so that the input of the text content can be completed in the locked screen state. There is no need for the phone to enter the unlocked state, and there is no need for the phone to open the remote control application. The mobile phone can provide text input for the smart TV under the lock screen interface, which helps to improve the convenience of the user when entering text on the large-screen device, thereby improving the user experience. At the same time, the mobile phone and the smart TV do not need to be devices under the same account. As long as the mobile phone is near the smart TV, it can provide text content input for the smart TV, which helps to improve the user experience.
参见图4中的(c)所示的GUI,该GUI为手机检测到用户点击了图标401之后的显示界面。当手机检测到用户点击图标401的操作时,手机可以开启摄像头采集用户的人脸信息。若摄像头采集的人脸信息与手机中预置的人脸信息匹配,手机可以先进行解锁,从而进入非锁屏界面,并在非锁屏界面下自动调出手机的输入法。或者,当手机检测到用户点击图标401的操作时,手机可以采集用户的指纹信息。若采集到的指纹信息与手机中预置的指纹信息匹配,那么手机可以先进行解锁,从而进入非锁屏界面,并在非锁屏界面下自动调出手机的输入法。Referring to the GUI shown in (c) of FIG. 4 , the GUI is the display interface after the mobile phone detects that the user has clicked the icon 401 . When the mobile phone detects that the user clicks the icon 401, the mobile phone can turn on the camera to collect the user's face information. If the face information collected by the camera matches the preset face information in the mobile phone, the mobile phone can be unlocked first, so as to enter the non-lock screen interface, and automatically call up the input method of the mobile phone in the non-lock screen interface. Alternatively, when the mobile phone detects that the user clicks on the icon 401, the mobile phone can collect the fingerprint information of the user. If the collected fingerprint information matches the preset fingerprint information in the mobile phone, the mobile phone can be unlocked first, thereby entering the non-lock screen interface, and the input method of the mobile phone is automatically called up in the non-lock screen interface.
本申请实施例中,当手机接收到智能电视发送的广播消息后,可以通过图标来提示用户可以通过手机辅助智能电视进行文本内容的输入,手机在进入非锁屏界面后可以自动调出输入法,无需手机开启遥控器应用。手机可以在非锁屏界面无需启动应用程序就可以为智能电视提供文本输入,这样有助于提升用户在进行大屏设备文本输入时的便捷性,从而提升用户体验。图5是本申请实施例提供的另一组GUI。In the embodiment of the present application, after the mobile phone receives the broadcast message sent by the smart TV, an icon can be used to prompt the user that the mobile phone can assist the smart TV to input text content, and the mobile phone can automatically call up the input method after entering the non-lock screen interface. , you don't need your phone to open the remote control app. The mobile phone can provide text input for the smart TV without starting the application on the non-lock screen interface, which helps to improve the convenience of the user when entering text on the large-screen device, thereby improving the user experience. FIG. 5 is another set of GUIs provided by the embodiments of the present application.
参见图5中的(a)所示,用户正在使用电视遥控器进行电影搜索,智能电视上显示电影搜索显示界面且此时智能电视的光标位于文本输入框501。当智能电视检测到用户将光标移动至输入框501时,可以向周围的设备发送广播消息,该广播消息可以用于指示智能电视需要进行文本输入。Referring to (a) in FIG. 5 , the user is using the TV remote control to search for movies, a movie search display interface is displayed on the smart TV, and the cursor of the smart TV is located in the text input box 501 at this time. When the smart TV detects that the user moves the cursor to the input box 501, a broadcast message may be sent to surrounding devices, and the broadcast message may be used to indicate that the smart TV needs to perform text input.
一个实施例中,该广播消息中还可以携带智能电视的通信地址(例如,IP地址、端口号或者蓝牙地址等)。In one embodiment, the broadcast message may also carry the communication address (eg, IP address, port number, or Bluetooth address, etc.) of the smart TV.
参见图5中的(b)所示,用户可以拿起手机,此时手机可以处于解锁状态且手机显示手机桌面。Referring to (b) in FIG. 5 , the user can pick up the mobile phone, at this time the mobile phone can be in an unlocked state and the mobile phone displays the mobile phone desktop.
参见图5中的(c)所示的GUI,该GUI为手机的桌面。当手机在检测到用户点击桌面上的遥控器应用的图标502的操作时,手机可以打开遥控器应用。手机在检测到用户打开遥控器应用时可以开始监听周围设备发送的广播消息。当手机收到智能电视发送的广播消息后,手机可以显示如图5中的(d)所示的GUI。Referring to the GUI shown in (c) of FIG. 5 , the GUI is the desktop of the mobile phone. When the mobile phone detects that the user clicks the icon 502 of the remote control application on the desktop, the mobile phone can open the remote control application. When the mobile phone detects that the user has opened the remote control application, it can start listening to the broadcast messages sent by the surrounding devices. After the mobile phone receives the broadcast message sent by the smart TV, the mobile phone can display the GUI shown in (d) of FIG. 5 .
参见图5中的(d)所示的GUI,该GUI为手机的遥控器应用的显示界面。当手机接收到智能电视发送的广播消息后,手机可以显示提醒框503,其中,提醒框503中包括提示信息“检测到智能电视需要进行文本输入,是否使用输入功能进行输入”。当手机检测到用户点击控件504的操作后,手机可以显示如图5中的(e)所示的GUI。Referring to the GUI shown in (d) of FIG. 5 , the GUI is the display interface of the remote control application of the mobile phone. When the mobile phone receives the broadcast message sent by the smart TV, the mobile phone can display a reminder box 503, wherein the reminder box 503 includes the prompt information "it is detected that the smart TV needs to perform text input, whether to use the input function for input". After the mobile phone detects that the user clicks on the control 504, the mobile phone can display the GUI shown in (e) of FIG. 5 .
一个实施例中,当手机检测到用户点击控件504的操作时,手机可以根据广播消息中携带的智能电视的通信地址,与该智能电视建立连接。In one embodiment, when the mobile phone detects that the user clicks on the control 504, the mobile phone can establish a connection with the smart TV according to the communication address of the smart TV carried in the broadcast message.
参见图5中的(e)所示的GUI,该GUI为手机的遥控器应用的另一显示界面。当手机检测到用户点击控件504的操作后,手机可以调出手机的输入法。当手机检测到用户在文本输入框506中输入了文本内容“电影1”并点击了控件505的操作后,手机可以向智能电视发送该文本内容。Referring to the GUI shown in (e) of FIG. 5 , the GUI is another display interface of the remote control application of the mobile phone. After the mobile phone detects that the user clicks on the control 504, the mobile phone can call up the input method of the mobile phone. When the mobile phone detects that the user has input the text content "movie 1" in the text input box 506 and clicks the control 505, the mobile phone can send the text content to the smart TV.
参见图5中的(f)所示的GUI,该GUI为手机的遥控器应用的另一显示界面。当手机检测到用户点击控件504的操作后,手机可以检测用户输入的语音内容。如图5中的(f)所示,用户发出语音内容“电影1”。手机检测到用户输入的语音内容后,可以确定该语音内容对应的文本内容“电影1”,从而手机向智能电视发送该文本内容。Referring to the GUI shown in (f) of FIG. 5 , the GUI is another display interface of the remote control application of the mobile phone. After the mobile phone detects that the user clicks on the control 504, the mobile phone can detect the voice content input by the user. As shown in (f) of FIG. 5, the user utters the voice content "movie 1". After the mobile phone detects the voice content input by the user, it can determine the text content "movie 1" corresponding to the voice content, so that the mobile phone sends the text content to the smart TV.
本申请实施例中,手机中可以包括语音识别(automatic speech recognition,ASR)模块,ASR模块主要作用是将用户的语音内容识别为文字内容。In the embodiment of the present application, the mobile phone may include a speech recognition (automatic speech recognition, ASR) module, and the main function of the ASR module is to recognize the user's speech content as text content.
一个实施例中,手机也可以在检测到用户输入的语音内容后,将该语音内容发送给智能电视。智能电视可以将该语音内容转化为文本内容,从而显示在文本输入框501中。In one embodiment, the mobile phone can also send the voice content to the smart TV after detecting the voice content input by the user. The smart TV can convert the voice content into text content, so as to be displayed in the text input box 501 .
一个实施例中,当手机检测到用户点击控件504的操作后,手机还可以提示用户选择进行文本输入或者语音输入。若用户选择了文本输入,那么手机可以调出输入法,从而使得用户可以通过该输入法进行文本内容的输入;或者,若用户选择了语音输入,那么手机可以开始检测用户输入的语音内容。In one embodiment, after the mobile phone detects that the user clicks on the control 504, the mobile phone may further prompt the user to select text input or voice input. If the user selects text input, the mobile phone can call up an input method, so that the user can input text content through the input method; or, if the user selects voice input, the mobile phone can start to detect the voice content input by the user.
一个实施例中,当手机检测到用户打开遥控器应用的操作后,可以开始监听广播消息。当手机接收到智能电视发送的广播消息后,手机也可以不显示提醒框503,手机可以直接调出输入法从而检测用户输入的文本内容,或者,手机可以开始监听用户输入的语音内容。In one embodiment, when the mobile phone detects the operation of the user opening the remote control application, it can start to monitor the broadcast message. When the mobile phone receives the broadcast message sent by the smart TV, the mobile phone may not display the reminder box 503, and the mobile phone may directly call up the input method to detect the text content input by the user, or the mobile phone may start to monitor the voice content input by the user.
一个实施例中,手机可以将文本输入框506中的内容实时发送给智能电视,从而使得智能电视的文本输入框501中的文本内容与手机的文本输入框506中的内容同步。In one embodiment, the mobile phone can send the content in the text input box 506 to the smart TV in real time, so that the text content in the text input box 501 of the smart TV is synchronized with the content in the text input box 506 of the mobile phone.
参见图5中的(g)所示,智能电视在接收到手机发送的文本内容后,可以在智能电视的输入框501中显示该文本内容(例如,“电影1”)。并且,智能电视可以显示电影1对应的信息(例如,类型、导演、主演等信息)。Referring to (g) in FIG. 5 , after receiving the text content sent by the mobile phone, the smart TV can display the text content (for example, "movie 1") in the input box 501 of the smart TV. In addition, the smart TV can display information corresponding to the movie 1 (for example, information such as genre, director, starring, etc.).
本申请实施例中,手机与智能电视无需提前建立连接或者进行绑定,而是在智能电视需要输入时通过动态匹配的方式临时建立一种输入与被输入的联系。在智能电视需要进行输入时,用户可以随手拿起身边的任意一个设备(例如,手机、Pad)进行输入,这样有助于提升用户在进行文本输入时的便捷性,从而提升用户体验。同时,手机在开启遥控器应用后启动监听,在监听到广播消息后通过提醒框来提示用户进行文本输入,有助于用户明确手机可以作为输入的设备。用户在手机上发起输入操作之前,手机不会出现可能对用户造成干扰的任何提示信息,避免了对用户的干扰,从而有助于提升用户体验。In the embodiment of the present application, the mobile phone and the smart TV do not need to be connected or bound in advance, but a connection between the input and the input is temporarily established through dynamic matching when the smart TV needs input. When the smart TV needs to input, the user can pick up any device (eg, mobile phone, Pad) around him to input, which helps to improve the convenience of the user when inputting text, thereby improving the user experience. At the same time, the mobile phone starts monitoring after opening the remote control application, and prompts the user to input text through a reminder box after listening to the broadcast message, which helps the user to clarify that the mobile phone can be used as an input device. Before the user initiates an input operation on the mobile phone, the mobile phone will not display any prompt information that may interfere with the user, thereby avoiding interference to the user, thereby helping to improve the user experience.
图6是本申请实施例提供的另一组GUI。FIG. 6 is another set of GUIs provided by the embodiments of the present application.
参见图6中的(a)所示的GUI,该GUI为手机的桌面。当手机在检测到用户点击桌面上的遥控器应用的图标的操作时,手机可以开始监听周围设备发送的广播消息并显示如图6中的(b)所示的GUI。Referring to the GUI shown in (a) of FIG. 6 , the GUI is the desktop of the mobile phone. When the mobile phone detects that the user clicks the icon of the remote control application on the desktop, the mobile phone can start monitoring broadcast messages sent by surrounding devices and display the GUI shown in (b) of FIG. 6 .
参见图6中的(b)所示的GUI,该GUI为手机的遥控器应用的显示界面。当手机未接收到智能电视发送的广播消息时,该显示界面上的按键颜色为灰色(灰色表示控件不可 使用)。Referring to the GUI shown in (b) of FIG. 6 , the GUI is the display interface of the remote control application of the mobile phone. When the mobile phone does not receive the broadcast message sent by the smart TV, the color of the buttons on the display interface is gray (gray means the controls are unavailable).
参见图6中的(c)所示的GUI,该GUI为手机的遥控器应用的另一显示界面。当手机接收到智能电视发送的广播消息时,该显示界面上的按键颜色由灰色变为黑色(黑色表示控件可以使用)。此时,用户可以使用遥控器上的输入功能进行文本内容的输入。当手机检测到用户点击输入控件601的操作时,手机可以显示如图6中的(d)所示的GUI。Referring to the GUI shown in (c) of FIG. 6 , the GUI is another display interface of the remote control application of the mobile phone. When the mobile phone receives the broadcast message sent by the smart TV, the color of the buttons on the display interface changes from gray to black (black indicates that the controls can be used). At this time, the user can use the input function on the remote control to input the text content. When the mobile phone detects that the user clicks on the input control 601, the mobile phone can display a GUI as shown in (d) of FIG. 6 .
一个实施例中,当手机接收到智能电视发送的广播消息时,手机可以根据广播消息中携带的智能电视的通信地址,与该智能电视建立连接。In one embodiment, when the mobile phone receives the broadcast message sent by the smart TV, the mobile phone can establish a connection with the smart TV according to the communication address of the smart TV carried in the broadcast message.
参见图6中的(d)所示的GUI,该GUI为手机的遥控器应用的另一显示界面。当手机检测到用户点击输入控件601的操作后,手机可以调出手机的输入法。当手机检测到用户在文本输入框602中输入了文本内容“电影1”并点击了控件603的操作后,手机可以通向智能电视发送该文本内容。Referring to the GUI shown in (d) of FIG. 6 , the GUI is another display interface of the remote control application of the mobile phone. After the mobile phone detects that the user clicks on the input control 601, the mobile phone can call up the input method of the mobile phone. When the mobile phone detects that the user has input the text content "movie 1" in the text input box 602 and clicks the control 603, the mobile phone can send the text content to the smart TV.
应理解,本申请实施例中,当手机接收到智能电视发送的广播消息时,手机可以直接显示如图6中的(d)所示的GUI。也就是说,当手机接收到智能电视发送的广播消息时,该显示界面上的按键颜色由灰色变为黑色的同时,手机可以自动调出手机的输入法。It should be understood that, in this embodiment of the present application, when the mobile phone receives the broadcast message sent by the smart TV, the mobile phone can directly display the GUI shown in (d) of FIG. 6 . That is to say, when the mobile phone receives the broadcast message sent by the smart TV, the color of the buttons on the display interface changes from gray to black, and the mobile phone can automatically call up the input method of the mobile phone.
参见图6中的(e)所示的GUI,该GUI为手机的遥控器应用的另一显示界面。当手机接收到该广播消息后,手机可以检测用户输入的语音内容。如图6中的(e)所示,用户发出语音内容“电影1”。手机检测到用户的语音内容后,可以确定该语音内容对应的文本内容“电影1”,从而手机向智能电视发送该文本内容。Referring to the GUI shown in (e) of FIG. 6 , the GUI is another display interface of the remote control application of the mobile phone. After the mobile phone receives the broadcast message, the mobile phone can detect the voice content input by the user. As shown in (e) of FIG. 6, the user utters the voice content "movie 1". After the mobile phone detects the user's voice content, it can determine the text content "movie 1" corresponding to the voice content, so that the mobile phone sends the text content to the smart TV.
一个实施例中,当手机接收到智能电视发送的广播消息后,遥控器应用的显示界面上的按键颜色由灰色变为黑色的同时,手机还可以提示用户选择进行文本输入或者语音输入。若用户选择了文本输入,那么手机可以调出输入法,从而使得用户可以通过该输入法进行文本内容的输入;或者,若用户选择了语音输入,那么手机可以开始检测用户输入的语音内容。In one embodiment, when the mobile phone receives the broadcast message sent by the smart TV, the color of the buttons on the display interface of the remote control application changes from gray to black, and the mobile phone can also prompt the user to select text input or voice input. If the user selects text input, the mobile phone can call up an input method, so that the user can input text content through the input method; or, if the user selects voice input, the mobile phone can start to detect the voice content input by the user.
一个实施例中,手机可以将文本输入框602中的内容实时发送给智能电视,从而使得智能电视的文本输入框中的文本内容与手机的文本输入框602中的内容同步。In one embodiment, the mobile phone can send the content in the text input box 602 to the smart TV in real time, so that the text content in the text input box of the smart TV is synchronized with the content in the text input box 602 of the mobile phone.
智能电视在接收到手机发送的文本内容后,可以在智能电视的输入框中显示该文本内容(例如,“电影1”)。并且,智能电视可以显示电影1对应的信息(例如,类型、导演、主演等信息)。After receiving the text content sent by the mobile phone, the smart TV can display the text content (for example, "movie 1") in the input box of the smart TV. In addition, the smart TV can display information corresponding to the movie 1 (for example, information such as genre, director, starring, etc.).
本申请实施例中,手机与智能电视无需提前建立连接或者进行绑定,而是在智能电视需要输入时通过动态匹配的方式临时建立一种输入与被输入的联系。在智能电视需要进行输入时,用户可以随手拿起身边的任意一个设备(例如,手机、Pad)进行输入,这样有助于提升用户在进行文本输入时的便捷性,从而提升用户体验。同时,手机在开启遥控器应用后启动监听,在监听到广播消息后通过控件颜色的变化来提醒手机可以作为输入的设备。用户在手机上发起输入操作之前,手机不会出现可能对用户造成干扰的任何提示信息,避免了对用户的干扰,从而有助于提升用户体验。In the embodiment of the present application, the mobile phone and the smart TV do not need to be connected or bound in advance, but a connection between the input and the input is temporarily established through dynamic matching when the smart TV needs input. When the smart TV needs to input, the user can pick up any device (eg, mobile phone, Pad) around him to input, which helps to improve the convenience of the user when inputting text, thereby improving the user experience. At the same time, the mobile phone starts monitoring after opening the remote control application, and reminds the mobile phone that the mobile phone can be used as an input device through the change of the color of the control after monitoring the broadcast message. Before the user initiates an input operation on the mobile phone, the mobile phone will not display any prompt information that may interfere with the user, thereby avoiding interference to the user, thereby helping to improve the user experience.
图7是本申请实施例提供的另一组GUI。FIG. 7 is another set of GUIs provided by the embodiments of the present application.
参见图7中的(a)所示的GUI,该GUI为手机的锁屏界面。当手机在检测到用户在该锁屏界面的预设操作(例如,手机检测到用户在该锁屏界面上画“S”)时,手机可以开始监听周围设备发送的广播消息。当手机检测到智能电视发送的广播消息时,手机可以显 示如图7中的(b)所示的GUI。Referring to the GUI shown in (a) of FIG. 7 , the GUI is the lock screen interface of the mobile phone. When the mobile phone detects the user's preset operation on the lock screen interface (for example, the mobile phone detects that the user draws "S" on the lock screen interface), the mobile phone can start monitoring broadcast messages sent by surrounding devices. When the mobile phone detects the broadcast message sent by the smart TV, the mobile phone can display the GUI as shown in (b) in Figure 7 .
一个实施例中,手机开始监听周围设备发送广播消息的触发条件可以是手机在当前显示的界面上检测到用户画出预设形状的图案;或者,也可以是手机在当前界面上检测到的隔空手势;或者,还可以是手机检测到用户按压手机的物理按键(例如,音量键和电源键)的操作;或者,还可以是手机检测到用户在当前界面上的预设手势以及按压物理按键的操作。In one embodiment, the triggering condition for the mobile phone to start monitoring broadcast messages sent by surrounding devices may be that the mobile phone detects that the user draws a pattern of a preset shape on the currently displayed interface; Empty gesture; alternatively, the mobile phone may detect that the user presses the physical buttons of the mobile phone (for example, the volume key and the power button); alternatively, the mobile phone may detect the user's preset gesture on the current interface and press the physical button operation.
参见图7中的(b)所示的GUI,该GUI为手机的另一锁屏界面。响应于接收到智能电视发送的广播消息,手机可以在该锁屏界面上显示文本输入图标701。当手机检测到用户点击图标701的操作时,可以显示如图7中的(c)所示的GUI,或者,可以显示如图7中的(d)所示的GUI。Referring to the GUI shown in (b) of FIG. 7 , the GUI is another lock screen interface of the mobile phone. In response to receiving the broadcast message sent by the smart TV, the mobile phone may display a text input icon 701 on the lock screen interface. When the mobile phone detects the user's operation of clicking on the icon 701, the GUI as shown in (c) in FIG. 7 may be displayed, or the GUI as shown in (d) in FIG. 7 may be displayed.
参见图7中的(c)所示的GUI,该GUI为手机检测到用户点击了图标701之后的显示界面。手机可以在锁屏界面上显示输入法,用户可以在文本输入框703中输入文本内容。当手机检测到用户在文本输入框703中输入了文本内容(例如,“电影1”)并点击了控件702的操作后,手机可以将该文本内容发送给智能电视。智能电视可以显示如图3中的(e)所示的GUI。Referring to the GUI shown in (c) of FIG. 7 , the GUI is the display interface after the mobile phone detects that the user has clicked the icon 701 . The mobile phone can display the input method on the lock screen interface, and the user can input text content in the text input box 703 . After the mobile phone detects that the user has input text content (eg, "movie 1") in the text input box 703 and clicks the operation of the control 702, the mobile phone can send the text content to the smart TV. The smart TV can display a GUI as shown in (e) of FIG. 3 .
参见图7中的(d)所示的GUI,该GUI为手机检测到用户点击了图标701之后的另一显示界面。响应于检测到用户点击图标701的操作时,手机可以开启摄像头采集用户的人脸信息。若摄像头采集的人脸信息与手机中预置的人脸信息匹配,手机可以先进行解锁,从而进入非锁屏界面,并在非锁屏界面下自动调出手机的输入法。或者,当手机检测到用户点击图标701的操作时,手机可以采集用户的指纹信息。若采集到的指纹信息与手机中预置的指纹信息匹配,那么手机可以先进行解锁,从而进入非锁屏界面,并在非锁屏界面下自动调出手机的输入法。当手机检测到用户在文本输入框703中输入了文本内容(例如,“电影1”)并点击了控件702的操作后,手机可以将该文本内容发送给智能电视。智能电视可以显示如图3中的(e)所示的GUI。一个实施例中,手机在检测到用户的预设操作后,如果接收到智能电视发送的广播消息,可以直接显示如图7中的(c)或者(d)所示的GUI。也就是说,响应于手机接收到智能电视发送的广播消息,手机也可以直接在锁屏界面上调出输入法,或者,手机可以在进入非锁屏界面后调出输入法。Referring to the GUI shown in (d) of FIG. 7 , the GUI is another display interface after the mobile phone detects that the user has clicked the icon 701 . In response to detecting that the user clicks on the icon 701, the mobile phone can turn on the camera to collect the user's face information. If the face information collected by the camera matches the preset face information in the mobile phone, the mobile phone can be unlocked first, so as to enter the non-lock screen interface, and automatically call up the input method of the mobile phone in the non-lock screen interface. Alternatively, when the mobile phone detects that the user clicks the icon 701, the mobile phone can collect the fingerprint information of the user. If the collected fingerprint information matches the preset fingerprint information in the mobile phone, the mobile phone can be unlocked first, thereby entering the non-lock screen interface, and the input method of the mobile phone is automatically called up in the non-lock screen interface. After the mobile phone detects that the user has input text content (eg, "movie 1") in the text input box 703 and clicks the operation of the control 702, the mobile phone can send the text content to the smart TV. The smart TV can display a GUI as shown in (e) of FIG. 3 . In one embodiment, after detecting the user's preset operation, if the mobile phone receives a broadcast message sent by the smart TV, it can directly display the GUI shown in (c) or (d) of FIG. 7 . That is, in response to the mobile phone receiving the broadcast message sent by the smart TV, the mobile phone can also directly call up the input method on the lock screen interface, or the mobile phone can call up the input method after entering the non-lock screen interface.
一个实施例中,手机也可以实时向智能电视发送用户输入的文本内容。示例性的,当手机检测到用户在文本输入框703中输入文本内容“电”时,就可以将该文本信息发送给智能电视,从而在智能电视的文本输入框中显示文本内容“电”。当手机检测到用户接着在文本输入框703输入了文本内容“影”时,手机可以继续将文本内容“影”发送给智能电视,从而在智能电视的文本输入框中显示文本内容“电影”。当手机检测到用户接着在文本输入框703输入了文本内容“1”时,手机可以继续将文本内容“1”发送给智能电视,从而在智能电视的文本输入框中显示文本内容“电影1”。In one embodiment, the mobile phone can also send the text content input by the user to the smart TV in real time. Exemplarily, when the mobile phone detects that the user inputs the text content "electricity" in the text input box 703, the text information can be sent to the smart TV, so that the text content "electricity" is displayed in the text input box of the smart TV. When the mobile phone detects that the user then enters the text content "Shadow" in the text input box 703, the mobile phone can continue to send the text content "Shadow" to the smart TV, thereby displaying the text content "Movie" in the text input box of the smart TV. When the mobile phone detects that the user then enters the text content "1" in the text input box 703, the mobile phone can continue to send the text content "1" to the smart TV, so that the text content "movie 1" is displayed in the text input box of the smart TV .
图8示出了本申请实施例中提供的系统架构图。该系统中包括设备A和设备B,其中设备A为输入设备(例如,图3至图7中的手机);设备B为被输入设备(例如,图3和图5中的智能电视)。FIG. 8 shows a system architecture diagram provided in an embodiment of the present application. The system includes device A and device B, where device A is an input device (eg, the mobile phone in FIG. 3 to FIG. 7 ); device B is an input device (eg, the smart TV in FIG. 3 and FIG. 5 ).
设备B检测到设备B的文本输入框获得焦点,此时设备B进入输入状态。Device B detects that the text input box of device B has the focus, and device B enters the input state at this time.
设备B的输入管理模块810在接收到设备B进入输入状态的信息后,通知设备B的 输入状态发送模块820向周围的设备发送广播消息,该广播消息用于指示设备B需要进行文本输入;同时,通知设备B的输入内容接收模块830进入输入内容接收状态。After the input management module 810 of the device B receives the information that the device B has entered the input state, it notifies the input state sending module 820 of the device B to send a broadcast message to the surrounding devices, and the broadcast message is used to indicate that the device B needs to perform text input; at the same time; , the input content receiving module 830 of the notification device B enters the input content receiving state.
设备B的输入状态发送模块820在接收到上述指令后,向周围设备发送该广播消息。设备B的输入内容接收模块830在接收到进入输入内容接收状态指令后,开始监听周围设备发送的包含输入内容的消息。After receiving the above instruction, the input state sending module 820 of device B sends the broadcast message to surrounding devices. After receiving the input content receiving state instruction, the input content receiving module 830 of the device B starts to monitor the messages containing the input content sent by the surrounding devices.
示例性的,该广播消息可以为蓝牙低功耗(Bluetooth low energy,BLE)数据包,该BLE数据包中可以携带指示信息,该指示信息用于指示设备B需要进行文本输入。BLE数据包中包括协议数据单元(protocol data unit,PDU),该指示信息可以携带在PDU中的服务数据(service data)字段中,或者,也可以携带在PDU中的厂商特定数据(manufacturer specific data)字段中。例如,服务数据字段的负荷(payload)中可以包括多个比特位,其中,多个比特位中包括可扩展的比特位。设备A和设备B可以约定某个可扩展的比特位的内容。当某个可扩展的比特位为1时,设备A就可以获知设备B需要进行文本输入。Exemplarily, the broadcast message may be a Bluetooth low energy (Bluetooth low energy, BLE) data packet, and the BLE data packet may carry indication information, where the indication information is used to indicate that the device B needs to perform text input. The BLE data packet includes a protocol data unit (PDU), and the indication information may be carried in the service data (service data) field in the PDU, or may also be carried in the manufacturer specific data (manufacturer specific data) in the PDU ) field. For example, the payload of the service data field may include multiple bits, wherein the multiple bits include scalable bits. Device A and Device B can agree on the content of a certain extensible bit. When a certain extensible bit is 1, device A can know that device B needs to perform text input.
一个实施例中,该广播消息中还可以携带设备B的媒体接入控制(media access control,MAC)地址。示例性的,若广播消息为BLE数据包,那么可以在BLE数据包中的接入地址(access address)字段中携带设备B的MAC地址。In one embodiment, the broadcast message may also carry the media access control (media access control, MAC) address of device B. Exemplarily, if the broadcast message is a BLE data packet, the MAC address of device B may be carried in an access address (access address) field in the BLE data packet.
示例性的,该广播消息可以为用户数据报协议(user datagram protocol,UDP)数据包,该UDP数据包中可以携带该指示信息,该指示信息用于指示设备B需要进行文本输入。UPD数据包中包括IP数据报的数据部分。IP数据报的数据部分可以包括可扩展的比特位。设备A和设备B可以约定某个可扩展比特位的内容。当某个可扩展的比特位为1时,设备A就可以获知设备B需要进行文本输入。Exemplarily, the broadcast message may be a user datagram protocol (user datagram protocol, UDP) data packet, and the UDP data packet may carry the indication information, and the indication information is used to indicate that the device B needs to perform text input. The UPD packet includes the data portion of the IP datagram. The data portion of an IP datagram may include extensible bits. Device A and Device B can agree on the content of a certain extensible bit. When a certain extensible bit is 1, device A can know that device B needs to perform text input.
一个实施例中,该UDP数据包可以携带设备B的IP地址和端口号(包括源端口号和目的端口号,其中,源端口号是指设备B发送数据时使用的端口号,目的端口号是指设备B接收数据所使用的端口),设备B的IP地址和端口号可以携带在IP数据报的数据部分的UDP首部。或者,该UDP数据包中也可以携带IP地址而不携带端口号。In one embodiment, the UDP data packet can carry the IP address and port number of device B (including source port number and destination port number, wherein the source port number refers to the port number used by device B when sending data, and the destination port number is Refers to the port used by device B to receive data). The IP address and port number of device B can be carried in the UDP header of the data part of the IP datagram. Alternatively, the UDP data packet may also carry the IP address instead of the port number.
设备A的输入状态接收模块850可以一直处于广播消息监听状态。当输入状态接收模块850接收到设备B的输入状态发送模块820发送的广播消息后,将设备B需要文本输入的事件通知到设备A的输入管理模块840。设备A的输入管理模块840通知显示屏显示提醒框(如图3中的(b)所示),或者,向用户提示文本输入图标(如图4中的(a)所示)。The input state receiving module 850 of the device A may always be in a broadcast message monitoring state. After receiving the broadcast message sent by the input state sending module 820 of the device B, the input state receiving module 850 notifies the input management module 840 of the device A of the event that the device B needs text input. The input management module 840 of device A notifies the display screen to display a reminder box (as shown in (b) in FIG. 3 ), or prompts the user with a text input icon (as shown in (a) in FIG. 4 ).
设备A在检测到用户点击控件303的操作后,打开遥控器应用。当设备A检测到用户点击了输入控件304的操作后,显示输入法。或者,设备A在锁屏界面上检测到用户点击图标401的操作后,在锁屏界面上显示输入法。After detecting that the user clicks on the control 303, the device A opens the remote control application. After device A detects that the user has clicked on the input control 304, the input method is displayed. Alternatively, after detecting the operation of the user clicking the icon 401 on the lock screen interface, the device A displays the input method on the lock screen interface.
设备A的输入管理模块840在获取到用户在文本输入框中输入的文本内容后,可以向设备A的输入内容发送模块860发送该文本内容。After acquiring the text content input by the user in the text input box, the input management module 840 of the device A can send the text content to the input content sending module 860 of the device A.
示例性的,若设备B向设备A发送的BLE数据包中携带设备B的MAC地址,那么设备A在获取到设备B的MAC地址后,可以和设备B建立蓝牙连接。设备A可以通过BLE数据包向设备B发送该文本内容。该文本内容可以携带在PDU中的服务数据字段或者厂商特定数据字段中。例如,服务数据字段的负荷中可以包括多个比特位,其中,多个 比特位中包括可扩展的比特位。设备A可以采用GBK、ISO8859-1或者Unicode(例如,UTF-8、UTF-16)等编码方式,对设备A检测到的用户输入的文本内容进行编码,并将编码后得到的信息携带在一个或者多个可扩展比特位上。设备B在接收到设备A发送的BLE数据包后,可以对相应比特位上的信息进行解码,从而获得设备A上用户输入的文本内容。Exemplarily, if the BLE data packet sent by device B to device A carries the MAC address of device B, device A can establish a Bluetooth connection with device B after acquiring the MAC address of device B. Device A can send the text content to device B through BLE data packets. This textual content may be carried in a service data field or a vendor specific data field in the PDU. For example, the payload of the service data field may include multiple bits, wherein the multiple bits include scalable bits. Device A can use encoding methods such as GBK, ISO8859-1 or Unicode (for example, UTF-8, UTF-16) to encode the text content input by the user detected by device A, and carry the encoded information in a or multiple scalable bits. After receiving the BLE data packet sent by device A, device B can decode the information on the corresponding bits to obtain the text content input by the user on device A.
示例性的,若UDP数据包中携带设备B的IP地址以及目的端口号。设备A在可以通过IP地址以及目的端口号,和设备B建立传输控制协议(transmission control protocol,TCP)连接。设备A可以通过TCP连接向目的端口号发送设备A检测到的用户输入的文本内容。Exemplarily, if the UDP data packet carries the IP address and destination port number of device B. Device A can establish a transmission control protocol (TCP) connection with device B through the IP address and destination port number. Device A can send the text content detected by device A and input by the user to the destination port number through a TCP connection.
示例性的,若UDP数据包中携带设备B的IP地址而未携带目的端口号,那么设备A在获取设备B的IP地址后,可以不与设备B建立TCP连接。设备A可以向设备B发送UDP数据包,该UDP数据包中可以携带设备A上检测到的用户输入的文本内容。示例性的,该文本内容可以携带在UDP数据包中的IP数据报的数据部分。其中数据部分中包括可扩展的字段,设备A和设备B可以约定某个可扩展的比特位来承载该文本内容。设备A可以采用GBK、ISO8859-1或者Unicode等编码方式,对设备A检测到的用户输入的文本内容进行编码,并将编码后得到的信息携带在一个或者多个可扩展比特位上。设备B在接收到设备A发送的UDP数据包后,可以对相应比特位上的信息进行解码,从而获得设备A上用户输入的文本内容。Exemplarily, if the UDP data packet carries the IP address of the device B but does not carry the destination port number, then the device A may not establish a TCP connection with the device B after obtaining the IP address of the device B. Device A can send a UDP data packet to device B, where the UDP data packet can carry the text content input by the user detected on device A. Exemplarily, the text content may be carried in a data portion of an IP datagram in a UDP data packet. The data part includes an extensible field, and device A and device B can agree on a certain extensible bit to carry the text content. Device A can use encoding methods such as GBK, ISO8859-1, or Unicode to encode the text content input by the user detected by device A, and carry the encoded information on one or more expandable bits. After receiving the UDP data packet sent by the device A, the device B can decode the information on the corresponding bits, so as to obtain the text content input by the user on the device A.
处于输入内容接收状态的输入内容接收模块830接收到输入内容发送模块860发送该文本内容后,将该文本内容发送给设备B的输入管理模块810。设备B的输入管理模块810将接收到的文本内容显示在文本输入框中。After receiving the text content sent by the input content sending module 860, the input content receiving module 830 in the input content receiving state sends the text content to the input management module 810 of the device B. The input management module 810 of device B displays the received text content in the text input box.
以上给出了图3和图4所示的GUI中的内部实现过程,其中,设备A的输入状态接收模块850可以一直处于广播消息监听状态。下面介绍图5和图6所示的GUI中的内部实现过程。图5和图6所示的GUI的内部实现过程中,与图3和图4不同之处在于,当设备A检测到用户的预设操作时,设备A的输入状态接收模块850才开始监听广播消息。The internal implementation process in the GUI shown in FIG. 3 and FIG. 4 is given above, wherein the input state receiving module 850 of the device A can always be in the broadcast message listening state. The following describes the internal implementation process in the GUI shown in FIG. 5 and FIG. 6 . In the internal implementation process of the GUI shown in FIG. 5 and FIG. 6 , the difference from FIG. 3 and FIG. 4 is that the input state receiving module 850 of device A starts to monitor the broadcast when device A detects the preset operation of the user. information.
设备A可以在检测到用户打开遥控器应用后,输入管理模块840通知输入状态接收模块850进入广播消息监听状态,从而开始监听广播消息;或者,当设备A检测到用户点击输入控件时显示输入法,输入管理模块840监听到手机显示输入法。输入管理模块840通知输入状态接收模块850进入广播消息监听状态,从而开始监听广播消息。After device A detects that the user opens the remote control application, the input management module 840 notifies the input state receiving module 850 to enter the broadcast message monitoring state, thereby starting to monitor the broadcast message; or, when the device A detects that the user clicks on the input control, the input method is displayed. , the input management module 840 monitors that the mobile phone displays the input method. The input management module 840 notifies the input state receiving module 850 to enter the broadcast message monitoring state, thereby starting to monitor broadcast messages.
应理解,本申请实施例中是以设备A检测到用户打开遥控器应用后进入广播消息监听状态为例说明的,本申请实施例并不限于此。设备A可以也可以是在检测到其他应用程序(例如,App1)被打开后进入广播消息监听状态。示例性的,设备A在检测到用户点击了App1的图标后,应用程序层的App1会向应用程序框架层的系统服务发送该App1对应的标号(如,进程识别号(process identifier,PID))和该App1对应的进程名称,系统服务可以根据该标号和进程名称确定是App1启动了。系统服务在确定App1启动后可以触发设备A的输入状态接收模块850(例如,图1中的无线通信模块)进入广播消息监听状态。It should be understood that the embodiments of the present application are described by taking the device A entering the broadcast message monitoring state after detecting that the user has opened the remote control application as an example, and the embodiments of the present application are not limited thereto. Device A may or may enter the broadcast message listening state after detecting that other applications (for example, App1) are opened. Exemplarily, after device A detects that the user has clicked on the icon of App1, App1 of the application layer will send the label corresponding to App1 (eg, process identifier (PID)) to the system service of the application framework layer. The process name corresponding to the App1, the system service can determine that App1 is started according to the label and the process name. After determining that App1 is started, the system service can trigger the input state receiving module 850 of device A (eg, the wireless communication module in FIG. 1 ) to enter the broadcast message monitoring state.
一个实施例中,设备A也可以在检测到用户的预设操作后进入广播消息监听状态。示例性的,该预设操作可以是双击、长按、折叠或者展开屏幕等操作。当设备A检测到用户的预设操作后可以触发输入状态接收模块850入广播消息监听状态。当设备A接收到周围 设备发送的广播消息后,可以自动显示输入法。In one embodiment, the device A may also enter the broadcast message monitoring state after detecting the preset operation of the user. Exemplarily, the preset operation may be an operation such as double-clicking, long-pressing, folding or unfolding the screen, and the like. When the device A detects the user's preset operation, it can trigger the input state receiving module 850 to enter the broadcast message monitoring state. When device A receives broadcast messages sent by surrounding devices, it can automatically display the input method.
设备A的输入状态接收模块850接收到设备B的输入状态发送模块820发送的广播消息,得知设备B需要文本输入。应理解,设备B发送广播消息的方式可以参照上述实施例中的描述,为了简洁,在此不再赘述。The input state receiving module 850 of device A receives the broadcast message sent by the input state sending module 820 of device B, and learns that device B needs text input. It should be understood that for the manner in which the device B sends the broadcast message, reference may be made to the descriptions in the foregoing embodiments, which are not repeated here for brevity.
设备A的输入状态接收模块850将设备B需要文本输入的事件通知到设备A的输入管理模块840;设备A的输入管理模块840获取用户通过输入法服务输入的文本内容;设备A的输入管理模块840调用设备A的输入内容发送模块860向设备B发送用户输入的文本内容。应理解,设备A向设备B发送用户输入内容的方式可以参照上述实施例中的描述,为了简洁,在此不再赘述。The input state receiving module 850 of device A notifies the input management module 840 of device A of the event that device B needs text input; the input management module 840 of device A obtains the text content input by the user through the input method service; the input management module of device A 840 invokes the input content sending module 860 of device A to send the text content input by the user to device B. It should be understood that, for the manner in which device A sends user input content to device B, reference may be made to the description in the foregoing embodiment, which is not repeated here for brevity.
处于输入内容接收状态的设备B的输入内容接收模块830接收到设备A的输入内容发送模块860发送的文本内容后,将该文本内容发送给设备B的输入管理模块810。设备B的输入管理模块810将接收到的文本内容显示在文本输入框中。After receiving the text content sent by the input content sending module 860 of the device A, the input content receiving module 830 of the device B in the input content receiving state sends the text content to the input management module 810 of the device B. The input management module 810 of device B displays the received text content in the text input box.
通过以上流程,就完成了通过设备A向设备B的跨设备文本输入功能。Through the above process, the cross-device text input function from device A to device B is completed.
上述流程中,设备A和设备B之间的通信可根据需要选择蓝牙通信或局域网通信。在设备B向外发送广播消息时,既可以选择蓝牙或局域网其中一种方式,也可以两种方式同时发送。In the above process, the communication between device A and device B may select Bluetooth communication or local area network communication as required. When device B sends a broadcast message to the outside world, it can choose either one of Bluetooth or a local area network, or both methods can be sent at the same time.
当设备A向设备B发送用户输入的文本内容时,可以根据与设备B是否已经蓝牙配对或是否在同一局域网,选择速度最快的方式发送。When device A sends the text content input by the user to device B, it can choose the fastest way to send according to whether it has been paired with device B by Bluetooth or whether it is in the same local area network.
示例性的,若设备A接收到设备B发送的BLE数据包中包括设备B的MAC地址,设备A可以根据设备B的MAC地址判断之前是否和设备B进行过蓝牙配对。若设备A之间和设备B之间进行过蓝牙配对,那么设备A可以和设备B进行蓝牙配对并建立蓝牙连接。在建立了蓝牙连接后,设备A可以向设备B发送BLE数据包,其中BLE数据包中携带用户输入的文本内容。Exemplarily, if device A receives the BLE data packet sent by device B and includes the MAC address of device B, device A can determine whether Bluetooth pairing with device B has been performed before according to the MAC address of device B. If Bluetooth pairing is performed between device A and device B, device A can perform Bluetooth pairing with device B and establish a Bluetooth connection. After the Bluetooth connection is established, device A can send a BLE data packet to device B, where the BLE data packet carries the text content input by the user.
示例性的,若设备A接收到的广播消息中包括设备B的IP地址,那么设备A可以根据设备B的IP地址判断设备A和设备B是否处于同一局域网下。如果设备A确定和设备B处于同一局域网下,那么如果UDP数据包中还携带了设备B的目的端口号,那么设备A可以和设备B建立TCP连接。在建立了TCP连接后,设备A可以通过TCP连接向设备B发送该文本信息。或者,如果设备B在UDP数据包中只携带了设备B的IP地址没有携带目的端口号,设备A可以向设备B发送UDP数据包,其中UDP数据包中携带用户输入的文本内容。Exemplarily, if the broadcast message received by device A includes the IP address of device B, device A can determine whether device A and device B are in the same local area network according to the IP address of device B. If device A is determined to be in the same local area network as device B, then if the UDP data packet also carries the destination port number of device B, then device A can establish a TCP connection with device B. After the TCP connection is established, device A can send the text information to device B through the TCP connection. Alternatively, if device B only carries the IP address of device B without the destination port number in the UDP data packet, device A can send a UDP data packet to device B, where the UDP data packet carries the text content input by the user.
一个实施例中,为保证设备A向设备B发送的用户输入文本内容不被泄露,设备A可使用设备B的加密秘钥对文本内容进行加密发送。例如,设备B中保存有公钥和私钥,设备B可以在广播消息中可以携带自身公钥。示例性的,设备B的公钥可以携带在BLE数据包中的服务数据字段或者厂商特定字段中。设备A在向设备B发送该文本内容时,可以使用设备B的公钥对文本内容进行加密。示例性的,若设备A和设备B建立了TCP连接,设备A可以通过TCP连接向设备B发送经过公钥加密后的文本内容;或者,若设备A没有与设备B建立TCP连接,那么设备B可以向设备A发送UDP数据包,该UPD数据包中IP数据报的数据部分可以携带经过公钥加密后的文本内容;或者,设备A可以向设备B发送BLE数据包,BLE数据包中的服务数据字段或者厂商特定字段可以携带经 过公钥加密后的文本内容。设备B在接收到通过公钥加密后的文本内容后,可以通过私钥进行解密,从而获得设备A发送的文本内容。其他设备也可以监听到经过公钥加密后的文本内容,但是由于其没有设备B的私钥,则无法对经过公钥加密后的文本内容进行解密。从而保证了设备A向设备B发送的文本内容不被泄露。In one embodiment, in order to ensure that the text content input by the user sent by device A to device B is not leaked, device A can use the encryption key of device B to encrypt and send the text content. For example, the public key and the private key are stored in the device B, and the device B can carry its own public key in the broadcast message. Exemplarily, the public key of device B may be carried in a service data field or a vendor-specific field in the BLE data packet. When device A sends the text content to device B, it can use the public key of device B to encrypt the text content. Exemplarily, if device A and device B establish a TCP connection, device A can send the text content encrypted by the public key to device B through the TCP connection; or, if device A does not establish a TCP connection with device B, then device B A UDP data packet can be sent to device A, and the data part of the IP datagram in the UPD data packet can carry the text content encrypted by the public key; or, device A can send a BLE data packet to device B, the service in the BLE data packet The data field or the vendor-specific field can carry the text content encrypted by the public key. After receiving the text content encrypted by the public key, the device B can decrypt it by using the private key to obtain the text content sent by the device A. Other devices can also monitor the text content encrypted by the public key, but since they do not have the private key of device B, they cannot decrypt the text content encrypted by the public key. Thus, it is ensured that the text content sent by device A to device B is not leaked.
本申请实施例中,设备A和设备B无需提前主动进入配对或者通过网络建立连接,在设备B需要进行文本输入时,设备A可以动态获取到相关信息,并可以辅助设备B完成文本内容的输入。In the embodiment of the present application, device A and device B do not need to actively enter into pairing in advance or establish a connection through the network. When device B needs to input text, device A can dynamically obtain relevant information, and can assist device B to complete the input of text content .
图9示出了本申请实施例提供的文本输入的方法900的示意性流程图。该方法900可以由第一电子设备和第二电子设备执行,该方法900包括:FIG. 9 shows a schematic flowchart of a method 900 for text input provided by an embodiment of the present application. The method 900 can be performed by the first electronic device and the second electronic device, and the method 900 includes:
S901,第一电子设备通过显示屏显示文本输入界面,该文本输入界面包括文本输入框。S901, the first electronic device displays a text input interface through a display screen, where the text input interface includes a text input box.
示例性的,如图3中(a)所示的智能电视的显示界面为文本输入界面,该文本输入界面上包括文本输入框301。Exemplarily, as shown in FIG. 3( a ), the display interface of the smart TV is a text input interface, and the text input interface includes a text input box 301 .
S902,第一电子设备响应于显示该文本输入界面,发送第一消息,所述第一消息用于指示所述第一电子设备需要进行文本输入。S902: In response to displaying the text input interface, the first electronic device sends a first message, where the first message is used to indicate that the first electronic device needs to perform text input.
一个实施例中,第一电子设备响应于显示该文本输入界面,包括该第一电子设备响应于该第一电子设备当前的焦点在该文本输入界面的文本输入框中;或者,该第一电子设备响应于显示该输入界面,包括该第一电子设备响应于该第一电子设备当前的焦点在该文本输入界面显示的输入法的某一个键上。In one embodiment, the first electronic device responds to displaying the text input interface, including that the first electronic device responds to the current focus of the first electronic device in the text input box of the text input interface; or, the first electronic device responds In response to displaying the input interface, the device includes that the first electronic device responds that the current focus of the first electronic device is on a certain key of the input method displayed on the text input interface.
示例性的,如图3中(a)所示的智能电视的显示界面为文本输入界面,该文本输入界面上显示智能电视当前的焦点为文本输入框301。响应于智能电视当前的焦点为文本输入框301,智能电视发送第一消息。Exemplarily, as shown in FIG. 3 (a), the display interface of the smart TV is a text input interface, and the current focus of the smart TV displayed on the text input interface is the text input box 301 . In response to the current focus of the smart TV being the text input box 301, the smart TV sends the first message.
一个实施例中,该第一电子设备响应于显示该文本输入界面,发送第一消息,包括:该第一电子设备响应于显示该文本输入界面,向一个或者多个设备发送该第一消息。In one embodiment, sending the first message by the first electronic device in response to displaying the text input interface includes: the first electronic device sending the first message to one or more devices in response to displaying the text input interface.
示例性的,该一个或者多个设备与该第一电子设备为同一账号(例如,华为账号)下的设备;或者,该一个或者多个设备和该第一电子设备为同一家庭群组下的账号。Exemplarily, the one or more devices and the first electronic device are devices under the same account (for example, a Huawei account); or, the one or more devices and the first electronic device are under the same family group. account.
示例性的,该一个或者多个设备可以是与该第一电子设备完成过蓝牙配对的设备;或者,该一个或者多个设备可以是与该第一电子设备处于同一Wi-Fi下的设备。Exemplarily, the one or more devices may be devices that have completed Bluetooth pairing with the first electronic device; or, the one or more devices may be devices under the same Wi-Fi as the first electronic device.
一个实施例中,该第一电子设备响应于显示该文本输入界面,发送第一消息,包括:该第一电子设备响应于显示该文本输入界面,向周围设备发送广播消息,所述广播消息用于指示所述第一电子设备需要进行文本输入。In one embodiment, sending the first message by the first electronic device in response to displaying the text input interface includes: the first electronic device, in response to displaying the text input interface, sending a broadcast message to surrounding devices, the broadcast message using to indicate that the first electronic device needs to perform text input.
应理解,该第一电子设备发送广播消息的方式可以参考上述实施例中的描述,为了简洁,在此不再赘述。It should be understood that, for the manner in which the first electronic device sends the broadcast message, reference may be made to the descriptions in the foregoing embodiments, which are not repeated here for brevity.
S903,第二电子设备检测用户的预设操作以及监听该第一消息。S903, the second electronic device detects the preset operation of the user and monitors the first message.
应理解,本申请实施例中,对第二电子设备检测用户的操作以及监听该第一消息的先后顺序并不作具体限定,第二电子设备可以是先检测到用户的操作,然后接收到该第一消息;或者,该第二电子设备也可以是先接收到该第一消息,后检测到用户的预设操作。It should be understood that, in this embodiment of the present application, the order in which the second electronic device detects the user's operation and monitors the first message is not specifically limited. The second electronic device may first detect the user's operation, and then receive the first message. a message; or, the second electronic device may also receive the first message first, and then detect the user's preset operation.
一个实施例中,该预设操作可以是用户打开某个应用程序的操作;或者,该预设操作可以是用户的预设手势(例如,用户在第二电子设备显示屏上画出预设图案,或者用户的隔空手势);或者,该预设操作还可以是用户按压某个物理按键的操作;或者,该预设操 作还可以是预设手势与按压物理按键的结合。In one embodiment, the preset operation may be an operation by the user to open an application; or, the preset operation may be a preset gesture of the user (for example, the user draws a preset pattern on the display screen of the second electronic device. , or the user's space gesture); or, the preset operation may also be an operation of the user pressing a certain physical button; or, the preset operation may also be a combination of a preset gesture and pressing a physical button.
一个实施例中,该预设操作也可以是用户拿起第二电子设备的操作。In one embodiment, the preset operation may also be an operation of the user picking up the second electronic device.
示例性的,第二电子设备中包括陀螺仪传感器(例如,图1中的陀螺仪传感器180B),第二电子设备可以通过陀螺仪传感器来检测用户是否拿起第二电子设备。Exemplarily, the second electronic device includes a gyro sensor (eg, the gyro sensor 180B in FIG. 1 ), and the second electronic device can detect whether the user picks up the second electronic device through the gyro sensor.
一个实施例中,该预设操作也可以是用户对该第二电子设备进行解锁的操作。In one embodiment, the preset operation may also be an operation for the user to unlock the second electronic device.
一个实施例中,第二电子设备检测用户的预设操作以及监听该第一消息的同时,还可以检测第一电子设备是否在第二电子设备的预设角度范围内。In one embodiment, the second electronic device may detect whether the first electronic device is within a preset angle range of the second electronic device while detecting the user's preset operation and monitoring the first message.
示例性的,第二电子设备可以是具备到达角度(angle of arrival,AOA)计算能力的设备。例如,该第二电子设备中可以包括指南针、蓝牙/Wi-Fi天线阵列等。第二电子设备可以对第一电子设备的方位进行计算,第二电子设备的蓝牙/WiFi天线阵列可以接收第一电子设备的无线信号,根据公式(1)和(2)计算出第一电子设备的方位:Exemplarily, the second electronic device may be a device capable of calculating an angle of arrival (AOA). For example, the second electronic device may include a compass, a Bluetooth/Wi-Fi antenna array, and the like. The second electronic device can calculate the orientation of the first electronic device, the Bluetooth/WiFi antenna array of the second electronic device can receive the wireless signal of the first electronic device, and calculate the first electronic device according to formulas (1) and (2). Orientation:
Figure PCTCN2021127888-appb-000001
Figure PCTCN2021127888-appb-000001
Figure PCTCN2021127888-appb-000002
Figure PCTCN2021127888-appb-000002
其中,d为第二电子设备的蓝牙/Wi-Fi天线阵列和第一电子设备的蓝牙/Wi-Fi天线之间的距离,
Figure PCTCN2021127888-appb-000003
为第二电子设备的蓝牙/Wi-Fi天线阵列和第一电子设备的蓝牙/Wi-Fi天线之间的相位差,λ为第一电子设备发送的蓝牙信号(例如,该第一消息)的波长,θ为到达角。
where d is the distance between the Bluetooth/Wi-Fi antenna array of the second electronic device and the Bluetooth/Wi-Fi antenna of the first electronic device,
Figure PCTCN2021127888-appb-000003
is the phase difference between the Bluetooth/Wi-Fi antenna array of the second electronic device and the Bluetooth/Wi-Fi antenna of the first electronic device, λ is the phase difference of the Bluetooth signal (for example, the first message) sent by the first electronic device wavelength, and θ is the angle of arrival.
一个实施例中,第二电子设备检测用户的预设操作以及监听该第一消息,包括:第二电子设备检测用户的预设操作;响应于检测到用户的预设操作,所述第二电子设备开始监听该第一消息。In one embodiment, the second electronic device detects the user's preset operation and monitors the first message, including: the second electronic device detects the user's preset operation; in response to detecting the user's preset operation, the second electronic device detects the user's preset operation. The device starts listening for the first message.
示例性的,如图5中的(c)所示,当手机检测到用户打开遥控器应用后,手机开始监听该第一消息。Exemplarily, as shown in (c) of FIG. 5 , after the mobile phone detects that the user has opened the remote control application, the mobile phone starts to monitor the first message.
示例性的,如图7中的(a)所示,当手机检测到用户在显示界面上画“S”的操作后,手机开始监听该第一消息。Exemplarily, as shown in (a) of FIG. 7 , after the mobile phone detects the operation of the user drawing "S" on the display interface, the mobile phone starts to monitor the first message.
应理解,考虑到第二电子设备显示文本输入界面到手机检测到用户的预设手势可能会有一定的时间间隔,第一电子设备在显示文本输入界面时,可以在第一预设时长内(例如,1分钟)发送多个第一消息。这样可以保证第二电子设备在检测到用户的预设操作后可以接收到该第一消息。It should be understood that, considering that there may be a certain time interval between when the second electronic device displays the text input interface and when the mobile phone detects the user's preset gesture, the first electronic device can display the text input interface within the first preset time period ( For example, 1 minute) to send multiple first messages. In this way, it can be ensured that the second electronic device can receive the first message after detecting the user's preset operation.
一个实施例中,第二电子设备检测用户的预设操作以及监听该第一消息,包括:第二电子设备监听第一消息;响应于接收到该第一消息,该第二电子设备检测用户的预设操作。In one embodiment, the second electronic device detects the preset operation of the user and monitors the first message, including: the second electronic device monitors the first message; in response to receiving the first message, the second electronic device detects the user's Preset action.
示例性的,如图5中的(c)所示,在手机检测到用户打开遥控器应用之前,手机接收到该第一消息。但是由于手机还没有检测到用户的预设操作,所以手机可以先将该第一消息保存下来而不给用户任何文本输入的提示。如图5中的(d)所示,当手机检测到用户打开遥控器应用的操作时,手机可以直接显示该提醒框503,从而提示用户使用手机对智能电视进行文本输入;或者,当手机检测到用户打开遥控器应用的操作时,手机可以直接调出输入法,显示如图5中的(e)所示的GUI。Exemplarily, as shown in (c) of FIG. 5 , before the mobile phone detects that the user has opened the remote control application, the mobile phone receives the first message. However, since the mobile phone has not detected the user's preset operation, the mobile phone can first save the first message without giving the user any text input prompt. As shown in (d) in FIG. 5 , when the mobile phone detects the operation of the user opening the remote control application, the mobile phone can directly display the reminder box 503, thereby prompting the user to use the mobile phone to input text to the smart TV; or, when the mobile phone detects When the user opens the remote control application, the mobile phone can directly call up the input method to display the GUI shown in (e) of FIG. 5 .
示例性的,如图7中的(a)所示,在手机检测到用户在锁屏界面上画“S”的操作之前,手机接收到该第一消息。但是由于手机还没有检测到用户的预设操作,所以手机可以先将第一消息保存下来而不给用户任何文本输入的提示。当手机检测到用户画“S”的操作时, 手机可以直接显示如图7中的(b)所示的GUI;或者,手机可以直接显示如图7中的(c)所示的GUI;或者,手机在进入锁屏界面后显示如图7中的(d)所示的GUI。Exemplarily, as shown in (a) of FIG. 7 , before the mobile phone detects that the user draws “S” on the lock screen interface, the mobile phone receives the first message. However, since the mobile phone has not detected the preset operation of the user, the mobile phone can first save the first message without giving the user any text input prompt. When the mobile phone detects that the user draws "S", the mobile phone can directly display the GUI shown in (b) in FIG. 7 ; or, the mobile phone can directly display the GUI shown in (c) in FIG. 7 ; or , the mobile phone displays the GUI shown in (d) in FIG. 7 after entering the lock screen interface.
应理解,考虑到第一电子设备显示文本输入界面到第二电子设备检测到用户的预设手势可能会有一定的时间间隔,第二电子设备也可以是一直监听第一消息。如果手机在接收到该第一消息之后再检测用户的预设手势。对于这种情况,第一电子设备在检测到显示文本输入界面时,可以在第二预设时长(例如,5秒)内发送多个第一消息。第二电子设备在接收到该第一消息后,就可以开始检测用户的预设操作。It should be understood that, considering that there may be a certain time interval between when the first electronic device displays the text input interface and when the second electronic device detects the user's preset gesture, the second electronic device may also monitor the first message all the time. If the mobile phone detects the user's preset gesture after receiving the first message. In this case, when detecting that the text input interface is displayed, the first electronic device may send a plurality of first messages within a second preset time period (for example, 5 seconds). After receiving the first message, the second electronic device can start to detect the user's preset operation.
S904,响应于检测到用户的预设操作以及接收到该第一消息,第二电子设备检测用户输入的内容。S904, in response to detecting the user's preset operation and receiving the first message, the second electronic device detects the content input by the user.
应理解,以上介绍了第二电子设备可以是响应于检测到用户的预设操作,开始监听第一消息;或者,第二电子设备可以是响应于监听第一消息,开始检测用户的预设操作。本申请实施例中,对于第二电子设备检测用户的预设操作以及监听第一消息之间也可以没有任何关联,只要第二电子设备检测到用户的预设操作以及接收到该第一消息,第二电子设备就可以检测用户的输入。It should be understood that the second electronic device may start to monitor the first message in response to detecting the user's preset operation; or, the second electronic device may start to detect the user's preset operation in response to monitoring the first message . In this embodiment of the present application, there may be no relationship between the second electronic device detecting the user's preset operation and monitoring the first message, as long as the second electronic device detects the user's preset operation and receives the first message, The second electronic device can then detect the user's input.
一个实施例中,响应于检测到用户的预设操作以及接收到该第一消息,第二电子设备检测用户输入的内容,包括:响应于检测到用户的预设操作以及接收到该第一消息,且所述第二电子设备检测到用户的预设操作以及所述第二电子设备接收到该第一消息之间的时间间隔小于预设时间间隔,所述第二电子设备检测用户输入的内容。In one embodiment, in response to detecting the user's preset operation and receiving the first message, the second electronic device detects the content input by the user, including: in response to detecting the user's preset operation and receiving the first message , and the time interval between the second electronic device detecting the user's preset operation and the second electronic device receiving the first message is less than the preset time interval, and the second electronic device detecting the content input by the user .
一个实施例中,响应于检测到用户的预设操作以及接收到该第一消息,第二电子设备检测用户输入的内容,包括:响应于检测到用户的预设操作、接收到该第一消息以及确定该第一电子设备在所述第二电子设备的预设角度范围内,第二电子设备检测用户输入的内容。In one embodiment, in response to detecting the user's preset operation and receiving the first message, the second electronic device detects the content input by the user, including: in response to detecting the user's preset operation, receiving the first message and determining that the first electronic device is within a preset angle range of the second electronic device, and the second electronic device detects the content input by the user.
一个实施例中,响应于检测到用户的预设操作以及接收到该第一消息,第二电子设备检测用户输入的内容,包括:若该第二电子设备在接收到该第一消息起的第三预设时长内检测用户的预设操作,则第二电子设备检测用户的输入。In one embodiment, in response to detecting the user's preset operation and receiving the first message, the second electronic device detects the content input by the user, including: if the second electronic device receives the first message in the first The user's preset operation is detected within three preset time periods, and the second electronic device detects the user's input.
本申请实施例中,第二电子设备可能在接收到该第一消息后长时间未检测到用户的预设操作,那么用户可能不会使用该第二电子设备对第一电子设备进行文本输入。第二电子设备可以在超出第三预设时长后忽略该第一消息。也就是说,第二电子设备在第三预设时长后检测到用户的预设操作,第二电子设备不会给用户任何文本输入的提示;或者,第二电子设备不会调出输入法。这样可以避免用户长时间未使用第二电子设备后,如果在第二电子设备上进行了预设操作而给用户带来的干扰。In this embodiment of the present application, the second electronic device may not detect the user's preset operation for a long time after receiving the first message, so the user may not use the second electronic device to input text to the first electronic device. The second electronic device may ignore the first message after exceeding the third preset time period. That is, if the second electronic device detects the user's preset operation after the third preset time period, the second electronic device will not give the user any text input prompt; or, the second electronic device will not call up the input method. In this way, interference to the user caused by performing a preset operation on the second electronic device after the user has not used the second electronic device for a long time can be avoided.
示例性的,如图5中的(e)所示,当手机检测到用户打开遥控器应用并接收到该第一消息时,手机可以调出输入法,从而手机开始检测用户输入的内容。Exemplarily, as shown in (e) of FIG. 5 , when the mobile phone detects that the user has opened the remote control application and receives the first message, the mobile phone can call up the input method, so that the mobile phone starts to detect the content input by the user.
示例性的,如图7中的(c)所示,当手机检测到用户在锁屏界面上画“S”的操作以及接收到该第一为消息时,手机可以调出输入法,从而手机开始检测用户输入的内容。Exemplarily, as shown in (c) of FIG. 7 , when the mobile phone detects that the user draws an “S” on the lock screen interface and receives the first message, the mobile phone can call up the input method, so that the mobile phone can call up the input method. Start detecting user input.
一个实施例中,第一电子设备发送的第一消息可能会被多个电子设备(例如,多个电子设备中包括第二电子设备、第三电子设备和第四电子设备)接收到。若在第一电子设备发送第一消息起的第四预设时长内,第二电子设备和第三电子设备请求与第一电子设备建立连接,那么第一电子设备可以和第二电子设备、第三电子设备建立连接,从而第二电子 设备和第三电子设备可以调出输入法检测用户的输入的内容。In one embodiment, the first message sent by the first electronic device may be received by multiple electronic devices (for example, the multiple electronic devices include a second electronic device, a third electronic device, and a fourth electronic device). If within a fourth preset time period after the first electronic device sends the first message, the second electronic device and the third electronic device request to establish a connection with the first electronic device, the first electronic device can communicate with the second electronic device, the third electronic device The three electronic devices establish a connection, so that the second electronic device and the third electronic device can call up the input method to detect the content input by the user.
在第四预设时长之后,如果第四电子设备也接收到该第一消息,那么第四电子设备请求与第一电子设备建立连接。此时第一电子设备可以拒绝第四电子设备的请求,从而第四电子设备上不会显示任何文本输入提示或者第四电子设备不会调出输入法。这样也有助于避免一段时间后才接收到该第一消息的电子设备上显示的提示信息或者输入法,而给用户带来的干扰。After the fourth preset time period, if the fourth electronic device also receives the first message, the fourth electronic device requests to establish a connection with the first electronic device. At this time, the first electronic device may reject the request of the fourth electronic device, so that no text input prompt will be displayed on the fourth electronic device or the fourth electronic device will not call up the input method. This also helps to avoid interference to the user caused by the prompt information or input method displayed on the electronic device that receives the first message after a period of time.
一个实施例中,第一电子设备也可以只与最先请求建立连接设备(例如,第二电子设备)建立连接。对于其他电子设备的请求,第一电子设备可以忽略其请求。这样有助于避免通过多个设备输入时的干扰。In one embodiment, the first electronic device may also only establish a connection with the device (eg, the second electronic device) that first requests to establish a connection. For requests from other electronic devices, the first electronic device may ignore its requests. This helps avoid interference when inputting from multiple devices.
S905,第二电子设备响应于检测到用户输入第一内容的操作时,向该第一电子设备发送该第一内容。S905, the second electronic device sends the first content to the first electronic device in response to detecting an operation of the user inputting the first content.
示例性的,如图5中的(e)所示,当手机检测到用户输入文本内容电影1”的操作后,手机可以向智能发送该文本内容。Exemplarily, as shown in (e) of FIG. 5 , after the mobile phone detects the operation of the user inputting the text content movie 1", the mobile phone can send the text content to the intelligence.
示例性的,如图5中的(f)所示,当手机检测到用户输入语音内容电影1”的操作后,手机可以向智能发送该文本内容。Exemplarily, as shown in (f) of FIG. 5 , after the mobile phone detects the operation of the user inputting the voice content movie 1", the mobile phone can send the text content to the intelligence.
示例性的,如图6中的(e)所示,当手机检测到用户输入语音内容电影1”的操作后,手机可以向智能发送该文本内容。Exemplarily, as shown in (e) of FIG. 6 , after the mobile phone detects the operation of the user inputting the voice content movie 1", the mobile phone can send the text content to the intelligence.
示例性的,如图7中的(c)所示,当手机检测到用户输入文本内容电影1”的操作后,手机可以向智能发送该文本内容。Exemplarily, as shown in (c) of FIG. 7 , after the mobile phone detects the operation of the user inputting the text content movie 1", the mobile phone can send the text content to the intelligence.
应理解,本申请实施例中,手机可以实时的将检测到的内容发送给智能电视,具体过程可以参考上述实施例中的描述,为了简洁,在此不再赘述。It should be understood that, in the embodiment of the present application, the mobile phone can send the detected content to the smart TV in real time, and the specific process can refer to the description in the above embodiment, which is not repeated here for brevity.
S906,第一电子设备在该文本输入框中显示该第一内容对应的文本内容。S906, the first electronic device displays the text content corresponding to the first content in the text input box.
示例性的,如图3中的(e)所示,智能电视可以在接收到手机发送的文本内容“电影1”后,可以在文本输入框中显示该文本内容。Exemplarily, as shown in (e) of FIG. 3 , after receiving the text content "movie 1" sent by the mobile phone, the smart TV may display the text content in the text input box.
示例性的,若智能电视接收到手机发送的语音内容,那么智能电视可以先将该语音内容转化为文本内容,从而将该文本内容显示在文本输入框301中。Exemplarily, if the smart TV receives the voice content sent by the mobile phone, the smart TV can first convert the voice content into text content, so as to display the text content in the text input box 301 .
一个实施例中,第二电子设备检测到用户输入的内容如果是语音内容,那么第二电子设备也可以将该语音内容转化为文本内容后发送给第一电子设备,从而使得第一电子设备在文本输入框301中显示对应的文本内容。In one embodiment, if the second electronic device detects that the content input by the user is voice content, the second electronic device can also convert the voice content into text content and send it to the first electronic device, so that the first electronic device can Corresponding text content is displayed in the text input box 301 .
本申请实施例中,在第一电子设备需要进行文本输入时,用户可以随手拿起身边的任意一个设备(例如,手机、Pad)进行输入,这样有助于提升用户在进行文本输入时的便捷性,从而提升用户体验。同时,第二电子设备在检测到用户的预设操作以及接收到第一消息时可以通过提醒框来提示用户进行文本输入,有助于用户明确第二电子设备可以作为输入的设备。用户在第二电子设备上进行预设操作以及接收到第一消息之前,第二电子设备不会出现可能对用户造成干扰的任何提示信息,避免了对用户的干扰,从而有助于提升用户体验。In the embodiment of the present application, when the first electronic device needs to input text, the user can pick up any device (eg, mobile phone, Pad) around him to input, which helps to improve the convenience of the user when inputting text. to enhance the user experience. At the same time, the second electronic device can prompt the user to input text through a reminder box when detecting the user's preset operation and receiving the first message, which helps the user to identify that the second electronic device can be used as an input device. Before the user performs a preset operation on the second electronic device and receives the first message, the second electronic device will not display any prompt information that may interfere with the user, thereby avoiding interference to the user, thereby helping to improve user experience .
图10示出了本申请实施例提供的文本输入的装置1000的示意性框图。该装置1000可以设置于上述图9中的第二电子设备中,该装置1000中包括:第一检测单元1010,用于检测用户的预设操作;接收单元1020,用于监听第一消息,该第一消息用于指示另一 电子设备需要进行文本输入;第二检测单元1030,还用于在第一检测单元1010检测到用户的预设操作以及接收单元1020接收到第一消息时,检测用户输入的内容;发送单元1040,用于响应于第二检测单元1030检测到用户输入第一内容的操作,向该另一电子设备发送该第一内容。FIG. 10 shows a schematic block diagram of an apparatus 1000 for text input provided by an embodiment of the present application. The apparatus 1000 can be set in the second electronic device in the above-mentioned FIG. 9 , and the apparatus 1000 includes: a first detection unit 1010 for detecting a preset operation of a user; a receiving unit 1020 for monitoring the first message, the The first message is used to indicate that another electronic device needs to perform text input; the second detection unit 1030 is also used to detect the user when the first detection unit 1010 detects the user's preset operation and the receiving unit 1020 receives the first message The input content; the sending unit 1040 is configured to send the first content to the other electronic device in response to the second detection unit 1030 detecting an operation of the user inputting the first content.
图11示出了本申请实施例提供的电子设备1100的示意性结构图。如图11所示,该电子设备包括:一个或多个处理器1110,一个或多个存储器1120,该一个或多个存储器存储1120存储有一个或多个计算机程序,该一个或多个计算机程序包括指令。当该指令被所述一个或多个处理器1110运行时,使得第二电子设备(或者,上述实施例中的手机)执行上述实施例中的技术方案。FIG. 11 shows a schematic structural diagram of an electronic device 1100 provided by an embodiment of the present application. As shown in FIG. 11, the electronic device includes: one or more processors 1110, one or more memories 1120, and the one or more memory stores 1120 store one or more computer programs, the one or more computer programs Include instructions. When the instruction is executed by the one or more processors 1110, the second electronic device (or, the mobile phone in the above embodiment) executes the technical solution in the above embodiment.
本申请实施例提供了一种文本输入的系统,包括第一电子设备和第二电子设备,该系统用于执行上述实施例中文本输入的技术方案。其实现原理和技术效果与上述方法相关实施例类似,此处不再赘述。An embodiment of the present application provides a system for text input, including a first electronic device and a second electronic device, and the system is used to implement the technical solution for text input in the foregoing embodiment. The implementation principle and technical effect thereof are similar to the related embodiments of the above method, and are not repeated here.
本申请实施例提供一种计算机程序产品,当所述计算机程序产品在第二电子设备运行时,使得第二电子设备(或者,上述实施例中的手机)执行上述实施例中的技术方案。其实现原理和技术效果与上述方法相关实施例类似,此处不再赘述。The embodiments of the present application provide a computer program product, which enables the second electronic device (or the mobile phone in the above embodiment) to execute the technical solutions in the above embodiments when the computer program product runs on the second electronic device. The implementation principle and technical effect thereof are similar to the related embodiments of the above method, and are not repeated here.
本申请实施例提供一种可读存储介质,所述可读存储介质包含指令,当所述指令在第二电子设备(或者,上述实施例中的手机)运行时,使得所述第二电子设备执行上述实施例的技术方案。其实现原理和技术效果类似,此处不再赘述。An embodiment of the present application provides a readable storage medium, where the readable storage medium contains instructions, when the instructions are executed on a second electronic device (or, the mobile phone in the above-mentioned embodiment), the second electronic device causes the second electronic device to be executed. The technical solutions of the above embodiments are implemented. The implementation principle and technical effect thereof are similar, and are not repeated here.
本申请实施例提供一种芯片,所述芯片用于执行指令,当所述芯片运行时,执行上述实施例中的技术方案。其实现原理和技术效果类似,此处不再赘述。An embodiment of the present application provides a chip, which is used for executing an instruction, and when the chip is running, executes the technical solutions in the foregoing embodiments. The implementation principle and technical effect thereof are similar, and are not repeated here.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储 在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution, and the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this. should be covered within the scope of protection of this application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims (17)

  1. 一种系统,所述系统包括第一电子设备和第二电子设备,其特征在于,A system comprising a first electronic device and a second electronic device, characterized in that:
    所述第一电子设备,用于通过显示屏显示文本输入界面,所述文本输入界面包括文本输入框;the first electronic device, configured to display a text input interface through a display screen, the text input interface comprising a text input box;
    所述第一电子设备,还用于响应于显示所述文本输入界面,发送第一消息,所述第一消息用于指示所述第一电子设备需要进行文本输入;The first electronic device is further configured to, in response to displaying the text input interface, send a first message, where the first message is used to indicate that the first electronic device needs to perform text input;
    所述第二电子设备,用于检测用户的预设操作以及监听所述第一消息;the second electronic device, configured to detect the user's preset operation and monitor the first message;
    所述第二电子设备,还用于响应于检测到所述预设操作以及接收到所述第一消息,检测用户输入的内容;The second electronic device is further configured to detect the content input by the user in response to detecting the preset operation and receiving the first message;
    所述第二电子设备,还用于响应于检测到用户输入第一内容的操作时,向所述第一电子设备发送所述第一内容;The second electronic device is further configured to send the first content to the first electronic device in response to detecting an operation of the user inputting the first content;
    所述第一电子设备,还用于在所述文本输入框中显示所述第一内容对应的文本内容。The first electronic device is further configured to display text content corresponding to the first content in the text input box.
  2. 根据权利要求1所述的系统,其特征在于,所述第二电子设备具体用于:The system according to claim 1, wherein the second electronic device is specifically used for:
    响应于检测到所述预设操作以及接收到所述第一消息,显示输入法;in response to detecting the preset operation and receiving the first message, displaying an input method;
    检测用户通过所述输入法输入的文本内容。The text content input by the user through the input method is detected.
  3. 根据权利要求1所述的系统,其特征在于,所述第二电子设备具体用于:The system according to claim 1, wherein the second electronic device is specifically used for:
    响应于检测到所述预设操作以及接收到所述第一消息,检测用户输入的语音内容;In response to detecting the preset operation and receiving the first message, detecting the voice content input by the user;
    响应于检测到用户输入第一语音内容的操作,向所述第一电子设备发送所述第一语音内容;In response to detecting an operation of the user inputting the first voice content, sending the first voice content to the first electronic device;
    其中,所述第一电子设备具体用于:Wherein, the first electronic device is specifically used for:
    确定所述第一语音内容对应的所述文本内容;determining the text content corresponding to the first voice content;
    在所述文本输入框中显示所述文本内容。The text content is displayed in the text input box.
  4. 根据权利要求1至3中任一项所述的系统,其特征在于,所述第二电子设备还用于:The system according to any one of claims 1 to 3, wherein the second electronic device is further configured to:
    在所述检测用户输入的内容之前,显示第一提示信息,所述第一提示信息用于提示所述第二电子设备为能够向所述第一电子设备输入的设备。Before the content input by the user is detected, first prompt information is displayed, where the first prompt information is used to prompt the second electronic device to be a device capable of inputting to the first electronic device.
  5. 根据权利要求1至4中任一项所述的系统,其特征在于,所述第一电子设备还用于:The system according to any one of claims 1 to 4, wherein the first electronic device is further configured to:
    在所述文本输入框中显示所述文本内容之前,通过所述显示屏显示第二提示信息,所述第二提示信息用于提示用户通过所述第二电子设备向所述第一电子设备输入。Before the text content is displayed in the text input box, second prompt information is displayed on the display screen, where the second prompt information is used to prompt the user to input an input to the first electronic device through the second electronic device .
  6. 根据权利要求1至5中任一项所述的系统,其特征在于,所述第二电子设备具体用于:The system according to any one of claims 1 to 5, wherein the second electronic device is specifically used for:
    在检测到用户启动第一应用程序的操作以及接收到所述第一消息时,检测用户输入的内容。When it is detected that the user starts the first application and the first message is received, the content input by the user is detected.
  7. 根据权利要求6所述的系统,其特征在于,所述第一应用程序为遥控器应用。The system according to claim 6, wherein the first application is a remote control application.
  8. 根据权利要求1至7中任一项所述的系统,其特征在于,所述第一电子设备为智能电视。The system according to any one of claims 1 to 7, wherein the first electronic device is a smart TV.
  9. 一种文本输入的方法,所述方法应用于电子设备,其特征在于,所述方法包括:A method for text input, the method being applied to an electronic device, characterized in that the method comprises:
    所述电子设备检测用户的预设操作以及监听第一消息,所述第一消息用于指示另一电子设备需要进行文本输入;The electronic device detects the user's preset operation and monitors a first message, where the first message is used to indicate that another electronic device needs to perform text input;
    响应于检测到用户的所述预设操作以及接收到所述第一消息,所述电子设备检测用户输入的内容;In response to detecting the preset operation of the user and receiving the first message, the electronic device detects the content input by the user;
    响应于检测到用户输入第一内容的操作,所述电子设备向所述另一电子设备发送所述第一内容。The electronic device transmits the first content to the other electronic device in response to detecting an operation of the user inputting the first content.
  10. 根据权利要求9所述的方法,其特征在于,所述响应于检测到用户的所述预设操作以及接收到所述第一消息,所述电子设备检测用户的输入,包括:The method according to claim 9, wherein, in response to detecting the user's preset operation and receiving the first message, the electronic device detects the user's input, comprising:
    响应于检测到用户的所述预设操作以及接收到所述第一消息,所述电子设备显示输入法;In response to detecting the preset operation of the user and receiving the first message, the electronic device displays an input method;
    所述电子设备检测用户通过所述输入法输入的文本内容。The electronic device detects the text content input by the user through the input method.
  11. 根据权利要求9所述的方法,其特征在于,所述响应于检测到用户的所述预设操作以及接收到所述第一消息,所述电子设备检测用户的输入,包括:The method according to claim 9, wherein, in response to detecting the user's preset operation and receiving the first message, the electronic device detects the user's input, comprising:
    响应于检测到用户的所述预设操作以及接收到所述第一消息,所述电子设备检测用户输入的语音内容。In response to detecting the preset operation of the user and receiving the first message, the electronic device detects the voice content input by the user.
  12. 根据权利要求9至11中任一项所述的方法,其特征在于,所述电子设备检测用户输入的内容之前,所述方法还包括:The method according to any one of claims 9 to 11, wherein before the electronic device detects the content input by the user, the method further comprises:
    所述电子设备显示提示信息,所述提示信息用于提示用户所述电子设备为能够向所述另一电子设备输入的设备。The electronic device displays prompt information, and the prompt information is used to prompt the user that the electronic device is a device capable of inputting to the other electronic device.
  13. 根据权利要求9至12中任一项所述的方法,其特征在于,所述检测到用户的所述预设操作,包括:The method according to any one of claims 9 to 12, wherein the detecting the preset operation of the user comprises:
    所述电子设备检测到用户启动第一应用程序的操作。The electronic device detects that the user starts the operation of the first application program.
  14. 根据权利要求13所述的方法,其特征在于,所述第一应用程序为遥控器应用。The method according to claim 13, wherein the first application is a remote control application.
  15. 根据权利要求9至14中任一项所述的方法,其特征在于,所述另一电子设备为智能电视。The method according to any one of claims 9 to 14, wherein the other electronic device is a smart TV.
  16. 一种电子设备,其特征在于,一个或多个处理器;一个或多个存储器;所述一个或多个存储器存储有一个或者多个计算机程序,所述一个或者多个计算机程序包括指令,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行如权利要求9至15中任一项所述的文本输入的方法。An electronic device, characterized in that, one or more processors; one or more memories; the one or more memories store one or more computer programs, and the one or more computer programs include instructions, when The instructions, when executed by the one or more processors, cause the electronic device to perform a method of text input as claimed in any one of claims 9 to 15.
  17. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求9至15中任一项所述的文本输入的方法。A computer-readable storage medium, characterized in that it includes computer instructions that, when the computer instructions are executed on an electronic device, cause the electronic device to perform the text input process according to any one of claims 9 to 15. method.
PCT/CN2021/127888 2020-11-09 2021-11-01 Text input method, electronic device, and system WO2022095820A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011240756.5A CN114489876A (en) 2020-11-09 2020-11-09 Text input method, electronic equipment and system
CN202011240756.5 2020-11-09

Publications (1)

Publication Number Publication Date
WO2022095820A1 true WO2022095820A1 (en) 2022-05-12

Family

ID=81457576

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/127888 WO2022095820A1 (en) 2020-11-09 2021-11-01 Text input method, electronic device, and system

Country Status (2)

Country Link
CN (1) CN114489876A (en)
WO (1) WO2022095820A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115814403A (en) * 2021-09-16 2023-03-21 荣耀终端有限公司 Equipment control method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841637A (en) * 2009-03-19 2010-09-22 华为技术有限公司 Method for interacting with set-top box and corresponding device
CN103634640A (en) * 2013-11-29 2014-03-12 乐视致新电子科技(天津)有限公司 Method and system for controlling voice input of smart television terminal by using mobile terminal equipment
US20140320398A1 (en) * 2013-04-29 2014-10-30 Swisscom Ag Method, electronic device and system for remote text input
CN109698969A (en) * 2018-12-20 2019-04-30 北京四达时代软件技术股份有限公司 The text entry method and device of TV

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841637A (en) * 2009-03-19 2010-09-22 华为技术有限公司 Method for interacting with set-top box and corresponding device
US20140320398A1 (en) * 2013-04-29 2014-10-30 Swisscom Ag Method, electronic device and system for remote text input
CN103634640A (en) * 2013-11-29 2014-03-12 乐视致新电子科技(天津)有限公司 Method and system for controlling voice input of smart television terminal by using mobile terminal equipment
CN109698969A (en) * 2018-12-20 2019-04-30 北京四达时代软件技术股份有限公司 The text entry method and device of TV

Also Published As

Publication number Publication date
CN114489876A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
WO2020259452A1 (en) Full-screen display method for mobile terminal, and apparatus
WO2020000448A1 (en) Flexible screen display method and terminal
WO2022257977A1 (en) Screen projection method for electronic device, and electronic device
CN115599566A (en) Notification message processing method, device, system and computer readable storage medium
WO2022042770A1 (en) Method for controlling communication service state, terminal device and readable storage medium
WO2022033320A1 (en) Bluetooth communication method, terminal device, and computer-readable storage medium
WO2022037407A1 (en) Method and system for replying to message, and electronic device
US20230350547A1 (en) Display Interaction System, and Display Methodod and Device
WO2022001258A1 (en) Multi-screen display method and apparatus, terminal device, and storage medium
CN112130788A (en) Content sharing method and device
US20230070358A1 (en) File Sharing Method, System, and Related Device
WO2022042326A1 (en) Display control method and related apparatus
WO2022135269A1 (en) Method for authorizing by using another device, electronic devices and system
WO2022143180A1 (en) Collaborative display method, terminal device, and computer readable storage medium
WO2021052388A1 (en) Video communication method and video communication apparatus
WO2022095820A1 (en) Text input method, electronic device, and system
CN114006712A (en) Method, electronic equipment and system for acquiring verification code
EP4293997A1 (en) Display method, electronic device, and system
WO2022152174A1 (en) Screen projection method and electronic device
WO2022152167A1 (en) Network selection method and device
WO2022062902A1 (en) File transfer method and electronic device
WO2022228180A1 (en) Application management method and electronic device
WO2022135195A1 (en) Method and apparatus for displaying virtual reality interface, device, and readable storage medium
WO2022170854A1 (en) Video call method and related device
CN114567871A (en) File sharing method and device, electronic equipment and readable storage medium

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: 21888517

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21888517

Country of ref document: EP

Kind code of ref document: A1