WO2024002282A1 - Method and apparatus for sensing device, and chip and device - Google Patents

Method and apparatus for sensing device, and chip and device Download PDF

Info

Publication number
WO2024002282A1
WO2024002282A1 PCT/CN2023/104124 CN2023104124W WO2024002282A1 WO 2024002282 A1 WO2024002282 A1 WO 2024002282A1 CN 2023104124 W CN2023104124 W CN 2023104124W WO 2024002282 A1 WO2024002282 A1 WO 2024002282A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
processor
devices
sensing
positioning result
Prior art date
Application number
PCT/CN2023/104124
Other languages
French (fr)
Chinese (zh)
Inventor
郑博文
熊张亮
林学森
侯伟波
王帅
彭红星
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024002282A1 publication Critical patent/WO2024002282A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • 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
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the field of electronic equipment, and in particular to a method, device, chip and equipment for sensing equipment.
  • an ultrasonic medium can be used to realize the purpose of sensing the device.
  • the ultrasonic medium can be used to sense the device. Since the sensing processing logic runs in the processor, the power consumption of the processor is high, and the sensing capability cannot be achieved when the processor is asleep.
  • Embodiments of the present invention provide a method, device, chip and equipment for sensing equipment, which can sense equipment in real time and with low power consumption.
  • an embodiment of the present invention provides a method for sensing a device, including: determining whether there are other devices around an electronic device; and, if there are other devices around the electronic device, obtaining the positioning corresponding to the other device. Result; determine whether the positioning result satisfies the preset first condition; when the positioning result satisfies the first condition, wake up the processor of the electronic device, and the processor executes the corresponding The first operation of said other equipment.
  • the obtaining the positioning result corresponding to the other device includes: obtaining the first data collected by the ultrasonic medium in the electronic device; and obtaining the positioning result corresponding to the other device according to the first data. .
  • the positioning result includes: direction data of the other device relative to the electronic device; the first condition includes: a preset direction range; the determination of whether the positioning result satisfies the preset The first condition includes: determining whether the direction data is within the direction range; wherein the situation where the positioning result satisfies the first condition includes the situation where the direction data is within the direction range.
  • the positioning result includes: a target distance between the other device and the electronic device; the first condition includes: a preset distance threshold; the determination of whether the positioning result satisfies a preset third A condition includes: determining whether the target distance is not greater than the distance threshold; wherein the situation where the positioning result satisfies the first condition includes: the situation where the target distance is not greater than the distance threshold.
  • the method further includes: determining whether the electronic device is moving; When the electronic device is moving, the step of waking up the processor of the electronic device is performed.
  • the method further includes: obtaining second data collected by an inertial measurement unit in the electronic device; and performing the step of determining whether the electronic device is moving based on the second data.
  • the inertial measurement unit includes at least one of a gyroscope sensor, an acceleration sensor, and a compass sensor.
  • the method further includes: determining whether the other devices and the electronic device are Devices under the same user account; when the positioning result satisfies the first condition, waking up the processor of the electronic device includes: when the positioning result satisfies the first condition and the If the other device and the electronic device are devices under the same user account, wake up the processor of the electronic device.
  • the first operation includes: controlling the electronic device to eject a card, and the card display content includes information related to the usage status of the other device.
  • the method further includes: obtaining third data collected by the wireless medium in the electronic device; and performing the step of determining whether other devices are present around the electronic device according to the third data.
  • the wireless medium includes at least one of a Bluetooth chip and a wireless network communication technology chip.
  • an embodiment of the present invention provides an apparatus for sensing a device, including: a first determination module for determining whether other devices exist around the electronic device; and an acquisition module for determining whether other devices exist around the electronic device.
  • obtain the positioning result corresponding to the other device the second determination module is used to determine whether the positioning result satisfies the preset first condition
  • the wake-up module is used to determine whether the positioning result satisfies the first preset condition
  • the processor performs a first operation corresponding to the other device.
  • the present application provides an electronic chip, including: a processor configured to execute computer program instructions stored in a memory, wherein when the computer program instructions are executed by the processor, the electronic chip is triggered.
  • the chip performs the method described in any one of the first aspects of the application.
  • the present application provides an electronic device.
  • the electronic device includes a memory for storing computer program instructions, a processor for executing the computer program instructions, and a communication device, wherein when the computer program instructions are processed by the When the electronic device is executed, the electronic device is triggered to execute the method described in any one of the first aspects of this application.
  • the present application provides a computer-readable storage medium.
  • the computer-readable storage medium stores a computer program that, when run on a computer, causes the computer to execute any one of the steps described in the first aspect of the present application. Methods.
  • the present application provides a computer program product.
  • the computer program product includes a computer program.
  • the computer program When the computer program is run on a computer, it causes the computer to execute any one of the methods described in the first aspect of the present application. method.
  • the embodiments of this application enable real-time low-power sensing devices.
  • Figure 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • Figure 2 is a schematic diagram of an implementation of a sensing device provided by an embodiment of the present invention.
  • Figure 3 is a schematic diagram of a sensing device provided by an embodiment of the present invention.
  • Figure 4 is a schematic diagram of another sensing device provided by an embodiment of the present invention.
  • Figure 5 is a schematic diagram of another sensing device provided by an embodiment of the present invention.
  • Figure 6 is a schematic diagram of another sensing implementation provided by an embodiment of the present invention.
  • Figure 7 is a schematic diagram of another sensing implementation provided by an embodiment of the present invention.
  • Figure 8 is a timing diagram of a sensing device provided by an embodiment of the present invention.
  • Figure 9 is a timing diagram of another sensing device provided by an embodiment of the present invention.
  • Figure 10 is a timing diagram of yet another sensing device provided by an embodiment of the present invention.
  • Figure 11 is a flow chart of a perception implementation method provided by an embodiment of the present invention.
  • Figure 12 is a flow chart of yet another perception implementation method provided by an embodiment of the present invention.
  • At least one of a, b and c can mean: a, b, c, a and b, a and c, b and c or a and b and c, where a, b, c can be single, also Can be multiple.
  • first, second, etc. may be used to describe the set thresholds in the embodiments of the present invention, these set thresholds should not be limited to these terms. These terms are only used to distinguish set thresholds from each other.
  • the first set threshold may also be called a second set threshold, and similarly, the second set threshold may also be called a first set threshold.
  • FIG. 1 shows a schematic structural diagram of an electronic device 100 .
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and 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, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display
  • the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently.
  • the components illustrated may 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 (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • the controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • Interfaces may include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, pulse code modulation (pulse code modulation, PCM) interface, universal asynchronous receiver and transmitter (universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and /or universal serial bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • UART universal asynchronous receiver and transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the USB interface 130 is an interface that complies with the USB standard specification, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. It can be understood that the interface connection relationships between the modules illustrated in the embodiments of the present application are only schematic illustrations and do not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the charging management module 140 is used to receive charging input from the charger.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or Multiple communication bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
  • the mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the 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 through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit 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 through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be disposed 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.
  • a 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-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194.
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellites.
  • WLAN wireless local area networks
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • 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 processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (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 electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 194 is used to display images, videos, etc.
  • Display 194 includes a display panel.
  • the display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • AMOLED organic light-emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193.
  • Camera 193 is used to capture still images or video.
  • the object passes through the lens to produce an optical image that is projected onto the photosensitive element.
  • 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 electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
  • Video codecs are used to compress or decompress digital video.
  • Electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, etc.
  • NPU is a neural network (NN) computing processor.
  • NN neural network
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the internal memory 121 may include a program storage area and a data storage area.
  • the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.).
  • the storage data area may store data created during use of the electronic device 100 (such as audio data, phone book, etc.).
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals.
  • pressure sensor 180A may be disposed on display screen 194 .
  • pressure sensors 180A there are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc.
  • a capacitive pressure sensor may include at least two parallel plates of conductive material.
  • the electronic device 100 determines the intensity of the pressure based on the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch location but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity 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 is applied to 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 motion posture of the electronic device 100 .
  • Air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • Magnetic sensor 180D includes a Hall sensor.
  • the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes).
  • Distance sensor 180F for measuring distance.
  • Electronic device 100 can measure distance via infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may utilize the distance sensor 180F to measure distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • Fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access to application locks, fingerprint photography, fingerprint answering of incoming calls, etc.
  • Temperature sensor 180J is used to detect temperature.
  • Touch sensor 180K also known as "touch device”.
  • the touch sensor 180K can be disposed on the display screen 194.
  • the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K.
  • the touch sensor can pass the detected touch operation to the application processor to determine the touch event type.
  • Visual output related to the touch operation may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a location different from that of the display screen 194 .
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be connected to or separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • the electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
  • the SIM card interface 195 is also compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • Electronic Equipment 100 Pass The SIM card interacts with the network to implement functions such as calls and data communications.
  • the electronic device 100 uses an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • Ultrasonic media can be used to achieve the purpose of sensing the device. Specifically, the ultrasonic medium can be used to measure the distance of the device to locate the direction and distance of the device. Awareness processing logic for the device runs in the processor.
  • the processor may be an application processor (Application Processor, AP).
  • Application Processor Application Processor
  • FIG. 2 shows a schematic diagram of a possible implementation of the present technical solution.
  • the device 200A includes a processor 210A (such as an AP), a high-fidelity (HIFI) chip 220A, a speaker 230A/microphone 240A (SPK/MIC), and the processor 210A is provided with a perception processing logic 211A.
  • the high-fidelity chip 220A is provided with an audio processing algorithm chain 221A.
  • the device 200B includes a processor 210B, a high-fidelity chip 220B, and a speaker 230B/microphone 240B.
  • the processor 210B is provided with a perceptual processing logic 211B, and the high-fidelity chip 220B is provided with an audio processing algorithm chain 221B.
  • device 200A can sense device 200B, and device 200B can also sense device 200A, that is, the two devices can sense each other.
  • Speaker referred to as SPK, spelled out as Speaker.
  • Microphone abbreviated as MIC, spelled out as microphone.
  • the speaker 230A/microphone 240A in the device 200A senses the device 200B, it sends the corresponding perceived audio signal to the high-fidelity chip 220A in the device 200A;
  • the high-fidelity chip 220A in the device 200A processes the audio signal based on the built-in audio processing algorithm chain 221A (such as performing data conversion processing to convert the audio signal into data that can be processed by the processor, etc.), and sends the processing result to the device 200A
  • the processor 210A in the device 200A processes the processing result sent by the high-fidelity chip 220A based on the built-in perception processing logic 211A to perceive the direction and position of the device 200B.
  • device 200B can also sense the direction and position of device 200A. Please refer to the above content for the specific implementation process. This embodiment will not be described in detail here.
  • Table 1 shows the power consumption of the processor for a sensing measurement.
  • the power consumption of the processor for one sensing measurement is 0.04mah. Calculated based on 1,000 sensing measurements a day, the power consumption will increase by 40mah, which is high power consumption.
  • UWB Ultra Wide Band
  • embodiments of the present application propose a solution that can solve the above-mentioned problems of high power consumption and inability to realize the sensing capability when the processor is in sleep state, and can realize real-time sensing of the device with low power consumption.
  • the electronic device is a mobile phone 301
  • the smart home appliance is a speaker 302.
  • the phone When the processor in the phone is in sleep mode, the phone is in sleep mode and the screen of the phone appears as a black screen.
  • the built-in sensing component in the low-power normally-on chip in the mobile phone can sense whether there are predetermined devices around the mobile phone in real-time and with low power consumption.
  • the sensing component in the mobile phone can sense the speaker.
  • the sensing component can sense the direction and position of the speaker in real time. If the perceived direction and distance meet the preset conditions, the processor can be awakened. After the processor is awakened, it can perform further processing, such as pop-up The corresponding card is available to the user.
  • the first-level sensing component can trigger the ranging module (secondary sensing component) in the mobile phone to perform precise sensing to sense the direction and position of the speaker. If the direction and distance sensed by the secondary sensing component meet the preset conditions, the processor can be awakened. After being awakened, the processor can perform further processing, such as popping up the corresponding card for the user to use.
  • the ranging module secondary sensing component
  • the first-level sensing component can wake up the processor after sensing the speaker in real time. After the processor is awakened, it can perform further processing. For example, it can control the ranging module (secondary sensing component) in the mobile phone for precise sensing. , to sense the direction and position of the speaker. If the perceived direction and distance meet the preset conditions, the corresponding card can pop up for the user to use.
  • the ranging module secondary sensing component
  • information related to the current usage status of the speaker can be displayed for users to use.
  • the card that pops up on the mobile phone can display the following information: Display information indicating the audio playback device "Speaker in the living room” "; display the image information corresponding to the music (the image information can be the image information of the background picture when the music is played) and the name of the music; the control used to indicate the flow to "local machine”; used to indicate whether Controls that turn on the mobile phone remote control; controls used to control audio playback (such as controls used to control music pause playback, etc.).
  • the user can view the device on which the audio information of the music is played, the name of the music being played, the image information corresponding to the music being played, and other information, and can control the audio flow to this device.
  • Control operations such as playing on the phone (i.e. the mobile phone), turning on or off the remote control function of the mobile phone, controlling audio to pause playback, etc.
  • the card can also display other information, such as the name of the speaker, controls for controlling the playback effect of the speaker (such as whether to mute, increase/decrease the volume), and the current usage status of the speaker (such as working, standby, Shut down, etc.), a control used to control the speaker usage status.
  • controls for controlling the playback effect of the speaker such as whether to mute, increase/decrease the volume
  • the current usage status of the speaker such as working, standby, Shut down, etc.
  • the display area of the card on the mobile phone screen can occupy part of the mobile phone screen area. For example, it can occupy the middle and lower area of the mobile phone screen area.
  • the upper area of the mobile phone screen area can display general information, such as the location. , time, date, weather, mobile phone signal, remaining battery power and other information to meet users’ needs for general information.
  • the electronic device is a mobile phone 401
  • the smart home appliance is a large-screen device such as a TV 402
  • the TV is in a video playback state.
  • the sensing component in the mobile phone can sense the TV.
  • the mobile phone can pop up the corresponding card for the user to use.
  • information related to the current usage status of the TV can be displayed for users to use.
  • the card that pops up on the mobile phone can display the following information: Display information indicating the video playback device "Wisdom in the Living Room" Screen"; displays the image information used to indicate the video (one of the image frames of the video, such as the cover image, etc.), the name of the video; used to indicate the flow to the "local" control; used to indicate whether to turn on the mobile phone remote control Controls of the browser; controls used to control video playback (such as controls used to control video pause playback, etc.).
  • the user can check the device on which the video is played, the name of the played video, the image content of the played video and other information, and can control the video flow to the local machine (i.e. the Mobile phone) playback, control the mobile phone remote control function on or off, control the video pause playback and other control operations.
  • the local machine i.e. the Mobile phone
  • the card can also display other information, such as the name of the smart screen, controls for controlling video playback effects (such as whether to mute, increase/decrease the volume), and the current usage status of the smart screen (such as work, Standby, shutdown, etc.), controls used to control the usage status of the smart screen.
  • other information such as the name of the smart screen, controls for controlling video playback effects (such as whether to mute, increase/decrease the volume), and the current usage status of the smart screen (such as work, Standby, shutdown, etc.), controls used to control the usage status of the smart screen.
  • the electronic device is a mobile phone 501
  • the smart home appliance is a large-screen device such as a TV 502
  • the TV is in a video display state.
  • the sensing component in the mobile phone can sense the TV.
  • the mobile phone can pop up the corresponding card for the user to use.
  • information related to the current usage status of the TV can be displayed in the card that pops up on the mobile phone for the user's use. Please refer to Figure 4 and Figure 5.
  • the current usage status of the TV is different, and the information in the pop-up card can be different accordingly.
  • the following information can be displayed in the card that pops up on the mobile phone: information used to indicate the video playback device "smart screen in the living room"; used to indicate whether Turn on the controls of the mobile phone remote control; the video playback record of the TV; and some image information of recommended videos to watch (an image frame of the video).
  • the image information of each video played can be displayed specifically.
  • the current display interface can only display part ( For example, two) image information and corresponding playback volume of videos that have been watched. The user slides the corresponding area of the screen to display image information and corresponding playback volume of other videos that have been watched.
  • the image information of recommended videos to watch the image information of several videos can be displayed specifically.
  • the current display interface can only display the image information of some (such as three) recommended videos, and the image information of other recommended videos can be displayed by the user sliding the corresponding area of the screen.
  • the user can check which device the corresponding video is played on, check the videos that have been watched and the corresponding playback volume, check the recommended videos and other information, and can perform control operations to control the video to start playing. .
  • the user can click on the image of any watched video to cause the TV to continue playing the video, and can click on the image of any recommended video to cause the TV to start playing the video.
  • the electronic device can control the status of any other preset device after sensing the other device. For example, if the other device is in a standby state, the other device is controlled to start working. If the other device is working, the other device is controlled to stand by to suspend working or shut down to stop working.
  • the electronic device 600 may at least include a processor (such as an AP) 610, a high-fidelity chip (HIFI chip) 620, a sensor processor (such as a SensorHub) 630, Speaker 640/microphone 650, sensor 660 (such as inertial measurement unit), wireless network communication technology chip (WiFi chip) 670.
  • a processor such as an AP
  • HIFI chip high-fidelity chip
  • sensor processor such as a SensorHub
  • Speaker 640/microphone 650 such as a SensorHub
  • sensor 660 such as inertial measurement unit
  • WiFi chip wireless network communication technology chip
  • the high-fidelity chip 620 can be a low-power chip that specializes in processing audio; the sensor processor 630 can be a low-power chip that specializes in processing sensor data.
  • both the wireless network communication technology chip 670 and the sensor 660 can be built into the sensor processor 630.
  • the electronic device 600 can realize perception of other devices through any one of the above implementation modes 1 to 3.
  • the speaker 640/microphone 650 can sense the direction and position of other devices in real time.
  • the high-fidelity chip 620 determines whether the perceived direction and distance meet preset conditions, and if so, the processor 610 can be awakened. After the processor 610 is awakened, it can perform further processing, for example, it can pop up the corresponding card for the user to use.
  • the sensor 660 and the wireless network communication technology chip 670 can sense other devices in real time. Based on the sensing data collected by the sensor 660 and the wireless network communication technology chip 670, the sensor processor 630 can trigger the high-fidelity chip 620 for accurate sensing when it determines that other devices are sensed.
  • the high-fidelity chip 620 senses the direction and position of the other device based on the speaker 640/microphone 650.
  • the high-fidelity chip 620 determines whether the perceived direction and distance meet preset conditions, and if so, the processor 610 can be awakened. After the processor 610 is awakened, it can perform further processing, for example, it can pop up the corresponding card for the user to use.
  • the sensor 660 and the wireless network communication technology chip 670 can sense other devices in real time.
  • the sensor processor 630 can wake up the processor 610 when it determines that other devices are sensed based on the sensing data collected by the sensor 660 and the wireless network communication technology chip 670 . After being awakened, the processor 610 can perform further processing. For example, it can control the speaker 640/microphone 650 in the electronic device 600 to perform precise sensing to sense the direction and position of the other device.
  • the processor 610 determines whether the perceived direction and distance meet preset conditions, and if the conditions are met, the corresponding card can be popped up for the user to use.
  • the above implementation method 2 is taken as an example to further describe the implementation method of the sensing device.
  • the electronic device 700a may at least include a processor 710a, a high-fidelity chip 720a, and a sensor processor. 730a, acceleration sensor 740a/compass sensor 750a, Bluetooth chip 760a, speaker 770a/microphone 780a. Please refer to the arrows shown in Figure 7 for the relationship between each component.
  • the electronic device when the electronic device senses the presence of surrounding devices based on the wireless medium of the Bluetooth chip 760a, it can further determine whether the electronic device is moving. For example, the movement of the electronic device can be determined based on the acceleration sensor 740a or the compass sensor 750a. Condition. For example, if the direction sensed by the compass sensor 750a changes, it can be confirmed that the electronic device is moving; conversely, if the direction sensed by the compass sensor 750a does not change, it can be confirmed that the electronic device is stationary.
  • the electronic device can also sense surrounding devices based on other communication methods, such as sensing surrounding devices based on the wireless network communication technology chip shown in Figure 6, which is not limited in this application.
  • the processor 710a includes an application processing module 711a; the high-fidelity chip 720a includes a perception processing module 721a and an audio processing algorithm chain 722a; the sensor processor 730a includes a wake-up processing screening module 731a and a wake-up perception screening module 732a.
  • the electronic device 700a and the electronic device 700b may have the same structural composition, so that the electronic device 700a can sense the electronic device 700b, and the electronic device 700b can also sense the electronic device 700a, that is, two Devices can sense each other.
  • the electronic device 700b may at least include a processor 710b, a high-fidelity chip 720b, a sensor processor 730b, acceleration sensor 740b/compass sensor 750b, Bluetooth chip 760b, speaker 770b/microphone 780b. Please refer to the arrows shown in Figure 7 for the relationship between each component.
  • the processor 710b includes an application processing module 711b; the high-fidelity chip 720b includes a perception processing module 721b and an audio processing algorithm chain 722b; the sensor processor 730b includes a wake-up processing screening module 731b and a wake-up perception screening module 732b.
  • the structural composition of the electronic device 700a and the electronic device 700b may also be different, which is not limited in this application.
  • the implementation process of the sensing device can be as follows.
  • the acceleration sensor 740a/compass sensor 750a and the Bluetooth chip 760a can sense other devices in real time, and the sensed data is sent to the sensor processor 730a. As mentioned above, for example, whether there is a surrounding device can be sensed based on the Bluetooth chip 760a, and further, whether the electronic device is moving can be determined based on the acceleration sensor 740a or the compass sensor 750a.
  • the wake-up sensing filtering module 732a in the sensor processor 730a determines whether other devices are sensed based on the sensed data, and if so, the high-fidelity chip 720a is triggered for accurate sensing. If not, the high-fidelity chip 720a is not triggered for accurate sensing.
  • the high-fidelity chip 720a can trigger the speaker 770a/microphone 780a to sense the direction and position of the other device, and the perceived audio signal is sent to the high-fidelity chip 720a.
  • the audio processing algorithm chain 722a in the high-fidelity chip 720a processes the audio signal, and the processing result is sent to the perceptual processing module 721a.
  • the perception processing module 721a determines the perceived direction and distance based on the processing result, and sends the determined direction and distance to the sensor processor 730a.
  • the wake-up processing filtering module 731a in the sensor processor 730a determines whether the perceived direction and distance meet preset conditions, and if so, the processor 710a can be woken up. If not, processor 710a is not awakened.
  • the processor 710a can perform further processing, for example, the corresponding card can be popped up for the user to use.
  • This embodiment sinks the ultrasonic sensing module (speaker 770a/microphone 780a) to run on a high-fidelity chip, a low-power normally-on small core, and combines it with processor wake-up conditions that support customization of third-party applications ( This condition is used to wake up the processor 710a) on demand, which can realize low-power sensing capabilities and support the electronic device to sense the orientation of the surrounding devices in real-time and with low power consumption when sleeping.
  • this embodiment can also perform sensing based on a hierarchical sensing management strategy. Specifically, first-level sensing is performed based on Bluetooth chips, acceleration sensors, etc., and when certain conditions are met (such as there are other devices around and the electronic device is moving), The high-precision sensing module in the high-fidelity chip is then triggered for further orientation sensing. Through two-level sensing, lower power consumption sensing capabilities can be achieved.
  • This embodiment performs high-precision sensing positioning based on the ultrasonic sensing module.
  • other methods may also be used to perform high-precision sensing positioning.
  • pulses can also be used to perform precise positioning based on UWB (Ultra Wide Band) chips in electronic equipment.
  • the preset card pop-up conditions are usually met. Therefore, it can be determined whether the electronic device pops up the corresponding card by judging whether the card pop-up conditions are met. , so that the user can view the information of the other device or control the other device through the card content.
  • the card pop-up condition may include some or all of the following sub-conditions 1 to 3:
  • Sub-condition 1 Other devices are near the user and the electronic device;
  • Sub-condition 2 The user holds the electronic device and walks towards the other device in advance (or the user brings the electronic device close to the other device);
  • Sub-condition 3 The other device is within a specific angle range and a specific distance range between the user and the electronic device.
  • the user can be further confirmed whether there is a possibility for the user to view or control other devices by sensing whether the electronic device used by the user is moving. If the device is moving, it can be assumed that the user is close to the other device, that is, the possibility exists. If the device is not moving, it can be assumed that the user is not close to the other device, that is, the possibility does not exist.
  • the card ejection condition may include the above-mentioned sub-conditions 1-3 at the same time.
  • the electronic device may first determine whether sub-condition 1 and sub-condition 2 are met, and then determine whether sub-condition 3 is met, without executing the steps related to sub-condition 3 in real time. Judgment operation.
  • the processor consumes high power when executing the judgment operations related to sub-condition 3, and may not always satisfy sub-condition 3, the judgment operations related to sub-condition 3 can be performed by low-power components instead of the processor, so as to Avoid repeated, inefficient activation of the processor.
  • Figure 8 shows a timing diagram for an electronic device to sense the device based on two-level sensing.
  • the timing diagram involves the wireless network communication technology chip 810 and the sensor processor in the electronic device. 820 and Hi-Fi chip 830 operation.
  • the wireless network communication technology chip 810 is used to sense whether there are other devices around, and when sensing the presence of other devices around, send notification information of the surrounding devices to the sensor processor 820 .
  • the sensor processor 820 responds to the notification information, senses whether the electronic device is moving, and triggers the high-fidelity chip 830 for accurate sensing when it senses that the electronic device is moving.
  • the high-fidelity chip 830 starts the ultrasonic sensing module to perform the ultrasonic sensing operation, and reports the ultrasonic sensing results to the sensor processor 820 .
  • the sensor processor 820 may subsequently determine whether to wake up the processor to eject the card based on the reported ultrasonic sensing results.
  • wireless media such as Bluetooth chips and wireless network communication technology chips (WiFi chips) in the sensor processor 820 can be used to sense whether there are other devices around the electronic device, and the gyroscope in the sensor processor 820 can be used.
  • Inertial measurement units such as instrument sensors, acceleration sensors, and compass sensors are used to sense whether the electronic device is moving (which can be equivalent to whether the user is moving to get closer to the other device).
  • the wireless medium and the inertial measurement unit can be built into the sensor processor 820, installed on the sensor processor 820, or installed outside the sensor processor 820, and connected to the sensor processor 820. In this embodiment, Not limited.
  • the ultrasonic sensing module sunk in the high-fidelity chip 830 can be triggered for precise sensing.
  • the precise sensing result can be returned to the sensor processor 820, so that the sensor processor 820 can perform on-demand wake-up of the processor based on the communication channel between the sensor processor 820 and the processor for waking up the processor.
  • the processor can control the electronic device to turn on its screen and eject cards.
  • a communication channel for waking up the processor can also be established between the high-fidelity chip 830 and the processor.
  • the high-fidelity chip 830 does not need to return the precise sensing results to the sensor processor 820, but can directly process the precise sensing results and perform on-demand wake-up of the processor through the communication channel.
  • FIG. 9 shows a timing diagram in which an electronic device wakes up a processor to eject a card after sensing other devices.
  • the timing diagram involves the high-fidelity chip 910 and 910 in the electronic device.
  • Sensor processor 920 and processor 930 are the high-fidelity chips 910 and 910 in the electronic device.
  • the high-fidelity chip 910 reports the ultrasonic sensing results obtained by performing the ultrasonic sensing operation to the sensor processor 920 .
  • the sensor processor 920 determines whether the conditions for waking up the processor are met based on the reported ultrasonic sensing results. When it is determined that the conditions for waking up the processor are met, an instruction to wake up the processor is sent.
  • the processor 930 controls the electronic device to turn on the screen and eject the card for use by the user. For example, the user can view the information of the sensed device or control the device based on the card content.
  • FIG. 10 shows a timing diagram of an electronic device sensing the device based on ultrasonic sensing.
  • the timing diagram involves the microphone 1010 and the audio processing algorithm chain 1020 in the electronic device.
  • FIG. 10 may be a timing diagram of the internal timing of a high-fidelity chip.
  • the microphone 1010 sends the collected ultrasonic sensing information to the audio processing algorithm chain 1020.
  • the audio processing algorithm chain 1020 calls the ultrasonic algorithm to process the ultrasonic sensing information to obtain ultrasonic sensing results, which include distance and direction.
  • the above embodiments can use ultrasonic technology to perform high-precision sensing positioning based on the ultrasonic sensing module.
  • Other methods can also be used for high-precision sensing positioning.
  • pulses can also be used to perform precise positioning based on UWB chips in electronic devices.
  • Figure 11 is a schematic flowchart of a method for sensing a device according to an embodiment of the present application.
  • the method may include steps 1101 to 1106:
  • Step 1101 Sense whether there are other devices around the electronic device. If so, execute step 1102; otherwise, end the current process.
  • Wireless media such as Bluetooth chips and wireless network communication technology chips in electronic devices can be used to discover whether there are other devices around the electronic device.
  • the Bluetooth chip can be a BLE (Bluetooth Low Energy) chip.
  • Step 1102 Determine whether the other device and the electronic device are devices under the same user account. If so, execute step 1103; otherwise, end the current process.
  • Step 1103 Sense whether the electronic device is moving. If so, execute step 1104. Otherwise, end the current process.
  • the movement of the electronic device can be sensed using one or more of an inertial measurement unit (IMU), an acceleration sensor, a compass sensor, etc. in the electronic device.
  • IMU inertial measurement unit
  • acceleration sensor acceleration sensor
  • compass sensor compass sensor
  • the electronic device has moved.
  • Step 1104 Perform an ultrasonic sensing operation to obtain an ultrasonic sensing result.
  • the ultrasonic sensing module can be awakened, and the ultrasonic sensing module performs ultrasonic sensing operations to realize orientation (direction and position) sensing.
  • the ultrasonic sensing module can be in a dormant state before being awakened.
  • Ultrasound sensing modules can be built into high-fidelity chips in electronic devices.
  • ultrasonic technology can be used to perform high-precision sensing positioning based on the ultrasonic sensing module.
  • other methods may also be used to perform high-precision sensing positioning.
  • pulses can also be used to perform precise positioning based on UWB chips in electronic devices.
  • Step 1105 Determine whether the preset processor wake-up condition is met based on the ultrasonic sensing result. If so, execute step 1106; otherwise, end the current process.
  • the ultrasonic sensing results may include distance and direction.
  • the distance may be expressed as the distance between the electronic device and other devices, and the direction may be expressed as the direction of other devices relative to the electronic device.
  • the preset processor wake-up condition may include: the distance in the ultrasonic sensing result is within the corresponding distance range, and the direction in the ultrasonic sensing result is within the corresponding direction range.
  • the processor can be woken up only when other devices are close to the electronic device and deviate from the electronic device at a small angle to ensure accurate wake-up of the processor.
  • the processor wake-up condition may be a wake-up condition corresponding to the other device. Users can customize the processor wake-up conditions (or wake-up strategies) corresponding to each other device as needed through the application interface of each other device.
  • Step 1106 Wake up the processor of the electronic device, where the processor is used to control the electronic device to eject a card after being awakened.
  • the card display content includes information related to the usage status of other devices.
  • the electronic device when the internal processor of the electronic device is in a dormant state, the electronic device can combine the built-in wireless medium of the low-power sensor processor in the electronic device to discover in real time whether there are other devices around the electronic device, and Combined with the inertial measurement unit in the electronic device, it can sense whether the electronic device is moving, and determine whether the electronic device and other devices are devices under the same account. If the above judgment results are all yes, the low-power device sinking in the electronic device will be notified.
  • the ultrasonic sensing module in the high-fidelity chip is used for orientation sensing. The orientation sensing information can be passed back to the sensor processor.
  • the sensor processor determines whether the orientation sensing information satisfies the wake-up strategy customized by the third-party application. If so, it can wake up the processor of the electronic device. After the processor is awakened, it further processes the message, such as popping up a card for the user to use.
  • the electronic device can first determine whether the other devices and the electronic device are devices under the same user account. If they are devices under the same user account, then sense whether the electronic device is moving.
  • the electronic device may first sense whether the electronic device is moving, and if so, determine whether the other devices and the electronic device are devices under the same user account.
  • the electronic device when an electronic device is close to other devices in a sleep state, it cannot sense the orientation of other devices. This prevents the electronic device from automatically ejecting the card for the user to use.
  • the electronic device can still measure the orientation of the dormant device and surrounding devices in real time and with low power consumption in the dormant state. Once the dormant device is found to be close to other devices as required, it can Cards automatically pop up for users to use.
  • step 1102 and/or step 1103, or both of them may not be performed.
  • the step may not be performed before step 1104. This application does not limit this.
  • step 1104 can be executed directly after the determination in step 1101 is "yes”. If step 1102 is not executed, step 1103 can be executed directly after the determination in step 1101 is "yes”. If step 1103 is not executed, step 1104 can be executed directly after the determination in step 1102 is "yes”.
  • step 1102 may not be executed before step 1103, but may be executed before step 1106. That is, if step 1105 is determined to be "yes”, step 1102 will be executed, and if step 1102 is determined to be "yes”, step 1106 will be executed.
  • Figure 12 is a schematic flowchart of another method of sensing a device provided by another embodiment of the present application. The method includes steps 1201 to 1209:
  • Step 1201 The wake-up sensing screening module in the sensor processor senses whether there are other devices around the electronic device based on the sensing data of the Bluetooth chip. If so, step 1202 is executed. Otherwise, the current process ends.
  • Step 1202 The wake-up awareness filtering module determines whether the other device and the electronic device are devices under the same user account. If so, execute step 1203; otherwise, end the current process.
  • Step 1203 The wake-up sensing screening module senses whether the electronic device is moving based on the sensing data of the acceleration sensor/compass sensor. If so, execute step 1204; otherwise, end the current process.
  • Step 1204 Wake up the sensing screening module to trigger the high-fidelity chip to perform ultrasonic sensing operations.
  • ultrasonic technology can be used to perform high-precision sensing positioning based on the ultrasonic sensing module.
  • other methods may also be used to perform high-precision sensing positioning.
  • pulses can also be used to perform precise positioning based on UWB chips in electronic devices.
  • Step 1205 The audio algorithm processing chain in the high-fidelity chip processes the perceptual data of the speaker/microphone and obtains the processing result.
  • Step 1206 The perception processing module in the high-fidelity chip processes the processing results to obtain ultrasonic perception results.
  • Step 1207 The wake-up processing screening module in the sensor processor determines whether the preset processor wake-up conditions are met based on the ultrasonic sensing results. If so, step 1208 is executed. Otherwise, the current process ends.
  • Step 1208 The wake-up processing and filtering module wakes up the processor of the electronic device.
  • Step 1209 After the processor is awakened, the application processing module in the processor controls the electronic device to pop up a card, and the card display content includes information related to the usage status of other devices.
  • the electronic device can first determine whether the other devices and the electronic device are devices under the same user account. If they are devices under the same user account, then sense whether the electronic device is moving.
  • the electronic device may first sense whether the electronic device is moving, and if so, determine whether the other devices and the electronic device are devices under the same user account.
  • step 1202 and/or step 1203, or both of them may not be performed.
  • the step may not be performed before step 1204. This application does not limit this.
  • step 1204 can be performed directly after the determination in step 1201 is "yes”. If step 1202 is not executed, step 1203 can be executed directly after the determination in step 1201 is "yes”. If step 1203 is not executed, step 1204 can be executed directly after the determination in step 1202 is "yes”.
  • step 1202 may not be executed before step 1203, but may be executed before step 1208. That is, if step 1207 is determined to be “yes”, step 1202 will be executed, and if step 1202 is determined to be "yes”, step 1208 will be executed.
  • the disclosed systems, devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined. or can to integrate into another system, or some features can be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • a unit described as a separate component may or may not be physically separate.
  • a component shown as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • Embodiments of the present application also provide an electronic chip.
  • the electronic chip includes: a processor configured to execute computer program instructions stored in a memory. When the computer program instructions are executed by the processor, the task processing chip is triggered to execute. The steps performed by the electronic device 100 in the above embodiment.
  • An embodiment of the present application also provides an electronic device, which may include: a processor.
  • the processor is configured to run a computer program stored in a memory, so that the electronic device implements various steps performed by the electronic device 100 in the above embodiment.
  • a feasible product hardware structure of the electronic device provided by the embodiment of the present application can be seen in the schematic hardware structure diagram shown in FIG. 5 .
  • one or more computer programs are stored in the above-mentioned memory.
  • the one or more computer programs include instructions.
  • the above-mentioned device executes the implementation of the present application. The method steps described in the example.
  • the processor of the electronic device may be an on-chip device SOC, and the processor may include a central processing unit (Central Processing Unit, CPU), and may further include other types of processors.
  • the processor of the electronic device may be a PWM control chip.
  • the processor involved may include, for example, a CPU, a DSP, a microcontroller or a digital signal processor, and may also include a GPU, embedded neural network processor (Neural-network Process Units, NPU). ) and an image signal processor (Image Signal Processing, ISP), which may also include necessary hardware accelerators or logic processing hardware circuits, such as ASIC, or one or more integrated circuits used to control the execution of the program of the technical solution of this application wait.
  • the processor may have functionality to operate one or more software programs, which may be stored in a storage medium.
  • the memory of the electronic device may be a read-only memory (ROM), other types of static storage devices that can store static information and instructions, or a random access memory (random access memory).
  • ROM read-only memory
  • RAM random access memory
  • dynamic storage devices that can store information and instructions
  • EEPROM electrically erasable programmable read-only memory
  • CD-ROM compact disc read-only memory
  • optical disc storage including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.
  • magnetic disk storage media or other magnetic storage devices or can also be used to carry or Any computer-readable medium that stores desired program code in the form of instructions or data structures and that can be accessed by a computer.
  • the processor and the memory can be combined into a processing device, which is more commonly independent of each other.
  • the processor is used to execute the program code stored in the memory to implement the method described in the embodiment of the present application.
  • the memory can also be integrated in the processor, or independent of the processor.
  • equipment, devices, and modules described in the embodiments of this application may be implemented by computer chips or entities, or by products with certain functions.
  • embodiments of the present application may be provided as methods, devices, or computer program products.
  • the invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects.
  • the invention may take the form of a computer program product embodied on one or more computer-usable storage media embodying computer-usable program code therein.
  • An embodiment of the present application also provides a computer storage medium, including a computer program.
  • the computer program When the computer program is run on an electronic device, the electronic device causes the electronic device to perform the steps performed by the electronic device 100 in the above embodiment.
  • An embodiment of the present application also provides a computer program product.
  • the computer program product includes a computer program. When the computer program is run on a computer, it causes the computer to perform the steps performed by the electronic device 100 in the above embodiment.
  • These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a use A device for realizing the functions specified in one process or multiple processes of the flowchart and/or one block or multiple blocks of the block diagram.
  • These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions
  • the device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
  • These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device.
  • Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.
  • a “unit” in the embodiments of this application can be implemented in the form of software and/or hardware, and there is no specific limitation on this.
  • a “unit” may be a software program, a hardware circuit, or a combination of both that implements the above functions.
  • Hardware circuits may include application specific integrated circuits (ASICs), electronic circuits, and processors (such as shared processors, proprietary processors, or group processors) for executing one or more software or firmware programs. and memory, merged logic circuitry, and/or other suitable components to support the functions described.
  • the units of each example described in the embodiments of the present application can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
  • any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program code. .
  • the integrated unit implemented in the form of a software functional unit may be stored in a computer-readable storage medium.
  • the above-mentioned software functional unit is stored in a storage medium and includes a number of instructions to cause a computer device (which can be a personal computer, server, or network device, etc.) or processor (Processor) to execute the methods described in various embodiments of the present invention. Some steps.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Telephone Function (AREA)
  • Power Sources (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

A method and apparatus for sensing a device, and a chip and a device. The method comprises: determining whether there are other devices around an electronic device; when there are other devices around the electronic device, acquiring a positioning result corresponding to the other devices; determining whether the positioning result meets a preset first condition; and when the positioning result meets the first condition, waking up a processor of the electronic device, and the processor executing a first operation corresponding to the other devices after being woken up. By means of the embodiments of the present invention, an electronic device can sense other devices around the electronic device in real time and with low levels of power consumption.

Description

感知设备的方法、装置、芯片及设备Methods, devices, chips and equipment for sensing equipment
本申请要求在2022年7月1日提交中国国家知识产权局、申请号为202210775399.5的中国专利申请的优先权,发明名称为“感知设备的方法、装置、芯片及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of the Chinese patent application with application number 202210775399.5 submitted to the State Intellectual Property Office of China on July 1, 2022, and the priority of the Chinese patent application with the invention name "Method, device, chip and equipment for sensing equipment" rights, the entire contents of which are incorporated herein by reference.
技术领域Technical field
本发明涉及电子设备领域,特别涉及一种感知设备的方法、装置、芯片及设备。The present invention relates to the field of electronic equipment, and in particular to a method, device, chip and equipment for sensing equipment.
背景技术Background technique
在一种实现方式中,可以利用超声波介质来实现感知设备的目的,具体可以利用超声波介质对设备进行感知。由于感知处理逻辑在处理器中运行,则处理器功耗高,且无法实现在处理器休眠情况下的感知能力。In an implementation manner, an ultrasonic medium can be used to realize the purpose of sensing the device. Specifically, the ultrasonic medium can be used to sense the device. Since the sensing processing logic runs in the processor, the power consumption of the processor is high, and the sensing capability cannot be achieved when the processor is asleep.
发明内容Contents of the invention
本发明实施例提供了一种感知设备的方法、装置、芯片及设备,能够实时低功耗的感知设备。Embodiments of the present invention provide a method, device, chip and equipment for sensing equipment, which can sense equipment in real time and with low power consumption.
第一方面,本发明实施例提供一种感知设备的方法,包括:确定电子设备的周围是否存在其他设备;在所述电子设备的周围存在其他设备的情况下,获取对应所述其他设备的定位结果;确定所述定位结果是否满足预设的第一条件;在所述定位结果满足所述第一条件的情况下,唤醒所述电子设备的处理器,所述处理器在被唤醒后执行对应所述其他设备的第一操作。In a first aspect, an embodiment of the present invention provides a method for sensing a device, including: determining whether there are other devices around an electronic device; and, if there are other devices around the electronic device, obtaining the positioning corresponding to the other device. Result; determine whether the positioning result satisfies the preset first condition; when the positioning result satisfies the first condition, wake up the processor of the electronic device, and the processor executes the corresponding The first operation of said other equipment.
可选地,所述获取对应所述其他设备的定位结果,包括:获取所述电子设备中的超声波介质采集到的第一数据;根据所述第一数据,得到对应所述其他设备的定位结果。Optionally, the obtaining the positioning result corresponding to the other device includes: obtaining the first data collected by the ultrasonic medium in the electronic device; and obtaining the positioning result corresponding to the other device according to the first data. .
可选地,所述定位结果包括:所述其他设备的相对于所述电子设备的方向数据;所述第一条件包括:预设的方向范围;所述确定所述定位结果是否满足预设的第一条件,包括:确定所述方向数据是否在所述方向范围内;其中,所述定位结果满足所述第一条件的情况包括:所述方向数据在所述方向范围内的情况。Optionally, the positioning result includes: direction data of the other device relative to the electronic device; the first condition includes: a preset direction range; the determination of whether the positioning result satisfies the preset The first condition includes: determining whether the direction data is within the direction range; wherein the situation where the positioning result satisfies the first condition includes the situation where the direction data is within the direction range.
可选地,所述定位结果包括:所述其他设备与所述电子设备间的目标距离;所述第一条件包括:预设的距离阈值;所述确定所述定位结果是否满足预设的第一条件,包括:确定所述目标距离是否不大于所述距离阈值;其中,所述定位结果满足所述第一条件的情况包括:所述目标距离不大于所述距离阈值的情况。Optionally, the positioning result includes: a target distance between the other device and the electronic device; the first condition includes: a preset distance threshold; the determination of whether the positioning result satisfies a preset third A condition includes: determining whether the target distance is not greater than the distance threshold; wherein the situation where the positioning result satisfies the first condition includes: the situation where the target distance is not greater than the distance threshold.
可选地,在确定出所述电子设备的周围存在其他设备之后,以及在所述唤醒所述电子设备的处理器之前,所述方法还包括:确定所述电子设备是否在移动;在确定出所述电子设备在移动的情况下,执行所述唤醒所述电子设备的处理器的步骤。Optionally, after determining that there are other devices around the electronic device and before waking up the processor of the electronic device, the method further includes: determining whether the electronic device is moving; When the electronic device is moving, the step of waking up the processor of the electronic device is performed.
可选地,所述方法还包括:获取所述电子设备中的惯性测量单元采集到的第二数据;根据所述第二数据,执行所述确定所述电子设备是否在移动的步骤。Optionally, the method further includes: obtaining second data collected by an inertial measurement unit in the electronic device; and performing the step of determining whether the electronic device is moving based on the second data.
可选地,所述惯性测量单元包括陀螺仪传感器、加速度传感器、指南针传感器中的至少一种。Optionally, the inertial measurement unit includes at least one of a gyroscope sensor, an acceleration sensor, and a compass sensor.
可选地,在确定出所述电子设备的周围存在其他设备之后,以及在所述唤醒所述电子设备的处理器之前,所述方法还包括:确定所述其他设备和所述电子设备是否为同一用户账号下的设备;所述在所述定位结果满足所述第一条件的情况下,唤醒所述电子设备的处理器,包括:在所述定位结果满足所述第一条件、且所述其他设备和所述电子设备为同一用户账号下的设备的情况下,唤醒所述电子设备的处理器。Optionally, after determining that other devices exist around the electronic device and before waking up the processor of the electronic device, the method further includes: determining whether the other devices and the electronic device are Devices under the same user account; when the positioning result satisfies the first condition, waking up the processor of the electronic device includes: when the positioning result satisfies the first condition and the If the other device and the electronic device are devices under the same user account, wake up the processor of the electronic device.
可选地,所述第一操作包括:控制所述电子设备弹出卡片,且卡片显示内容包括与所述其他设备的使用状态相关的信息。Optionally, the first operation includes: controlling the electronic device to eject a card, and the card display content includes information related to the usage status of the other device.
可选地,所述方法还包括:获取所述电子设备中的无线介质采集到的第三数据;根据所述第三数据,执行所述确定电子设备的周围是否存在其他设备的步骤。 Optionally, the method further includes: obtaining third data collected by the wireless medium in the electronic device; and performing the step of determining whether other devices are present around the electronic device according to the third data.
可选地,所述无线介质包括蓝牙芯片和无线网络通信技术芯片中的至少一种。Optionally, the wireless medium includes at least one of a Bluetooth chip and a wireless network communication technology chip.
第二方面,本发明实施例提供一种感知设备的装置,包括:第一确定模块,用于确定电子设备的周围是否存在其他设备;获取模块,用于在所述电子设备的周围存在其他设备的情况下,获取对应所述其他设备的定位结果;第二确定模块,用于确定所述定位结果是否满足预设的第一条件;唤醒模块,用于在所述定位结果满足所述第一条件的情况下,唤醒所述电子设备的处理器,所述处理器在被唤醒后执行对应所述其他设备的第一操作。In a second aspect, an embodiment of the present invention provides an apparatus for sensing a device, including: a first determination module for determining whether other devices exist around the electronic device; and an acquisition module for determining whether other devices exist around the electronic device. In the case of, obtain the positioning result corresponding to the other device; the second determination module is used to determine whether the positioning result satisfies the preset first condition; the wake-up module is used to determine whether the positioning result satisfies the first preset condition; If conditions exist, wake up the processor of the electronic device, and after being awakened, the processor performs a first operation corresponding to the other device.
第三方面,本申请提供一种电子芯片,包括:处理器,其用于执行存储在存储器上的计算机程序指令,其中,当所述计算机程序指令被所述处理器执行时,触发所述电子芯片执行本申请第一方面中任一项所述的方法。In a third aspect, the present application provides an electronic chip, including: a processor configured to execute computer program instructions stored in a memory, wherein when the computer program instructions are executed by the processor, the electronic chip is triggered. The chip performs the method described in any one of the first aspects of the application.
第四方面,本申请提供一种电子设备,所述电子设备包括用于存储计算机程序指令的存储器、用于执行计算机程序指令的处理器和通信装置,其中,当所述计算机程序指令被该处理器执行时,触发所述电子设备执行本申请第一方面中任一项所述的方法。In a fourth aspect, the present application provides an electronic device. The electronic device includes a memory for storing computer program instructions, a processor for executing the computer program instructions, and a communication device, wherein when the computer program instructions are processed by the When the electronic device is executed, the electronic device is triggered to execute the method described in any one of the first aspects of this application.
第五方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行本申请第一方面中任一项所述的方法。In a fifth aspect, the present application provides a computer-readable storage medium. The computer-readable storage medium stores a computer program that, when run on a computer, causes the computer to execute any one of the steps described in the first aspect of the present application. Methods.
第六方面,本申请提供一种计算机程序产品,所述计算机程序产品包括计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行本申请第一方面中任一项所述的方法。In a sixth aspect, the present application provides a computer program product. The computer program product includes a computer program. When the computer program is run on a computer, it causes the computer to execute any one of the methods described in the first aspect of the present application. method.
本申请实施例能够实时低功耗的感知设备。The embodiments of this application enable real-time low-power sensing devices.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention and are not relevant to the present invention. Those skilled in the art can also obtain other drawings based on these drawings without exerting creative efforts.
图1为本发明实施例提供的一种电子设备的结构示意图;Figure 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention;
图2为本发明实施例提供的一种感知设备的实现方式的示意图;Figure 2 is a schematic diagram of an implementation of a sensing device provided by an embodiment of the present invention;
图3为本发明实施例提供的一种感知设备的示意图;Figure 3 is a schematic diagram of a sensing device provided by an embodiment of the present invention;
图4为本发明实施例提供的另一种感知设备的示意图;Figure 4 is a schematic diagram of another sensing device provided by an embodiment of the present invention;
图5为本发明实施例提供的又一种感知设备的示意图;Figure 5 is a schematic diagram of another sensing device provided by an embodiment of the present invention;
图6为本发明实施例提供的另一种感知实现方式的示意图;Figure 6 is a schematic diagram of another sensing implementation provided by an embodiment of the present invention;
图7为本发明实施例提供的又一种感知实现方式的示意图;Figure 7 is a schematic diagram of another sensing implementation provided by an embodiment of the present invention;
图8为本发明实施例提供的一种感知设备的时序图;Figure 8 is a timing diagram of a sensing device provided by an embodiment of the present invention;
图9为本发明实施例提供的另一种感知设备的时序图;Figure 9 is a timing diagram of another sensing device provided by an embodiment of the present invention;
图10为本发明实施例提供的又一种感知设备的时序图;Figure 10 is a timing diagram of yet another sensing device provided by an embodiment of the present invention;
图11为本发明实施例提供的一种感知实现方法的流程图;Figure 11 is a flow chart of a perception implementation method provided by an embodiment of the present invention;
图12为本发明实施例提供的又一种感知实现方法的流程图。Figure 12 is a flow chart of yet another perception implementation method provided by an embodiment of the present invention.
具体实施方式Detailed ways
为了更好的理解本发明的技术方案,下面结合附图对本发明实施例进行详细描述。In order to better understand the technical solution of the present invention, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
应当明确,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。It should be clear that the described embodiments are only some, but not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.
在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。The terminology used in the embodiments of the present invention is only for the purpose of describing specific embodiments and is not intended to limit the present invention. As used in this embodiment and the appended claims, the singular forms "a," "the" and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise.
应当理解,本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。本文中使用的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。其中A,B可以是单数或者复数。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。 “以下至少一项”及其类似表达,是指的这些项中的任意组合,包括单项或复数项的任意组合。例如,a,b和c中的至少一项可以表示:a,b,c,a和b,a和c,b和c或a和b和c,其中a,b,c可以是单个,也可以是多个。It should be understood that in the embodiments of this application, "at least one" refers to one or more, and "multiple" refers to two or more. The term "and/or" used in this article is just an association relationship describing related objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A alone exists, A and B exist simultaneously, alone There are three situations B. Where A and B can be singular or plural. In addition, the character "/" in this article generally indicates that the related objects are an "or" relationship. “At least one of the following” and similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can mean: a, b, c, a and b, a and c, b and c or a and b and c, where a, b, c can be single, also Can be multiple.
应当理解,尽管在本发明实施例中可能采用术语第一、第二等来描述设定阈值,但这些设定阈值不应限于这些术语。这些术语仅用来将设定阈值彼此区分开。例如,在不脱离本发明实施例范围的情况下,第一设定阈值也可以被称为第二设定阈值,类似地,第二设定阈值也可以被称为第一设定阈值。It should be understood that although the terms first, second, etc. may be used to describe the set thresholds in the embodiments of the present invention, these set thresholds should not be limited to these terms. These terms are only used to distinguish set thresholds from each other. For example, without departing from the scope of the embodiments of the present invention, the first set threshold may also be called a second set threshold, and similarly, the second set threshold may also be called a first set threshold.
本申请的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。The terms used in the embodiments of the present application are only used to explain specific embodiments of the present application and are not intended to limit the present application.
在一个实施例中,本申请实施例提供的方法可以应用于图1所示的电子设备100中。图1示出了电子设备100的结构示意图。In one embodiment, the method provided by the embodiment of the present application can be applied to the electronic device 100 shown in FIG. 1 . FIG. 1 shows a schematic structural diagram of an electronic device 100 .
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, processor 110 may include one or more interfaces. Interfaces may include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, pulse code modulation (pulse code modulation, PCM) interface, universal asynchronous receiver and transmitter (universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and /or universal serial bus (USB) interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。The USB interface 130 is an interface that complies with the USB standard specification, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. It can be understood that the interface connection relationships between the modules illustrated in the embodiments of the present application are only schematic illustrations and do not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
充电管理模块140用于从充电器接收充电输入。电源管理模块141用于连接电池142,充电管理模块140与处理器110。电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或 多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover a single or Multiple communication bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the 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 through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit 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 through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 . In some embodiments, 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.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellites. 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. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (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).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. Display 194 includes a display panel. The display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode). emitting diode (AMOLED), flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
ISP用于处理摄像头193反馈的数据。摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。The ISP is used to process the data fed back by the camera 193. Camera 193 is used to capture still images or video. The object passes through the lens to produce an optical image that is projected onto the photosensitive element.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。 例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。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 electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can continuously learn by itself.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。Internal memory 121 may be used to store computer executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.). The storage data area may store data created during use of the electronic device 100 (such as audio data, phone book, etc.). In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor may include at least two parallel plates of conductive material. When a force is applied to pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation is performed on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch location but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity 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 is applied to the short message application icon, an instruction to create a new short message is executed.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。磁传感器180D包括霍尔传感器。加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。环境光传感器180L用于感知环境光亮度。指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。温度传感器180J用于检测温度。The gyro sensor 180B may be used to determine the motion posture of the electronic device 100 . Air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation. Magnetic sensor 180D includes a Hall sensor. The acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). Distance sensor 180F for measuring distance. Electronic device 100 can measure distance via infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may utilize the distance sensor 180F to measure distance to achieve fast focusing. Proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The ambient light sensor 180L is used to sense ambient light brightness. Fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access to application locks, fingerprint photography, fingerprint answering of incoming calls, etc. Temperature sensor 180J is used to detect temperature.
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also known as "touch device". The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K. The touch sensor can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a location different from that of the display screen 194 .
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分离。电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 . The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. Electronic Equipment 100 Pass The SIM card interacts with the network to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 . The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
为便于理解本申请实施例提供的解决方案所做出的改进,先对已有的相关技术方案进行简单阐述。In order to facilitate understanding of the improvements made in the solutions provided by the embodiments of the present application, the existing related technical solutions will be briefly described first.
相关技术方案一:可以利用超声波介质来实现感知设备的目的,具体可以利用超声波介质对设备进行测距,来定位设备的方向和距离。对设备的感知处理逻辑在处理器中运行。Related technical solution 1: Ultrasonic media can be used to achieve the purpose of sensing the device. Specifically, the ultrasonic medium can be used to measure the distance of the device to locate the direction and distance of the device. Awareness processing logic for the device runs in the processor.
该处理器可以为应用处理器(Application Processor,AP)。The processor may be an application processor (Application Processor, AP).
在一个实施例中,图2示出了本技术方案的一种可行实现方式的示意图。在该实现方式中,设备200A包括处理器210A(比如AP)、高保真(High-Fidelity,HIFI)芯片220A、扬声器230A/麦克风240A(SPK/MIC),处理器210A中设置有感知处理逻辑211A,高保真芯片220A中设置有音频处理算法链221A。In one embodiment, FIG. 2 shows a schematic diagram of a possible implementation of the present technical solution. In this implementation, the device 200A includes a processor 210A (such as an AP), a high-fidelity (HIFI) chip 220A, a speaker 230A/microphone 240A (SPK/MIC), and the processor 210A is provided with a perception processing logic 211A. , the high-fidelity chip 220A is provided with an audio processing algorithm chain 221A.
设备200B包括处理器210B、高保真芯片220B、扬声器230B/麦克风240B,处理器210B中设置有感知处理逻辑211B,高保真芯片220B中设置有音频处理算法链221B。The device 200B includes a processor 210B, a high-fidelity chip 220B, and a speaker 230B/microphone 240B. The processor 210B is provided with a perceptual processing logic 211B, and the high-fidelity chip 220B is provided with an audio processing algorithm chain 221B.
如此,设备200A可以对设备200B进行感知,设备200B也可以对设备200A进行感知,即两个设备可以互相感知。In this way, device 200A can sense device 200B, and device 200B can also sense device 200A, that is, the two devices can sense each other.
扬声器,简称SPK,全拼为Speaker。Speaker, referred to as SPK, spelled out as Speaker.
麦克风,简称MIC,全拼为microphone。Microphone, abbreviated as MIC, spelled out as microphone.
请参考图2,以设备200A对设备200B进行感知为例,设备200A中的扬声器230A/麦克风240A在感知到设备200B时,将感知到的相应音频信号发送给设备200A中的高保真芯片220A;设备200A中的高保真芯片220A基于内置的音频处理算法链221A处理该音频信号(比如进行数据转换处理,以将音频信号转换为处理器可处理的数据等),并将处理结果发送给设备200A中的处理器210A;设备200A中的处理器210A基于内置的感知处理逻辑211A处理高保真芯片220A发来的处理结果,以感知出设备200B的方向和位置。Please refer to Figure 2, taking the device 200A sensing the device 200B as an example. When the speaker 230A/microphone 240A in the device 200A senses the device 200B, it sends the corresponding perceived audio signal to the high-fidelity chip 220A in the device 200A; The high-fidelity chip 220A in the device 200A processes the audio signal based on the built-in audio processing algorithm chain 221A (such as performing data conversion processing to convert the audio signal into data that can be processed by the processor, etc.), and sends the processing result to the device 200A The processor 210A in the device 200A processes the processing result sent by the high-fidelity chip 220A based on the built-in perception processing logic 211A to perceive the direction and position of the device 200B.
同理,设备200B也可以感知设备200A的方向和位置,具体实现过程请参考上述内容,本实施例在此不做赘述。In the same way, device 200B can also sense the direction and position of device 200A. Please refer to the above content for the specific implementation process. This embodiment will not be described in detail here.
请参考下述表1,示出了处理器做一次感知测量的功耗情况。Please refer to Table 1 below, which shows the power consumption of the processor for a sensing measurement.
表1
Table 1
如表1所示,处理器做一次感知测量的功耗为0.04mah,按照一天1000次感知测量来计算,则会增加40mah的功耗,功耗高。As shown in Table 1, the power consumption of the processor for one sensing measurement is 0.04mah. Calculated based on 1,000 sensing measurements a day, the power consumption will increase by 40mah, which is high power consumption.
本技术方案中,由于对设备的感知处理逻辑在处理器中运行,则处理器功耗高。由于功耗限 制,使得超声感知能力的实现需要处理器处于唤醒状态,故而本技术方案无法实现在处理器休眠情况下的感知能力,无法实现在处理器休眠情况下自动感知设备的方向和距离。In this technical solution, since the sensing processing logic for the device runs in the processor, the power consumption of the processor is high. Due to power consumption limitations The ultrasonic sensing capability requires the processor to be awake. Therefore, this technical solution cannot realize the sensing capability when the processor is sleeping, and cannot automatically sense the direction and distance of the device when the processor is sleeping.
相关技术方案二:可以在电子设备中新增加UWB(Ultra Wide Band,超宽带)芯片这一硬件,来实现感知功能。其中,UWB技术是一种无线载波通信技术。Related technical solution 2: UWB (Ultra Wide Band) chip hardware can be added to electronic equipment to realize sensing functions. Among them, UWB technology is a wireless carrier communication technology.
但是,新增硬件会带来电子设备成本的相应增加(比如成本高5美金),且本技术方案也没有低功耗方案,同样无法实现在处理器休眠情况下的感知能力。However, new hardware will bring about a corresponding increase in the cost of electronic equipment (for example, the cost is 5 US dollars higher), and this technical solution does not have a low-power solution, and it is also unable to achieve sensing capabilities when the processor is in sleep mode.
鉴于此,本申请实施例提出一种解决方案,可以解决上述功耗高、无法实现在处理器休眠情况下的感知能力的问题,能够实现实时低功耗地感知设备。In view of this, embodiments of the present application propose a solution that can solve the above-mentioned problems of high power consumption and inability to realize the sensing capability when the processor is in sleep state, and can realize real-time sensing of the device with low power consumption.
下面,结合几个应用场景示例,对本申请实施例提供的技术方案进行初步介绍。Below, a preliminary introduction to the technical solutions provided by the embodiments of this application will be given based on several application scenario examples.
应用场景示例1:Application scenario example 1:
下面,以电子设备为用户的智能手机,被感知的设备为用户家庭中的智能家电,手机感知到智能家电后弹出卡片供用户使用为例,对应用场景示例1进行说明。Next, take the electronic device as the user's smartphone, the sensed device as the smart home appliance in the user's home, and the mobile phone pops up a card for the user to use after sensing the smart home appliance. Application scenario example 1 will be explained.
应用场景示例1.1:Application scenario example 1.1:
在一个实施例中,请参考图3,电子设备为手机301,智能家电为音箱302。In one embodiment, please refer to Figure 3, the electronic device is a mobile phone 301, and the smart home appliance is a speaker 302.
手机中的处理器处于休眠状态时,手机处于休眠状态,手机屏幕显示为黑屏。但手机中的低功耗常开芯片中的内置感知组件可以实时低功耗地感知手机周围是否存在有预定的设备。When the processor in the phone is in sleep mode, the phone is in sleep mode and the screen of the phone appears as a black screen. However, the built-in sensing component in the low-power normally-on chip in the mobile phone can sense whether there are predetermined devices around the mobile phone in real-time and with low power consumption.
若用户手持处于休眠状态的手机并移动,以使手机靠近音箱,则手机中的感知组件可以感知到音箱。If the user holds the mobile phone in the sleep state and moves it so that the mobile phone is close to the speaker, the sensing component in the mobile phone can sense the speaker.
在实现方式1中,感知组件可以实时感知音箱的方向和位置,若感知到的方向和距离满足预先设定的条件,则可以唤醒处理器,处理器被唤醒后可以做进一步处理,比如可以弹出相应卡片供用户使用。In implementation mode 1, the sensing component can sense the direction and position of the speaker in real time. If the perceived direction and distance meet the preset conditions, the processor can be awakened. After the processor is awakened, it can perform further processing, such as pop-up The corresponding card is available to the user.
在实现方式2中,一级感知组件在实时感知到音箱后,可以触发手机中的测距模块(二级感知组件)进行精准感知,以感知音箱的方向和位置。若二级感知组件感知到的方向和距离满足预先设定的条件,则可以唤醒处理器,处理器被唤醒后可以做进一步处理,比如可以弹出相应卡片供用户使用。In implementation method 2, after the first-level sensing component senses the speaker in real time, it can trigger the ranging module (secondary sensing component) in the mobile phone to perform precise sensing to sense the direction and position of the speaker. If the direction and distance sensed by the secondary sensing component meet the preset conditions, the processor can be awakened. After being awakened, the processor can perform further processing, such as popping up the corresponding card for the user to use.
在实现方式3中,一级感知组件在实时感知到音箱后,可以唤醒处理器,处理器被唤醒后可以做进一步处理,比如可以控制手机中的测距模块(二级感知组件)进行精准感知,以感知音箱的方向和位置。若感知到的方向和距离满足预先设定的条件,则可以弹出相应卡片供用户使用。In implementation mode 3, the first-level sensing component can wake up the processor after sensing the speaker in real time. After the processor is awakened, it can perform further processing. For example, it can control the ranging module (secondary sensing component) in the mobile phone for precise sensing. , to sense the direction and position of the speaker. If the perceived direction and distance meet the preset conditions, the corresponding card can pop up for the user to use.
手机弹出的卡片中,可以显示与音箱当前使用状态相关的信息,供用户使用。In the card that pops up on the mobile phone, information related to the current usage status of the speaker can be displayed for users to use.
举例来说,假设用户客厅的音箱正在播放音乐(或称歌曲)的音频信息,请参考图3,手机弹出的卡片中,可以显示以下信息:显示用于指示音频播放设备的信息“客厅的音箱”;显示用于指示该音乐所对应的图像信息(该图像信息可以为音乐播放时的背景图片的图像信息)、音乐的名称;用于指示流转到“本机”的控件;用于指示是否开启手机遥控器的控件;用于对音频播放进行控制的控件(如用于控制音乐暂停播放的控件等)。For example, assuming that the speaker in the user's living room is playing audio information of music (or song), please refer to Figure 3. The card that pops up on the mobile phone can display the following information: Display information indicating the audio playback device "Speaker in the living room" "; display the image information corresponding to the music (the image information can be the image information of the background picture when the music is played) and the name of the music; the control used to indicate the flow to "local machine"; used to indicate whether Controls that turn on the mobile phone remote control; controls used to control audio playback (such as controls used to control music pause playback, etc.).
基于卡片中显示的上述信息,用户可以查看到音乐的音频信息是在哪一设备上播放、所播放音乐的名称是什么、所播放音乐对应的图像信息等信息,以及可以执行控制音频流转至本机(即该手机)播放、控制手机遥控器功能的开启或关闭、控制音频暂停播放等控制操作。Based on the above information displayed in the card, the user can view the device on which the audio information of the music is played, the name of the music being played, the image information corresponding to the music being played, and other information, and can control the audio flow to this device. Control operations such as playing on the phone (i.e. the mobile phone), turning on or off the remote control function of the mobile phone, controlling audio to pause playback, etc.
此外,卡片中也可以显示有其他的信息,比如还可显示音箱的名称,用于控制音箱播放效果(比如是否静音、提高/降低音量)的控件,音箱当前的使用状态(比如工作、待机、关机等),用于控制音箱使用状态的控件。In addition, the card can also display other information, such as the name of the speaker, controls for controlling the playback effect of the speaker (such as whether to mute, increase/decrease the volume), and the current usage status of the speaker (such as working, standby, Shut down, etc.), a control used to control the speaker usage status.
请参考图3,卡片在手机屏幕上的显示区域可以占手机屏幕区域的一部分,例如可以占据手机屏幕区域中的中下部区域,手机屏幕区域中的上部区域可以显示有常规信息,比如可以显示地点、时间、日期、天气、手机信号、手机剩余电量等信息,以满足用户对常规信息的获知需求。Please refer to Figure 3. The display area of the card on the mobile phone screen can occupy part of the mobile phone screen area. For example, it can occupy the middle and lower area of the mobile phone screen area. The upper area of the mobile phone screen area can display general information, such as the location. , time, date, weather, mobile phone signal, remaining battery power and other information to meet users’ needs for general information.
在该应用场景示例中,从用户使用体验的角度来看,当用户的处于休眠状态的手机(手机屏幕黑屏)靠近音箱时,手机屏幕自动亮屏,并自动弹出如图3所示的卡片供用户使用,用户使用体验好。 In this application scenario example, from the perspective of user experience, when the user's mobile phone is in a dormant state (the mobile phone screen is black) and is close to the speaker, the mobile phone screen automatically lights up, and the card supply card shown in Figure 3 automatically pops up. Users use it and the user experience is good.
应用场景示例1.2:Application scenario example 1.2:
在另一个实施例中,请参考图4,电子设备为手机401,智能家电为电视402这一大屏设备,且电视处于视频播放状态。In another embodiment, please refer to Figure 4. The electronic device is a mobile phone 401, the smart home appliance is a large-screen device such as a TV 402, and the TV is in a video playback state.
若用户手持处于休眠状态的手机并移动,以使手机靠近电视,则手机中的感知组件可以感知到电视。If the user holds the mobile phone in the dormant state and moves it so that the mobile phone is close to the TV, the sensing component in the mobile phone can sense the TV.
请参考上述实现方式1~3,基于相同的实现原理,若手机感知到的电视的方向和距离满足预先设定的条件,则手机可以弹出相应卡片供用户使用。Please refer to the above implementation methods 1 to 3. Based on the same implementation principle, if the direction and distance of the TV sensed by the mobile phone meet the preset conditions, the mobile phone can pop up the corresponding card for the user to use.
手机弹出的卡片中,可以显示与电视当前使用状态相关的信息,供用户使用。In the card that pops up on the mobile phone, information related to the current usage status of the TV can be displayed for users to use.
举例来说,假设用户客厅的智慧屏(或称电视)正在播放视频的图像,请参考图4,手机弹出的卡片中,可以显示以下信息:显示用于指示视频播放设备的信息“客厅的智慧屏”;显示用于指示该视频的图像信息(该视频的其中一个图像画面,如封面图像等)、视频的名称;用于指示流转到“本机”的控件;用于指示是否开启手机遥控器的控件;用于对视频播放进行控制的控件(如用于控制视频暂停播放的控件等)。For example, assume that the smart screen (or TV) in the user's living room is playing video images. Please refer to Figure 4. The card that pops up on the mobile phone can display the following information: Display information indicating the video playback device "Wisdom in the Living Room" Screen"; displays the image information used to indicate the video (one of the image frames of the video, such as the cover image, etc.), the name of the video; used to indicate the flow to the "local" control; used to indicate whether to turn on the mobile phone remote control Controls of the browser; controls used to control video playback (such as controls used to control video pause playback, etc.).
基于卡片中显示的上述信息,用户可以查看到视频是在哪一设备上播放、播放的视频的名称是什么、所播放视频的图像内容等信息,以及可以执行控制视频流转至本机(即该手机)播放、控制手机遥控器功能的开启或关闭、控制视频暂停播放等控制操作。Based on the above information displayed in the card, the user can check the device on which the video is played, the name of the played video, the image content of the played video and other information, and can control the video flow to the local machine (i.e. the Mobile phone) playback, control the mobile phone remote control function on or off, control the video pause playback and other control operations.
此外,卡片中也可以显示有其他的信息,比如还可显示智慧屏的名称,用于控制视频播放效果(比如是否静音、提高/降低音量)的控件,智慧屏当前的使用状态(比如工作、待机、关机等),用于控制智慧屏使用状态的控件。In addition, the card can also display other information, such as the name of the smart screen, controls for controlling video playback effects (such as whether to mute, increase/decrease the volume), and the current usage status of the smart screen (such as work, Standby, shutdown, etc.), controls used to control the usage status of the smart screen.
与应用场景示例1.2中弹出卡片的方式相同,请参考图4,手机在特定显示区域内弹出卡片时,还可在其他显示区域显示有常规信息。The same way as the pop-up card in application scenario example 1.2, please refer to Figure 4. When the phone pops up the card in a specific display area, it can also display general information in other display areas.
应用场景示例1.3:Application scenario example 1.3:
在又一个实施例中,请参考图5,电子设备为手机501,智能家电为电视502这一大屏设备,且电视处于视频展示状态。In yet another embodiment, please refer to Figure 5. The electronic device is a mobile phone 501, the smart home appliance is a large-screen device such as a TV 502, and the TV is in a video display state.
若用户手持处于休眠状态的手机并移动,以使手机靠近电视,则手机中的感知组件可以感知到电视。If the user holds the mobile phone in the dormant state and moves it so that the mobile phone is close to the TV, the sensing component in the mobile phone can sense the TV.
请参考上述实现方式1~3,基于相同的实现原理,若手机感知到的电视的方向和距离满足预先设定的条件,则手机可以弹出相应卡片供用户使用。Please refer to the above implementation methods 1 to 3. Based on the same implementation principle, if the direction and distance of the TV sensed by the mobile phone meet the preset conditions, the mobile phone can pop up the corresponding card for the user to use.
一些实施例中,手机弹出的卡片中,可以显示与电视当前使用状态相关的信息,供用户使用。请参考图4和图5,电视的当前使用状态不同,所弹出卡片中的信息可以相应不同。In some embodiments, information related to the current usage status of the TV can be displayed in the card that pops up on the mobile phone for the user's use. Please refer to Figure 4 and Figure 5. The current usage status of the TV is different, and the information in the pop-up card can be different accordingly.
如图5所示,假设电视处于视频展示状态,而非正在播放视频,则手机弹出的卡片中,可以显示以下信息:用于指示视频播放设备的信息“客厅的智慧屏”;用于指示是否开启手机遥控器的控件;电视的视频播放记录;若干推荐观看视频的图像信息(该视频的一个图像画面)。As shown in Figure 5, assuming that the TV is in a video display state rather than playing a video, the following information can be displayed in the card that pops up on the mobile phone: information used to indicate the video playback device "smart screen in the living room"; used to indicate whether Turn on the controls of the mobile phone remote control; the video playback record of the TV; and some image information of recommended videos to watch (an image frame of the video).
对于电视的视频播放记录,具体可以显示所播放的各个视频的图像信息(该视频的一个图像画面)及相应的播放量(比如播放时长占总时长的百分比),当前显示界面可以仅显示部分(比如两个)已观看视频的图像信息及相应的播放量,经用户滑动屏幕相应区域可以显示其他已观看视频的图像信息及相应的播放量。For the video playback record of the TV, the image information of each video played (an image frame of the video) and the corresponding playback amount (such as the percentage of the playback time to the total time) can be displayed specifically. The current display interface can only display part ( For example, two) image information and corresponding playback volume of videos that have been watched. The user slides the corresponding area of the screen to display image information and corresponding playback volume of other videos that have been watched.
对于推荐观看视频的图像信息,具体可以显示若干视频的图像信息,当前显示界面可以仅显示部分(比如三个)推荐视频的图像信息,经用户滑动屏幕相应区域可以显示其他推荐视频的图像信息。For the image information of recommended videos to watch, the image information of several videos can be displayed specifically. The current display interface can only display the image information of some (such as three) recommended videos, and the image information of other recommended videos can be displayed by the user sliding the corresponding area of the screen.
基于卡片上显示的上述信息,用户可以查看到相应视频是在哪一设备上播放,查看已观看的视频及相应播放量,查看推荐观看的视频等信息,以及可以执行控制视频开始播放的控制操作。比如,用户可以点击任一已观看视频的图像以使电视继续播放该视频,以及可以点击任一推荐视频的图像以使电视开始播放该视频。Based on the above information displayed on the card, the user can check which device the corresponding video is played on, check the videos that have been watched and the corresponding playback volume, check the recommended videos and other information, and can perform control operations to control the video to start playing. . For example, the user can click on the image of any watched video to cause the TV to continue playing the video, and can click on the image of any recommended video to cause the TV to start playing the video.
与应用场景示例1.2中弹出卡片的方式相同,请参考图5,手机在特定显示区域内弹出卡片时,还可在其他显示区域显示有常规信息。The same way as the pop-up card in application scenario example 1.2, please refer to Figure 5. When the phone pops up the card in a specific display area, it can also display general information in other display areas.
应用场景示例2: Application scenario example 2:
与应用场景示例1中的弹出卡片不同,在本应用场景示例中,电子设备可以在感知到预先设定好的任一种其他设备后,对该其他设备的状态进行控制。比如,若该其他设备处于待机状态,则控制该其他设备开始工作,若该其他设备正在工作,则控制该其他设备待机以暂停工作或者关机以停止工作。Different from the pop-up card in application scenario example 1, in this application scenario example, the electronic device can control the status of any other preset device after sensing the other device. For example, if the other device is in a standby state, the other device is controlled to start working. If the other device is working, the other device is controlled to stand by to suspend working or shut down to stop working.
下面,对本申请实施例提供的感知设备的实现方式进行具体阐述。Next, the implementation of the sensing device provided by the embodiment of the present application will be described in detail.
在一个实施例中,请参考图6,为实现感知设备的目的,电子设备600至少可以包括处理器(比如AP)610、高保真芯片(HIFI芯片)620、传感器处理器(比如SensorHub)630、扬声器640/麦克风650、传感器660(比如惯性测量单元)、无线网络通信技术芯片(WiFi芯片)670。各个组件间的关联关系请参考图6所示箭头。In one embodiment, please refer to Figure 6. To achieve the purpose of sensing the device, the electronic device 600 may at least include a processor (such as an AP) 610, a high-fidelity chip (HIFI chip) 620, a sensor processor (such as a SensorHub) 630, Speaker 640/microphone 650, sensor 660 (such as inertial measurement unit), wireless network communication technology chip (WiFi chip) 670. Please refer to the arrows shown in Figure 6 for the relationship between each component.
其中,高保真芯片620可以为专门处理音频的低功耗芯片;传感器处理器630可以为专门处理传感器数据的低功耗芯片。Among them, the high-fidelity chip 620 can be a low-power chip that specializes in processing audio; the sensor processor 630 can be a low-power chip that specializes in processing sensor data.
其中,无线网络通信技术芯片670和传感器660均可以内置于传感器处理器630中。Among them, both the wireless network communication technology chip 670 and the sensor 660 can be built into the sensor processor 630.
电子设备600基于上述组件,可以通过上述实现方式1~3中的任意一种,来实现对其他设备的感知。Based on the above components, the electronic device 600 can realize perception of other devices through any one of the above implementation modes 1 to 3.
对应上述实现方式1,扬声器640/麦克风650可以实时感知其他设备的方向和位置。高保真芯片620确定感知到的方向和距离是否满足预先设定的条件,若满足即可唤醒处理器610。处理器610被唤醒后可以做进一步处理,比如可以弹出相应卡片供用户使用。Corresponding to the above implementation mode 1, the speaker 640/microphone 650 can sense the direction and position of other devices in real time. The high-fidelity chip 620 determines whether the perceived direction and distance meet preset conditions, and if so, the processor 610 can be awakened. After the processor 610 is awakened, it can perform further processing, for example, it can pop up the corresponding card for the user to use.
对应上述实现方式2,传感器660和无线网络通信技术芯片670可以实时感知其他设备。传感器处理器630根据传感器660和无线网络通信技术芯片670采集到的感知数据,在确定出感知到其他设备时,可以触发高保真芯片620进行精准感知。高保真芯片620基于扬声器640/麦克风650感知该其他设备的方向和位置。高保真芯片620确定感知到的方向和距离是否满足预先设定的条件,若满足即可唤醒处理器610。处理器610被唤醒后可以做进一步处理,比如可以弹出相应卡片供用户使用。Corresponding to the above implementation mode 2, the sensor 660 and the wireless network communication technology chip 670 can sense other devices in real time. Based on the sensing data collected by the sensor 660 and the wireless network communication technology chip 670, the sensor processor 630 can trigger the high-fidelity chip 620 for accurate sensing when it determines that other devices are sensed. The high-fidelity chip 620 senses the direction and position of the other device based on the speaker 640/microphone 650. The high-fidelity chip 620 determines whether the perceived direction and distance meet preset conditions, and if so, the processor 610 can be awakened. After the processor 610 is awakened, it can perform further processing, for example, it can pop up the corresponding card for the user to use.
对应上述实现方式3,传感器660和无线网络通信技术芯片670可以实时感知其他设备。传感器处理器630根据传感器660和无线网络通信技术芯片670采集到的感知数据,在确定出感知到其他设备时,可以唤醒处理器610。处理器610被唤醒后可以做进一步处理,比如可以控制电子设备600中的扬声器640/麦克风650进行精准感知,以感知该其他设备的方向和位置。处理器610确定感知到的方向和距离是否满足预先设定的条件,若满足条件即可弹出相应卡片供用户使用。Corresponding to the above implementation mode 3, the sensor 660 and the wireless network communication technology chip 670 can sense other devices in real time. The sensor processor 630 can wake up the processor 610 when it determines that other devices are sensed based on the sensing data collected by the sensor 660 and the wireless network communication technology chip 670 . After being awakened, the processor 610 can perform further processing. For example, it can control the speaker 640/microphone 650 in the electronic device 600 to perform precise sensing to sense the direction and position of the other device. The processor 610 determines whether the perceived direction and distance meet preset conditions, and if the conditions are met, the corresponding card can be popped up for the user to use.
基于上述内容,以上述实现方式2为例,进一步对感知设备的实现方式进行说明。Based on the above content, the above implementation method 2 is taken as an example to further describe the implementation method of the sensing device.
在另一个实施例中,请参考图7,以电子设备700a对电子设备700b进行感知为例,为实现感知设备的目的,电子设备700a至少可以包括处理器710a、高保真芯片720a、传感器处理器730a、加速度传感器740a/指南针传感器750a、蓝牙芯片760a、扬声器770a/麦克风780a。各个组件间的关联关系请参考图7所示箭头。In another embodiment, please refer to FIG. 7 , taking the electronic device 700a sensing the electronic device 700b as an example. To achieve the purpose of sensing the device, the electronic device 700a may at least include a processor 710a, a high-fidelity chip 720a, and a sensor processor. 730a, acceleration sensor 740a/compass sensor 750a, Bluetooth chip 760a, speaker 770a/microphone 780a. Please refer to the arrows shown in Figure 7 for the relationship between each component.
本实施例中,电子设备在根据蓝牙芯片760a这一无线介质感应到有周围设备存在时,可以进一步确定电子设备是否在移动,例如,可以根据加速度传感器740a或指南针传感器750a来确定电子设备的移动情况。比如,若指南针传感器750a感应到的方向发生变化时,可以确认电子设备在移动,反之若指南针传感器750a感应到的方向未变化,可以确认电子设备静止。In this embodiment, when the electronic device senses the presence of surrounding devices based on the wireless medium of the Bluetooth chip 760a, it can further determine whether the electronic device is moving. For example, the movement of the electronic device can be determined based on the acceleration sensor 740a or the compass sensor 750a. Condition. For example, if the direction sensed by the compass sensor 750a changes, it can be confirmed that the electronic device is moving; conversely, if the direction sensed by the compass sensor 750a does not change, it can be confirmed that the electronic device is stationary.
其他一些实施例中,电子设备也可以根据其他通信方式对周围设备进行感知,例如根据图6所示的无线网络通信技术芯片对周围设备进行感知,本申请对此不作限定。In some other embodiments, the electronic device can also sense surrounding devices based on other communication methods, such as sensing surrounding devices based on the wireless network communication technology chip shown in Figure 6, which is not limited in this application.
其中,处理器710a包括应用处理模块711a;高保真芯片720a包括感知处理模块721a、音频处理算法链722a;传感器处理器730a包括唤醒处理筛选模块731a、唤醒感知筛选模块732a。Among them, the processor 710a includes an application processing module 711a; the high-fidelity chip 720a includes a perception processing module 721a and an audio processing algorithm chain 722a; the sensor processor 730a includes a wake-up processing screening module 731a and a wake-up perception screening module 732a.
一些实施例中,请参考图7,电子设备700a和电子设备700b的结构组成可以相同,使得电子设备700a可以对电子设备700b进行感知,电子设备700b也可以对电子设备700a进行感知,即两个设备可以互相感知。In some embodiments, please refer to FIG. 7 , the electronic device 700a and the electronic device 700b may have the same structural composition, so that the electronic device 700a can sense the electronic device 700b, and the electronic device 700b can also sense the electronic device 700a, that is, two Devices can sense each other.
如此,请参考图7,电子设备700b至少可以包括处理器710b、高保真芯片720b、传感器处 理器730b、加速度传感器740b/指南针传感器750b、蓝牙芯片760b、扬声器770b/麦克风780b。各个组件间的关联关系请参考图7所示箭头。In this case, please refer to Figure 7. The electronic device 700b may at least include a processor 710b, a high-fidelity chip 720b, a sensor processor 730b, acceleration sensor 740b/compass sensor 750b, Bluetooth chip 760b, speaker 770b/microphone 780b. Please refer to the arrows shown in Figure 7 for the relationship between each component.
其中,处理器710b包括应用处理模块711b;高保真芯片720b包括感知处理模块721b、音频处理算法链722b;传感器处理器730b包括唤醒处理筛选模块731b、唤醒感知筛选模块732b。Among them, the processor 710b includes an application processing module 711b; the high-fidelity chip 720b includes a perception processing module 721b and an audio processing algorithm chain 722b; the sensor processor 730b includes a wake-up processing screening module 731b and a wake-up perception screening module 732b.
另一些实施例中,电子设备700a和电子设备700b的结构组成也可以不同,本申请对此不做限定。In other embodiments, the structural composition of the electronic device 700a and the electronic device 700b may also be different, which is not limited in this application.
基于图7所示的设备结构组成,以电子设备700a对电子设备700b进行感知为例,感知设备的实现过程可以如下所述。Based on the device structure shown in Figure 7, taking the electronic device 700a sensing the electronic device 700b as an example, the implementation process of the sensing device can be as follows.
加速度传感器740a/指南针传感器750a、蓝牙芯片760a可以实时感知其他设备,感知到的数据发送至传感器处理器730a。如上所述,示例性的,基于蓝牙芯片760a可以感应是否有周围设备存在,进一步的,可以基于加速度传感器740a或指南针传感器750a确定电子设备是否在移动。The acceleration sensor 740a/compass sensor 750a and the Bluetooth chip 760a can sense other devices in real time, and the sensed data is sent to the sensor processor 730a. As mentioned above, for example, whether there is a surrounding device can be sensed based on the Bluetooth chip 760a, and further, whether the electronic device is moving can be determined based on the acceleration sensor 740a or the compass sensor 750a.
传感器处理器730a中的唤醒感知筛选模块732a根据该感知到的数据,确定是否感知到其他设备,若是即可触发高保真芯片720a进行精准感知。若否,则不触发高保真芯片720a进行精准感知。The wake-up sensing filtering module 732a in the sensor processor 730a determines whether other devices are sensed based on the sensed data, and if so, the high-fidelity chip 720a is triggered for accurate sensing. If not, the high-fidelity chip 720a is not triggered for accurate sensing.
高保真芯片720a可以触发扬声器770a/麦克风780a感知该其他设备的方向和位置,感知到的音频信号发送至高保真芯片720a。高保真芯片720a中的音频处理算法链722a处理该音频信号,处理结果发送给感知处理模块721a。感知处理模块721a根据该处理结果,确定感知到的方向和距离,并将确定出的方向和距离发送给传感器处理器730a。The high-fidelity chip 720a can trigger the speaker 770a/microphone 780a to sense the direction and position of the other device, and the perceived audio signal is sent to the high-fidelity chip 720a. The audio processing algorithm chain 722a in the high-fidelity chip 720a processes the audio signal, and the processing result is sent to the perceptual processing module 721a. The perception processing module 721a determines the perceived direction and distance based on the processing result, and sends the determined direction and distance to the sensor processor 730a.
传感器处理器730a中的唤醒处理筛选模块731a确定感知到的方向和距离是否满足预先设定的条件,若满足即可唤醒处理器710a。若否,则不唤醒处理器710a。The wake-up processing filtering module 731a in the sensor processor 730a determines whether the perceived direction and distance meet preset conditions, and if so, the processor 710a can be woken up. If not, processor 710a is not awakened.
处理器710a被唤醒后可以做进一步处理,比如可以弹出相应卡片供用户使用。After being awakened, the processor 710a can perform further processing, for example, the corresponding card can be popped up for the user to use.
请参考图7,本实施例通过将超声感知模块(扬声器770a/麦克风780a)下沉到高保真芯片这一低功耗常开小核上运行,并结合支持三方应用定制的处理器唤醒条件(该条件用于唤醒处理器710a)来按需唤醒处理器,能够实现低功耗的感知能力,支持电子设备在休眠情况下实时低功耗的感知周围设备的方位。Please refer to Figure 7. This embodiment sinks the ultrasonic sensing module (speaker 770a/microphone 780a) to run on a high-fidelity chip, a low-power normally-on small core, and combines it with processor wake-up conditions that support customization of third-party applications ( This condition is used to wake up the processor 710a) on demand, which can realize low-power sensing capabilities and support the electronic device to sense the orientation of the surrounding devices in real-time and with low power consumption when sleeping.
此外,本实施例还可基于分级感知管理策略进行感知,具体为先基于蓝牙芯片、加速度传感器等进行一级感知,在满足一定的条件(比如周围存在其他设备、且电子设备在移动)下,再触发高保真芯片中的高精度感知模块进行进一步的方位感知,通过两级感知可以实现更低功耗的感知能力。In addition, this embodiment can also perform sensing based on a hierarchical sensing management strategy. Specifically, first-level sensing is performed based on Bluetooth chips, acceleration sensors, etc., and when certain conditions are met (such as there are other devices around and the electronic device is moving), The high-precision sensing module in the high-fidelity chip is then triggered for further orientation sensing. Through two-level sensing, lower power consumption sensing capabilities can be achieved.
本实施例基于超声感知模块进行高精度感知定位。在其他的实施例中,也可以采用其他方式进行高精度感知定位。比如,也可以采用脉冲的方式,基于电子设备中的UWB(Ultra Wide Band,超宽带)芯片进行精准定位。This embodiment performs high-precision sensing positioning based on the ultrasonic sensing module. In other embodiments, other methods may also be used to perform high-precision sensing positioning. For example, pulses can also be used to perform precise positioning based on UWB (Ultra Wide Band) chips in electronic equipment.
下面,对本申请实施例提供的感知设备的实现方式进行具体阐述。Next, the implementation of the sensing device provided by the embodiment of the present application will be described in detail.
考虑到用户通过电子设备(如手机)查看其他设备的信息或控制其他设备时,通常会满足预设的卡片弹出条件,故而可以通过判断是否满足该卡片弹出条件,来确定电子设备是否弹出相应卡片,以供用户通过卡片内容查看该其他设备的信息或控制该其他设备。Considering that when users check information of other devices or control other devices through electronic devices (such as mobile phones), the preset card pop-up conditions are usually met. Therefore, it can be determined whether the electronic device pops up the corresponding card by judging whether the card pop-up conditions are met. , so that the user can view the information of the other device or control the other device through the card content.
示例性的,卡片弹出条件可以包括以下子条件1~3中的部分或者全部:For example, the card pop-up condition may include some or all of the following sub-conditions 1 to 3:
子条件1:其他设备在用户及电子设备附近;Sub-condition 1: Other devices are near the user and the electronic device;
子条件2:用户提前手持电子设备走向该其他设备(或者用户将电子设备靠近该其他设备);Sub-condition 2: The user holds the electronic device and walks towards the other device in advance (or the user brings the electronic device close to the other device);
子条件3:该其他设备在用户及电子设备的特定角度范围内和特定距离范围内。Sub-condition 3: The other device is within a specific angle range and a specific distance range between the user and the electronic device.
考虑到用户周围存在其他设备时,存在用户使用电子设备查看该其他设备的信息或控制该其他设备的可能,故而,可选的,可以先确认用户周围是否存在其他设备,若存在,才进一步感知用户是否在靠近该其他设备。Considering that when there are other devices around the user, it is possible for the user to use electronic devices to view information about the other devices or to control the other devices. Therefore, optionally, you can first confirm whether there are other devices around the user, and if so, then further detect Whether the user is near the other device.
其中,可以通过感知用户使用的电子设备是否在移动,来进一步确认是否存在用户查看或控制该其他设备的可能。若在移动,可以默认为用户在靠近该其他设备,即存在该可能,若未移动,可以默认为用户没有在靠近该其他设备,即不存在该可能。 Among them, it can be further confirmed whether there is a possibility for the user to view or control other devices by sensing whether the electronic device used by the user is moving. If the device is moving, it can be assumed that the user is close to the other device, that is, the possibility exists. If the device is not moving, it can be assumed that the user is not close to the other device, that is, the possibility does not exist.
示例性的,卡片弹出条件可以同时包括上述子条件1-3,例如,电子设备可以通过先判断是否满足子条件1和子条件2,再判断是否满足子条件3,无需实时执行子条件3相关的判断操作。For example, the card ejection condition may include the above-mentioned sub-conditions 1-3 at the same time. For example, the electronic device may first determine whether sub-condition 1 and sub-condition 2 are met, and then determine whether sub-condition 3 is met, without executing the steps related to sub-condition 3 in real time. Judgment operation.
考虑到处理器执行子条件3相关的判断操作时功耗高,且不一定始终满足子条件3,故而可以由低功耗组件、而非由处理器来执行子条件3相关的判断操作,以避免反复、低效的激活处理器。Considering that the processor consumes high power when executing the judgment operations related to sub-condition 3, and may not always satisfy sub-condition 3, the judgment operations related to sub-condition 3 can be performed by low-power components instead of the processor, so as to Avoid repeated, inefficient activation of the processor.
下面,以上述实现方式2的实现逻辑为例,对本实施例的设备感知实现过程进行说明。Next, the device awareness implementation process of this embodiment will be described, taking the implementation logic of the above implementation mode 2 as an example.
在一个实施例中,请参考图8,图8示出了一种电子设备基于两级感知以感知设备的时序图,该时序图涉及到电子设备中的无线网络通信技术芯片810、传感器处理器820和高保真芯片830的操作。In one embodiment, please refer to Figure 8. Figure 8 shows a timing diagram for an electronic device to sense the device based on two-level sensing. The timing diagram involves the wireless network communication technology chip 810 and the sensor processor in the electronic device. 820 and Hi-Fi chip 830 operation.
请参考图8,无线网络通信技术芯片810用于感知周围是否存在其他设备,在感知到周围存在其他设备的情况下,将感知到周围设备的通知信息发送给传感器处理器820。Referring to FIG. 8 , the wireless network communication technology chip 810 is used to sense whether there are other devices around, and when sensing the presence of other devices around, send notification information of the surrounding devices to the sensor processor 820 .
传感器处理器820响应于通知信息,感知电子设备是否在移动,在感知到电子设备在移动时触发高保真芯片830进行精准感知。The sensor processor 820 responds to the notification information, senses whether the electronic device is moving, and triggers the high-fidelity chip 830 for accurate sensing when it senses that the electronic device is moving.
高保真芯片830响应于进行精准感知的触发操作,启动超声感知模块进行超声感知操作,并将超声感知结果上报给传感器处理器820。In response to the triggering operation for precise sensing, the high-fidelity chip 830 starts the ultrasonic sensing module to perform the ultrasonic sensing operation, and reports the ultrasonic sensing results to the sensor processor 820 .
传感器处理器820后续可以根据上报来的超声感知结果,确定是否唤醒处理器以弹出卡片。The sensor processor 820 may subsequently determine whether to wake up the processor to eject the card based on the reported ultrasonic sensing results.
请参考图8所示内容,可以先进行一级感知,再进行二级精准感知。Please refer to the content shown in Figure 8. You can perform first-level perception and then second-level precise perception.
对于一级感知,具体可以通过传感器处理器820中的蓝牙芯片、无线网络通信技术芯片(WiFi芯片)等无线介质,来感知电子设备周围是否有其他设备,以及可以通过传感器处理器820中的陀螺仪传感器、加速度传感器、指南针传感器等惯性测量单元,来感知电子设备是否在移动(可以等同于用户是否在移动以靠近该其他设备)。For first-level sensing, specifically, wireless media such as Bluetooth chips and wireless network communication technology chips (WiFi chips) in the sensor processor 820 can be used to sense whether there are other devices around the electronic device, and the gyroscope in the sensor processor 820 can be used. Inertial measurement units such as instrument sensors, acceleration sensors, and compass sensors are used to sense whether the electronic device is moving (which can be equivalent to whether the user is moving to get closer to the other device).
可行地,无线介质和惯性测量单元可以内置于传感器处理器820中,也可以安装在传感器处理器820上、或者安装在传感器处理器820外部,并与传感器处理器820相连,本实施例对此不作限定。Feasibly, the wireless medium and the inertial measurement unit can be built into the sensor processor 820, installed on the sensor processor 820, or installed outside the sensor processor 820, and connected to the sensor processor 820. In this embodiment, Not limited.
对于二级精准感知,若一级感知结果为周围有其他设备且电子设备在移动,则可以触发下沉在高保真芯片830中的超声感知模块进行精准感知。For the second-level precise sensing, if the first-level sensing result is that there are other devices around and the electronic device is moving, the ultrasonic sensing module sunk in the high-fidelity chip 830 can be triggered for precise sensing.
精准感知结果可以返回给传感器处理器820,以便于传感器处理器820可以基于传感器处理器820与处理器间的用于唤醒处理器的通信通道,来执行对处理器的按需唤醒。例如,处理器可以控制电子设备亮屏并弹出卡片。The precise sensing result can be returned to the sensor processor 820, so that the sensor processor 820 can perform on-demand wake-up of the processor based on the communication channel between the sensor processor 820 and the processor for waking up the processor. For example, the processor can control the electronic device to turn on its screen and eject cards.
在可行的另一种实现方式中,也可以在高保真芯片830与处理器间建立用于唤醒处理器的通信通道。如此,高保真芯片830无需返回精准感知结果给传感器处理器820,而可以直接处理该精准感知结果,并通过该通信通道来执行对处理器的按需唤醒。In another possible implementation, a communication channel for waking up the processor can also be established between the high-fidelity chip 830 and the processor. In this way, the high-fidelity chip 830 does not need to return the precise sensing results to the sensor processor 820, but can directly process the precise sensing results and perform on-demand wake-up of the processor through the communication channel.
在另一个实施例中,请参考图9,图9示出了一种电子设备在感知到其他设备后唤醒处理器弹出卡片的时序图,该时序图涉及到电子设备中的高保真芯片910、传感器处理器920和处理器930。In another embodiment, please refer to FIG. 9 , which shows a timing diagram in which an electronic device wakes up a processor to eject a card after sensing other devices. The timing diagram involves the high-fidelity chip 910 and 910 in the electronic device. Sensor processor 920 and processor 930.
高保真芯片910将执行超声感知操作得到的超声感知结果上报给传感器处理器920。The high-fidelity chip 910 reports the ultrasonic sensing results obtained by performing the ultrasonic sensing operation to the sensor processor 920 .
传感器处理器920根据上报来的超声感知结果,确定是否满足唤醒处理器的条件。在确定出满足唤醒处理器的条件时,发送唤醒处理器的指令。The sensor processor 920 determines whether the conditions for waking up the processor are met based on the reported ultrasonic sensing results. When it is determined that the conditions for waking up the processor are met, an instruction to wake up the processor is sent.
处理器930响应于唤醒处理器的指令,控制电子设备亮屏并弹出卡片,以供用户使用。比如用户可以根据卡片内容,查看被感知设备的信息或控制该设备。In response to the instruction to wake up the processor, the processor 930 controls the electronic device to turn on the screen and eject the card for use by the user. For example, the user can view the information of the sensed device or control the device based on the card content.
在又一个实施例中,请参考图10,图10示出了一种电子设备基于超声感知方式感知设备的时序图,该时序图涉及到电子设备中的麦克风1010和音频处理算法链1020。示例性地,图10可以为高保真芯片的内部时序的时序图。In yet another embodiment, please refer to FIG. 10 , which shows a timing diagram of an electronic device sensing the device based on ultrasonic sensing. The timing diagram involves the microphone 1010 and the audio processing algorithm chain 1020 in the electronic device. For example, FIG. 10 may be a timing diagram of the internal timing of a high-fidelity chip.
麦克风1010将采集到的超声感知信息发送给音频处理算法链1020,音频处理算法链1020调用超声算法处理超声感知信息,得到超声感知结果,超声感知结果包括距离和方向。The microphone 1010 sends the collected ultrasonic sensing information to the audio processing algorithm chain 1020. The audio processing algorithm chain 1020 calls the ultrasonic algorithm to process the ultrasonic sensing information to obtain ultrasonic sensing results, which include distance and direction.
上述实施例可采用超声技术,基于超声感知模块进行高精度感知定位。在其他的实施例中, 也可以采用其他方式进行高精度感知定位。比如,也可以采用脉冲的方式,基于电子设备中的UWB芯片进行精准定位。The above embodiments can use ultrasonic technology to perform high-precision sensing positioning based on the ultrasonic sensing module. In other embodiments, Other methods can also be used for high-precision sensing positioning. For example, pulses can also be used to perform precise positioning based on UWB chips in electronic devices.
图11是本申请一个实施例提供的一种感知设备的方法的流程示意图,该方法可以包括步骤1101~步骤1106:Figure 11 is a schematic flowchart of a method for sensing a device according to an embodiment of the present application. The method may include steps 1101 to 1106:
步骤1101,感知电子设备的周围是否存在其他设备,若是,执行步骤1102,否则结束当前流程。Step 1101: Sense whether there are other devices around the electronic device. If so, execute step 1102; otherwise, end the current process.
可以使用电子设备中的蓝牙芯片、无线网络通信技术芯片等无线介质,来发现电子设备周围是否有其他设备的存在。Wireless media such as Bluetooth chips and wireless network communication technology chips in electronic devices can be used to discover whether there are other devices around the electronic device.
该蓝牙芯片可以为BLE(Bluetooth Low Energe,蓝牙低功耗)芯片。The Bluetooth chip can be a BLE (Bluetooth Low Energy) chip.
步骤1102,确定其他设备和电子设备是否为同一用户账号下的设备,若是,执行步骤1103,否则结束当前流程。Step 1102: Determine whether the other device and the electronic device are devices under the same user account. If so, execute step 1103; otherwise, end the current process.
步骤1103,感知电子设备是否在移动,若是,执行步骤1104,否则结束当前流程。Step 1103: Sense whether the electronic device is moving. If so, execute step 1104. Otherwise, end the current process.
可以使用电子设备中的惯性测量单元(nertial Measurement Unit,IMU)、加速度传感器、指南针传感器等中的一个或多个来感知电子设备的移动。The movement of the electronic device can be sensed using one or more of an inertial measurement unit (IMU), an acceleration sensor, a compass sensor, etc. in the electronic device.
比如,若指南针传感器采集到的方向信息发生变化,可以认为电子设备发生了移动。For example, if the direction information collected by the compass sensor changes, it can be considered that the electronic device has moved.
步骤1104,进行超声感知操作,得到超声感知结果。Step 1104: Perform an ultrasonic sensing operation to obtain an ultrasonic sensing result.
若电子设备在移动,可以唤醒超声感知模块,由超声感知模块执行超声感知操作以实现方位(方向和位置)感知,超声感知模块在被唤醒之前可以处于休眠状态。If the electronic device is moving, the ultrasonic sensing module can be awakened, and the ultrasonic sensing module performs ultrasonic sensing operations to realize orientation (direction and position) sensing. The ultrasonic sensing module can be in a dormant state before being awakened.
超声感知模块可以内置于电子设备的高保真芯片中。Ultrasound sensing modules can be built into high-fidelity chips in electronic devices.
本实施例可采用超声技术,基于超声感知模块进行高精度感知定位。在其他的实施例中,也可以采用其他方式进行高精度感知定位。比如,也可以采用脉冲的方式,基于电子设备中的UWB芯片进行精准定位。In this embodiment, ultrasonic technology can be used to perform high-precision sensing positioning based on the ultrasonic sensing module. In other embodiments, other methods may also be used to perform high-precision sensing positioning. For example, pulses can also be used to perform precise positioning based on UWB chips in electronic devices.
步骤1105,根据超声感知结果,确定是否满足预设的处理器唤醒条件,若是,执行步骤1106,否则结束当前流程。Step 1105: Determine whether the preset processor wake-up condition is met based on the ultrasonic sensing result. If so, execute step 1106; otherwise, end the current process.
超声感知结果可以包括距离和方向,距离可以表示为电子设备与其他设备间的距离,方向可以表示为其他设备相对于电子设备的方向。The ultrasonic sensing results may include distance and direction. The distance may be expressed as the distance between the electronic device and other devices, and the direction may be expressed as the direction of other devices relative to the electronic device.
对应地,预设的处理器唤醒条件可以包括:超声感知结果中的距离在相应的距离范围内,超声感知结果中的方向在相应的方向范围内。Correspondingly, the preset processor wake-up condition may include: the distance in the ultrasonic sensing result is within the corresponding distance range, and the direction in the ultrasonic sensing result is within the corresponding direction range.
如此,可以限定在其他设备距离电子设备较近,且与电子设备偏移较小角度时,可以唤醒处理器,以保证对处理器的精准唤醒。In this way, the processor can be woken up only when other devices are close to the electronic device and deviate from the electronic device at a small angle to ensure accurate wake-up of the processor.
可行地,该处理器唤醒条件可以为对应于该其他设备的唤醒条件。用户可以通过各个其他设备的应用界面,来按需定制各个其他设备对应的处理器唤醒条件(或称唤醒策略)。Feasibly, the processor wake-up condition may be a wake-up condition corresponding to the other device. Users can customize the processor wake-up conditions (or wake-up strategies) corresponding to each other device as needed through the application interface of each other device.
步骤1106,唤醒电子设备的处理器,其中,处理器用于在被唤醒后控制电子设备弹出卡片,卡片显示内容包括与其他设备的使用状态相关的信息。Step 1106: Wake up the processor of the electronic device, where the processor is used to control the electronic device to eject a card after being awakened. The card display content includes information related to the usage status of other devices.
基于本实施例提供的方法,电子设备在内部处理器处于休眠状态的情况下,可以结合电子设备中低功耗传感器处理器内置的无线介质,来实时发现电子设备周围是否有其他设备存在,以及结合电子设备中的惯性测量单元,来感知电子设备是否在移动,以及判断电子设备和其他设备是否为同账号下的设备,若以上判断结果均为是,则通知下沉在电子设备的低功耗高保真芯片中的超声感知模块进行方位感知。方位感知信息可以传递回传感器处理器,传感器处理器判断方位感知信息是否满足三方应用定制的唤醒策略,若满足即可唤醒电子设备的处理器。处理器被唤醒后进一步进行消息的处理,比如弹出卡片供用户使用。Based on the method provided in this embodiment, when the internal processor of the electronic device is in a dormant state, the electronic device can combine the built-in wireless medium of the low-power sensor processor in the electronic device to discover in real time whether there are other devices around the electronic device, and Combined with the inertial measurement unit in the electronic device, it can sense whether the electronic device is moving, and determine whether the electronic device and other devices are devices under the same account. If the above judgment results are all yes, the low-power device sinking in the electronic device will be notified. The ultrasonic sensing module in the high-fidelity chip is used for orientation sensing. The orientation sensing information can be passed back to the sensor processor. The sensor processor determines whether the orientation sensing information satisfies the wake-up strategy customized by the third-party application. If so, it can wake up the processor of the electronic device. After the processor is awakened, it further processes the message, such as popping up a card for the user to use.
如图11所示,电子设备在感应到周边存在其他设备之后,可以先确定其他设备和电子设备是否为同一用户账号下的设备,若是同一用户账号下的设备,再感知电子设备是否在移动。As shown in Figure 11, after sensing the presence of other devices in the surrounding area, the electronic device can first determine whether the other devices and the electronic device are devices under the same user account. If they are devices under the same user account, then sense whether the electronic device is moving.
在其他可行的实现方式中,电子设备在感应到周边存在其他设备之后,可以先感知电子设备是否在移动,若在移动,再确定其他设备和电子设备是否为同一用户账号下的设备。In other feasible implementation methods, after sensing the presence of other devices in the surrounding area, the electronic device may first sense whether the electronic device is moving, and if so, determine whether the other devices and the electronic device are devices under the same user account.
在已有相关技术方案中,电子设备在休眠状态下靠近其他设备时,无法感知其他设备的方位, 使得电子设备无法自动弹出卡片供用户使用。与已有相关技术方案不同,基于本实施例的实现,电子设备在休眠状态下,仍可实时低功耗的测量休眠设备与周围设备的方位,一旦发现休眠设备按规靠近其他设备,即可自动弹出卡片供用户使用。In existing related technical solutions, when an electronic device is close to other devices in a sleep state, it cannot sense the orientation of other devices. This prevents the electronic device from automatically ejecting the card for the user to use. Different from existing related technical solutions, based on the implementation of this embodiment, the electronic device can still measure the orientation of the dormant device and surrounding devices in real time and with low power consumption in the dormant state. Once the dormant device is found to be close to other devices as required, it can Cards automatically pop up for users to use.
需要说明的是,本申请实施例的感知设备的方法并不局限于图11所示内容,比如在其他可行地实现方式中,也可以不执行上述步骤1102和/或步骤1103,或者这两个步骤也可以不在步骤1104之前执行。本申请对此均不作限定。It should be noted that the method of sensing the device in the embodiment of the present application is not limited to the content shown in Figure 11. For example, in other feasible implementations, the above step 1102 and/or step 1103, or both of them, may not be performed. The step may not be performed before step 1104. This application does not limit this.
比如,若不执行这两个步骤,则在步骤1101判断为“是”后可以直接执行步骤1104。若不执行步骤1102,则在步骤1101判断为“是”后可以直接执行步骤1103。若不执行步骤1103,则在步骤1102判断为“是”后可以直接执行步骤1104。For example, if these two steps are not executed, step 1104 can be executed directly after the determination in step 1101 is "yes". If step 1102 is not executed, step 1103 can be executed directly after the determination in step 1101 is "yes". If step 1103 is not executed, step 1104 can be executed directly after the determination in step 1102 is "yes".
再比如,步骤1102可以不在步骤1103之前执行,而在步骤1106之前执行,即若步骤1105判断为“是”则执行步骤1102,进而若步骤1102判断为“是”才执行步骤1106。For another example, step 1102 may not be executed before step 1103, but may be executed before step 1106. That is, if step 1105 is determined to be "yes", step 1102 will be executed, and if step 1102 is determined to be "yes", step 1106 will be executed.
图12是本申请另一实施例提供的另一种感知设备的方法的流程示意图,该方法包括步骤1201~步骤1209:Figure 12 is a schematic flowchart of another method of sensing a device provided by another embodiment of the present application. The method includes steps 1201 to 1209:
步骤1201,传感器处理器中的唤醒感知筛选模块根据蓝牙芯片的感知数据,感知电子设备的周围是否存在其他设备,若是,执行步骤1202,否则结束当前流程。Step 1201: The wake-up sensing screening module in the sensor processor senses whether there are other devices around the electronic device based on the sensing data of the Bluetooth chip. If so, step 1202 is executed. Otherwise, the current process ends.
步骤1202,唤醒感知筛选模块确定其他设备和电子设备是否为同一用户账号下的设备,若是,执行步骤1203,否则结束当前流程。Step 1202: The wake-up awareness filtering module determines whether the other device and the electronic device are devices under the same user account. If so, execute step 1203; otherwise, end the current process.
步骤1203,唤醒感知筛选模块根据加速度传感器/指南针传感器的感知数据,感知电子设备是否在移动,若是,执行步骤1204,否则结束当前流程。Step 1203: The wake-up sensing screening module senses whether the electronic device is moving based on the sensing data of the acceleration sensor/compass sensor. If so, execute step 1204; otherwise, end the current process.
步骤1204,唤醒感知筛选模块触发高保真芯片进行超声感知操作。Step 1204: Wake up the sensing screening module to trigger the high-fidelity chip to perform ultrasonic sensing operations.
本实施例可采用超声技术,基于超声感知模块进行高精度感知定位。在其他的实施例中,也可以采用其他方式进行高精度感知定位。比如,也可以采用脉冲的方式,基于电子设备中的UWB芯片进行精准定位。In this embodiment, ultrasonic technology can be used to perform high-precision sensing positioning based on the ultrasonic sensing module. In other embodiments, other methods may also be used to perform high-precision sensing positioning. For example, pulses can also be used to perform precise positioning based on UWB chips in electronic devices.
步骤1205,高保真芯片中的音频算法处理链处理扬声器/麦克风的感知数据,得到处理结果。Step 1205: The audio algorithm processing chain in the high-fidelity chip processes the perceptual data of the speaker/microphone and obtains the processing result.
步骤1206,高保真芯片中的感知处理模块对处理结果进行处理,得到超声感知结果。Step 1206: The perception processing module in the high-fidelity chip processes the processing results to obtain ultrasonic perception results.
步骤1207,传感器处理器中的唤醒处理筛选模块根据超声感知结果,确定是否满足预设的处理器唤醒条件,若是,执行步骤1208,否则结束当前流程。Step 1207: The wake-up processing screening module in the sensor processor determines whether the preset processor wake-up conditions are met based on the ultrasonic sensing results. If so, step 1208 is executed. Otherwise, the current process ends.
步骤1208,唤醒处理筛选模块唤醒电子设备的处理器。Step 1208: The wake-up processing and filtering module wakes up the processor of the electronic device.
步骤1209,处理器中的应用处理模块在处理器被唤醒后,控制电子设备弹出卡片,卡片显示内容包括与其他设备的使用状态相关的信息。Step 1209: After the processor is awakened, the application processing module in the processor controls the electronic device to pop up a card, and the card display content includes information related to the usage status of other devices.
如图12所示,电子设备在感应到周边存在其他设备之后,可以先确定其他设备和电子设备是否为同一用户账号下的设备,若是同一用户账号下的设备,再感知电子设备是否在移动。As shown in Figure 12, after sensing the presence of other devices in the surrounding area, the electronic device can first determine whether the other devices and the electronic device are devices under the same user account. If they are devices under the same user account, then sense whether the electronic device is moving.
在其他可行的实现方式中,电子设备在感应到周边存在其他设备之后,可以先感知电子设备是否在移动,若在移动,再确定其他设备和电子设备是否为同一用户账号下的设备。In other feasible implementation methods, after sensing the presence of other devices in the surrounding area, the electronic device may first sense whether the electronic device is moving, and if so, determine whether the other devices and the electronic device are devices under the same user account.
需要说明的是,本申请实施例的感知设备的方法并不局限于图12所示内容,比如在其他可行地实现方式中,也可以不执行上述步骤1202和/或步骤1203,或者这两个步骤也可以不在步骤1204之前执行。本申请对此均不作限定。It should be noted that the method of sensing the device in the embodiment of the present application is not limited to the content shown in Figure 12. For example, in other feasible implementations, the above step 1202 and/or step 1203, or both of them, may not be performed. The step may not be performed before step 1204. This application does not limit this.
比如,若不执行这两个步骤,则在步骤1201判断为“是”后可以直接执行步骤1204。若不执行步骤1202,则在步骤1201判断为“是”后可以直接执行步骤1203。若不执行步骤1203,则在步骤1202判断为“是”后可以直接执行步骤1204。For example, if these two steps are not performed, step 1204 can be performed directly after the determination in step 1201 is "yes". If step 1202 is not executed, step 1203 can be executed directly after the determination in step 1201 is "yes". If step 1203 is not executed, step 1204 can be executed directly after the determination in step 1202 is "yes".
再比如,步骤1202可以不在步骤1203之前执行,而在步骤1208之前执行,即若步骤1207判断为“是”则执行步骤1202,进而若步骤1202判断为“是”才执行步骤1208。For another example, step 1202 may not be executed before step 1203, but may be executed before step 1208. That is, if step 1207 is determined to be "yes", step 1202 will be executed, and if step 1202 is determined to be "yes", step 1208 will be executed.
在本发明所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如,多个单元或组件可以结合或者可 以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,可以是电性、机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined. or can to integrate into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。A unit described as a separate component may or may not be physically separate. A component shown as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
本申请实施例还提供一种电子芯片,该电子芯片包括:处理器,其用于执行存储器中存储的计算机程序指令,其中,当该计算机程序指令被该处理器执行时,触发任务处理芯片执行上述实施例中电子设备100执行的步骤。Embodiments of the present application also provide an electronic chip. The electronic chip includes: a processor configured to execute computer program instructions stored in a memory. When the computer program instructions are executed by the processor, the task processing chip is triggered to execute. The steps performed by the electronic device 100 in the above embodiment.
本申请实施例还提供一种电子设备,可以包括:处理器,处理器用于运行存储器中存储的计算机程序,以使得电子设备实现上述实施例中电子设备100执行的各个步骤。本申请实施例提供的电子设备的一种可行的产品硬件结构可以参见图5所示的硬件结构示意图。An embodiment of the present application also provides an electronic device, which may include: a processor. The processor is configured to run a computer program stored in a memory, so that the electronic device implements various steps performed by the electronic device 100 in the above embodiment. A feasible product hardware structure of the electronic device provided by the embodiment of the present application can be seen in the schematic hardware structure diagram shown in FIG. 5 .
具体的,在本申请一实施例中,一个或多个计算机程序被存储在上述存储器中,该一个或多个计算机程序包括指令,当该指令被上述设备执行时,使得上述设备执行本申请实施例所述的方法步骤。Specifically, in an embodiment of the present application, one or more computer programs are stored in the above-mentioned memory. The one or more computer programs include instructions. When the instructions are executed by the above-mentioned device, the above-mentioned device executes the implementation of the present application. The method steps described in the example.
具体的,在本申请一实施例中,电子设备的处理器可以是片上装置SOC,该处理器中可以包括中央处理器(Central Processing Unit,CPU),还可以进一步包括其他类型的处理器。具体的,在本申请一实施例中,电子设备的处理器可以是PWM控制芯片。Specifically, in an embodiment of the present application, the processor of the electronic device may be an on-chip device SOC, and the processor may include a central processing unit (Central Processing Unit, CPU), and may further include other types of processors. Specifically, in an embodiment of the present application, the processor of the electronic device may be a PWM control chip.
具体的,在本申请一实施例中,涉及的处理器可以例如包括CPU、DSP、微控制器或数字信号处理器,还可包括GPU、嵌入式神经网络处理器(Neural-network Process Units,NPU)和图像信号处理器(Image Signal Processing,ISP),该处理器还可包括必要的硬件加速器或逻辑处理硬件电路,如ASIC,或一个或多个用于控制本申请技术方案程序执行的集成电路等。此外,处理器可以具有操作一个或多个软件程序的功能,软件程序可以存储在存储介质中。Specifically, in an embodiment of the present application, the processor involved may include, for example, a CPU, a DSP, a microcontroller or a digital signal processor, and may also include a GPU, embedded neural network processor (Neural-network Process Units, NPU). ) and an image signal processor (Image Signal Processing, ISP), which may also include necessary hardware accelerators or logic processing hardware circuits, such as ASIC, or one or more integrated circuits used to control the execution of the program of the technical solution of this application wait. Additionally, the processor may have functionality to operate one or more software programs, which may be stored in a storage medium.
具体的,在本申请一实施例中,电子设备的存储器可以是只读存储器(read-only memory,ROM)、可存储静态信息和指令的其它类型的静态存储设备、随机存取存储器(random access memory,RAM)或可存储信息和指令的其它类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备,或者还可以是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何计算机可读介质。Specifically, in an embodiment of the present application, the memory of the electronic device may be a read-only memory (ROM), other types of static storage devices that can store static information and instructions, or a random access memory (random access memory). memory, RAM) or other types of dynamic storage devices that can store information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory, CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can also be used to carry or Any computer-readable medium that stores desired program code in the form of instructions or data structures and that can be accessed by a computer.
具体的,在本申请一实施例中,处理器可以和存储器可以合成一个处理装置,更常见的是彼此独立的部件,处理器用于执行存储器中存储的程序代码来实现本申请实施例所述方法。具体实现时,该存储器也可以集成在处理器中,或者,独立于处理器。Specifically, in an embodiment of the present application, the processor and the memory can be combined into a processing device, which is more commonly independent of each other. The processor is used to execute the program code stored in the memory to implement the method described in the embodiment of the present application. . During specific implementation, the memory can also be integrated in the processor, or independent of the processor.
进一步的,本申请实施例阐明的设备、装置、模块,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。Furthermore, the equipment, devices, and modules described in the embodiments of this application may be implemented by computer chips or entities, or by products with certain functions.
本领域内的技术人员应明白,本申请实施例可提供为方法、装置、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质上实施的计算机程序产品的形式。Those skilled in the art should understand that embodiments of the present application may be provided as methods, devices, or computer program products. Thus, the invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the invention may take the form of a computer program product embodied on one or more computer-usable storage media embodying computer-usable program code therein.
本申请实施例还提供一种计算机存储介质,包括计算机程序,当计算机程序在电子设备上运行时,使得电子设备执行上述实施例中电子设备100执行的步骤。An embodiment of the present application also provides a computer storage medium, including a computer program. When the computer program is run on an electronic device, the electronic device causes the electronic device to perform the steps performed by the electronic device 100 in the above embodiment.
本申请实施例还提供一种计算机程序产品,该计算机程序产品包括计算机程序,当计算机程序在计算机上运行时,使得计算机执行上述实施例中电子设备100执行的步骤。An embodiment of the present application also provides a computer program product. The computer program product includes a computer program. When the computer program is run on a computer, it causes the computer to perform the steps performed by the electronic device 100 in the above embodiment.
本申请中的实施例描述是参照根据本申请实施例的方法、设备(装置)、和计算机程序产品 的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The description of embodiments in the present application refers to methods, apparatuses (devices), and computer program products according to embodiments of the present application. described with flow charts and/or block diagrams. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a use A device for realizing the functions specified in one process or multiple processes of the flowchart and/or one block or multiple blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions The device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device. Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.
应理解,本申请实施例中的术语“单元”可以通过软件和/或硬件形式实现,对此不作具体限定。例如,“单元”可以是实现上述功能的软件程序、硬件电路或二者结合。硬件电路可能包括应用特有集成电路(application specific integrated circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。It should be understood that the term "unit" in the embodiments of this application can be implemented in the form of software and/or hardware, and there is no specific limitation on this. For example, a "unit" may be a software program, a hardware circuit, or a combination of both that implements the above functions. Hardware circuits may include application specific integrated circuits (ASICs), electronic circuits, and processors (such as shared processors, proprietary processors, or group processors) for executing one or more software or firmware programs. and memory, merged logic circuitry, and/or other suitable components to support the functions described.
因此,在本申请的实施例中描述的各示例的单元,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Therefore, the units of each example described in the embodiments of the present application can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
在本申请所提供的几个实施例中,任一功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。In the several embodiments provided in this application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program code. .
以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机装置(可以是个人计算机,服务器,或者网络装置等)或处理器(Processor)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit implemented in the form of a software functional unit may be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium and includes a number of instructions to cause a computer device (which can be a personal computer, server, or network device, etc.) or processor (Processor) to execute the methods described in various embodiments of the present invention. Some steps. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code. .
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。 The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention shall be included in the present invention. within the scope of protection.

Claims (16)

  1. 一种感知设备的方法,其特征在于,包括:A method of sensing equipment, characterized by including:
    确定电子设备的周围是否存在其他设备;Determine whether there are other devices surrounding the electronic device;
    在所述电子设备的周围存在其他设备的情况下,获取对应所述其他设备的定位结果;When there are other devices around the electronic device, obtain positioning results corresponding to the other devices;
    确定所述定位结果是否满足预设的第一条件;Determine whether the positioning result meets a preset first condition;
    在所述定位结果满足所述第一条件的情况下,唤醒所述电子设备的处理器,所述处理器在被唤醒后执行对应所述其他设备的第一操作。If the positioning result satisfies the first condition, the processor of the electronic device is awakened, and the processor performs a first operation corresponding to the other device after being awakened.
  2. 根据权利要求1所述的方法,其特征在于,所述获取对应所述其他设备的定位结果,包括:The method according to claim 1, wherein the obtaining positioning results corresponding to the other devices includes:
    获取所述电子设备中的超声波介质采集到的第一数据;Obtain the first data collected by the ultrasonic medium in the electronic device;
    根据所述第一数据,得到对应所述其他设备的定位结果。According to the first data, a positioning result corresponding to the other device is obtained.
  3. 根据权利要求1所述的方法,其特征在于,所述定位结果包括:所述其他设备的相对于所述电子设备的方向数据;The method of claim 1, wherein the positioning result includes: orientation data of the other device relative to the electronic device;
    所述第一条件包括:预设的方向范围;The first condition includes: a preset direction range;
    所述确定所述定位结果是否满足预设的第一条件,包括:Determining whether the positioning result meets a preset first condition includes:
    确定所述方向数据是否在所述方向范围内;Determine whether the direction data is within the direction range;
    其中,所述定位结果满足所述第一条件的情况包括:所述方向数据在所述方向范围内的情况。Wherein, the situation where the positioning result satisfies the first condition includes the situation where the direction data is within the direction range.
  4. 根据权利要求1所述的方法,其特征在于,所述定位结果包括:所述其他设备与所述电子设备间的目标距离;The method according to claim 1, wherein the positioning result includes: a target distance between the other device and the electronic device;
    所述第一条件包括:预设的距离阈值;The first condition includes: a preset distance threshold;
    所述确定所述定位结果是否满足预设的第一条件,包括:Determining whether the positioning result meets a preset first condition includes:
    确定所述目标距离是否不大于所述距离阈值;Determine whether the target distance is not greater than the distance threshold;
    其中,所述定位结果满足所述第一条件的情况包括:所述目标距离不大于所述距离阈值的情况。Wherein, the situation where the positioning result satisfies the first condition includes the situation where the target distance is not greater than the distance threshold.
  5. 根据权利要求1所述的方法,其特征在于,在确定出所述电子设备的周围存在其他设备之后,以及在所述唤醒所述电子设备的处理器之前,所述方法还包括:The method according to claim 1, characterized in that, after determining that there are other devices around the electronic device and before waking up the processor of the electronic device, the method further includes:
    确定所述电子设备是否在移动;Determine whether the electronic device is moving;
    在确定出所述电子设备在移动的情况下,执行所述唤醒所述电子设备的处理器的步骤。When it is determined that the electronic device is moving, the step of waking up the processor of the electronic device is performed.
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:The method of claim 5, further comprising:
    获取所述电子设备中的惯性测量单元采集到的第二数据;Obtain the second data collected by the inertial measurement unit in the electronic device;
    根据所述第二数据,执行所述确定所述电子设备是否在移动的步骤。The step of determining whether the electronic device is moving is performed based on the second data.
  7. 根据权利要求6所述的方法,其特征在于,所述惯性测量单元包括陀螺仪传感器、加速度传感器、指南针传感器中的至少一种。The method of claim 6, wherein the inertial measurement unit includes at least one of a gyroscope sensor, an acceleration sensor, and a compass sensor.
  8. 根据权利要求1所述的方法,其特征在于,在确定出所述电子设备的周围存在其他设备之后,以及在所述唤醒所述电子设备的处理器之前,所述方法还包括:确定所述其他设备和所述电子设备是否为同一用户账号下的设备;The method according to claim 1, characterized in that, after determining that there are other devices around the electronic device and before waking up the processor of the electronic device, the method further includes: determining that the Whether the other devices and the electronic device are devices under the same user account;
    所述在所述定位结果满足所述第一条件的情况下,唤醒所述电子设备的处理器,包括:When the positioning result satisfies the first condition, waking up the processor of the electronic device includes:
    在所述定位结果满足所述第一条件、且所述其他设备和所述电子设备为同一用户账号下的设备的情况下,唤醒所述电子设备的处理器。 If the positioning result satisfies the first condition and the other device and the electronic device are devices under the same user account, wake up the processor of the electronic device.
  9. 根据权利要求1所述的方法,其特征在于,所述第一操作包括:控制所述电子设备弹出卡片,且卡片显示内容包括与所述其他设备的使用状态相关的信息。The method of claim 1, wherein the first operation includes controlling the electronic device to eject a card, and the card display content includes information related to the usage status of the other device.
  10. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, further comprising:
    获取所述电子设备中的无线介质采集到的第三数据;Obtain third data collected by the wireless medium in the electronic device;
    根据所述第三数据,执行所述确定电子设备的周围是否存在其他设备的步骤。According to the third data, the step of determining whether there are other devices around the electronic device is performed.
  11. 根据权利要求10所述的方法,其特征在于,所述无线介质包括蓝牙芯片和无线网络通信技术芯片中的至少一种。The method of claim 10, wherein the wireless medium includes at least one of a Bluetooth chip and a wireless network communication technology chip.
  12. 一种感知设备的装置,其特征在于,包括:A device for sensing equipment, characterized by including:
    第一确定模块,用于确定电子设备的周围是否存在其他设备;The first determination module is used to determine whether there are other devices around the electronic device;
    获取模块,用于在所述电子设备的周围存在其他设备的情况下,获取对应所述其他设备的定位结果;An acquisition module, configured to acquire positioning results corresponding to the other devices when there are other devices around the electronic device;
    第二确定模块,用于确定所述定位结果是否满足预设的第一条件;a second determination module, used to determine whether the positioning result satisfies the preset first condition;
    唤醒模块,用于在所述定位结果满足所述第一条件的情况下,唤醒所述电子设备的处理器,所述处理器在被唤醒后执行对应所述其他设备的第一操作。A wake-up module, configured to wake up the processor of the electronic device if the positioning result satisfies the first condition, and the processor performs a first operation corresponding to the other device after being awakened.
  13. 一种电子芯片,其特征在于,包括:处理器,其用于执行存储在存储器上的计算机程序指令,其中,当所述计算机程序指令被所述处理器执行时,触发所述电子芯片执行权利要求1-11中任一项所述的方法。An electronic chip, characterized in that it includes: a processor for executing computer program instructions stored in a memory, wherein when the computer program instructions are executed by the processor, the electronic chip is triggered to execute the right The method described in any one of claims 1-11.
  14. 一种电子设备,其特征在于,所述电子设备包括用于存储计算机程序指令的存储器、用于执行计算机程序指令的处理器和通信装置,其中,当所述计算机程序指令被该处理器执行时,触发所述电子设备执行如权利要求1-11中任一项所述的方法。An electronic device, characterized in that the electronic device includes a memory for storing computer program instructions, a processor for executing computer program instructions, and a communication device, wherein when the computer program instructions are executed by the processor , triggering the electronic device to perform the method according to any one of claims 1-11.
  15. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行如权利要求1-11中任一项所述的方法。A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when it is run on a computer, it causes the computer to execute the method according to any one of claims 1-11 .
  16. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1-11中任一项所述的方法。 A computer program product, characterized in that the computer program product includes a computer program, which when the computer program is run on a computer, causes the computer to perform the method according to any one of claims 1-11.
PCT/CN2023/104124 2022-07-01 2023-06-29 Method and apparatus for sensing device, and chip and device WO2024002282A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210775399.5A CN117376887A (en) 2022-07-01 2022-07-01 Method, device, chip and equipment for sensing equipment
CN202210775399.5 2022-07-01

Publications (1)

Publication Number Publication Date
WO2024002282A1 true WO2024002282A1 (en) 2024-01-04

Family

ID=89383307

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/104124 WO2024002282A1 (en) 2022-07-01 2023-06-29 Method and apparatus for sensing device, and chip and device

Country Status (2)

Country Link
CN (1) CN117376887A (en)
WO (1) WO2024002282A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120005124A (en) * 2010-07-08 2012-01-16 삼성전자주식회사 Apparatus and method for operation according to movement in portable terminal
JP2013197890A (en) * 2012-03-19 2013-09-30 Fujitsu Ltd Information processor, information processing method and information processing program
CN110018642A (en) * 2019-04-15 2019-07-16 美的集团股份有限公司 A kind of quick control method of smart home device, medium and smart home device
CN113287081A (en) * 2018-12-14 2021-08-20 云丁网络技术(北京)有限公司 Electronic equipment control system and method
CN114257996A (en) * 2020-09-21 2022-03-29 华为技术有限公司 Device discovery method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120005124A (en) * 2010-07-08 2012-01-16 삼성전자주식회사 Apparatus and method for operation according to movement in portable terminal
JP2013197890A (en) * 2012-03-19 2013-09-30 Fujitsu Ltd Information processor, information processing method and information processing program
CN113287081A (en) * 2018-12-14 2021-08-20 云丁网络技术(北京)有限公司 Electronic equipment control system and method
CN110018642A (en) * 2019-04-15 2019-07-16 美的集团股份有限公司 A kind of quick control method of smart home device, medium and smart home device
CN114257996A (en) * 2020-09-21 2022-03-29 华为技术有限公司 Device discovery method and device

Also Published As

Publication number Publication date
CN117376887A (en) 2024-01-09

Similar Documents

Publication Publication Date Title
WO2020156269A1 (en) Display method for electronic device having flexible screen and electronic device
WO2021000876A1 (en) Voice control method, electronic equipment and system
WO2020151580A1 (en) Screen control and voice control method and electronic device
WO2020192417A1 (en) Image rendering method and apparatus, electronic device
CN112040361B (en) Earphone control method, earphone control device and storage medium
WO2020224449A1 (en) Split-screen display operation method and electronic device
WO2021213164A1 (en) Application interface interaction method, electronic device, and computer readable storage medium
WO2021052214A1 (en) Hand gesture interaction method and apparatus, and terminal device
US20240073305A1 (en) Touchscreen, Electronic Device, and Display Control Method
CN111819533B (en) Method for triggering electronic equipment to execute function and electronic equipment
WO2021139767A1 (en) Screen-on control method and electronic device
CN112671976B (en) Control method and device of electronic equipment, electronic equipment and storage medium
WO2021209047A1 (en) Sensor adjustingt method, appratus and electronic device
WO2021104104A1 (en) Energy-efficient display processing method, and apparatus
WO2021052139A1 (en) Gesture input method and electronic device
WO2021052170A1 (en) Motor vibration control method and electronic device
WO2022001258A1 (en) Multi-screen display method and apparatus, terminal device, and storage medium
WO2021121223A1 (en) Display method of interactive system, interactive system, and electronic device
WO2022170856A1 (en) Method for establishing connection, and electronic device
WO2024045661A1 (en) Image processing method and electronic device
CN114384465A (en) Azimuth angle determination method and device
WO2024002282A1 (en) Method and apparatus for sensing device, and chip and device
CN113986369B (en) Internet of things equipment control method and system, electronic equipment and storage medium
WO2022152174A9 (en) Screen projection method and electronic device
CN114500732B (en) Interface display method, electronic equipment and storage medium

Legal Events

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

Ref document number: 23830446

Country of ref document: EP

Kind code of ref document: A1