WO2021023046A1 - 一种电子设备控制方法及一种电子设备 - Google Patents

一种电子设备控制方法及一种电子设备 Download PDF

Info

Publication number
WO2021023046A1
WO2021023046A1 PCT/CN2020/104887 CN2020104887W WO2021023046A1 WO 2021023046 A1 WO2021023046 A1 WO 2021023046A1 CN 2020104887 W CN2020104887 W CN 2020104887W WO 2021023046 A1 WO2021023046 A1 WO 2021023046A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
input
processor
information
points
Prior art date
Application number
PCT/CN2020/104887
Other languages
English (en)
French (fr)
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 WO2021023046A1 publication Critical patent/WO2021023046A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Definitions

  • the present invention relates to the field of wireless communication technology, in particular to an electronic device control method and an electronic device.
  • IoT Internet of Things
  • users can control IoT devices through electronic devices such as mobile phones and tablets.
  • a user can use an App (Application) on a mobile phone to control a smart home device through a Bluetooth connection, and implement operations such as switching the device.
  • App Application
  • the method for a user to control an IoT device through an App is mainly: the user installs the App on an electronic device such as a mobile phone or tablet, then registers and connects the corresponding IoT device that needs to be controlled on the App, and calls the app in the App.
  • the control interface of the IoT device is operated.
  • the present invention provides an electronic device control method and an electronic device.
  • the first electronic device points to the second electronic device, the first electronic device can display the device information of the second electronic device.
  • An electronic device receives a user's second input of the device information of the second electronic device displayed on the first electronic device, and in response to the second input, the first electronic device sends a message to the second electronic device Send a request to establish a Bluetooth communication connection.
  • the process of device connection and pairing operations is simplified, and user experience is improved.
  • the present invention provides an electronic device control method, including:
  • a first electronic device receives a first input from a user; in response to the first input, the first electronic device determines whether the first electronic device points to the second electronic device, and if the first electronic device points to the second electronic device Electronic device, the first electronic device displays device information of the second electronic device, wherein at least two Bluetooth antennas are provided on the first electronic device and/or the second electronic device; the first electronic device The device receives a user's second input of the device information of the second electronic device displayed on the first electronic device; in response to the second input, the first electronic device sends an establishment to the second electronic device Bluetooth communication connection request.
  • the first electronic device when the first electronic device points to the second electronic device, that is, the first alignment angle of the first electronic device relative to the second electronic device, or the second electronic device When the second alignment angle of the second electronic device relative to the first electronic device is within the first threshold range, the first electronic device displays the device information of the second electronic device.
  • the first electronic device receives a user's second input of the device information of the second electronic device displayed on the first electronic device, and in response to the second input, the first electronic device The second electronic device sends a request to establish a Bluetooth communication connection. In this way, the process of device connection and pairing operations is simplified, and user experience is improved.
  • the method further includes:
  • the first electronic device receives the third input; in response to the third input, the first electronic device determines whether the first electronic device points to the third electronic device and the fourth electronic device at the same time, if the first electronic device Pointing to the third electronic device and the fourth electronic device at the same time, and the first electronic device simultaneously displays the device information of the third electronic device and the device information of the fourth electronic device.
  • all the second electronic devices pointed to by the first electronic device can be displayed on the first electronic device at the same time for the user to perform selection operations, which improves user experience.
  • the first electronic device judging whether the first electronic device points to the third electronic device and the fourth electronic device at the same time includes:
  • the first electronic device determines whether the third alignment angle of the first electronic device relative to the third electronic device, or the fourth alignment angle of the third electronic device relative to the first electronic device Within the first threshold range, at the same time, the first electronic device determines the fifth alignment angle of the first electronic device relative to the fourth electronic device, or the fourth electronic device relative to the Whether the sixth alignment angle of the first electronic device is within the first threshold range.
  • all the second electronic devices pointed to by the first electronic device can be displayed on the first electronic device at the same time for the user to perform selection operations, which improves user experience.
  • the first electronic device simultaneously displaying the device information of the third electronic device and the device information of the fourth electronic device includes: the first electronic device is In the form of an information list, the device information of the third electronic device and the device information of the fourth electronic device are displayed at the same time.
  • all the second electronic devices pointed to by the first electronic device can be displayed on the first electronic device at the same time, and displayed in the form of a device list for the user to perform selection operations, which improves the user experience.
  • the first electronic device simultaneously displaying the device information of the third electronic device and the device information of the fourth electronic device includes: The form of the relative positions of the third electronic device, the fourth electronic device, and the first electronic device simultaneously displays the device information of the third electronic device and the device information of the fourth electronic device.
  • all the second electronic devices pointed by the first electronic device can be displayed on the first electronic device at the same time, and displayed in the form of the relative position of the device for the user to perform selection operations, which improves the user experience.
  • the first input includes a voice input, a gesture input, or a click input that instructs the first electronic device to determine whether the first electronic device points to the second electronic device.
  • the user can make the first input through various forms, which improves the user experience.
  • the present invention provides an electronic device control method, including: a first electronic device receives a first input; in response to the first input, the first electronic device determines whether the first electronic device points to the first Two electronic devices, and whether the number of the second electronic devices is only one, wherein at least two Bluetooth antennas are provided on the first electronic device and/or the second electronic device; if the first electronic device Pointing to the second electronic device, and the number of the second electronic device is only one, and the first electronic device sends a Bluetooth communication connection establishment request to the second electronic device.
  • the first electronic device points to the second electronic device, that is, the first alignment angle of the first electronic device relative to the second electronic device can be realized, Or the second alignment angle of the second electronic device relative to the first electronic device is within the first threshold range, and whether the number of the second electronic device is only one, the first electronic device is The second electronic device sends a request to establish a Bluetooth communication connection. In this way, the process of connecting and pairing the first electronic device with the second electronic device is simplified, and the user experience is improved.
  • the first input includes a voice input, a gesture input, or a click input that instructs the first electronic device to determine whether the first electronic device points to the second electronic device.
  • the user can make the first input through various forms, which improves the user experience.
  • the present invention provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and running on the processor; wherein the processor executes the computer program When enabling the electronic device to implement the method described in the electronic device control method in any one of the possible implementation manners of any one of the foregoing aspects.
  • the present invention provides a computer program, characterized in that, when the computer program runs on a processor, a program for executing the electronic device control method in any one of the possible implementations of any of the above aspects Code.
  • the present invention provides a computer storage medium, which is characterized by comprising computer instructions, when the computer instructions run on an electronic device, they are used to execute any one of the possible implementations of any of the above aspects.
  • the program code of the method described in the electronic device control method is characterized by comprising computer instructions, when the computer instructions run on an electronic device, they are used to execute any one of the possible implementations of any of the above aspects.
  • FIG. 1 is a schematic structural diagram of an electronic device control system provided by an embodiment of the present invention
  • FIG. 2A is a schematic structural diagram of a first electronic device provided by an embodiment of the present invention.
  • 2B is a schematic structural diagram of a second electronic device according to an embodiment of the present invention.
  • Figure 3 is a framework diagram of a Bluetooth protocol provided by an embodiment of the present invention.
  • 4A-4D are a set of schematic diagrams of an alignment angle measurement principle provided by an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of an electronic device control method provided by an embodiment of the present invention.
  • 6A-6G are a set of schematic diagrams of a user's first input mode in an electronic device control method provided by an embodiment of the present invention.
  • 7A-7E are a set of schematic diagrams of a manner in which the first electronic device displays the device information of the second electronic device in an electronic device control method provided by an embodiment of the present invention
  • FIG. 8 is a schematic flowchart of another electronic device control method provided by an embodiment of the present invention.
  • the problem to be solved by the present invention is to provide a method and device for controlling electronic equipment, which can reduce the process of establishing connection and control between the first electronic equipment and the second electronic equipment, and improve the user experience.
  • the first electronic device and/or the second electronic device refer to electronic devices with data calculation and processing functions and wireless communication functions.
  • the first electronic device and/or the second electronic device include, but are not limited to: smart phones (such as Android phones, iOS phones and other phones equipped with other operating systems), tablet computers, palmtop computers, notebook computers, mobile Internet devices (Mobile Internet Devices), wearable devices (such as smart watches, smart bracelets, etc.), smart home devices, Internet of Things devices, smart cars, etc.
  • first electronic device and the second electronic device are listed above, but those skilled in the art can realize that the embodiments of the present invention are not limited to the types listed above, but can also be applied to any other electronic device types. And operating system type.
  • FIG. 1 is a schematic structural diagram of an electronic device control system according to an embodiment of the present invention.
  • the system may include: a first electronic device 100 and a second electronic device 200.
  • the first electronic device 100 and the second electronic device 200 may establish communication through Bluetooth low energy (BLE) technology.
  • BLE Bluetooth low energy
  • the first electronic device 100 can search for the second electronic device 200 through BLE, and determine the alignment angle between the first electronic device and the second electronic device through the Bluetooth direction finding function.
  • FIG. 2A exemplarily shows a schematic structural diagram of a first electronic device 100.
  • the first electronic device 100 shown in FIG. 2A is only an example, and the first electronic device 100 may have more or fewer components than those shown in FIG. 2A, and two or more components may be combined. , Or can have different component configurations.
  • the various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
  • the first 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 charging management module 140, a power management module 141, a battery 142, and an antenna 1. , Antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display 194, and subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • a processor 110 an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, and an antenna 1.
  • Antenna 2 mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180, buttons
  • the sensor module 180 may include pressure sensor 180A, gyroscope sensor 180B, air pressure sensor 180C, magnetic sensor 180D, acceleration sensor 180E, distance sensor 180F, proximity light sensor 180G, fingerprint sensor 180H, temperature sensor 180J, touch sensor 180K, ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the first electronic device 100.
  • the first electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and 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.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the first electronic device 100.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store 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 directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • 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, and a universal asynchronous transmitter (universal asynchronous transmitter) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the I2C interface is a two-way synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc. through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the first electronic device 100.
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to realize communication between the processor 110 and the audio module 170.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 may 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 can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and 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 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices.
  • the MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
  • the processor 110 and the camera 193 communicate through a CSI interface to realize the shooting function of the first electronic device 100.
  • the processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the first electronic device 100.
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can 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 so on.
  • GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the first electronic device 100, and can also be used to transfer data between the first electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through the headphones. This interface can also be used to connect to other terminals, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic description, and does not constitute a structural limitation of the first electronic device 100.
  • the first electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the first electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the terminal through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charge 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, and 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 first electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the first electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the first electronic device 100.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering and amplifying the received electromagnetic waves, and then transmitting them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via 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 and at least part of the modules of the processor 110 may be provided in the same device.
  • 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 then passed to the application processor.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and 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 first electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (bluetooth, BT), and global Navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • WiFi wireless fidelity
  • Bluetooth bluetooth, BT
  • global Navigation satellite system global navigation satellite system
  • GNSS global navigation satellite system
  • frequency modulation frequency modulation, FM
  • NFC near field communication technology
  • infrared technology infrared, 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
  • the antenna 1 of the first 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 first electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), 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 first electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, connected to the display 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the first electronic device 100 may include 1 or N display screens 194, and N is a positive integer greater than 1.
  • the first electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and projects it to 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.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats.
  • the first electronic device 100 may include 1 or N cameras 193, and N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the first electronic device 100 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the first electronic device 100 may support one or more video codecs. In this way, the first electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, and so on.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the first electronic device 100 can be realized, such as: image recognition, face recognition, voice recognition, text understanding, etc.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the first 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, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the first electronic device 100 by running 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 can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function.
  • the storage data area can store data (such as audio data, phone book, etc.) created during the use of the first electronic device 100.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
  • UFS universal flash storage
  • the first electronic device 100 may implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the speaker 170A also called a “speaker” is used to convert audio electrical signals into sound signals.
  • the first electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the first electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can approach the microphone 170C through the mouth to make a sound, and input the sound signal to the microphone 170C.
  • the first electronic device 100 may be provided with at least one microphone 170C.
  • the first electronic device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals.
  • the first electronic device 100 may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (open mobile terminal platform, OMTP) standard interface, and a cellular telecommunications industry association (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 the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the first electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • the first electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the first electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch location but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view 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, an instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the movement posture of the first electronic device 100.
  • the angular velocity of the first electronic device 100 around three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyroscope sensor 180B detects the shake angle of the first electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the first electronic device 100 through reverse movement. Realize anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the first electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the first electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the first electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the first electronic device 100 in various directions (generally three-axis). When the first electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the terminal's posture, apply to horizontal and vertical screen switching, pedometer and other applications.
  • the first electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the first electronic device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the first electronic device 100 emits infrared light to the outside through the light emitting diode.
  • the first electronic device 100 uses a photodiode 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 first electronic device 100. When insufficient reflected light is detected, the first electronic device 100 may determine that there is no object near the first electronic device 100.
  • the first electronic device 100 may use the proximity light sensor 180G to detect that the user holds the first 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 leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the first electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • 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 first electronic device 100 is in a pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the first electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photos, fingerprint answering calls, etc.
  • the temperature sensor 180J is used to detect temperature.
  • the first 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 first electronic device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the first electronic device 100 when the temperature is lower than another threshold, the first electronic device 100 heats the battery 142 to avoid abnormal shutdown of the first electronic device 100 due to low temperature.
  • the first 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 screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the first electronic device 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
  • the application processor may analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
  • the button 190 includes a power button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the first electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the first electronic device 100.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations applied to different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the first electronic device 100.
  • the first electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can 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 may also be compatible with external memory cards.
  • the first electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the first electronic device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the first electronic device 100 and cannot be separated from the first electronic device 100.
  • FIG. 2B exemplarily shows a schematic structural diagram of a second electronic device 200 according to an embodiment of the present invention.
  • the second electronic device 200 is taken as an example to describe the embodiments in detail below. It should be understood that the second electronic device 200 shown in FIG. 2B is only an example, and the second electronic device 200 may have more or less components than those shown in FIG. 2B, and two or more components may be combined. Components, or can have different component configurations.
  • the various components shown in the figure can be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits,
  • the second electronic device 200 may include: a processor 201, a memory 202, a wireless communication processing module 203, an antenna 204, a power switch 205, a wired LAN communication processing module 206, an HDMI communication processing module 207, and a USB communication processing Module 208, display screen 209, audio module 210. among them:
  • the processor 201 can be used to read and execute computer-readable instructions.
  • the processor 201 may mainly include a controller, an arithmetic unit, and a register.
  • the controller is mainly responsible for instruction decoding, and sends out control signals for the operation corresponding to the instruction.
  • the arithmetic unit is mainly responsible for saving the register operands and intermediate operation results temporarily stored during the execution of instructions.
  • the hardware architecture of the processor 201 may be an application specific integrated circuit (ASIC) architecture, MIPS architecture, ARM architecture, or NP architecture, etc.
  • the processor 201 may be used to parse the signals received by the wireless communication module 203 and/or the wired LAN communication processing module 206, such as a positioning request broadcast by the first electronic device 100, and a setup sent by the first electronic device 100 Bluetooth communication connection request, etc.
  • the processing 201 may be used to perform corresponding processing operations according to the analysis result, such as the first input and the second input response of the user, and so on.
  • the processor 201 may also be used to generate signals sent by the wireless communication module 203 and/or the wired LAN communication processing module 206, such as Bluetooth broadcast signals, beacon signals, or send to the first electronic device 100.
  • the signal used to feedback status information (such as standby, power on, etc.).
  • the memory 202 is coupled with the processor 201, and is used to store various software programs and/or multiple sets of instructions.
  • the memory 202 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid-state storage devices.
  • the memory 202 can store an operating system, such as embedded operating systems such as uCOS, VxWorks, and RTLinux.
  • the memory 202 may also store a communication program, and the communication program may be used for the first electronic device 100, one or more servers, or an accessory device to communicate.
  • the wireless communication module 203 may include one or more of a Bluetooth communication module 203A, a WLAN communication module 203B, and an infrared communication module 204C.
  • the Bluetooth communication module 203A may include a classic Bluetooth (BT) module and a low energy Bluetooth (BLE) module,
  • one or more of the Bluetooth communication module 203A, WLAN communication module 203B, and infrared communication module 204C can monitor signals transmitted by other devices (such as the first electronic device 100), such as positioning request signals, etc. , And can send response signals, such as positioning responses, so that other devices (such as the first electronic device 100) can discover the second electronic device 200, and establish a wireless communication connection with other devices (such as the first electronic device 100) through Bluetooth
  • One or more wireless communication technologies such as WLAN or infrared to communicate with other devices (such as the first electronic device 100).
  • one or more of the Bluetooth communication module 203A, WLAN communication module 203B, and infrared communication module 203C can also transmit signals, such as broadcasting Bluetooth signals and beacon signals, so that other devices (such as First Electronic The device 100) can discover the second electronic device 200 and establish a wireless communication connection with other devices (such as the electronic device 100), and communicate with other devices (such as the electronic device 100) through one or more wireless communication technologies in Bluetooth or WLAN. Communication.
  • signals such as broadcasting Bluetooth signals and beacon signals
  • the wireless communication module 203 may also include a cellular mobile communication module (not shown).
  • the cellular mobile communication processing module can communicate with other devices (such as servers) through cellular mobile communication technology.
  • the wireless communication function of the second electronic device 200 can be implemented by the antenna 204, the wireless communication module 203, the modem processor, and the like.
  • the antenna 204 can be used to transmit and receive electromagnetic wave signals.
  • Each antenna in the second electronic device 200 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna of the WLAN communication module 203B can be multiplexed as the antenna of the Bluetooth communication module 203A. In other embodiments, the antenna can be used in combination with a tuning switch.
  • the first electronic device 100 can measure the arrival of the Bluetooth signal sent by the second electronic device 200. Angle (angle of arrival, AOA) or angle of departure (angle of departure, AOD).
  • the power switch 205 can be used to control the power supply to the second electronic device 200.
  • the wired LAN communication processing module 206 can be used to communicate with other devices in the same LAN via a wired LAN, and can also be used to connect to a WAN via a wired LAN, and can communicate with devices in the WAN.
  • the HDMI communication processing module 207 can be used to communicate with other devices through an HDMI interface (not shown).
  • the USB communication processing module 208 can be used to communicate with other devices through a USB interface (not shown).
  • the display screen 209 can be used to display images, videos, etc.
  • the display screen 129 can be a liquid crystal display (LCD), an organic light-emitting diode (OLED) display, or an active-matrix organic light emitting diode (AMOLED). Display screen, flexible light-emitting diode (FLED) display screen, quantum dot light-emitting diode (QLED) display screen, etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • AMOLED active-matrix organic light emitting diode
  • FLED flexible light-emitting diode
  • QLED quantum dot light-emitting diode
  • the audio module 210 can be used to output audio signals through an audio output interface, so that the second electronic device 200 can support audio playback.
  • the audio module can also be used to receive audio data through the audio input interface.
  • the second electronic device 200 may be a media playback device such as a television.
  • the second electronic device 200 may also include a serial interface such as an RS-232 interface.
  • the serial interface can be connected to other devices, such as audio amplifiers such as speakers, so that the display and the audio amplifiers can play audio and video together.
  • the structure illustrated in FIG. 2B does not constitute a specific limitation on the second electronic device 200.
  • the second electronic device 200 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • FIG. 3 is a Bluetooth protocol framework diagram provided by an embodiment of the present invention, which specifically includes but is not limited to a Host (Host) protocol stack, HCI (Host Controller Interface), and a controller (controller).
  • Host Host
  • HCI Home Controller Interface
  • controller controller
  • the Bluetooth protocol framework used by the first electronic device and the second electronic device can refer to this part of the content.
  • the Host protocol stack defines multiple applications (profiles) and core protocols (protocol) in the Bluetooth framework, each profile defines its own message format and application rules, and the profile is a Bluetooth service (Application).
  • the Bluetooth protocol has formulated specifications for various possible and universal application scenarios, such as A2DP (advanced audio distribution profile), HFP (hands-free profile), etc. Wait.
  • the core protocols include but are not limited to Bluetooth's basic service protocol SDP (Service Discover Protocol), logical link control and adaptation protocol L2CAP (Logical Link Control and Adaptation Protocol), etc.
  • the core protocol is indispensable in the Bluetooth protocol stack.
  • HCI provides a unified interface for the upper layer protocol to enter the link manager and a unified way to enter the baseband.
  • SIG Bluetooth Special Interest Group stipulates four physical bus methods to connect with hardware, namely four HCI transmission layers: USB, RS232, UART and PC card.
  • the controller defines the underlying hardware, including radio frequency (RF), baseband (BB), and link management (LM).
  • RF radio frequency
  • BB baseband
  • LM link management
  • the RF layer uses 2.4GHz unlicensed ISM band microwaves to filter and transmit data bit streams. It mainly defines the conditions that the Bluetooth transceiver needs to meet in this frequency band.
  • the baseband is responsible for frequency hopping and the transmission of Bluetooth data and information frames.
  • Link management is responsible for connecting, establishing and dismantling links and performing security control.
  • the LM (Link Manager) layer is the link management layer protocol of the Bluetooth protocol stack.
  • the LC (Link Control) layer is responsible for responding to upper-layer LM commands (such as executing LM commands for establishing data packet transmission links and maintaining links) during a batch of data packet transmission.
  • Part of the content of the method described in the embodiment of the present invention implemented by the wireless communication module 160 of the first electronic device 100 shown in FIG. 2A may be specifically executed by a Bluetooth module or a Bluetooth chip.
  • 4A-4D are schematic diagrams of a set of Bluetooth direction-finding functions provided by embodiments of the present invention, specifically related to the measurement principle of the BLE signal to the angle of arrival (AoA) and the angle of departure (AoD). To calculate the alignment angle between the first electronic device and the second electronic device.
  • the following describes the measurement principle of the angle of arrival (AoA) of the BLE signal involved in the embodiment of the present invention.
  • FIGS. 4A-4B are schematic diagrams of a Bluetooth angle of arrival AoA calculation provided by an embodiment of the present invention.
  • the transmitter (Transmitter) 410 can transmit AoA broadcast packets (constant tone extension (CTE) packets) via BLE.
  • the AoA CTE packets are a continuous modulated sequence without verification. , Does not include cyclic redundancy check (CRC) and message integrity code (MIC).
  • CTE constant tone extension
  • MIC message integrity code
  • the Host of the receiver (Receiver) 420 issues the antenna sequence information used in the measurement through the HCI command.
  • the controller 421 sequentially switches to the designated antenna for I&Q sampling according to the antenna sequence information issued by the Host, and reports the sampling information to the Host through the HCI command, and the Host calculates the relative angle.
  • the transmitter 410 may control an antenna 410 to transmit the AoA CTE packet through the controller 411.
  • the receiver 420 can control the radio frequency switch 422 through the controller 421 to switch to a designated antenna for reception in a certain order.
  • the receiver 420 has at least two antennas 423.
  • the angle of arrival AoA of the BLE signal of the transmitter 410 measured by the receiver 420.
  • multiple antennas may be equipped, and the arrangement of the array is a font, ring, spherical, etc., which is not limited here.
  • the receiver 420 has two antennas (antenna A and antenna B) separated by d, and the received BLE signal is a plane electromagnetic wave. Wherein, because antenna A and antenna B receive BLE signals are not synchronized, the receiver 420 can compare the phases of the BLE signals received by antenna A and antenna B to determine the phase difference between the BLE signals received by antenna A and antenna B.
  • the angle of arrival (AoA) of the BLE signal can be calculated by the following formula (1):
  • is the angle of arrival (AoA) of the BLE signal
  • is the phase difference between the BLE signal received by the antenna A and the antenna B
  • is the wavelength of the BLE signal
  • d is the distance between the antenna A and the antenna B.
  • the angle ⁇ can be set as the alignment angle between the first electronic device and the second electronic device, that is, the alignment angle between the first electronic device and the second electronic device can be calculated by formula (1).
  • the transmitting party 410 may be the second electronic device 200 and the receiving party 410 may be the first electronic device 100.
  • the first electronic device 100 has at least two antennas for transmitting/receiving BLE signals, and the second electronic device 200 has at least one antenna for transmitting/receiving BLE signals.
  • the first electronic device 100 can determine the alignment angle of the first electronic device 100 relative to the second electronic device 200 by the AoA principle of measuring the BLE signal shown in FIGS. 4A and 4B.
  • the transmitter 410 may be the first electronic device 100
  • the receiver 420 may be the second electronic device 200.
  • the first electronic device 100 has at least one antenna for transmitting/receiving BLE signals.
  • the second electronic device 200 has at least two antennas for transmitting/receiving BLE signals.
  • the second electronic device 200 can determine the alignment angle of the first electronic device 100 relative to the second electronic device 200 by using the AoA principle of measuring the BLE signal shown in FIGS. 4A and 4B.
  • FIGS. 4C-4D are schematic diagrams of a Bluetooth departure angle AoD calculation provided by embodiments of the present invention.
  • the transmitter (Transmitter) 430 can transmit AoD broadcast packets (constant tone extension (CTE) packets) via BLE.
  • the AoD CTE packets are a continuous modulated sequence without verification. , Does not include cyclic redundancy check (CRC) and message integrity code (MIC).
  • CTE constant tone extension
  • MIC message integrity code
  • the controller 441 of the receiver 440 After the measurement is started, the controller 441 of the receiver 440 performs I&Q sampling on the BLE signal sent by each antenna of the receiver 440 through its single antenna according to the antenna sequence information issued by the Host of the transmitter 430, and the sampling information It is reported to the Host through the HCI command, and the Host calculates the relative angle.
  • the receiver 440 may control an antenna 442 through the controller 441 to receive the AoD and CTE packet transmitted by the transmitter 430.
  • the transmitter 430 can control the radio frequency switch 432 through the controller 431 to switch to a designated antenna in a certain order to send the AoD CTE packet.
  • the transmitter 430 has at least two antennas 433.
  • the departure angle AoD of the BLE signal of the transmitter 430 measured by the receiver 440.
  • multiple antennas may be equipped, and the arrangement of the array is a font, ring, spherical, etc., which is not limited here.
  • the transmitter 430 has two antennas (antenna A and antenna B) with a distance of d, and the emitted BLE signal is a plane electromagnetic wave.
  • the receiver 440 can compare the phases of the BLE signals sent by the antenna A and antenna B of the transmitter 430 to determine the phases of the BLE signals transmitted by the antenna A and antenna B. difference.
  • the angle of departure (AoD) of the BLE signal can be calculated by the following formula (2):
  • is the departure angle (AoD) of the BLE signal
  • is the phase difference between the BLE signal emitted by the antenna A and the antenna B
  • is the wavelength of the BLE signal
  • d is the distance between the antenna A and the antenna B.
  • the angle ⁇ can be set as the alignment angle between the first electronic device and the second electronic device, that is, the alignment angle between the first electronic device and the second electronic device can be calculated by formula (2).
  • the transmitting party 430 may be the second electronic device 200 and the receiving party 440 may be the first electronic device 100.
  • the first electronic device 100 has at least two antennas for transmitting/receiving BLE signals, and the second electronic device 200 has at least one antenna for transmitting/receiving BLE signals.
  • the first electronic device 100 can determine the alignment angle of the first electronic device 100 relative to the second electronic device 200 by using the AoD principle of measuring the BLE signal shown in FIGS. 4C and 4D.
  • the transmitter 430 may be the first electronic device 100
  • the receiver 440 may be the second electronic device 200.
  • the first electronic device 100 has at least one antenna for transmitting/receiving BLE signals
  • the second electronic device 200 has at least two antennas for transmitting/receiving BLE signals.
  • the second electronic device 200 can determine the alignment angle of the first electronic device 100 relative to the second electronic device 200 through the AoD principle of measuring the BLE signal shown in FIGS. 4C and 4D.
  • the user first needs to search for the corresponding second electronic device in the terminal device, and then select the second electronic device to perform the pairing operation or the device in the App
  • the second electronic device to be controlled is found in the list, and the pairing operation is performed on it, and the user can control the second electronic device through the terminal device.
  • the user searches for the corresponding second electronic device in the terminal device, since the number of second electronic devices in the searched second electronic device or the device list in the App may be large, the user needs to search for a large number of second electronic devices Select the device to be controlled, and then perform pairing and connection operations. In this way, the time and complexity for the user to connect and control the second electronic device through the terminal is increased, which is not conducive to user experience.
  • the present invention provides a method for controlling an electronic device, which can realize that when a first electronic device searches for a second electronic device, if the first electronic device points to the second electronic device, the first electronic device displays the second electronic device. Device information of the electronic device. Then, the user can select the second electronic device to be controlled on the first electronic device, and the first electronic device sends a Bluetooth communication connection establishment request to the second electronic device to perform device connection pairing or control operations. In this way, the operation and time for the user to find the second electronic device in the device list can be reduced, and the device connection and pairing can be performed in a more intuitive manner, and the user experience can be improved.
  • the following describes an electronic device control method provided by the present invention based on the AoA and AOD measurement principles shown in FIGS. 4A-4D.
  • the first electronic device 100 determines whether the first electronic device 100 is Point to the second electronic device 200. If the first electronic device 100 points to the second electronic device 200, that is, the first alignment angle of the first electronic device 100 relative to the second electronic device 200, or the second electronic device 200 relative to all The second alignment angle of the first electronic device 100 is within the first threshold range, and the first electronic device 100 displays the device information of the second electronic device 200.
  • the first electronic device 100 receives a user's second input of the device information of the second electronic device 200 displayed on the first electronic device 100, and in response to the second input, the first electronic device 100 A request for establishing a Bluetooth communication connection is sent to the second electronic device 200.
  • the operation and time for the user to search for the second electronic device 200 in the device list can be reduced, the device connection and pairing can be performed in a more intuitive manner, and the user experience can be improved.
  • Fig. 5 exemplarily shows a schematic flowchart of an electronic device control method provided by an embodiment of the present invention. As shown in Figure 5, the method may include:
  • S501 Receive a user's first input for the first electronic device 100.
  • the first electronic device 100 determines whether the first electronic device 100 points to the second electronic device 200 before a trigger instruction is required, and the user's first input to the first electronic device 100 can be regarded as this trigger instruction.
  • the first input includes a voice input, a gesture input, or a click input that instructs the first electronic device 100 to determine whether the first electronic device 100 points to the second electronic device 200.
  • the first input methods listed below are only exemplary, and the first input is not limited to the listed methods.
  • FIG. 6A-6G are a set of schematic diagrams of a user's first input mode in an electronic device control method provided by an embodiment of the present invention.
  • the first input may be a user's voice input for the first electronic device 100.
  • the user can input the first input through the voice assistant of the first electronic device 100 or the voice control of the electronic device App, so as to trigger the first electronic device 100 to determine whether the first electronic device 100 points to the second electronic device 200.
  • the first input may be a user's gesture input for the first electronic device 100.
  • the user can perform a gesture operation on the first electronic device 100 to trigger the first electronic device 100 to determine whether the first electronic device 100 points to the second electronic device 200.
  • the user first swipes the first electronic device 100 left and right several times (for example, 3 times), then swipes the first electronic device 100 up and down several times (for example, 3 times), and then the first electronic device 100
  • this gesture operation can trigger the first electronic device 100 to determine whether the first electronic device 100 is pointing at the second electronic device 200.
  • the first electronic device 100 can determine whether the first electronic device 100 is swung left and right, up and down and lifted up and held for a period of time based on the motion parameter value detected by the acceleration sensor.
  • the first input may be a user's click input for the first electronic device 100.
  • the user can input the first input through the electronic device control App, search bar, negative one screen, etc., so as to trigger the first electronic device to determine whether the first electronic device 100 points to the second electronic device 200.
  • the first electronic device 100 searches for the second electronic device 200 in response to the user's first input, and sends a device positioning request to the second electronic device 200.
  • the first electronic device 100 may broadcast the positioning request to the second electronic device 200 periodically (for example, the period is 0.1 second).
  • the first electronic device 100 may broadcast the positioning request to the second electronic device 200 periodically (for example, with a period of 0.1 second) after receiving the first input from the user.
  • the second electronic device 200 responds to the positioning request of the first electronic device 100, and sends a CTE data packet to the first electronic device 100 through the Bluetooth module.
  • the second electronic device 200 responds to the positioning request of the first electronic device 100. Send a specially customized direction-finding signal to it, and the CTE data packet is sent from the second electronic device 200 to the first electronic device 100 for the first electronic device 100 to calculate that the second electronic device 200 is relative to the first electronic device 100 ⁇ Alignment angle.
  • S504 Calculate the alignment angle of the second electronic device 200 relative to the first electronic device 100.
  • the first electronic device 100 may be the receiver of the BLE signal
  • the second electronic device 200 may be the sender of the BLE signal.
  • the second electronic device 200 can send a CTE broadcast packet to the first electronic device 100, and the first electronic device 100 can switch to the designated location in a certain order.
  • the antenna of receives the CTE broadcast packet, and calculates the AoA of the BLE signal transmitted by the second electronic device 200 according to the above formula (1), that is, the alignment angle of the second electronic device 200 relative to the first electronic device 100.
  • the first electronic device 100 may be the sender of the BLE signal
  • the second electronic device 200 may be the receiver of the BLE signal.
  • the first electronic device 100 can send a CTE broadcast packet to the second electronic device 200, and the second electronic device 200 can switch to the specified order in a certain order.
  • the antenna of receives the CTE broadcast packet, and calculates the AoA of the BLE signal transmitted by the first electronic device 100 according to the above formula (2), that is, the alignment angle of the first electronic device 100 relative to the second electronic device 200.
  • the second electronic device 200 then sends the alignment angle to the first electronic device 100.
  • the first electronic device 100 may be the receiver of the BLE signal, and the second electronic device 200 may be the sender of the BLE signal. .
  • the second electronic device 200 can switch the designated antenna in a certain order to send a CTE broadcast packet to the first electronic device 100.
  • the first electronic device 100 The CTE broadcast packet can be received, and the AoD of the BLE signal transmitted by the second electronic device 200, that is, the alignment angle of the second electronic device 200 relative to the first electronic device 100, can be calculated according to the above formula (2).
  • the first electronic device 100 may be the sender of the BLE signal
  • the second electronic device 200 may be the receiver of the BLE signal.
  • the first electronic device 100 can switch the designated antenna in a certain order to send a CTE broadcast packet to the second electronic device 200.
  • the second electronic device 200 The CTE broadcast packet can be received, and the AoD of the BLE signal transmitted by the first electronic device 200, that is, the alignment angle of the first electronic device 100 relative to the second electronic device 200, can be calculated according to the above formula (2).
  • the second electronic device 200 then sends the alignment angle to the first electronic device 100.
  • the method of calculating the alignment angle between the second electronic device 200 and the first electronic device 100 in the present invention is not limited to the above-exemplified solutions.
  • step S505. Determine whether the alignment angle of the second electronic device 200 relative to the first electronic device 100 is within the set angle threshold (for example, ⁇ is the alignment angle, where 30 degrees ⁇ 150 degrees), and if so, perform step S506: The first electronic device 100 displays device information of the second electronic device 200.
  • the set angle threshold for example, ⁇ is the alignment angle, where 30 degrees ⁇ 150 degrees
  • the first electronic device 100 determines whether the alignment angle of the second electronic device 200 relative to the first electronic device 100 is within the angle threshold range.
  • the first electronic device 100 determines whether the alignment angle of the first electronic device 100 relative to the second electronic device 200 is within the angle threshold range.
  • the second electronic device 200 determines whether the alignment angle of the first electronic device 100 relative to the second electronic device 200 is within the angle threshold range.
  • the second electronic device 200 determines whether the alignment angle of the second electronic device 200 relative to the first electronic device 100 is within the angle threshold range.
  • Figures 7A-7E are a set of schematic diagrams of a manner in which the first electronic device displays the device information of the second electronic device in an electronic device control method provided by an embodiment of the present invention.
  • the first electronic device 100 displays the device information of the second electronic device 200.
  • the first electronic device 100 when the alignment angle of the second electronic device 200 with respect to the first electronic device 100 is within the set angle threshold, the first electronic device 100 can follow The icon of the second electronic device 200 is displayed relative to the relative position of the first electronic device 100.
  • the The relative position displays the device name and model of the second electronic device 200.
  • the device list display on the first electronic device 100 The icon and specific orientation of the second electronic device 200.
  • the first electronic device 100 when the alignment angle of the second electronic device 200 relative to the first electronic device 100 is within the set angle threshold, the first electronic device 100 can display the device list of the second electronic device 200 Equipment name, model and specific location.
  • the manner in which the first electronic device 100 displays the device information of the second electronic device 200 in the present invention is not limited to the above-exemplified solutions.
  • S507 Receive a second input of the device information of the second electronic device 200 displayed on the first electronic device 100 by the user.
  • the first electronic device 100 displays the device information of the second electronic device 200 , The user can select the corresponding second electronic device 200 for connection or control.
  • the user selects the corresponding second electronic device 200 for connection or control by tapping the screen input.
  • the user selects the corresponding second electronic device 200 for connection or control through voice input.
  • the user selects the corresponding second electronic device 200 for connection or control through gesture input.
  • S508 The first electronic device 100 sends a Bluetooth communication connection establishment request to the second electronic device 200.
  • the user can select the corresponding second electronic device 200, and the first electronic device 100 sends a Bluetooth communication connection establishment request to the second electronic device 200, thereby establishing a Bluetooth pairing connection.
  • FIG. 8 exemplarily shows a schematic flowchart of another electronic device control method provided by an embodiment of the present invention. As shown in Figure 8, the method may include:
  • step S501 in the embodiment shown in FIG. 5, which will not be repeated here.
  • step S502 in the embodiment shown in FIG. 5, which will not be repeated here.
  • the second electronic device 200 responds to the location request of the first electronic device 100, and sends a CTE data packet to the first electronic device 100 through the Bluetooth module.
  • step S503 in the embodiment shown in FIG. 5, which will not be repeated here.
  • S804 Calculate the alignment angle of the second electronic device 200 relative to the first electronic device 100.
  • step S504 in the embodiment shown in FIG. 5, which will not be repeated here.
  • S805 Determine whether the alignment angle of the second electronic device 200 relative to the first electronic device 100 is within the set angle threshold (for example, ⁇ is the alignment angle, where 30 degrees ⁇ 150 degrees).
  • step S505 in the embodiment shown in FIG. 5, which will not be repeated here.
  • S806 Determine whether the number of the second electronic device 200 is one, and if it is one, execute S807.
  • the first electronic device 100 sends a Bluetooth communication connection establishment request to the second electronic device 200.
  • the first electronic device 100 determines that the alignment angle of the second electronic device 200 relative to the first electronic device 100 is within the angle threshold range, the number of the second electronic devices 200 is only One, without the user's second input to the first electronic device 100, the first electronic device 100 can send a Bluetooth communication connection establishment request to the second electronic device 200.
  • step S507 shown in FIG. 5 receiving a user's second input of the device information of the second electronic device 200 displayed on the first electronic device 100, and S508, the first electronic device 100 Send a Bluetooth communication connection establishment request to the second electronic device 200.
  • the steps performed by the first electronic device 100 in the electronic device control method provided by the foregoing embodiment of the present invention may also be executed by a chip system included in the first electronic device 100, where the chip system may include processing And Bluetooth chip.
  • the chip system may be coupled with the memory, so that when the chip system is running, the computer program stored in the memory is called to implement the steps performed by the terminal 100.
  • the processor in the chip system may be an application processor or a processor that is not an application processor.
  • the steps executed by the second electronic device 200 may also be executed by a chip system included in the second electronic device 200, where the chip system may include a processor and a Bluetooth chip.
  • the chip system may be coupled with the memory, so that when the chip system is running, the computer program stored in the memory is called to implement the steps performed by the second electronic device 200.
  • the processor in the chip system may be an application processor or a non-application processor.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明公开了一种电子设备控制方法及一种电子设备,涉及无线通信技术领域。包括:第一电子设备接收第一输入;响应于所述第一输入,所述第一电子设备判断所述第一电子设备是否指向第二电子设备,当第一电子设备指向第二电子设备时,所述第一电子设备显示所述第二电子设备的设备信息;所述第一电子设备接收用户对于所述第一电子设备上显示的所述第二电子设备的设备信息的第二输入,响应于所述第二输入,所述第一电子设备向所述第二电子设备发送建立蓝牙通讯连接请求。这样,简化了第一电子设备与第二电子设备连接配对操作的流程,并提高了用户体验度。

Description

一种电子设备控制方法及一种电子设备
本申请要求在2019年8月2日提交中国国家知识产权局、申请号为201910712937.4的中国专利申请的优先权,发明名称为“一种电子设备控制方法及一种电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及无线通信技术领域,尤其是涉及一种电子设备控制方法及一种电子设备。
背景技术
随着无线通信技术的发展,搭载无线通信模块的IoT(物联网,Internet of Things)系统也开始发展起来。在IoT设备的使用过程中,用户可以通过手机、平板等电子设备控制IoT设备。比如用户可以用手机上的App(应用程序,Application)通过蓝牙连接控制智能家居设备,实现设备的开关等操作。
在现有的技术中,用户通过App来控制IoT设备的方法主要为:用户在手机或者平板等电子设备上安装App,然后在App上注册连接相应需要控制的IoT设备,并在App中调用该IoT设备的控制界面进行操作。
由于IoT设备数量的增多,当用户需要对IoT设备进行管理时,用户需要每次进入App,然后在繁杂的IoT设备列表中选择对应的设备,并点击设备图标进入操作界面后方能操作控制IoT设备。
现有的技术方案虽能将所有注册连接的IoT设备统一进行管理,但由于注册设备以及在设备列表中寻找对应的IoT设备进行连接控制的操作流程复杂,用户体验有待提高。
发明内容
本发明提供了一种电子设备控制方法及一种电子设备,实现了当第一电子设备指向第二电子设备时,第一电子设备可以显示所述第二电子设备的设备信息,当所述第一电子设备接收用户对于所述第一电子设备上显示的所述第二电子设备的设备信息的第二输入,响应于所述第二输入,所述第一电子设备向所述第二电子设备发送建立蓝牙通讯连接请求。这样,简化了设备连接配对操作的流程,并提高了用户体验度。
第一方面,本发明提供了一种电子设备控制方法,包括:
首先,第一电子设备接收用户第一输入;响应于所述第一输入,所述第一电子设备判断所述第一电子设备是否指向第二电子设备,若所述第一电子设备指向第二电子设备,所述第一电子设备显示所述第二电子设备的设备信息,其中所述第一电子设备和/或所述第二电子设备上设置有至少两根蓝牙天线;所述第一电子设备接收用户对于所述第一电子设备上显示的所述第二电子设备的设备信息的第二输入;响应于所述第二输入,所述第一电子设备向所述第二电子设备发送建立蓝牙通讯连接请求。通过本发明提供的一种电子设备控制方法,可以实现当第一电子设备指向第二电子设备时,即第一电子设备相对于所述第二电子设备的第一对准角度,或所述第二电子设备相对于所述第一电子设备的第二对准角度在第一阈值范围内 时,所述第一电子设备显示所述第二电子设备的设备信息。其中,所述第一电子设备接收用户对于所述第一电子设备上显示的所述第二电子设备的设备信息的第二输入,响应于所述第二输入,所述第一电子设备向所述第二电子设备发送建立蓝牙通讯连接请求。这样,简化了设备连接配对操作的流程,并提高了用户体验度。
在第一方面的一种可能实现的方式中,所述方法还包括:
第一电子设备接收第三输入;响应于所述第三输入,所述第一电子设备判断所述第一电子设备是否同时指向第三电子设备和第四电子设备,若所述第一电子设备同时指向所述第三电子设备和所述第四电子设备,所述第一电子设备同时显示所述第三电子设备的设备信息和所述第四电子设备的设备信息。
这样,可以同时在第一电子设备上显示所有第一电子设备指向的第二电子设备,供用户进行选择操作,提高了用户体验度。
在第一方面的一种可能实现的方式中,所述第一电子设备判断所述第一电子设备是否同时指向第三电子设备和第四电子设备包括:
所述第一电子设备判断所述第一电子设备相对于所述第三电子设备的第三对准角度,或所述第三电子设备相对于所述第一电子设备的第四对准角度是否在所述第一阈值范围内,同时,所述第一电子设备判断所述第一电子设备相对于所述第四电子设备的第五对准角度,或所述第四电子设备相对于所述第一电子设备的第六对准角度是否在所述第一阈值范围内。
这样,可以同时在第一电子设备上显示所有第一电子设备指向的第二电子设备,供用户进行选择操作,提高了用户体验度。
在第一方面的一种可能实现的方式中,所述第一电子设备同时显示所述第三电子设备的设备信息和所述第四电子设备的设备信息包括:所述第一电子设备以设备信息列表的形式,同时显示所述第三电子设备的设备信息和所述第四电子设备的设备信息。
这样,可以同时在第一电子设备上显示所有第一电子设备指向的第二电子设备,且以设备列表形式显示,供用户进行选择操作,提高了用户体验度。
在第一方面的一种可能实现的方式中,所述第一电子设备同时显示所述第三电子设备的设备信息和所述第四电子设备的设备信息包括:所述第一电子设备以所述第三电子设备、所述第四电子设备和所述第一电子设备相对位置的形式,同时显示所述第三电子设备的设备信息和所述第四电子设备的设备信息。
这样,可以同时在第一电子设备上显示所有第一电子设备指向的第二电子设备,且以设备相对位置的形式显示,供用户进行选择操作,提高了用户体验度。
在第一方面的一种可能实现的方式中,所述第一输入包括指示所述第一电子设备判断所述第一电子设备是否指向第二电子设备的语音输入、手势输入或点击输入。
这样,可以使用户通过多种形式进行第一输入,提高了用户体验度。
第二方面,本发明提供了一种电子设备控制方法,包括:第一电子设备接收第一输入;响应于所述第一输入,所述第一电子设备判断所述第一电子设备是否指向第二电子设备,且所述第二电子设备的数量是否仅为一个,其中所述第一电子设备和/或所述第二电子设备上设置有至少两根蓝牙天线;若所述第一电子设备指向第二电子设备,且所述第二电子设备的数量仅为一个,所述第一电子设备向所述第二电子设备发送建立蓝牙通讯连接请求。
通过本发明提供的一种电子设备控制方法,可以实现当所述第一电子设备指向第二电子设备时,即所述第一电子设备相对于所述第二电子设备的第一对准角度,或所述第二电子设 备相对于所述第一电子设备的第二对准角度在第一阈值范围内,且所述第二电子设备的数量是否仅为一个,所述第一电子设备向所述第二电子设备发送建立蓝牙通讯连接请求。这样,简化第一电子设备与第二电子设备连接配对操作的流程,并提高了用户体验度。
在第二方面的一种可能实现的方式中,所述第一输入包括指示所述第一电子设备判断所述第一电子设备是否指向第二电子设备的语音输入、手势输入或点击输入。
这样,可以使用户通过多种形式进行第一输入,提高了用户体验度。
第三方面,本发明提供了一种电子设备,包括:存储器,处理器以及存储在所述存储器上并可在所述处理器上运行的计算机程序;其中,所述处理器执行所述计算机程序时使得所述电子设备实现上述任一方面任一项可能的实现方式中的电子设备控制方法中所述的方法。
这样,简化了设备连接配对操作的流程,并提高了用户体验度。
第四方面,本发明提供了一种计算机程序,其特征在于,当所述计算机程序在处理器上运行时用于执行上述任一方面任一项可能的实现方式中的电子设备控制方法的程序代码。
这样,简化了设备连接配对操作的流程,并提高了用户体验度。
第五方面,本发明提供了一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,用于执行上述任一方面任一项可能的实现方式中的电子设备控制方法中所述的方法的程序代码。
这样,简化了设备连接配对操作的流程,并提高了用户体验度。
附图说明
为了更清楚的说明本发明实例中的技术方案,下面将对实施例描述中所需要使用的附图作简单的介绍。
图1为本发明实施例提供的一种电子设备控制系统的架构示意图;
图2A是本发明实施例提供的一种第一电子设备的结构示意图;
图2B是本发明实施例提供的一种第二电子设备的结构示意图;
图3是本发明实施例提供的一种蓝牙协议框架图;
图4A-4D为本发明实施例提供的一种对准角度的测量原理的一组示意图;
图5是本发明实施例提供的一种电子设备控制方法的流程示意图;
图6A-6G是本发明实施例提供的一种电子设备控制方法中用户第一输入方式的一组示意图;
图7A-7E是本发明实施例提供的一种电子设备控制方法中所述第一电子设备显示所述第二电子设备的设备信息方式的一组示意图;
图8是本发明实施例提供的另一种电子设备控制方法的流程示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚的描述。
本发明要解决的问题,在于提供一种电子设备的控制方法及装置,可以减少第一电子设备与第二电子设备建立连接和控制的流程,提高使用者的体验度。
在本发明实施方式中,所述第一电子设备和/或第二电子设备是指具有数据计算处理功能和无线通讯功能的电子设备。所述第一电子设备和/或第二电子设备包括但不限于:智能手机(如Android手机、iOS手机等搭载其他操作系统的手机)、平板电脑、掌上电脑、笔记本电脑、移动互联网设备(Mobile Internet Devices)、穿戴式设备(如智能手表、智能手环等)、智能家居设备、物联网设备、智能车等。
以上罗列了一些第一电子设备和第二电子设备的具体类型,但是本领域技术人员可以意识到,本发明实施方式并不局限于上述罗列的类型,而还可以适用于其他任意的电子设备类型和操作系统类型之中。
其中,需要说明的是,在本发明实施例的描述中,除非另有说明,“/”表示或的意思,例如A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本发明实施例的描述中,“多个”是指两个或多于两个。
下面介绍本发明实施例提供的一种电子设备控制系统。
请参见图1,图1为本发明实施例提供的一种电子设备控制系统的架构示意图。如图1所示,该系统可包括:第一电子设备100和第二电子设备200。
其中,第一电子设备100与第二电子设备200可以通过低功耗蓝牙(bluetooth low energy,BLE)技术建立通讯。其中,在本发明实施例中,第一电子设备100可以通过BLE搜寻第二电子设备200,并通过蓝牙寻向功能确定第一电子设备与第二电子设备之间的对准角度。
图2A实例性的示出了一种第一电子设备100的结构示意图。
下面以第一电子设备100为例对实施例进行具体说明。应该理解的是,图2A所示第一电子设备100仅是一个范例,并且第一电子设备100可以具有比图2A中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
第一电子设备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等。
可以理解的是,本发明实施例示意的结构并不构成对第一电子设备100的具体限定。在本发明另一些实施例中,第一电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是第一电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器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)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现第一电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现第一电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现第一电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为第一电子设备100充电,也可以用于第一电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他终端,例如AR设备等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对第一电子设备100的结构限定。在本发明另一些实施例中,第一电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过第一电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为终端供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
第一电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。第一电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在第一电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块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转为电磁波辐射出去。
在一些实施例中,第一电子设备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)。
第一电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏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的正整数。
第一电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,第一电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当第一电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。第一电子设备100可以支持一种或多种视频编解码器。这样,第一电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现第一电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展第一电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行第一电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储第一电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
第一电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。第一电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当第一电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。第一电子设备100可以设置至少一个麦克风170C。在另一些实施例中,第一电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,第一电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动终端平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感 器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。第一电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,第一电子设备100根据压力传感器180A检测所述触摸操作强度。第一电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定第一电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定第一电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测第一电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消第一电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,第一电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。第一电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当第一电子设备100是翻盖机时,第一电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测第一电子设备100在各个方向上(一般为三轴)加速度的大小。当第一电子设备100静止时可检测出重力的大小及方向。还可以用于识别终端姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。第一电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,第一电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。第一电子设备100通过发光二极管向外发射红外光。第一电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定第一电子设备100附近有物体。当检测到不充分的反射光时,第一电子设备100可以确定第一电子设备100附近没有物体。第一电子设备100可以利用接近光传感器180G检测用户手持第一电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。第一电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测第一电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。第一电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,第一电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,第一电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在 另一些实施例中,当温度低于另一阈值时,第一电子设备100对电池142加热,以避免低温导致第一电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,第一电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于第一电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。第一电子设备100可以接收按键输入,产生与第一电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
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分离。
图2B示例性的示出了本发明实施例提供的一种第二电子设备200的结构示意图。
下面以第二电子设备200为例对实施例进行具体说明。应该理解的是,图2B所示第二电子设备200仅是一个范例,并且第二电子设备200可以具有比图2B中所示的更多或更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现,
如图2B所示,第二电子设备200可以包括:处理器201,存储器202,无线通信处理模块203,天线204,电源开关205,有线LAN通信处理模块206,HDMI通信处理模块207,USB通信处理模块208,显示屏209,音频模块210。其中:
处理器201可用于读取和执行计算机可读指令。具体实现中,处理器201可主要包括控制器、运算器和寄存器。其中,控制器主要负责指令译码,并为指令对应的操作发出控制信号。运算器主要负责保存指令执行过程中临时存放的寄存器操作数和中间操作结果等。具体实现中,处理器201的硬件架构可以是专用集成电路(ASIC)架构、MIPS架构、ARM架构或者NP架构等等。
在一些实施例中,处理器201可以用于解析无线通信模块203和/或有线LAN通信处理模块206接收到的信号,如第一电子设备100广播的定位请求,第一电子设备100发送的建立蓝牙通讯连接请求等等。处理201可以用于根据解析结果进行相应的处理操作,如用户第一输入以及第二输入的响应等等。
在一些实施例中,处理器201还可用于生成无线通信模块203和/或有线LAN通信处理模块206向外发送的信号,如蓝牙广播信号、信标信号,又如向第一电子设备100发送的用于反馈状态信息(如待机、开机等)的信号。
存储器202与处理器201耦合,用于存储各种软件程序和/或多组指令。具体实现中,存储器202可包括高速随机存取的存储器,并且也可包括非易失性存储器,例如一个或多个磁盘存储设备、闪存设备或其他非易失性固态存储设备。存储器202可以存储操作系统,例如uCOS,VxWorks、RTLinux等嵌入式操作系统。存储器202还可以存储通信程序,该通信程序可用于第一电子设备100,一个或多个服务器,或附件设备进行通信。
无线通信模块203可以包括蓝牙通信模块203A、WLAN通信模块203B、红外线通信模块204C中的一项或多项。其中,蓝牙通信模块203A可以包括经典蓝牙(BT)模块和低功耗蓝牙(BLE)模块,
在一些实施例中,蓝牙通信模块203A、WLAN通信模块203B、红外线通信模块204C中的一项或多项可以监听到其他设备(如第一电子设备100)发射的信号,如定位请求信号等等,并可以发送响应信号,如定位响应等,使得其他设备(如第一电子设备100)可以发现第二电子设备200,并与其他设备(如第一电子设备100)建立无线通信连接,通过蓝牙、WLAN或红外线中的一种或多种无线通信技术与其他设备(如第一电子设备100)进行通信。
在另一些实施例中,蓝牙通信模块203A、WLAN通信模块203B、红外线通信模块203C中的一项或多项也可以发射信号,如广播蓝牙信号、信标信号,使得其他设备(如第一电子设备100)可以发现第二电子设备200,并与其他设备(如电子设备100)建立无线通信连接,通过蓝牙或WLAN中的一种或多种无线通信技术与其他设备(如电子设备100)进行通信。
无线通信模块203还可以包括蜂窝移动通信模块(未示出)。蜂窝移动通信处理模块可以通过蜂窝移动通信技术与其他设备(如服务器)进行通信。
第二电子设备200的无线通信功能可以通过天线204,无线通信模块203,调制解调处理器等实现。
天线204可用于发射和接收电磁波信号。第二电子设备200中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将WLAN通信模块203B的天线复用为蓝牙通信模块203A的天线。在另外一些实施例中,天线可以和调谐开关结合使用。
在一些实施例中蓝牙通信模块203A的天线可以有一个或多个,当蓝牙通信模块203A的天线2根及以上时,即可实现第一电子设备100测量第二电子设备200发送的蓝牙信号到达角度(angle of arrival,AOA)或者出发角度(angle of departure,AOD)。
电源开关205可用于控制电源向第二电子设备200的供电。
有线LAN通信处理模块206可用于通过有线LAN和同一个LAN中的其他设备进行通信,还可用于通过有线LAN连接到WAN,可与WAN中的设备通信。
HDMI通信处理模块207可用于通过HDMI接口(未示出)与其他设备进行通信。
USB通信处理模块208可用于通过USB接口(未示出)与其他设备进行通信。
显示屏209可用于显示图像,视频等。显示屏129可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED)显示屏,有源矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED)显示屏,柔性发光二极管(flexible light-emitting diode,FLED)显示屏,量子点发光二极管(quantum dot light emitting diodes,QLED)显示屏等等。
音频模块210可用于通过音频输出接口输出音频信号,这样可使得第二电子设备200支持音频播放。音频模块还可用于通过音频输入接口接收音频数据。第二电子设备200可以为电视机等媒体播放设备。
在一些实施例中,第二电子设备200还可以包括RS-232接口等串行接口。该串行接口可连接至其他设备,如音箱等音频外放设备,使得显示器和音频外放设备协作播放音视频。
可以理解的是图2B示意的结构并不构成对第二电子设备200的具体限定。在本发明另一些实施例中,第二电子设备200可以包括比图示更多或更少的部件,或组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
图3为本发明实施例提供的一种蓝牙协议框架图,具体包括但不限于Host(主机)协议栈、HCI(Host Controller Interface)、控制器(controller)。本发明实施例所述的方法中,第一电子设备和第二电子设备使用的蓝牙协议框架可以参考该部分内容。
其中,Host协议栈定义了蓝牙框架中的多个应用(profile)和核心协议(protocol),每个profile定义了各自相应的消息格式与应用规则,profile是蓝牙服务(Application)。为了实现不同平台下的不同设备的互联互通,蓝牙协议为各种可能的、有通用意义的应用场景,都制定的了规范,如A2DP(advanced audio distribution profile)、HFP(hands-free profile)等等。核心协议包括但不限于蓝牙基本的服务协议SDP(Service Discover Protocol)、逻辑链路控制和适配协议L2CAP(Logical Link Control and Adaptation Protocol)等。核心协议是蓝牙协议栈中必不可少的。
其中,HCI为上层协议提供了进入链路管理器的统一接口和进入基带的统一方式,在主机核心协议栈和控制器之间会存在若干传输层,这些传输层是透明的,完成传输数据的任务,蓝牙技术联盟(Bluetooth Special Interest Group,SIG)规定了四种与硬件连接的物理总线方式,即四种HCI传输层:USB、RS232、UART和PC卡。
其中,controller定义了底层硬件部分,包括无线射频(RF)、基带(BB)和链路管理(LM),RF层通过2.4GHz无需授权的ISM频段的微波,实现数据位流的过滤和传输,主要定义了蓝牙收发器在此频带正常工作所需要满足的条件。基带负责跳频以及蓝牙数据和信息帧的传输。链路管理负责连接、建立和拆除链路并进行安全控制。LM(Link Manager)层是蓝牙协议栈的 链路管理层协议,负责将上层HCI命令翻译成基带能接受的操作,建立异步链路(asynchronous connection-oriented link,ACL)和同步链路(synchronous connection-oriented/extended,SCO)以及使蓝牙设备进入节能状态的工作模式等。LC(Link Control)层负责在一批数据包传送期间,响应上层LM命令(如执行建立数据包的传输链路,维持链路等功能的LM命令)。
本发明实施例所述的方法由图2A所示的第一电子设备100的无线通信模块160来实现的部分内容,具体可以是蓝牙模块或者是蓝牙芯片来执行。
图4A-4D为本发明实施例提供的一组蓝牙寻向功能原理图,具体涉及到BLE信号到到达角(angle of arrival,AoA)和出发角(angle of departure,AoD)的测算原理,用于计算所述第一电子设备和第二电子设备之间的对准角度。
下面介绍本发明实施例中涉及的BLE信号到达角(angle of arrival,AoA)的测量原理。
图4A-4B为本发明实施例提供的一种蓝牙到达角AoA计算原理图。如图4A所示,发射方(Transmitter)410可以通过BLE发射AoA广播包(固定频率扩展信号(constant tone extension,CTE)包),AoA CTE包是连续的经调制过的序列,不做校验,不含循环冗余校验(cyclic redundancy check,CRC)和消息完整性代码(message integrity code,MIC)。接收方(Receiver)420的Host通过HCI命令下发测量时使用的天线序列信息。开始测量后,控制器421按照Host下发的天线序列信息依次切换到指定的天线进行I&Q采样,并把采样信息通过HCI命令上报给Host,由Host计算相对角度。
发射方410可以通过控制器411控制一根天线410发送该AoA CTE包。接收方420可以通过控制器421控制射频开关422,按照一定的顺序切换到指定的天线进行的接收。其中,接收方420至少有两根天线423。其中,接收方420测得的发射方410的BLE信号的到达角AoA。在一些实施例中,为了提高波到达角的估计精度,可以配备多个天线,阵列的排列方式有一字型、环形、球形等,在此不作限定。
如图4B所示,假设接收方420有两根间距为d的天线(天线A和天线B),接收到的BLE信号为平面电磁波。其中,由于天线A和天线B接收BLE信号不同步,接收方420可以对比天线A和天线B接收到BLE信号的相位,确定出天线A和天线B接收到BLE信号的相位差。
其中,BLE信号的到达角(AoA)可以通过如下公式(1)计算出:
Figure PCTCN2020104887-appb-000001
其中,θ为BLE信号的到达角(AoA),ψ为天线A和天线B接收到BLE信号的相位差,λ为BLE信号的波长,d为天线A与天线B之间的距离。这里可以将θ角设定为第一电子设备与第二电子设备之间的对准角度,即通过公式(1)可以算出第一电子设备与第二电子设备之间的对准角度。
在一些可能的实施例中,发射方410可以是第二电子设备200,接收方410可以是第一电子设备100。第一电子设备100上有至少两根用于发射/接收BLE信号的天线,第二电子设备200上有至少一根用于发射/接收BLE信号的天线。第一电子设备100可以通过上述图4A和图4B所示测量BLE信号的AoA原理,确定出第一电子设备100相对于第二电子设备200的对准角度。
在一些可能的实施例中,发射方410可以是第一电子设备100,接收方420可以是第二电子设备200,第一电子设备100上有至少一根用于发射/接收BLE信号的天线,第二电子设 备200上有至少两根用于发射/接收BLE信号的天线。第二电子设备200可以通过上述图4A和图4B所示测量BLE信号的AoA原理,确定出第一电子设备100相对于第二电子设备200的对准角度。
下面介绍本发明实施例中涉及的BLE信号出发角(angle of departure,AoD)的测量原理。
图4C-4D为本发明实施例提供的一种蓝牙出发角AoD计算原理图。如图4D所示,发射方(Transmitter)430可以通过BLE发射AoD广播包(固定频率扩展信号(constant tone extension,CTE)包),AoD CTE包是连续的经调制过的序列,不做校验,不含循环冗余校验(cyclic redundancy check,CRC)和消息完整性代码(message integrity code,MIC)。发射方430的Host通过HCI命令下发测量时使用的天线序列信息。开始测量后,接收方440的控制器441按照发射方430的Host下发的天线序列信息,通过其单根天线对接收方440每一根天线发送过来的BLE信号进行I&Q采样,并把采样信息通过HCI命令上报给Host,由Host计算相对角度。
接收方440可以通过控制器441控制一根天线442接收由发射方430发射的该AoD CTE包。发射方430可以通过控制器431控制射频开关432,按照一定的顺序切换到指定的天线进行的发送该AoD CTE包。其中,发射方430至少有两根天线433。其中,由接收方440测得的发射方430的BLE信号的出发角AoD。在一些实施例中,为了提高波到达角的估计精度,可以配备多个天线,阵列的排列方式有一字型、环形、球形等,在此不作限定。
如图4C所示,假设发射方430有两根间距为d的天线(天线A和天线B),发射出的BLE信号为平面电磁波。其中,由于天线A和天线B发射BLE信号不同步,接收方440可以对比接收到发射方430的天线A和天线B发出到BLE信号的相位,确定出天线A和天线B发射出BLE信号的相位差。
其中,BLE信号的出发角(AoD)可以通过如下公式(2)计算出:
Figure PCTCN2020104887-appb-000002
其中,θ为BLE信号的出发角(AoD),ψ为天线A和天线B发射出BLE信号的相位差,λ为BLE信号的波长,d为天线A与天线B之间的距离。这里可以将θ角设定为第一电子设备与第二电子设备之间的对准角度,即通过公式(2)可以算出第一电子设备与第二电子设备之间的对准角度。
在一些可能的实施例中,发射方430可以是第二电子设备200,接收方440可以是第一电子设备100。第一电子设备100上有至少两根用于发射/接收BLE信号的天线,第二电子设备200上有至少一根用于发射/接收BLE信号的天线。第一电子设备100可以通过上述图4C和图4D所示测量BLE信号的AoD原理,确定出第一电子设备100相对于第二电子设备200的对准角度。
在一些可能的实施例中,发射方430可以是第一电子设备100,接收方440可以是第二电子设备200,第一电子设备100上有至少一根用于发射/接收BLE信号的天线,第二电子设备200上有至少两根用于发射/接收BLE信号的天线。第二电子设备200可以通过上述图4C和图4D所示测量BLE信号的AoD原理,确定出第一电子设备100相对于第二电子设备200的对准角度。
目前,现有技术中对于电子设备的控制方法中,首先用户需要在终端设备中搜索到相应的第二电子设备,然后选中所述第二电子设备,进行配对连接的操作或者在App中的设备列 表中找寻到所欲控制的第二电子设备,对其进行配对连接的操作,用户方可通过终端设备对所述第二电子设备进行控制。其中用户在终端设备中搜索相应的第二电子设备时,由于搜索到的第二电子设备或者App中的设备列表中第二电子设备的数量可能很多,因此用户需要在众多的第二电子设备中选择需要控制的设备,然后再进行配对连接操作。这样,增加了用户通过终端连接和控制第二电子设备的时间和复杂度,不利于用户体验。
因此,本发明提供了一种电子设备的控制方法,可以实现当第一电子设备搜索第二电子设备时,若第一电子设备指向第二电子设备,所述第一电子设备显示所述第二电子设备的设备信息。然后用户可以在第一电子设备上选择所欲控制的第二电子设备,由第一电子设备向第二电子设备发送建立蓝牙通讯连接请求,从而进行设备连接配对或者控制操作。这样就能减少用户在设备列表中寻找第二电子设备的操作和时间,以更直观的方式进行设备的连接和配对,提高用户的体验度。
下面基于图4A-4D所示的AoA和AOD测量原理,介绍本发明提供的一种电子设备控制方法。
在一些应用场景中,当第一电子设备100接收用户针对于第一电子设备100的第一输入,响应于所述第一输入,所述第一电子设备100判断所述第一电子设备100是否指向第二电子设备200。若所述第一电子设备100指向第二电子设备200,即所述第一电子设备100相对于所述第二电子设备200的第一对准角度,或所述第二电子设备200相对于所述第一电子设备100的第二对准角度是在第一阈值范围内,所述第一电子设备100显示所述第二电子设备200的设备信息。所述第一电子设备100接收用户对于所述第一电子设备100上显示的所述第二电子设备200的设备信息的第二输入,响应于所述第二输入,所述第一电子设备100向所述第二电子设备200发送建立蓝牙通讯连接请求。这样就能减少用户在设备列表中寻找第二电子设备200的操作和时间,以更直观的方式进行设备的连接和配对,提高用户的体验度。
图5示例性的示出了本发明实施例提供的一种电子设备控制方法的流程示意图。如图5所示,所述方法可以包括:
S501、接收用户针对第一电子设备100的第一输入。
其中,第一电子设备100判断所述第一电子设备100是否指向第二电子设备200前需要有触发指令,所述用户针对第一电子设备100的第一输入即可视为这一触发指令。所述第一输入包括指示所述第一电子设备100判断所述第一电子设备100是否指向第二电子设备200的语音输入、手势输入或点击输入。下述列举的第一输入方式仅仅示例性的,所述第一输入并不局限于所列举的方式。
图6A-6G是本发明实施例提供的一种电子设备控制方法中用户第一输入方式的一组示意图。在一种可能实现的方式中,如图6A所示,所述第一输入可以为用户针对于第一电子设备100的语音输入。用户可通过第一电子设备100的语音助手、电子设备App语音控制等方式输入所述第一输入,以便触发第一电子设备100判断所述第一电子设备100是否指向第二电子设备200。
在一种可能实现的方式中,所述第一输入可以为用户针对于第一电子设备100的手势输入。用户可通过对第一电子设备100执行手势操作,以便触发第一电子设备100判断所述第一电子设备100是否指向第二电子设备200。示例性的,如图6B、6C以及6D所示,用户先左右挥动第一电子设备100若干次(例如3次),后上下挥动第一电子设备100若干次(例如3次),再将第一电子设备100抬起来保持静止若干时间(例如2S),这一手势操作即可触发 第一电子设备100判断所述第一电子设备100是否指向第二电子设备200。其中,第一电子设备100可以通过加速度传感器检测到的运动参数值判断第一电子设备100是否被左右、上下挥动并抬起并保持一段时间。
在一种可能实现的方式中,如图6E、6F以及6G所示,所述第一输入可以为用户针对于第一电子设备100的点击输入。用户可通过电子设备控制App、搜索栏、负一屏等方式输入所述第一输入,以便触发第一电子设备判断所述第一电子设备100是否指向第二电子设备200。
S502、响应于第一输入,搜索第二电子设备200,并向所述第二电子设备200发送定位请求。
在本发明实施例中,第一电子设备100响应用户第一输入,搜索所述第二电子设备200,向所述第二电子设备200发出设备定位请求。
在一种可能的实现方式中,第一电子设备100可以周期性(例如周期为0.1秒)广播发送定位请求给第二电子设备200。
在一种可能的实现方式中,第一电子设备100可以在接收到用户第一输入后,周期性(例如周期为0.1秒)广播发送定位请求给第二电子设备200。
S503、第二电子设备200响应第一电子设备100的定位请求,并通过蓝牙模块发送CTE数据包给第一电子设备100。
在本发明实施例中,所述第二电子设备200响应于第一电子设备100的定位请求。向其发送特殊定制的寻向信号,所述CTE数据包由第二电子设备200发送至第一电子设备100,供第一电子设备100计算所述第二电子设备200相对于第一电子设备100的对准角度。
S504、计算所述第二电子设备200相对于第一电子设备100的对准角度。
在本发明的一些实施例中,如上述图4A-4B所示的BLE信号AOA测量原理,其中第一电子设备100可以是BLE信号的接收方,第二电子设备200可以是BLE信号的发送方。第一电子设备100在发送定位请求,并经第二电子设备200确认后,第二电子设备200可以向第一电子设备100发送CTE广播包,第一电子设备100可以按照一定的顺序切换到指定的天线接收该CTE广播包,并根据上述公式(1)计算出第二电子设备200所发射BLE信号的AoA,即第二电子设备200相对于第一电子设备100的对准角度。
在本发明的一些实施例中,如上述图4A-4B所示的BLE信号AOA测量原理,其中第一电子设备100可以是BLE信号的发送方,第二电子设备200可以是BLE信号的接收方。第一电子设备100在发送定位请求,并经第二电子设备200确认后,第一电子设备100可以向第二电子设备200发送CTE广播包,第二电子设备200可以按照一定的顺序切换到指定的天线接收该CTE广播包,并根据上述公式(2)计算出第一电子设备100所发射BLE信号的AoA,即第一电子设备100相对于第二电子设备200的对准角度。随后由第二电子设备200将所述对准角度发送给第一电子设备100。
在本发明的一些实施例中,如上述图4C-4D所示的BLE信号AOD测量原理,其中第一电子设备100可以是BLE信号的接收方,第二电子设备200可以是BLE信号的发送方。第一电子设备100在发送定位请求,并经第二电子设备200确认后,第二电子设备200可以按照一定的顺序切换指定的天线向第一电子设备100发送CTE广播包,第一电子设备100可以 接收该CTE广播包,并根据上述公式(2)计算出第二电子设备200所发射BLE信号的AoD,即第二电子设备200相对于第一电子设备100的对准角度。
在本发明的一些实施例中,如上述图4C-4D所示的BLE信号AOD测量原理,其中第一电子设备100可以是BLE信号的发送方,第二电子设备200可以是BLE信号的接收方。第一电子设备100在发送定位请求,并经第二电子设备200确认后,第一电子设备100可以按照一定的顺序切换指定的天线向第二电子设备200发送CTE广播包,第二电子设备200可以接收该CTE广播包,并根据上述公式(2)计算出第一电子设备200所发射BLE信号的AoD,即第一电子设备100相对于第二电子设备200的对准角度。随后由第二电子设备200将所述对准角度发送给第一电子设备100。
其中,本发明中计算第二电子设备200和第一电子设备100之间对准角度的方式并不仅限于上述所例举的方案。
S505、判断第二电子设备200相对于第一电子设备100的对准角度是否在所设角度阈值范围内(例如θ为对准角度,其中30度<θ<150度),若是,则执行步骤S506、所述第一电子设备100显示所述第二电子设备200的设备信息。
在本发明的一些实施例中,由第一电子设备100判断所述第二电子设备200相对于第一电子设备100的对准角度是否在所述角度阈值范围内。
在本发明的一些实施例中,由第一电子设备100判断所述第一电子设备100相对于第二电子设备200的对准角度是否在所述角度阈值范围内。
在本发明的一些实施例中,由第二电子设备200判断所述第一电子设备100相对于第二电子设备200的对准角度是否在所述角度阈值范围内。
在本发明的一些实施例中,由第二电子设备200判断所述第二电子设备200相对于第一电子设备100的对准角度是否在所述角度阈值范围内。
图7A-7E是本发明实施例提供的一种电子设备控制方法中所述第一电子设备显示所述第二电子设备的设备信息方式的一组示意图。示例性的,如图7A-7E所示,当第二电子设备200相对于第一电子设备100的对准角度在所设角度阈值范围内(例如θ为对准角度,其中30度<θ<150度),第一电子设备100显示所述第二电子设备200的设备信息。
在本发明的一些实施例中,如图7A-7D所示,当第二电子设备200相对于第一电子设备100的对准角度在所设角度阈值范围内,第一电子设备100上可以按照相对于第一电子设备100的相对位置显示第二电子设备200的图标。
在本发明的一些实施例中,当第二电子设备200相对于第一电子设备100的对准角度在所设角度阈值范围内,第一电子设备100上可以按照相对于第一电子设备100的相对位置显示第二电子设备200的设备名称和型号。
在本发明的一些实施例中,如图7E所示,当第二电子设备200相对于第一电子设备100的对准角度在所设角度阈值范围内,第一电子设备100上可以设备列表显示第二电子设备200的图标及具体方位。
在本发明的一些实施例中,当第二电子设备200相对于第一电子设备100的对准角度在所设角度阈值范围内,第一电子设备100上可以设备列表显示第二电子设备200的设备名称、型号及具体方位。
其中,本发明中第一电子设备100显示所述第二电子设备200的设备信息的方式并不仅限于上述所例举的方案。
S507、接收用户对于所述第一电子设备100上显示的所述第二电子设备200的设备信息的第二输入。
在本发明的一些实施例中,当第二电子设备200相对于第一电子设备100的对准角度在所设角度阈值范围内,第一电子设备100显示所述第二电子设备200的设备信息,用户可以选择相应的第二电子设备200进行连接或者控制。
在一种可能的实现方式中,用户通过点击屏幕输入,选择相应的第二电子设备200进行连接或者控制。
在一种可能的实现方式中,用户通过语音输入,选择相应的第二电子设备200进行连接或者控制。
在一种可能的实现方式中,用户通过手势输入,选择相应的第二电子设备200进行连接或者控制。
S508、所述第一电子设备100向所述第二电子设备200发送建立蓝牙通讯连接请求。
在本发明的一些实施例中,用户可以选择相应的第二电子设备200,由所述第一电子设备100向所述第二电子设备200发送建立蓝牙通讯连接请求,从而建立蓝牙配对连接。
图8示例性的示出了本发明实施例提供的另一种电子设备控制方法的流程示意图。如图8所示,该方法可以包括:
S801、接收用户针对第一电子设备100的第一输入。
其中具体内容,可以参考前述图5所示实施例中的步骤S501,此处不再赘述。
S802、响应于第一输入,搜索第二电子设备200,并向所述第二电子设备200发送定位请求。
其中具体内容,可以参考前述图5所示实施例中的步骤S502,此处不再赘述。
S803、第二电子设备200响应第一电子设备100的定位请求,并通过蓝牙模块发送CTE数据包给第一电子设备100。
其中具体内容,可以参考前述图5所示实施例中的步骤S503,此处不再赘述。
S804、计算所述第二电子设备200相对于第一电子设备100的对准角度。
其中具体内容,可以参考前述图5所示实施例中的步骤S504,此处不再赘述。
S805、判断第二电子设备200相对于第一电子设备100的对准角度是否在所设角度阈值范围内(如θ为对准角度,其中30度<θ<150度)。
其中具体内容,可以参考前述图5所示实施例中的步骤S505,此处不再赘述。
S806、判断所述第二电子设备200的数量是否为一个,若为一个,则执行S807、所述第一电子设备100向所述第二电子设备200发送建立蓝牙通讯连接请求。
在一种可能的实现方式中,当第一电子设备100判定所述第二电子设备200相对于第一电子设备100的对准角度所设角度阈值范围内,第二电子设备200的数量仅有一个,无需用户针对第一电子设备100的第二输入,即可由所述第一电子设备100向所述第二电子设备200发送建立蓝牙通讯连接请求。
在一种可能的实现方式中,当第一电子设备100判定所述第二电子设备200相对于第一电子设备100的对准角度所设角度阈值范围内,第二电子设备200的数量仅有一个,亦可执行图5所示步骤S507、接收用户对于所述第一电子设备100上显示的所述第二电子设备200的设备信息的第二输入,以及S508、所述第一电子设备100向所述第二电子设备200发送建立蓝牙通讯连接请求,其中具体内容,可以参考前述图5所示实施例中的步骤S507和S508,此处不再赘述。
上述本发明实施例提供的一种电子设备控制方法中第一电子设备100所执行的步骤,也可以由第一电子设备100中包括的一种芯片系统来执行,其中,该芯片系统可以包括处理器和蓝牙芯片。该芯片系统可以与存储器耦合,使得该芯片系统运行时调用该存储器中存储的计算机程序,实现上述终端100执行的步骤。其中,该芯片系统中的处理器可以是应用处理器也可以是非应用处理器的处理器。
类似的,上述实施例中,第二电子设备200执行的步骤也可以由第二电子设备200包括的一种芯片系统来执行,其中,该芯片系统可以包括处理器和蓝牙芯片。该芯片系统可以与存储器耦合,使得该芯片系统运行时调用该存储器中存储的计算机程序,实现上述第二电子设备200执行的步骤。其中,该芯片系统中处理器可以是应用处理器也可以是非应用处理器的处理器。
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims (16)

  1. 一种电子设备控制方法,其特征在于,所述方法包括:
    第一电子设备接收第一输入;
    响应于所述第一输入,所述第一电子设备判断所述第一电子设备是否指向第二电子设备,若所述第一电子设备指向第二电子设备,所述第一电子设备显示所述第二电子设备的设备信息,其中所述第一电子设备和/或所述第二电子设备上设置有至少两根蓝牙天线;
    所述第一电子设备接收用户对于所述第一电子设备上显示的所述第二电子设备的设备信息的第二输入;
    响应于所述第二输入,所述第一电子设备向所述第二电子设备发送建立蓝牙通讯连接请求。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    第一电子设备接收第三输入;
    响应于所述第三输入,所述第一电子设备判断所述第一电子设备是否同时指向第三电子设备和第四电子设备,若所述第一电子设备同时指向所述第三电子设备和所述第四电子设备,所述第一电子设备同时显示所述第三电子设备的设备信息和所述第四电子设备的设备信息。
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一电子设备判断所述第一电子设备是否指向第二电子设备包括:
    所述第一电子设备判断所述第一电子设备相对于所述第二电子设备的第一对准角度,或所述第二电子设备相对于所述第一电子设备的第二对准角度是否在第一阈值范围内。
  4. 根据权利要求2所述的方法,其特征在于,所述第一电子设备判断所述第一电子设备是否同时指向第三电子设备和第四电子设备包括:
    所述第一电子设备判断所述第一电子设备相对于所述第三电子设备的第三对准角度,或所述第三电子设备相对于所述第一电子设备的第四对准角度是否在所述第一阈值范围内,同时,
    所述第一电子设备判断所述第一电子设备相对于所述第四电子设备的第五对准角度,或所述第四电子设备相对于所述第一电子设备的第六对准角度是否在所述第一阈值范围内。
  5. 根据权利要求2所述的方法,其特征在于,所述第一电子设备同时显示所述第三电子设备的设备信息和所述第四电子设备的设备信息包括:
    所述第一电子设备以设备信息列表的形式,同时显示所述第三电子设备的设备信息和所述第四电子设备的设备信息。
  6. 根据权利要求2所述的方法,其特征在于,所述第一电子设备同时显示所述第三电子设备的设备信息和所述第四电子设备的设备信息包括:
    所述第一电子设备以所述第三电子设备、所述第四电子设备和所述第一电子设备相对位置的形式,同时显示所述第三电子设备的设备信息和所述第四电子设备的设备信息。
  7. 根据权利要求1所述的方法,其特征在于,所述第一输入包括指示所述第一电子设备判断所述第一电子设备是否指向第二电子设备的语音输入、手势输入或点击输入。
  8. 一种电子设备控制方法,其特征在于,所述方法包括:
    第一电子设备接收第一输入;
    响应于所述第一输入,所述第一电子设备判断所述第一电子设备是否指向第二电子设备,且所述第二电子设备的数量是否仅为一个,其中所述第一电子设备和/或所述第二电子设备上设置有至少两根蓝牙天线;
    若所述第一电子设备指向第二电子设备,且所述第二电子设备的数量仅为一个,所述第一电子设备自动向所述第二电子设备发送建立蓝牙通讯连接请求。
  9. 根据权利要求8所述的方法,其特征在于,所述第一电子设备判断所述第一电子设备是否指向第二电子设备包括:
    所述第一电子设备判断所述第一电子设备相对于所述第二电子设备的第一对准角度,或所述第二电子设备相对于所述第一电子设备的第二对准角度是否在第一阈值范围内。
  10. 根据权利要求8所述的方法,其特征在于,所述第一输入包括指示所述第一电子设备判断所述第一电子设备是否指向第二电子设备的语音输入、手势输入或点击输入。
  11. 一种电子设备,其特征在于,包括存储器,处理器以及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时使得所述电子设备实现如权利要求1至7任一项所述的方法。
  12. 一种电子设备,其特征在于,包括存储器,处理器以及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时使得所述电子设备实现如权利要求8至10任一项所述的方法。
  13. 一种计算机程序,其特征在于,当所述计算机程序在处理器上运行时用于执行根据权利要求1至7中任一项所述的方法的程序代码。
  14. 一种计算机程序,其特征在于,当所述计算机程序在处理器上运行时用于执行根据权利要求8至10中任一项所述的方法的程序代码。
  15. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行根据权利要求1至7中任一项所述的方法的程序代码。
  16. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行根据权利要求8至10中任一项所述的方法的程序代码。
PCT/CN2020/104887 2019-08-02 2020-07-27 一种电子设备控制方法及一种电子设备 WO2021023046A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910712937.4 2019-08-02
CN201910712937.4A CN110557740A (zh) 2019-08-02 2019-08-02 一种电子设备控制方法及一种电子设备

Publications (1)

Publication Number Publication Date
WO2021023046A1 true WO2021023046A1 (zh) 2021-02-11

Family

ID=68737058

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/104887 WO2021023046A1 (zh) 2019-08-02 2020-07-27 一种电子设备控制方法及一种电子设备

Country Status (2)

Country Link
CN (1) CN110557740A (zh)
WO (1) WO2021023046A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110557740A (zh) * 2019-08-02 2019-12-10 华为技术有限公司 一种电子设备控制方法及一种电子设备
CN111182325A (zh) * 2020-01-14 2020-05-19 上海禾鸟电子科技有限公司 一种基于5G随行Wi-Fi直播一体机系统
CN111741511B (zh) * 2020-05-29 2022-05-10 华为技术有限公司 快速匹配方法及头戴电子设备
CN115904057A (zh) * 2021-08-17 2023-04-04 华为技术有限公司 一种设备控制方法与电子设备
CN116070000A (zh) * 2021-11-01 2023-05-05 华为终端有限公司 用于确定方位信息的方法和电子设备
CN116125374A (zh) * 2021-11-12 2023-05-16 华为终端有限公司 信号到达角度估计方法及相关设备
CN116156044A (zh) * 2021-11-22 2023-05-23 华为技术有限公司 设备协同方法及相关装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101682837A (zh) * 2007-06-12 2010-03-24 诺基亚公司 经由定向建立无线链路
US20120178471A1 (en) * 2011-01-11 2012-07-12 Nokia Corporation Additional data usable in apparatus positioning
CN105319532A (zh) * 2015-07-03 2016-02-10 上海博冕科技有限公司 基于阵列式定向天线的蓝牙高精度三维定位系统
CN105589065A (zh) * 2016-03-16 2016-05-18 北京金山安全软件有限公司 一种获取目标物位置信息的方法、装置及电子设备
CN110557740A (zh) * 2019-08-02 2019-12-10 华为技术有限公司 一种电子设备控制方法及一种电子设备

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10044674B2 (en) * 2016-01-04 2018-08-07 Afero, Inc. System and method for automatic wireless network authentication in an internet of things (IOT) system
CN106792476B (zh) * 2017-01-09 2020-03-31 苏州佳世达电通有限公司 建立通讯连接的方法以及建立通讯连接的系统
CA2999095C (en) * 2017-03-23 2022-04-19 Legic Identsystems Ag System and method for determining location information for a mobile radio transmitter

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101682837A (zh) * 2007-06-12 2010-03-24 诺基亚公司 经由定向建立无线链路
US20120178471A1 (en) * 2011-01-11 2012-07-12 Nokia Corporation Additional data usable in apparatus positioning
CN105319532A (zh) * 2015-07-03 2016-02-10 上海博冕科技有限公司 基于阵列式定向天线的蓝牙高精度三维定位系统
CN105589065A (zh) * 2016-03-16 2016-05-18 北京金山安全软件有限公司 一种获取目标物位置信息的方法、装置及电子设备
CN110557740A (zh) * 2019-08-02 2019-12-10 华为技术有限公司 一种电子设备控制方法及一种电子设备

Also Published As

Publication number Publication date
CN110557740A (zh) 2019-12-10

Similar Documents

Publication Publication Date Title
WO2021023046A1 (zh) 一种电子设备控制方法及一种电子设备
WO2020168965A1 (zh) 一种具有折叠屏的电子设备的控制方法及电子设备
WO2021027616A1 (zh) 一种通过遥控器实现一碰投屏的终端设备、方法以及系统
WO2021036835A1 (zh) 一种蓝牙搜索方法、系统及相关装置
WO2020244623A1 (zh) 一种空鼠模式实现方法及相关设备
US11825539B2 (en) Bluetooth connection method and electronic device
WO2020168968A1 (zh) 一种具有折叠屏的电子设备的控制方法及电子设备
WO2021043219A1 (zh) 一种蓝牙回连方法及相关装置
WO2021036776A1 (zh) 一种无线充电方法及电子设备
WO2021043198A1 (zh) 一种蓝牙配对方法及相关装置
WO2020259542A1 (zh) 一种显示设备的控制方法及相关装置
WO2021017909A1 (zh) 一种通过nfc标签实现功能的方法、电子设备及系统
WO2021013196A1 (zh) 一种同时响应的方法及设备
EP4210363A1 (en) Communicational connection establishment method and system, electronic device, and storage medium
CN113676339B (zh) 组播方法、装置、终端设备及计算机可读存储介质
WO2021043250A1 (zh) 一种蓝牙通信方法及相关装置
CN112099741B (zh) 显示屏位置识别方法、电子设备及计算机可读存储介质
WO2021027623A1 (zh) 一种设备能力发现方法及p2p设备
EP4336356A1 (en) Screen projection method and related apparatus
WO2021052408A1 (zh) 一种电子设备显示方法及电子设备
CN114554012A (zh) 来电接听方法、电子设备及存储介质
WO2022042460A1 (zh) 一种设备的连接方法及电子设备
WO2024055881A1 (zh) 时钟同步方法、电子设备、系统及存储介质
WO2024093614A1 (zh) 设备输入方法、系统、电子设备及存储介质
WO2022105670A1 (zh) 一种显示方法及终端

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

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

Country of ref document: EP

Kind code of ref document: A1