WO2024099212A1 - 空间位置确定方法、***及其设备 - Google Patents

空间位置确定方法、***及其设备 Download PDF

Info

Publication number
WO2024099212A1
WO2024099212A1 PCT/CN2023/129111 CN2023129111W WO2024099212A1 WO 2024099212 A1 WO2024099212 A1 WO 2024099212A1 CN 2023129111 W CN2023129111 W CN 2023129111W WO 2024099212 A1 WO2024099212 A1 WO 2024099212A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
audio signal
analog audio
processor
speaker
Prior art date
Application number
PCT/CN2023/129111
Other languages
English (en)
French (fr)
Inventor
彭红星
***
王帅
沈壮
姚思
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024099212A1 publication Critical patent/WO2024099212A1/zh

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/18Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using ultrasonic, sonic, or infrasonic waves
    • G01S5/22Position of source determined by co-ordinating a plurality of position lines defined by path-difference measurements
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/18Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using ultrasonic, sonic, or infrasonic waves
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Definitions

  • the present application relates to the field of terminals, and in particular to a method, system and device for determining a spatial position.
  • ultrasound is a part of sound waves, which is inaudible to human ears and has a frequency higher than 20KHZ.
  • Ultrasound has good directivity, can propagate in a certain direction, and can be collected in a direction. Therefore, ultrasound can be used to determine the spatial position of two electronic devices, such as the distance between two electronic devices and the angle between two electronic devices, based on methods such as TOA (Time of Arrival) or TDOA (Time Difference of Arrival).
  • TOA Time of Arrival
  • TDOA Time Difference of Arrival
  • an embodiment of the present application provides a method for determining a spatial position, which is applied to a system including a first electronic device and a second electronic device, the method comprising: the second electronic device controls a speaker to play a first analog audio signal, the first analog audio signal being used to indicate that the second electronic device is online; the first electronic device controls a microphone to collect the first analog audio signal, and controls a speaker to play a second analog audio signal according to pre-stored subscription information in response to the first analog audio signal, the second analog audio signal being used to request determination of the spatial position between the electronic devices; the second electronic device controls a microphone to collect the second analog audio signal, and determines the spatial position between the second electronic device and the first electronic device according to the second analog audio signal; the second electronic device generates a third analog audio signal according to the spatial position between the second electronic device and the first electronic device, and controls the speaker to play the third analog audio signal, the third analog audio signal being used to notify the spatial position between the second electronic device and the first electronic device; the first electronic device controls a speaker to
  • the second electronic device plays the first analog audio signal through the speaker, and the first electronic device collects the first analog audio signal through the microphone, so that there is no need to perform networking authentication of the first electronic device and the second electronic device before transmission, the first analog audio signal can be directly transmitted from the second electronic device to the first electronic device through the speaker and the microphone, and the first electronic device can start the detection of the relative position between the second electronic device and the first electronic device; the first electronic device plays the second analog audio signal through the speaker, and the second electronic device collects the second analog audio signal through the microphone, so that the second electronic device can receive the second analog audio signal and determine the relative position between the second electronic device and the first electronic device according to the received second analog audio signal; the second electronic device plays the third analog audio signal through the speaker, and the first electronic device collects the third analog audio signal through the microphone, so that there is no need to perform networking authentication of the first electronic device and the second electronic device before transmission, and the relative position between the second electronic device and the first electronic device can be directly transmitted from the second electronic device
  • the second electronic device controls the speaker to play the first analog audio signal, including: after the second electronic device goes into sleep mode, if the motion sensor of the second electronic device detects that the motion state of the second electronic device is motion and then stops, the second electronic device controls the speaker to play the first analog audio signal.
  • the present application enables the second electronic device to start playing the first analog audio signal when it goes into sleep mode by controlling the speaker to play the first analog audio signal according to the motion state of the second electronic device detected by the motion sensor after the second electronic device goes into sleep mode.
  • the second electronic device controls the speaker to play the first analog audio signal, including: if the second electronic device When the sub-device detects that the target application is in operation, the second electronic device controls the speaker to play the first analog audio signal.
  • the present application controls the speaker to play the first analog audio signal by running the target application of the second electronic device, so that the second electronic device can start playing the first analog audio signal when it is not in sleep mode.
  • the method before the second electronic device controls the speaker to play the first analog audio signal, the method further includes: the second electronic device performs binary encoding on preset information, and encodes the encoded binary data into the first analog audio signal, the preset information is used to indicate that the second electronic device is online, the first analog audio signal includes at least one of a first chirp signal and a second chirp signal, the first chirp signal is used to indicate a binary code of 0, and the second chirp signal is used to indicate a binary code of 1.
  • the present application uses the encoding after binary encoding to enable the first analog audio signal to carry the preset information.
  • the first electronic device includes a first processor, and the first processor is in a sleep state. After the first electronic device obtains the spatial position between the second electronic device and the first electronic device through the third analog audio signal, the method further includes: the first electronic device wakes up the first processor; the first electronic device turns off the screen to display the icon of the second electronic device according to the spatial position between the second electronic device and the first electronic device through the first processor.
  • the present application allows the first electronic device to still determine the spatial position after the first processor enters the sleep state, so that device discovery and information transmission can also be achieved in the sleep scenario; at the same time, after determining the spatial position, the first processor is woken up to turn off the screen to display the icon of the second electronic device, which can prompt the user in the screen-off scenario.
  • the first electronic device turns off the screen to display the icon of the second electronic device according to the spatial position between the second electronic device and the first electronic device, including: the first electronic device determines the target display position of the icon of the second electronic device according to the spatial position between the second electronic device and the first electronic device; the first electronic device turns off the screen to display the icon of the second electronic device at the target display position.
  • the present application can subsequently perform different collaborative modes by displaying the icon of the second electronic device at different positions according to the spatial position between the second electronic device and the first electronic device.
  • the method before the first electronic device controls the speaker to play the second analog audio signal according to the pre-stored subscription information in response to the first analog audio signal, the method further includes: before the first processor goes to sleep, the target application or operating system of the first electronic device sends a subscription request to the first processor, the subscription request is used to request to subscribe to a first type of spatial position between electronic devices; the first electronic device generates the subscription information according to the subscription request through the first processor; the first electronic device saves the subscription information.
  • the present application can implement pre-stored subscription information by having the target application or operating system subscribe to the spatial position between electronic devices to the first electronic device before the first processor goes to sleep, and storing the spatial information between the electronic devices, so that the pre-stored subscription information can be directly used after the first processor goes to sleep.
  • the first analog audio signal is also used to request determination of a second type of relative position between electronic devices; the first electronic device controls the speaker to play the second analog audio signal according to pre-stored subscription information in response to the first analog audio signal, including: if the first analog audio signal matches the pre-stored subscription information, the first electronic device controls the speaker to play the second analog audio signal according to the pre-stored subscription information in response to the first analog audio signal.
  • the present application can avoid waste of determining the spatial position when there is no match by controlling the speaker to play the second analog audio signal only when the first analog audio signal matches the pre-stored subscription information.
  • the type of spatial position between the electronic devices includes the relative position between the electronic devices and the distance information between the electronic devices.
  • the present application can achieve the determination of multiple spatial positions by including the type of spatial position between the electronic devices and the distance information between the electronic devices.
  • the method further includes: the first electronic device collaborates with the second electronic device in response to an operation on the icon of the second electronic device.
  • the present application enables cross-device resource sharing and collaborative operation through collaboration between the first electronic device and the second electronic device.
  • an embodiment of the present application also provides a method for determining a spatial position, the method comprising: a first electronic device controls a microphone to collect a first analog audio signal, and controls a speaker to play a second analog audio signal in response to the first analog audio signal according to pre-stored subscription information, the first analog audio signal being an audio signal played by a speaker of a second electronic device, the first analog audio signal being used to indicate that the second electronic device is online, and the second analog audio signal being used to request determination of the spatial position between the electronic devices; the first electronic device controls the microphone to collect a third analog audio signal, the third analog audio signal being an audio signal played by the speaker of the second electronic device, and the third analog audio signal being used to notify the spatial position between the second electronic device and the first electronic device; the first electronic device obtains the spatial position between the second electronic device and the first electronic device through the third analog audio signal Room location.
  • the method before the first electronic device controls the speaker to play the second analog audio signal in response to the first analog audio signal according to pre-stored subscription information, the method also includes: the first electronic device decodes the first analog audio signal into binary data, and decodes the binary data into preset information, the first analog audio signal includes at least one of a first chirp signal and a second chirp signal, the first chirp signal is used to represent a binary code 0, the second chirp signal is used to represent a binary code 1, and the preset information is used to indicate that the second electronic device is online.
  • the first electronic device includes a first processor, which is in a sleep state. After the first electronic device obtains the spatial position between the second electronic device and the first electronic device through the third analog audio signal, the method further includes: the first electronic device wakes up the first processor; the first electronic device turns off the screen to display the icon of the second electronic device according to the spatial position between the second electronic device and the first electronic device through the first processor.
  • the first electronic device turns off the screen to display the icon of the second electronic device according to the spatial position between the second electronic device and the first electronic device, including: the first electronic device determines the target display position of the icon of the second electronic device according to the spatial position between the second electronic device and the first electronic device; the first electronic device turns off the screen to display the icon of the second electronic device at the target display position.
  • the method before the first electronic device controls a speaker to play a second analog audio signal in response to the first analog audio signal according to pre-stored subscription information, the method further includes: before the first processor goes into sleep, a target application or operating system of the first electronic device sends a subscription request to the first processor, wherein the subscription request is used to request subscription to a first type of spatial location between electronic devices; the first electronic device generates the subscription information according to the subscription request through the first processor; and the first electronic device saves the subscription information.
  • the first analog audio signal is also used to request determination of a second type of relative position between electronic devices; the first electronic device controls the speaker to play the second analog audio signal according to pre-stored subscription information in response to the first analog audio signal, including: if the first analog audio signal matches the pre-stored subscription information, the first electronic device controls the speaker to play the second analog audio signal according to the pre-stored subscription information in response to the first analog audio signal.
  • the type of spatial position between the electronic devices includes relative positions between the electronic devices and distance information between the electronic devices.
  • the method further includes: the first electronic device collaborates with the second electronic device in response to an operation on the icon of the second electronic device.
  • an embodiment of the present application also provides a spatial position determination method, which is applied to a first electronic device, wherein the first electronic device includes a first processor and a second processor, the second processor is connected to the first processor, and the operating power consumption of the second processor is less than the operating power consumption of the first processor.
  • the method includes: the second processor controls the microphone to collect a first analog audio signal, and controls the speaker to play a second analog audio signal in response to the first analog audio signal according to pre-stored subscription information, the first analog audio signal is an audio signal played by the speaker of the second electronic device, the first analog audio signal is used to indicate that the second electronic device is online, and the second analog audio signal is used to request the determination of the spatial position between the electronic devices, and the pre-stored subscription information includes a subscriber; the second processor controls the microphone to collect a third analog audio signal, the third analog audio signal is an audio signal played by the speaker of the second electronic device, and the third analog audio signal is used to notify the spatial position between the second electronic device and the first electronic device; the second processor sends the spatial position between the second electronic device and the first electronic device in the third analog audio signal to the subscriber through the first processor.
  • the method before the second processor controls the microphone to collect the first analog audio signal, the method also includes: the first processor enters a sleep state; before the second processor sends the spatial position between the second electronic device and the first electronic device in the third analog audio signal to the subscriber through the first processor, the method also includes: the second processor wakes up the first processor.
  • the method before the first processor enters a sleep state, the method also includes: the subscriber sends a subscription request to the first processor, the subscription request being used to request subscription to a first type of spatial location between electronic devices; the subscriber includes a target application or an operating system; the first processor generates the subscription information based on the subscription request; the first processor sends the subscription information to the second processor for storage.
  • the first processor is an application processor
  • the second processor is an audio digital signal processor
  • the method before the second processor controls the speaker to play the second analog audio signal according to pre-stored subscription information in response to the first analog audio signal, the method also includes: the second processor decodes the first analog audio signal into binary data, and decodes the binary data into the preset information, the first analog audio signal includes at least one of a first chirp signal and a second chirp signal, the first chirp signal is used to represent a binary code 0, the second chirp signal is used to represent a binary code 1, and the preset information is used to indicate that the second electronic device is online.
  • the method further includes: the first electronic device collaborates with the second electronic device.
  • an embodiment of the present application also provides a method for determining a spatial position, the method comprising: the second electronic device controls a speaker to play a first analog audio signal, the first analog audio signal is used to indicate that the second electronic device is online; the second electronic device controls a microphone to collect a second analog audio signal, and determines the spatial position between the second electronic device and the first electronic device based on the second analog audio signal, the second analog audio signal is an audio signal played by a speaker of the first electronic device, and the second analog audio signal is used to request the determination of the spatial position between the electronic devices; the second electronic device generates a third analog audio signal based on the spatial position between the second electronic device and the first electronic device, and controls the speaker to play the third analog audio signal, the third analog audio signal is used to notify the second electronic device of the spatial position between the first electronic device.
  • the second electronic device controls the speaker to play the first analog audio signal, including: after the second electronic device goes into sleep mode, if a motion sensor of the second electronic device detects that the motion state of the second electronic device is motion followed by stop, the second electronic device controls the speaker to play the first analog audio signal.
  • the second electronic device controls the speaker to play the first analog audio signal, including: if the second electronic device detects that the target application is in a running state, the second electronic device controls the speaker to play the first analog audio signal.
  • the method before the second electronic device controls the speaker to play the first analog audio signal, the method also includes: the second electronic device binary encodes preset information and encodes the encoded binary data into the first analog audio signal, the preset information is used to indicate that the second electronic device is online, the first analog audio signal includes at least one of a first chirp signal and a second chirp signal, the first chirp signal is used to represent the binary code 0, and the second chirp signal is used to represent the binary code 1.
  • an embodiment of the present application also provides a spatial position determination system, the system comprising a first electronic device and a second electronic device, the first electronic device being used to execute the method described in the second aspect above, or any possible embodiment of the third aspect above, and the second electronic device being used to execute the method described in any possible embodiment of the fourth aspect above.
  • an embodiment of the present application also provides an electronic device, comprising at least one processor, a memory, a speaker and a microphone; the at least one processor is coupled to the memory, the speaker and the microphone; the memory is used to store instructions, the processor is used to execute the instructions, the speaker is used to play audio signals, and the microphone is used to collect audio signals; when the instructions are executed by the at least one processor, the at least one processor executes the method described in any possible embodiment of the first aspect, the second aspect, the third aspect, or the fourth aspect.
  • an embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a program, wherein the program enables a computer device to execute the method described in any possible embodiment of the first aspect, the second aspect, the third aspect, or the fourth aspect.
  • an embodiment of the present application further provides a computer program product, the computer program product includes computer execution instructions, the computer execution instructions are stored in a computer-readable storage medium; at least one processor of an electronic device can read the computer execution instructions from the computer-readable storage medium, and the at least one processor executes the computer execution instructions so that the electronic device executes the method described in any possible embodiment of the first aspect, the second aspect, the third aspect, or the fourth aspect.
  • the beneficial effects of the second to eighth aspects of the present application and their various implementations can refer to the first aspect and its various implementations, as well as the beneficial effect analysis in the first aspect, and will not be repeated here.
  • FIG. 1 is a schematic diagram of spatial position determination in the prior art.
  • FIG. 2 is a schematic diagram of a spatial position determination system provided in an embodiment of the present application.
  • FIG3 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of the software structure of the electronic device provided in an embodiment of the present application.
  • FIG. 5 is an architecture diagram of a spatial position determination system provided in an embodiment of the present application.
  • FIG6 is a schematic diagram of an encoding method provided in an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a spatial position determination method provided in an embodiment of the present application.
  • FIG8 is a schematic diagram of an interface in a scenario where both the first electronic device and the second electronic device are in sleep mode, provided by an embodiment of the present application.
  • FIG9 is a schematic diagram of an interface for displaying small bubble icons when the screen is off, provided in an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a first electronic device and a second electronic device performing collaborative work according to an embodiment of the present application.
  • FIG. 11 is a schematic diagram of an interface in a scenario where a first electronic device is in sleep mode and a second electronic device is not in sleep mode, provided by an embodiment of the present application.
  • FIG12 is a schematic diagram of an interface in a scenario where a first electronic device is not in sleep mode and a second electronic device is in sleep mode, provided in an embodiment of the present application.
  • FIG13 is a schematic diagram of an interface in a scenario where the first electronic device is not in sleep mode and the second electronic device is not in sleep mode, provided in an embodiment of the present application.
  • FIG. 14 is a flow chart of a method for determining a spatial position provided in an embodiment of the present application.
  • FIG. 15 is a flowchart of another spatial position determination method provided in an embodiment of the present application.
  • words such as “exemplary” or “for example” are used to indicate examples, illustrations or descriptions. Any embodiment or design described as “exemplary” or “for example” in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as “exemplary” or “for example” is intended to present related concepts in a specific way.
  • the prior art provides a method for determining a spatial position, which can determine the relative position between electronic device A and electronic device B, and control the display interface of electronic device B as an extended screen of electronic device A according to the relative position.
  • electronic device A may include a first speaker and a second speaker
  • electronic device B may include a microphone, such as a first microphone and a second microphone.
  • Electronic device A may first send a detection request to electronic device B to request electronic device A and electronic device B to complete discovery and networking authentication, and determine the spatial position.
  • electronic device A and electronic device B may complete discovery and networking authentication to establish a wireless or wired communication link.
  • electronic device A may send an ultrasonic signal through the first speaker and the second speaker.
  • Electronic device B may receive the ultrasonic signal through the microphone, and determine the relative position between electronic device A and electronic device B according to the received ultrasonic signal. It can be understood that before electronic device B determines the relative position between electronic device A and electronic device B, electronic device A can also send the first moment, the second moment and the distance between the first speaker and the second speaker to electronic device B through a wireless or wired communication link; the first moment is the moment when the first speaker of electronic device A sends an ultrasonic signal; the second moment is the moment when the second speaker of electronic device A sends an ultrasonic signal, so that electronic device B determines the relative position between electronic device A and electronic device B according to the received ultrasonic signal, the first moment, the second moment and the distance.
  • Electronic device B can also send the determined relative position between electronic device A and electronic device B to electronic device A through the established wireless or wired communication link, so that electronic device A can expand the content displayed in the display interface on electronic device A to be displayed in electronic device B.
  • the spatial position determination method of the prior art relies on a communication unit, such as a soft bus, and needs to first complete the discovery and networking authentication of electronic device A and electronic device B, which will result in a slow establishment of a wireless communication link and a high delay in spatial position determination.
  • an embodiment of the present application proposes a method for determining a spatial position, which can directly determine the spatial position without going through networking and authentication.
  • the spatial position determination system 2 may include multiple electronic devices 200.
  • the electronic device 200 may be, for example, a mobile phone, a tablet computer, a laptop computer, a digital camera, a personal digital assistant (PDA), a wearable device, a laptop computer, and the like.
  • Each electronic device 200 may include an audio sending unit and an audio receiving unit.
  • the audio sending unit may send an analog audio signal, such as an ultrasonic signal, to the outside.
  • the audio sending unit may be, for example, a speaker, etc.
  • the audio receiving unit may receive an analog audio signal from the outside, such as an ultrasonic signal.
  • the audio receiving unit may be, for example, a microphone, etc.
  • Each electronic device 200 may send an analog audio signal through a speaker.
  • Each electronic device 200 may also receive an analog audio signal through a microphone.
  • the multiple electronic devices 200 may be a first electronic device 201 and a second electronic device 202.
  • the present application is described below by taking one second electronic device 202 as an example. However, it is understandable that the number of the second electronic devices 202 may also be two or more, and the present application does not limit this.
  • the first electronic device 201 and the second electronic device 202 may both be installed with applications that can use the spatial position information between electronic devices to perform multi-device collaboration, such as WPS (word processing system) applications, camera applications, etc.
  • WPS word processing system
  • the spatial position information between electronic devices used by different applications is different, and different applications can subscribe to the spatial position information between different electronic devices.
  • the spatial position information between electronic devices used by the WPS application is the relative position between the electronic devices, and the WPS application can subscribe to the relative position between the electronic devices;
  • the spatial position information between electronic devices used by the camera application is the distance information between the electronic devices, and the camera application can subscribe to the distance information between the electronic devices.
  • the following takes the example that the first electronic device 201 and the second electronic device 202 are both installed with the WPS application to illustrate the present application. It can be understood that the spatial position information between electronic devices used by different applications may also be the same, and different applications can subscribe to the same spatial position information between electronic devices, and the present application does not limit this.
  • the second electronic device 202 may be in sleep mode, if a preset condition is met, for example, if the second electronic device 202 is detected to stop after moving, in response to the preset condition being met, the second electronic device 202 may periodically send a first analog audio signal through a speaker.
  • the second electronic device 202 may be in a light screen mode, if a preset condition is met, for example, if the second electronic device 202 runs a WPS application in the foreground, in response to the preset condition being met, the second electronic device 202 may periodically send a first analog audio signal through a speaker.
  • the first electronic device 201 may receive the first analog audio signal, and identify that the second electronic device 202 is online according to the first analog audio signal.
  • the first electronic device 201 also sends a second analog audio signal through a speaker according to the spatial position information between the subscribed electronic devices.
  • the second electronic device 202 may receive the second analog audio signal, and determine the relative position between the corresponding electronic devices according to the second analog audio signal, for example, determine that the second electronic device 202 is located on the left side of the first electronic device 201.
  • the second electronic device 202 may send a third analog audio signal according to the determined relative position between the electronic devices.
  • the first electronic device 201 may receive the third analog audio signal.
  • the first electronic device 201 may wake up the first processor, such as AP (application processor), according to the third analog audio signal when in sleep mode, and transmit the determined relative positions between the electronic devices to the WPS application through the first processor for the WPS application to display the extended image.
  • the first electronic device 201 may directly transmit the determined relative positions between the electronic devices to the WPS application through the first processor when the screen is on for the WPS application to display the extended image.
  • the electronic device 200 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, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a 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 200.
  • the electronic device 200 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently.
  • the components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated in one or more processors 110.
  • AP application processor
  • modem processor e.g., a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc.
  • AP application processor
  • GPU graphics processor
  • ISP image signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the processor 110 can generate an operation control signal according to the instruction operation code and the timing signal 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 the processor 110 may be a cache memory.
  • the memory may store instructions or data that have been used or are frequently used by the processor 110. If the processor 110 needs to use the instruction or data, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the interface may include an inter-integrated circuit (IC).
  • the processor 110 may be connected to a touch sensor, an audio module, a wireless communication module, a display, a camera, or the like through at least one of the above interfaces.
  • the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 200.
  • the electronic device 200 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the USB interface 130 is an interface that complies with USB standard specifications and can be used to connect display devices and peripheral devices. Specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the charging management module 140 is used to receive charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from a wired charger through the USB interface 130.
  • the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 200. While the charging management module 140 is charging the battery 142, it may also power the electronic device 200 through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.
  • the power management module 141 can also be set in the processor 110.
  • the power management module 141 and the charging management module 140 can also be set in the same device.
  • the wireless communication function of the electronic device 200 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 the electronic device 200 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas.
  • antenna 1 can be reused as a diversity antenna for a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the electronic device 200.
  • the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
  • the mobile communication module 150 may receive electromagnetic waves from the antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 may also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.
  • at least some of the functional modules of the mobile communication module 150 may be arranged in the processor 110.
  • at least some of the functional modules of the mobile communication module 150 may be arranged in the same device as at least some of the modules of the processor 110.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-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 a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), bluetooth low energy (BLE), ultra wide band (UWB), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 200.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • BLE Bluetooth low energy
  • UWB ultra wide band
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared
  • the wireless communication module 160 can be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110.
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
  • the antenna 1 of the electronic device 200 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 200 can communicate with the network and other electronic devices 200 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), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology.
  • the GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and/or a satellite based augmentation system (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation system
  • the electronic device 200 can realize the display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc.
  • the electronic device 200 may include one or more display screens 194.
  • the electronic device 200 can realize the camera function through the camera 193, ISP, video codec, GPU, display screen 194, application processor AP, neural network processor NPU, etc.
  • the camera 193 can be used to collect color image data and depth data of the photographed object.
  • the ISP can be used to process the color image data collected by the camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye.
  • the ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image.
  • the ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP can be set in the camera 193.
  • 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 200.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function.
  • the internal memory 121 can be used to store computer executable program codes, which include instructions.
  • the internal memory 121 can include a program storage area and a data storage area.
  • the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
  • the data storage area can store data created during the use of the electronic device 200 (such as digital audio data, a phone book, etc.), etc.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (universal flash storage, UFS), etc.
  • the processor 110 executes various functional methods or data processing of the electronic device 200 by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the electronic device 200 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
  • the speaker 170A also called a "speaker" is used to convert an audio electrical signal into a sound signal.
  • the electronic device 200 can listen to music or output an audio signal for a hands-free call through the speaker 170A.
  • the receiver 170B also called a "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be received by placing the receiver 170B close to the human ear.
  • Microphone 170C also called “microphone” or “microphone”, is used to convert sound signals into electrical signals.
  • the earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
  • the buttons 190 may include a power button, a volume button, etc.
  • Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.
  • the SIM card interface 195 is used to connect a SIM card.
  • FIG. 4 is a schematic diagram of the logical structure of an electronic device provided in an embodiment of the present application.
  • the layered architecture divides the software into several layers, each with a clear role and division of labor.
  • the layers communicate with each other through software interfaces.
  • the Android system is divided into five layers, from top to bottom, namely the application layer, the application framework layer, the Android runtime (Android runtime, ART) and the native C/C++ library, the hardware abstract layer (HAL) and the kernel layer.
  • this article uses the Android system as an example to illustrate that in other operating systems (such as Hongmeng system, IOS system, etc.), as long as the functions implemented by each functional module are similar to the embodiments of the present application, the solution of the present application can also be implemented.
  • the application layer can include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, WPS application, etc.
  • the application framework layer provides application programming interface (API) and programming framework for the applications in the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a content provider, a view system, a resource manager, a notification manager, an activity manager, an input manager, and the like.
  • the window manager provides window management services (Window Manager Service, WMS).
  • WMS can be used for window management, window animation management, surface management and as a transit station for the input system.
  • Content providers are used to store and retrieve data and make it accessible to applications.
  • This data can include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying images, etc.
  • the view system can be used to build applications.
  • a display interface can be composed of one or more views.
  • a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
  • the resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
  • the notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
  • the Activity Manager can provide Activity Manager Service (AMS).
  • AMS can be used to start, switch, and schedule system components (such as activities, services, content providers, broadcast receivers) as well as manage and schedule application processes.
  • the input manager can provide input management service (IMS), which can be used to manage the input of the system, such as touch screen input, key input, sensor input, etc.
  • IMS input management service
  • IMS takes events from input device nodes and distributes them to the appropriate window through interaction with WMS.
  • the Android runtime includes the core library and the Android runtime.
  • the Android runtime is responsible for converting source code into machine code.
  • the Android runtime mainly uses the ahead-of-time (AOT) compilation technology and the just-in-time (JIT) compilation technology.
  • the core library is mainly used to provide basic Java class library functions, such as basic data structures, mathematics, IO, tools, databases, networks, etc.
  • the core library provides an API for users to develop Android applications.
  • the native C/C++ library can include multiple functional modules, such as surface manager, media framework, libc, OpenGL ES, SQLite, Webkit, etc.
  • the surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
  • the media framework supports playback and recording of a variety of commonly used audio and video formats, as well as static image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • OpenGL ES provides drawing and operation of 2D graphics and 3D graphics in applications. SQLite provides a lightweight relational database for electronic device applications.
  • the hardware abstraction layer runs in user space, encapsulates kernel layer drivers, and provides a calling interface to the upper layer.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the spatial position determination system 5 includes a plurality of electronic devices 500.
  • the electronic device 500 may be, for example, a mobile phone, a tablet computer, a laptop computer, a digital camera, a personal digital assistant (PDA), a wearable device, a laptop computer, and the like.
  • Each electronic device 500 may include a speaker 510, a microphone 520, a target application 530, an SDK (software development kit) 540, a first processor 550, and a second processor 560.
  • the number of speakers 510 may be one or more.
  • the speaker 510 is used to send analog audio signals, such as ultrasonic signals.
  • the number of microphones 520 may be one or more.
  • the microphone 520 is used to receive analog audio signals, such as ultrasonic signals.
  • the target application 530 may be an application that can utilize the spatial location information between electronic devices to perform multi-device collaboration.
  • the target application 530 may be a WPS application.
  • SDK 540 may be an SDK for an application with a spatial location management function.
  • SDK 540 may be packaged in a WPS application and loaded into the WPS application, and will run in the WPS application as the WPS application is started.
  • the WPS application may call SDK 540 to send a subscription request to the application with a spatial location management function.
  • the subscription request is used to request a subscription to spatial location information between electronic devices, such as a request to subscribe to the relative positions between electronic devices.
  • the application with a spatial location management function may determine the WPS application as a target application that has subscribed to the relative positions between electronic devices.
  • SDK 540 will be closed as the WPS application is closed. It is understandable that SDK 540 may also be loaded into the WPS application when the WPS application is running, and will run in the WPS application as the WPS application is running, and this application does not impose any restrictions on this.
  • the first processor 550 can be used to implement interaction with the target application 530 and the second processor 560, for example, it can be used to implement subscription of spatial location information between electronic devices, transmit information to the second processor 560, and receive information transmitted by the second processor 560.
  • the first processor 550 can be an independent application processor (AP).
  • the first processor 550 can be used to run system software, for example, the first processor 550 is used to run operating system software.
  • the operating system software can be, for example, at least one of the Hongmeng HarmonyOS system, Android system, iOS system or Linux system; the operating system software can also include other driver software or platform software other than the application, such as open source system software, middleware, or widgets.
  • the first processor 550 can also store instructions of some applications, such as instructions of applications with spatial location management functions.
  • the first processor 550 can run instructions of applications with spatial location management functions.
  • the first processor 550 can also run applications set outside the first processor 550, such as the target application 530 and SDK 540. These applications can all run on the operating system.
  • FIG5 illustrates an example in which the target application 530 and SDK 540 are set outside the first processor 550, but it is understandable that the target application 530 and SDK 540 can also be integrated into the first processor 550, and this application does not limit this.
  • the first processor 550 can also enter a dormant state when the electronic device 500 is dormant, and stop running the operating system software and the applications inside and outside the first processor.
  • the first processor 550 may include a subscription management module 551 and a HIFI interaction module 552.
  • the subscription management module 551 may be used to receive a subscription request sent by the target application 530 through the SDK 540, for example, a subscription request sent by the WPS application through the SDK 540.
  • the subscription management module 551 may also be used to generate subscription information according to the subscription request. It is understood that if multiple different target applications 530 subscribe to the spatial location information between the same electronic devices through the SDK 540, the subscription management module 551 may merge multiple subscription requests to generate subscription information, and this application does not limit this.
  • the HIFI interaction module 552 can be used to realize the interaction of data and control information between the first processor 550 and the second processor 560. For example, it can be used to transmit subscription information to the second processor 560, receive a wake-up signal sent by the second processor 560, and receive spatial location information between electronic devices sent by the second processor 560.
  • the second processor 560 can be used to implement processing related to interaction with other electronic devices, such as encoding and decoding of transmission signals, discovery of other electronic devices, and determination of spatial location information between other electronic devices.
  • the second processor 560 can also be used to wake up the first processor 550.
  • the second processor 560 can be a high-fidelity (HIFI) device.
  • the second processor 560 can be an independent low-power sound processing chip, such as an ADSP (audio digital signal processor).
  • the second processor 560 can be used in electronic devices.
  • When the first processor 550 is in sleep mode it runs at low power consumption, which can greatly reduce power consumption.
  • the second processor 560 can receive the subscription information sent by the first processor 550 through the HIFI interaction module 552 and store the subscription information. Therefore, even if the first processor 550 is in sleep mode, the second processor 560 can control the speaker 510 to play the corresponding analog audio signal according to the stored subscription information.
  • the second processor 560 may execute the instructions to implement some functions.
  • the second processor 560 may include a signal encoding and decoding module 561, a device discovery module 562, and a device ranging module 563.
  • the device discovery module 562 can be used to, when the screen of the electronic device 500 is on, if it is detected that the WPS application is running in the foreground of the electronic device 500, notify the signal encoding and decoding module 561 to convert the first information into a first analog audio signal according to a first preset encoding method.
  • the device discovery module 562 may also be used to notify the signal encoding and decoding module 561 to convert the first information into a first analog audio signal according to a first preset encoding method if it is detected that the electronic device 500 stops after moving when the electronic device 500 is in sleep mode.
  • the signal encoding and decoding module 561 can be used to convert the first information into a first analog audio signal according to a first preset encoding method for playback by the speaker 510. Specifically, as shown in FIG6, the signal encoding and decoding module 561 can be used to convert the first information into a first ultrasonic signal according to a first preset encoding method.
  • the first ultrasonic signal may be, for example, a chirp signal, etc.
  • the first chirp signal may represent a binary code 1
  • the second chirp signal may represent a binary code 0.
  • the frequency of the first chirp signal may increase linearly over time
  • the frequency of the second chirp signal may decrease linearly over time.
  • the frequency of the first chirp signal may decrease linearly over time, and the frequency of the second chirp signal may increase linearly over time; the frequency of the first chirp signal and the frequency of the second chirp signal may also be nonlinearly increased and nonlinearly decreased, and the present application is not limited to this.
  • the first ultrasonic signal may include multiple temporally continuous chirp signals, which may represent a segment of binary data. This segment of binary data may be used to represent one or more hexadecimal numbers. The one or more hexadecimal numbers may represent preset information.
  • the X-axis represents time
  • the Y-axis represents frequency.
  • the ultrasonic signal may include eight temporally continuous chirp signals, namely, “chirp 0", “chirp 1”, “chirp 2", “chirp 3”, “chirp 4", “chirp 5", “chirp 6", and “chirp 7".
  • “chirp 0”, “chirp 1”, and “chirp 4" are all first chirp signals
  • “chirp 2”, “chirp 3”, “chirp 5", “chirp 6", and “chirp 7" are all second chirp signals.
  • the time length of each chirp signal is the same, and the frequency of each chirp signal varies between the first frequency F0 and the second frequency F1.
  • the ultrasonic signal in FIG6 may represent 8-bit binary data "11001000". Among them, every four consecutive bits of binary data in the 8-bit binary data may represent a hexadecimal number, and the ultrasonic signal in FIG6 may represent a hexadecimal number "C8".
  • the first ultrasonic signal may also carry a unique identifier of the electronic device 500.
  • the unique identification information of the electronic device 500 may be a unique identifier formed after processing the hardware information of the electronic device 500.
  • the unique identifier of the electronic device 500 may also be certain hardware information of the electronic device 500, such as a Bluetooth MAC address, etc., and the present application does not limit the unique identifier of the electronic device 500.
  • every four consecutive bits of binary data in the 8-bit binary data may also represent a decimal number; the preset information may also be other hexadecimal numbers, such as the hexadecimal number "A8", etc.; the encoding method may also be other encoding methods, and the present application does not limit this.
  • the signal codec module 561 can also be used to convert the analog audio signal collected by the microphone 520 into corresponding information.
  • the signal codec module 561 can convert the second analog audio signal collected by the microphone 520 into second information, and the second information is digital audio information.
  • the second information is used to determine the relative position between the electronic devices.
  • the signal encoding and decoding module 561 may also be used to convert the third information into a third analog audio signal according to a third preset encoding method, for example, converting the relative position between the electronic devices into a third ultrasonic signal for playback by the speaker 510.
  • the third preset encoding method may be different from the first preset encoding method. It is understood that the third preset encoding method may also be the same as the first preset encoding method, and this application does not limit this.
  • the device distance measurement module 563 may also be used to determine the relative positions between the electronic devices according to the second audio signal converted by the signal encoding and decoding module 561 .
  • the signal codec module 561 may also be used to convert the analog audio signal collected by the microphone 520 into a corresponding signal.
  • the signal codec module 561 may convert the first analog audio signal collected by the microphone 520 into preset information and a unique identifier of the electronic device 500; the signal codec module 561 may convert the third analog audio signal collected by the microphone 520 into the relative position between the electronic devices.
  • the signal encoding and decoding module 561 can also be used to convert the second information into a second analog audio signal according to a second preset encoding method, for example, converting the digital audio information into a second ultrasonic signal for playback by the speaker 510.
  • the second preset encoding method may be different from the first preset encoding method. It is understood that the second preset encoding method may also be the same as the first preset encoding method, and this application does not limit this.
  • the device discovery module 562 may be used to discover other electronic devices online according to the preset information converted by the signal codec module 561. In some embodiments, the device discovery module 562 may be used to discover corresponding electronic devices online according to the preset information converted by the signal codec module 561 and the unique identifier of the electronic device 500.
  • the device distance measurement module 563 can be used to, when the device discovery module 562 finds that other electronic devices are online,
  • the speaker 510 plays the second analog audio signal.
  • the spatial position information between the electronic devices subscribed by the WPS application is the relative position between the electronic devices.
  • the second processor 560 may also be used to send a wake-up signal to the HIFI interaction module 552 of the first processor 550 when the first processor 550 is in sleep mode to wake up the first processor 550.
  • the second processor 560 may also be used to send the relative positions of the electronic devices to the WPS application when the WPS application is in the foreground.
  • the signal codec module 561 may also be a separate audio codec chip, and this application does not impose any limitation on this.
  • the plurality of electronic devices 500 may be respectively a first electronic device 501 and a second electronic device 502.
  • first electronic device 501 as a laptop computer
  • second electronic device 502 as a mobile phone
  • FIG 7 is a schematic diagram of a spatial position determination method provided in an embodiment of the present application.
  • the spatial position determination method can be applied to the spatial position determination system shown in Figure 5.
  • the spatial position determination method can be applied to a scenario in which both the first electronic device and the second electronic device are in sleep mode. In a scenario in which both the first electronic device and the second electronic device are in sleep mode, as shown in Figure 8, the screen of the first electronic device 801 and the screen of the second electronic device 802 are both turned off.
  • step S701 is executed by the first processor of the first electronic device
  • steps S702 to S717 are executed by the second processor of the first electronic device or the second processor of the second electronic device
  • step S718 is executed by the first processor of the first electronic device.
  • Spatial location determination methods include:
  • the target application of the first electronic device subscribes to the relative position between electronic devices to the first processor of the first electronic device through the SDK.
  • the SDK can be loaded into the target application when the target application is packaged, and will run in the target application as the target application is started.
  • the target application can call the SDK to send a subscription request to the first processor including an application with a spatial position management function.
  • the subscription request is used to request to subscribe to the relative position between electronic devices.
  • the first processor can receive the subscription request sent by the target application through the SDK, and generate subscription information according to the subscription request.
  • the first processor can determine the target application as a target application that subscribes to the relative position between electronic devices according to the subscription information.
  • the first processor when the first processor obtains the relative position between the electronic devices, the first processor will send the relative position between the electronic devices to the target application.
  • the SDK When the user closes the target application, the SDK will be closed as the target application is closed. It can be understood that the SDK can also be loaded into the target application when the target application is running, and will run in the target application as the target application is running, and this application is not limited to this.
  • the first processor of the first electronic device before the first electronic device goes to sleep, the first processor of the first electronic device also sends the subscription information to the second processor for storage.
  • the first processor of the first electronic device will also be in sleep mode and will no longer run, and the target application of the first electronic device and the SDK of the first electronic device will also be closed, but the second processor of the first electronic device will not go into sleep mode and will store the subscription information.
  • the target application can also unsubscribe the relative positions between electronic devices to the first processor of the first electronic device, and the first processor of the first electronic device can send deletion information to the second processor to delete the subscription information, which is not limited in this application.
  • the steps of generating subscription information and canceling subscription information can be completed by a subscription management module of the first electronic device.
  • the subscription management module of the first electronic device can be a subscription management module of an electronic device of the spatial position determination system shown in FIG. 5 .
  • the steps of sending subscription information and sending deletion information to the second processor can be completed by the HIFI interaction module of the first electronic device.
  • the HIFI interaction module of the first electronic device can be the HIFI interaction module of the electronic device of the spatial position determination system shown in FIG5.
  • the second electronic device may include a motion sensor.
  • the motion sensor may be used to detect the motion state of the second electronic device.
  • the second electronic device may determine whether the second electronic device meets a preset condition based on the motion state of the second electronic device detected by the motion sensor. Wherein, when the motion state of the second electronic device detected by the motion sensor is stopped after movement, the second electronic device detects that the second electronic device meets the preset condition. Otherwise, the second electronic device detects that the second electronic device does not meet the preset condition.
  • the motion state of "stop after movement” may correspond to the following scenario: the user holds the dormant second electronic device, moves the dormant second electronic device to a position close to the dormant first electronic device, and then does not move the dormant second electronic device again.
  • a detection algorithm for detecting whether the motion state of stopping after movement occurs may be preset in the second electronic device.
  • the motion sensor may be a speed sensor.
  • the speed sensor may be used to detect the motion speed of the second electronic device. When the movement speed of the second electronic device detected by the speed sensor changes from greater than the first preset value to 0, the speed sensor detects that the movement state of the second electronic device is stopping after moving.
  • the motion sensor may be an acceleration sensor.
  • the acceleration sensor may be used to detect the magnitude of the acceleration of the second electronic device in various directions (generally three axes). When the magnitude of the acceleration of the second electronic device detected by the acceleration sensor changes from less than the second preset value to 0, the acceleration sensor detects that the motion state of the second electronic device is stopped after motion.
  • the motion sensor may also be other sensors, and this application does not limit this.
  • step S702 may be completed by a device discovery module of the second electronic device.
  • the device discovery module of the second electronic device may be a device discovery module of an electronic device of the spatial position determination system shown in FIG5 .
  • the second electronic device converts the first information into a first analog audio signal according to a first preset encoding method.
  • the second electronic device may convert the first information into a first ultrasonic signal according to a first preset encoding method.
  • the first information may include preset information.
  • the preset information may be, for example, a hexadecimal number "C8".
  • the first ultrasonic signal may include multiple temporally continuous chirp signals. The frequency of the chirp signal may increase linearly over time or decrease linearly over time. Multiple temporally continuous chirp signals may represent a piece of binary data, which may be used to represent one or more hexadecimal numbers, so that the first ultrasonic signal may represent preset information.
  • the preset information may be used to indicate that the device is online.
  • the preset information may also be used to request the determination of the relative position between electronic devices. It is understandable that, depending on the different applications installed on the second electronic device, or according to the negotiation between the second electronic device and the first electronic device, the preset information may be other information, and different preset information requests different spatial position information between electronic devices to be determined. For example, the hexadecimal number "A8" may be used to request the determination of distance information between electronic devices, and this application does not limit this.
  • the first information may also include a unique identifier of the second electronic device, and the first ultrasonic signal may also carry the unique identifier of the second electronic device.
  • the unique identifier of the electronic device may also be certain hardware information of the electronic device, such as a Bluetooth MAC address, etc.
  • the unique identification information of the electronic device may be a unique identifier formed after processing the hardware information of the electronic device, and this application does not limit the unique identifier of the electronic device.
  • the unique identifier of the second electronic device can be used to identify the second electronic device.
  • step S703 may be completed by a signal codec module of the second electronic device.
  • the signal codec module of the second electronic device may be a signal codec module of the electronic device in the spatial position determination system shown in FIG5.
  • the signal codec module of the second electronic device may also be a separate audio codec chip that comes with the second electronic device.
  • the second electronic device plays the first analog audio signal through a speaker.
  • the first analog audio signal can be used to indicate that the device is online. In some embodiments, the first analog audio signal can be used to indicate that the second electronic device is online. In some embodiments, the first analog audio signal can also be used to request the determination of the relative position between the electronic devices.
  • the first electronic device collects a first analog audio signal through a microphone.
  • the second electronic device plays the first analog audio signal through a speaker, and the first electronic device collects the first analog audio signal through a microphone, thereby eliminating the need to perform network authentication of the first electronic device and the second electronic device before transmission.
  • the preset information can be directly transmitted from the second electronic device to the first electronic device through the speaker and the microphone, so that the first electronic device can subsequently start detecting the relative position between the second electronic device and the first electronic device.
  • the first electronic device converts the first analog audio signal into first information according to a first preset decoding method.
  • the first preset decoding method refers to a decoding method corresponding to the first preset encoding method.
  • the first electronic device may convert the first analog audio signal into the first information according to the first preset decoding method.
  • the first information may include preset information.
  • the preset information may be, for example, a hexadecimal number "C8".
  • the preset information may be used to indicate that the device is online.
  • the first information may also include a unique identifier of the second electronic device.
  • the preset information may also be used to request a determination of relative positions between electronic devices.
  • step S706 may be completed by a signal codec module of the first electronic device.
  • the signal codec module of the first electronic device may be a signal codec module of an electronic device in the spatial position determination system shown in FIG5.
  • the signal codec module of the first electronic device may also be a separate audio codec chip of the first electronic device.
  • S707 The first electronic device determines that the second electronic device is online according to the first information.
  • the first electronic device can determine that the second electronic device is online based on the preset information in the first information and the unique identifier of the second electronic device.
  • the first electronic device can also carry the unique identifier of the second electronic device, so that the second electronic device processes the analog audio signal only after receiving it, while other electronic devices do not process it.
  • step S707 may be completed by a device discovery module of the first electronic device.
  • the block may be a device discovery module of the electronic device of the spatial position determination system shown in FIG. 5 .
  • the first electronic device may start detecting the relative position between the second electronic device and the first electronic device.
  • the first electronic device converts the second information into a second analog audio signal according to a second preset encoding method.
  • the second processor of the first electronic device pre-stores subscription information.
  • the first electronic device may determine whether the spatial location information between the electronic devices requested to be determined by the preset information in the first information matches the subscription information. If the spatial location information between the electronic devices requested to be determined by the preset information in the first information is the same as the subscription information, the first electronic device determines that the first information matches the subscription information.
  • the same may include being exactly the same, and may also include being substantially the same.
  • Substantial similarity can be determined by pre-set rules. For example, if the differences in fonts, simplified and traditional Chinese characters, etc. are substantially the same, it can be determined that they are substantially the same by setting fonts, simplified and traditional Chinese conversions, etc.
  • the first electronic device determines that the first information does not match the subscription information. It can be understood that if the first information does not match the subscription information, the process ends.
  • the first electronic device determines that the first information matches the subscription information. For another example, if the preset information in the first information is "A8", the spatial position information between the electronic devices requested to be determined by “A8” is the distance information between the electronic devices, and the subscription information is the relative position between the electronic devices, then the first electronic device determines that the first information does not match the subscription information.
  • the first electronic device may also omit the matching determination process and directly encode according to the subscription information, and this application does not impose any limitation on this.
  • the above step of determining whether the match is achieved can be completed by a device distance measurement module of the first electronic device.
  • the device distance measurement module of the first electronic device can be a device distance measurement module of an electronic device in the spatial position determination system shown in FIG. 5 .
  • the second information may include digital audio information.
  • the second information may also include a first moment, a second moment, and a distance between the first speaker and the second speaker.
  • the first moment is the moment when the first speaker of electronic device A sends an ultrasonic signal; the second moment is the moment when the second speaker of electronic device A sends an ultrasonic signal.
  • the step of converting the second information into a second analog audio signal may be completed by a signal codec module of the first electronic device.
  • the signal codec module of the first electronic device may be a signal codec module of an electronic device in the spatial position determination system shown in FIG. 5.
  • the first electronic device plays the second analog audio signal through a speaker.
  • the second analog audio signal is used to request a determination of the relative position between the electronic devices.
  • the second electronic device collects a second analog audio signal through a microphone.
  • the first electronic device plays the second analog audio signal through a speaker
  • the second electronic device collects the second analog audio signal through a microphone, so that the second electronic device can receive the second signal and determine the relative position between the second electronic device and the first electronic device based on the received second signal.
  • the second electronic device converts the second analog audio signal into second information according to a second preset decoding method.
  • step S711 may be completed by a signal coding module of the second electronic device.
  • the signal coding module of the second electronic device may be a signal coding module of an electronic device in the spatial position determination system shown in FIG5 .
  • the second electronic device determines a relative position between the second electronic device and the first electronic device according to the second information.
  • the first electronic device may send at least two second analog audio signals through two speakers in sequence at time intervals
  • the second electronic device may collect at least two second analog audio signals through a microphone and convert the at least two second analog audio signals into at least two second information
  • the second electronic device may determine the relative position between the second electronic device and the first electronic device based on the at least two second information.
  • the first electronic device may send at least two second analog audio signals successively through two speakers at time intervals
  • the second electronic device may collect at least two second analog audio signals through the first microphone, and collect at least two second analog audio signals through the second microphone
  • the second electronic device may also convert the signal collected by the first microphone and the signal collected by the second microphone into second information, and determine the relative position between the second electronic device and the first electronic device based on the second information.
  • the first electronic device can send digital audio information, or the first time, the second time and the distance to the second electronic device, and the second electronic device can determine the relative position between the second electronic device and the first electronic device.
  • step S712 may be completed by a device distance measurement module of the second electronic device.
  • the device distance measurement module of the second electronic device may be a device distance measurement module of an electronic device in the spatial position determination system shown in FIG5 .
  • the second electronic device converts the relative position between the second electronic device and the first electronic device into a third analog audio signal according to a third preset encoding method.
  • the third preset encoding method may be different from the first preset encoding method. It is understandable that the third preset encoding method may also be the same as the first preset encoding method, and this application does not limit this.
  • the third preset encoding method may be different from the second preset encoding method. It is understandable that the third preset encoding method may also be the same as the second preset encoding method, and this application does not limit this.
  • step S713 may be completed by a signal coding module of the second electronic device.
  • the signal coding module of the second electronic device may be a signal coding module of an electronic device in the spatial position determination system shown in FIG5 .
  • S714 The second electronic device plays the third analog audio signal through the speaker.
  • the third analog audio signal may be used to notify the relative position between the second electronic device and the first electronic device.
  • the first electronic device collects a third analog audio signal through a microphone.
  • the second electronic device plays the third analog audio signal through a speaker
  • the first electronic device collects the third analog audio signal through a microphone, thereby eliminating the need to perform network authentication between the first electronic device and the second electronic device before transmission.
  • the relative position between the second electronic device and the first electronic device can be directly transmitted from the second electronic device to the first electronic device through the speaker and the microphone, so that the first electronic device can start collaborative work between the second electronic device and the first electronic device.
  • the first electronic device converts the third analog audio signal into a relative position between the second electronic device and the first electronic device according to a third preset decoding method.
  • step S716 may be completed by a signal coding module of the first electronic device.
  • the signal coding module of the first electronic device may be a signal coding module of an electronic device in the spatial position determination system shown in FIG5 .
  • S717 The first electronic device wakes up the first processor of the first electronic device according to the relative position between the second electronic device and the first electronic device.
  • the first electronic device may also determine whether the relative position between the second electronic device and the first electronic device satisfies a preset position relationship.
  • the preset position relationship may be, for example, that the second electronic device is located in the left area or the right area of the first electronic device.
  • the first electronic device can wake up the first processor of the first electronic device through the HIFI interaction module in the first processor of the first electronic device. Therefore, the first processor of the first electronic device can subsequently display information, run the target application, perform networking authentication with the second electronic device, and send information to the second electronic device through a wireless or wired communication link.
  • S718 The first electronic device turns off the screen and displays the icon of the second electronic device on the screen of the first electronic device.
  • the first electronic device turns off the screen and displays a small bubble icon 901 on the screen of the first electronic device 900, as shown in Figure 9. It is understandable that the icon of the second electronic device can also be other icons, such as a mobile phone icon, etc., and this application does not limit this.
  • the first electronic device may determine the target display position of the icon of the second electronic device on the screen according to the relative position between the second electronic device and the first electronic device, and display the icon of the second electronic device at the target display position on the screen. For example, if the relative position between the second electronic device and the first electronic device is that the second electronic device is located in the left area of the first electronic device, the first electronic device may display the icon of the second electronic device in the lower left corner of the screen; if the relative position between the second electronic device and the first electronic device is that the second electronic device is located in the right area of the first electronic device, the first electronic device may display the icon of the second electronic device in the lower right corner of the screen. It is understandable that the icon of the second electronic device may also be displayed in other positions, and this application does not limit this.
  • the first electronic device may also run the target application in response to the operation of the icon of the second electronic device. Since the target application has subscribed to the relative position between the electronic devices to the first processor, the first electronic device may also send the relative position between the second electronic device and the first electronic device to the target application through the first processor and the SDK. The first electronic device may also perform networking authentication with the second electronic device, establish a wireless or wired communication link, and notify the second electronic device to wake up the first processor of the second electronic device through the wireless or wired communication link.
  • the first electronic device also sends the preset content to be displayed to the second electronic device through the established wireless communication link based on the relative position between the second electronic device and the first electronic device, and the first electronic device and the second electronic device may collaborate. Office.
  • the relative position between the second electronic device and the first electronic device is that the second electronic device is located on the left side of the first electronic device
  • the first electronic device can send the preset WPS document annotation interface to the second electronic device through the established wireless communication link, the first electronic device displays the preset WPS document main interface, and the second electronic device displays the preset WPS document annotation interface, so that the first electronic device and the second electronic device perform collaborative office, as shown in Figure 10.
  • the first electronic device 1001 and the second electronic device 1002 jointly display the preset WPS document in the first electronic device.
  • Figure 10 is an example of collaborative office, and this application does not limit this.
  • the relative position between the second electronic device and the first electronic device is that the second electronic device is located on the right side of the first electronic device, then the first electronic device can send the preset WPS document directory interface to the second electronic device through the established wireless communication link, the first electronic device displays the preset WPS document main interface, and the second electronic device displays the preset WPS document directory interface, so that the first electronic device and the second electronic device can also perform collaborative office.
  • the first electronic device can respond to the user's operation of dragging the first WPS document to expand the content displayed on the first electronic device to the second electronic device for display.
  • the relative position between the second electronic device and the first electronic device is that the second electronic device is located on the left side of the first electronic device, then the first electronic device can respond to the user's operation of dragging the first WPS document to the left and expand the content displayed on the first electronic device to the second electronic device for display.
  • the relative position between the second electronic device and the first electronic device is that the second electronic device is located on the right side of the first electronic device, then the first electronic device can respond to the user's operation of dragging the first WPS document to the right and expand the content displayed on the first electronic device to the second electronic device for display.
  • the first electronic device may also determine whether an operation on the icon of the second electronic device is received within a preset time. If an operation on the icon of the second electronic device is not received within the preset time, the first electronic device stops displaying the operation on the icon of the second electronic device. If an operation on the icon of the second electronic device is received within the preset time, the first electronic device may also run the target application in response to the operation on the icon of the second electronic device.
  • the first electronic device before the first electronic device runs the target application, the first electronic device also displays the first preset unlocking interface.
  • the first preset unlocking interface may display at least one of password unlocking, face unlocking, fingerprint unlocking, iris unlocking, voice unlocking, and sound wave unlocking.
  • the password unlocking includes at least one of digital password unlocking, pattern unlocking, and PIN unlocking.
  • the first electronic device also responds to the operation of inputting unlocking information in the first preset unlocking interface. If the input unlocking information matches the preset first unlocking information, the screen is unlocked and the target application is run. If the input unlocking information does not match the preset first unlocking information, the screen continues to display the icon of the second electronic device.
  • the first electronic device may also omit displaying the first preset unlocking interface and directly display the main interface of the first electronic device.
  • the first electronic device also responds to the operation of opening the target application on the main interface and runs the target application. It is understood that the first electronic device may also enter other interfaces in response to the operation on the main interface, and the target application may be opened after one or more operations, and this application does not limit this.
  • the second electronic device before the second electronic device performs collaborative work with the first electronic device, the second electronic device also displays a second preset unlocking interface, and the second electronic device also responds to the operation of inputting unlocking information in the second preset unlocking interface, and if the input unlocking information matches the preset second unlocking information, the screen is unlocked and collaborative work is performed with the first electronic device. If the input unlocking information does not match the preset second unlocking information, the screen is locked.
  • step S701 may be that before the first electronic device goes into sleep, the operating system of the first electronic device subscribes to the relative position between the electronic devices. Then, after step S718, the first electronic device may also respond to the operation of the icon of the second electronic device, and send the relative position between the second electronic device and the first electronic device to the first processor.
  • the first processor of the first electronic device may determine the application program that can use the relative position information between the electronic devices for multi-device collaboration based on the relative position between the second electronic device and the first electronic device, and display the determined application program, such as the icon of the WPS application, the icon of the multi-screen collaborative application, etc.
  • the first processor of the first electronic device may also respond to the operation of selecting the target icon, such as the operation of selecting the icon of the WPS application, and run the WPS application. Subsequently, the first electronic device may send the relative position between the second electronic device and the first electronic device to the WPS application, perform networking authentication with the second electronic device, notify the second electronic device to wake up the first processor of the second electronic device, and perform collaborative office work between the first electronic device and the second electronic device.
  • the application program may also be other applications, such as a camera application, etc., and this application does not limit this.
  • the spatial position determination method shown in FIG. 7 can be applied not only to the scenario where both the first electronic device and the second electronic device are in sleep mode, but also to the scenario where the first electronic device is in sleep mode and the second electronic device is not in sleep mode.
  • the second electronic device 1102 runs the target application, as shown in FIG11.
  • the first electronic device 1101 is in sleep mode, at which time the screen of the first electronic device 1101 is turned off and the operating system and application programs are stopped.
  • the second electronic device 1102 displays the second WPS document. It can be understood that FIG11 is an example of a scenario where the first electronic device is in sleep mode and the second electronic device is not in sleep mode, and this application does not limit this.
  • step S702a replaces step S702 in FIG. 7 :
  • the second electronic device may determine whether the second electronic device meets the preset condition according to the state of the target application. When the second electronic device detects that the target application is in the running state, the second electronic device detects that the second electronic device meets the preset condition. Otherwise, the second electronic device detects that the second electronic device does not meet the preset condition.
  • "the target application is in the running state” may correspond to the following scenarios: after the first electronic device is in sleep mode, the user opens the second WPS document on the second electronic device, so that the second WPS document is displayed on the second electronic device; or after the user opens the second WPS document on the second electronic device, the first electronic device automatically or manually goes into sleep mode, and the second WPS document is displayed on the second electronic device.
  • the second electronic device may be preset with a detection algorithm for detecting whether the target application is in the running state.
  • the spatial position determination method applied to a scenario where the first electronic device is in sleep mode and the second electronic device is not in sleep mode is different from the spatial position determination method applied to a scenario where both the first electronic device and the second electronic device are in sleep mode in FIG. 7 in that:
  • the first electronic device may omit notifying the second electronic device to wake up the first processor of the second electronic device, and directly send the preset content to be displayed to the second electronic device through the established wireless communication link according to the relative position between the second electronic device and the first electronic device, and the first electronic device and the second electronic device directly work together, as shown in Figure 10.
  • the process of the first electronic device and the second electronic device directly working together is similar to the process of the first electronic device and the second electronic device working together in the scenario where both the first electronic device and the second electronic device are dormant, and will not be repeated here.
  • the first electronic device 1001 and the second electronic device 1002 jointly display the preset WPS document in the first electronic device. It can be understood that the second electronic device can also simultaneously display the second WPS document in the second electronic device, and this application does not limit this.
  • the second electronic device may not display the second WPS document, but is in a locked screen state.
  • "in a locked screen state” may correspond to the following scenarios: when the first electronic device is dormant and the second electronic device displays the second WPS document, the user manually locks the screen of the second electronic device, and the second electronic device enters a locked screen state; or when the first electronic device is dormant and the second electronic device displays the second WPS document, the second electronic device automatically locks the screen and enters a locked screen state. In the locked screen state, the second WPS document of the second electronic device is still in operation, but no longer continues to be displayed.
  • the first electronic device After step S718, and after the first electronic device and the second electronic device perform networking authentication and establish a wireless or wired communication link, the first electronic device notifies the second electronic device to display the second preset unlock interface through the wireless or wired communication link, and determines whether to unlock according to the unlock information entered in the second preset unlock interface.
  • the first electronic device can send the preset content to be displayed to the second electronic device through the established wireless communication link according to the relative position between the second electronic device and the first electronic device, and the first electronic device and the second electronic device directly perform collaborative office work.
  • the spatial position determination method shown in Figure 7 can be applied not only to the scenario in which the first electronic device and the second electronic device are both asleep, but also to the scenario in which the first electronic device is not asleep and the second electronic device is asleep.
  • the first electronic device runs the target application, as shown in Figure 12.
  • the first electronic device 1201 displays the first WPS document, and the second electronic device 1202 is asleep.
  • the screen of the second electronic device 1101 is turned off and the operating system and application programs are stopped.
  • Figure 12 is an example of a scenario in which the first electronic device is not asleep and the second electronic device is asleep, and the present application does not limit this.
  • the method for determining a spatial position in a scenario where the first electronic device is not in sleep mode and the second electronic device is in sleep mode is similar to the method for determining a spatial position in a scenario where both the first electronic device and the second electronic device are in sleep mode in FIG. 7 , except that, in a scenario where the first electronic device is not in sleep mode and the second electronic device is in sleep mode, step S701b replaces step S701 in FIG. 7 , step S702b replaces step S702 in FIG. 7 , and steps S717-S718 in FIG. 7 are omitted:
  • step S701b the target application of the first electronic device subscribes to the relative positions between the electronic devices. It is understandable that step S701b can be interchanged with step S702 or step S703, and this application does not limit this.
  • the motion state of "stop after motion” may correspond to the following scenario: the user holds the dormant second electronic device, moves the dormant second electronic device to a position close to the first electronic device displaying the first WPS document, and then does not move the dormant second electronic device any more.
  • the spatial position determination method applied to a scenario where the first electronic device is not in sleep mode and the second electronic device is in sleep mode is different from the spatial position determination method applied to a scenario where both the first electronic device and the second electronic device are in sleep mode in FIG. 7 in that:
  • the first electronic device can omit running the target application and directly send the relative position between the second electronic device and the first electronic device to the target application through the first processor and SDK. Subsequently, the first electronic device can perform networking authentication with the second electronic device, establish a wireless or wired communication link, wake up the first processor of the second electronic device, and send the preset content of the first WPS document, and the first electronic device and the second electronic device can work together.
  • the process of the first electronic device and the second electronic device working together is similar to the process of the first electronic device and the second electronic device working together in the scenario where both the first electronic device and the second electronic device are in sleep mode, and will not be repeated here.
  • the first electronic device may not display the second WPS document, but is in a locked screen state.
  • "in a locked screen state” may correspond to the following scenarios: when the second electronic device is dormant and the first electronic device displays the first WPS document, the user manually locks the screen of the first electronic device, and the first electronic device enters a locked screen state; or when the second electronic device is dormant and the first electronic device displays the first WPS document, the first electronic device automatically locks the screen and enters a locked screen state. In the locked screen state, the first WPS document of the first electronic device is still in operation, but no longer continues to be displayed.
  • the first electronic device displays the icon of the second electronic device on the screen of the first electronic device.
  • the first electronic device may also display a first preset unlocking interface in response to the operation of the icon of the second electronic device, and determine whether to unlock according to the unlocking information entered in the first preset unlocking interface.
  • the first electronic device can run the target application and directly send the relative position between the second electronic device and the first electronic device to the target application through the first processor and SDK.
  • the spatial position determination method shown in Figure 7 can be applied not only to the scenario in which the first electronic device and the second electronic device are both in sleep mode, but also to the scenario in which the first electronic device and the second electronic device are not in sleep mode.
  • the first electronic device 1301 and the second electronic device 1302 both run the target application, as shown in Figure 13.
  • the first electronic device 1301 displays a first WPS document
  • the second electronic device 1302 displays a second WPS document.
  • Figure 13 is an example of a scenario in which the first electronic device and the second electronic device are not in sleep mode, and the present application does not limit this.
  • the method for determining a spatial position in a scenario where the first electronic device is not in sleep and the second electronic device is not in sleep is similar to the method for determining a spatial position in a scenario where both the first electronic device and the second electronic device are in sleep in FIG. 7 , except that, in a scenario where the first electronic device is not in sleep and the second electronic device is not in sleep, step S701c replaces step S701 in FIG. 7 , step S702c replaces step S702 in FIG. 7 , and steps S717-S718 in FIG. 7 are omitted:
  • step S701c the target application of the first electronic device subscribes to the relative positions between the electronic devices. It is understandable that step S701c can be interchanged with step S702 or step S703, and this application does not limit this.
  • the second electronic device may determine whether the second electronic device meets the preset condition according to the state of the target application. When the second electronic device detects that the target application is in the running state, the second electronic device detects that the second electronic device meets the preset condition. Otherwise, the second electronic device detects that the second electronic device does not meet the preset condition.
  • the target application is in the running state may correspond to the following scenario: after the first electronic device displays the first WPS document, the user opens the second WPS document on the second electronic device, so that the second WPS document is displayed on the second electronic device; or after the user opens the second WPS document on the second electronic device, the first WPS document on the first electronic device is also opened, so that the first WPS document is displayed on the first electronic device, and the second WPS document is displayed on the second electronic device.
  • the first electronic device and the second electronic device each run their own WPS documents and do not enter the collaborative office state.
  • the second electronic device may be preset with a detection algorithm for detecting whether the target application is in the running state.
  • the spatial position determination method applied to the scenario where the first electronic device and the second electronic device are not in sleep mode is different from the spatial position determination method applied to the scenario where both the first electronic device and the second electronic device in FIG. 7 are in sleep mode in that:
  • the first electronic device can omit running the target application and directly send the relative position between the second electronic device and the first electronic device to the target application through the first processor and SDK. Subsequently, the first electronic device can perform networking authentication with the second electronic device, establish a wireless or wired communication link, and send a wireless or wired communication link to the second electronic device.
  • the second electronic device sends the preset content of the first WPS document, and the first electronic device and the second electronic device can work collaboratively, as shown in Figure 10.
  • the process of the first electronic device and the second electronic device working collaboratively is similar to the process of the first electronic device and the second electronic device working collaboratively in the scenario where both the first electronic device and the second electronic device are dormant, and will not be repeated here.
  • the first electronic device 1001 and the second electronic device 1002 jointly display the first WPS document in the first electronic device. It is understandable that the second electronic device can also simultaneously display the second WPS document in the second electronic device, and this application does not limit this.
  • the first electronic device may not display the first WPS document, and the second electronic device may not display the second WPS document, but the first electronic device is in a locked screen state and the second electronic device is in a locked screen state.
  • the first electronic device is in a locked screen state and the second electronic device is in a locked screen state
  • the user manually locks the screen of the first electronic device or the first electronic device automatically locks the screen
  • the user manually locks the screen of the second electronic device or the second electronic device automatically locks the screen
  • the first electronic device and the second electronic device enter a locked screen state.
  • the first WPS document of the first electronic device and the second WPS document of the second electronic device are still in a running state, but are no longer displayed.
  • the first electronic device displays the icon of the second electronic device on the screen of the first electronic device.
  • the first electronic device displays a first preset unlocking interface, and determines whether to unlock according to the unlocking information input in the first preset unlocking interface.
  • the first electronic device sends the relative position between the second electronic device and the first electronic device to the target application through the first processor and SDK.
  • the first electronic device can also perform networking authentication with the second electronic device, establish a wireless or wired communication link, notify the second electronic device to display the second preset unlocking interface through the wireless or wired communication link, and determine whether to unlock according to the unlocking information entered in the second preset unlocking interface.
  • the first electronic device can send the preset content to be displayed to the second electronic device through the established wireless communication link according to the relative position between the second electronic device and the first electronic device, and the first electronic device and the second electronic device can directly work together.
  • the first electronic device may be in a locked screen state or the second electronic device may be in a locked screen state, and this application does not impose any restrictions on this.
  • FIG14 is a flow chart of a method for determining a spatial position provided in an embodiment of the present application.
  • the method includes:
  • the second electronic device controls a speaker to play a first analog audio signal, where the first analog audio signal is used to indicate that the second electronic device is online.
  • the first electronic device controls a microphone to collect a first analog audio signal, and controls a speaker to play a second analog audio signal according to pre-stored subscription information in response to the first analog audio signal, where the second analog audio signal is used to request determination of the spatial position between the electronic devices.
  • the second electronic device controls the microphone to collect a second analog audio signal, and determines a spatial position between the second electronic device and the first electronic device according to the second analog audio signal.
  • the second electronic device generates a third analog audio signal according to the spatial position between the second electronic device and the first electronic device, and controls the speaker to play the third analog audio signal, where the third analog audio signal is used to notify the spatial position between the second electronic device and the first electronic device.
  • the first electronic device controls the microphone to collect a third analog audio signal, and obtains a spatial position between the second electronic device and the first electronic device through the third analog audio signal.
  • the second electronic device controls the speaker to play the first analog audio signal, including: after the second electronic device goes into sleep mode, if the motion sensor of the second electronic device detects that the motion state of the second electronic device is motion followed by stop, the second electronic device controls the speaker to play the first analog audio signal.
  • the second electronic device controls the speaker to play the first analog audio signal, including: if the second electronic device detects that the target application is in a running state, the second electronic device controls the speaker to play the first analog audio signal.
  • the method before the second electronic device controls the speaker to play the first analog audio signal, the method also includes: the second electronic device binary encodes preset information and encodes the encoded binary data into a first analog audio signal, the preset information is used to indicate that the second electronic device is online, the first analog audio signal includes at least one of a first chirp signal and a second chirp signal, the first chirp signal is used to represent a binary code of 0, and the second chirp signal is used to represent a binary code of 1.
  • the first electronic device includes a first processor, the first processor is in a dormant state, and after the first electronic device obtains the spatial position between the second electronic device and the first electronic device through the third analog audio signal, the method further includes: waking up the first electronic device The first processor: The first electronic device turns off the screen to display the icon of the second electronic device according to the spatial position between the second electronic device and the first electronic device through the first processor.
  • the first electronic device turns off the screen to display the icon of the second electronic device according to the spatial position between the second electronic device and the first electronic device, including: the first electronic device determines the target display position of the icon of the second electronic device according to the spatial position between the second electronic device and the first electronic device; the first electronic device turns off the screen to display the icon of the second electronic device at the target display position.
  • the method before the first electronic device controls a speaker to play a second analog audio signal in response to the first analog audio signal according to pre-stored subscription information, the method also includes: before the first processor sleeps, a target application or operating system of the first electronic device sends a subscription request to the first processor, the subscription request being used to request subscription to a first type of spatial location between electronic devices; the first electronic device generates subscription information according to the subscription request through the first processor; and the first electronic device saves the subscription information.
  • the first analog audio signal is also used to request determination of a second type of relative position between electronic devices; the first electronic device controls the speaker to play the second analog audio signal according to pre-stored subscription information in response to the first analog audio signal, including: if the first analog audio signal matches the pre-stored subscription information, the first electronic device controls the speaker to play the second analog audio signal according to the pre-stored subscription information in response to the first analog audio signal.
  • the type of spatial position between the electronic devices includes relative positions between the electronic devices and distance information between the electronic devices.
  • the method further includes: the first electronic device collaborates with the second electronic device in response to an operation on the icon of the second electronic device.
  • FIG. 15 is a flowchart of another spatial position determination method provided in an embodiment of the present application.
  • the method is applied to a first electronic device.
  • the first electronic device includes a first processor and a second processor, and the second processor is connected to the first processor.
  • the operating power consumption of the second processor is less than the operating power consumption of the first processor.
  • the method includes:
  • the second processor controls the microphone to collect a first analog audio signal, and controls the speaker to play a second analog audio signal in response to the first analog audio signal according to pre-stored subscription information, where the first analog audio signal is an audio signal played by the speaker of the second electronic device, and the first analog audio signal is used to indicate that the second electronic device is online, and the second analog audio signal is used to request determination of the spatial position between the electronic devices, and the pre-stored subscription information includes subscribers.
  • the second processor controls the microphone to collect a third analog audio signal, where the third analog audio signal is an audio signal played by a speaker of the second electronic device, and the third analog audio signal is used to notify the spatial position between the second electronic device and the first electronic device.
  • the second processor sends the spatial position between the second electronic device and the first electronic device in the third analog audio signal to the subscriber through the first processor.
  • the method before the second processor controls the microphone to collect the first analog audio signal, the method also includes: the first processor enters a sleep state; before the second processor sends the spatial position between the second electronic device and the first electronic device in the third analog audio signal to the subscriber through the first processor, the method also includes: the second processor wakes up the first processor.
  • the method before the first processor enters a sleep state, the method also includes: a subscriber sends a subscription request to the first processor, the subscription request is used to request subscription to a first type of spatial location between electronic devices; the subscriber includes a target application or an operating system; the first processor generates subscription information based on the subscription request; the first processor sends the subscription information to the second processor for storage.
  • the first processor is an application processor and the second processor is an audio digital signal processor.
  • the method before the second processor controls the speaker to play the second analog audio signal in response to the first analog audio signal according to the pre-stored subscription information, the method also includes: the second processor decodes the first analog audio signal into binary data, and decodes the binary data into preset information, the first analog audio signal includes at least one of a first chirp signal and a second chirp signal, the first chirp signal is used to represent the binary code 0, the second chirp signal is used to represent the binary code 1, and the preset information is used to indicate that the second electronic device is online.
  • the method further includes: the first electronic device collaborates with the second electronic device.
  • an embodiment of the present application also provides a computer-readable storage medium, which stores a program, and the program enables the electronic device to implement the spatial position determination method shown in Figure 14 or Figure 15.
  • a computer program product includes computer execution instructions, which are stored in a computer-readable storage medium; at least one processor of an electronic device can read the computer execution instructions from the computer-readable storage medium, and at least one processor executes the computer execution instructions so that the electronic device executes the spatial position determination method shown in Figure 14 or Figure 15.
  • the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
  • a computer device which can be a personal computer, a server, or a network device, etc.
  • all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof.
  • all or part of the embodiments may be implemented in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means.
  • wired e.g., coaxial cable, optical fiber, digital subscriber line (DSL)
  • wireless e.g., infrared, wireless, microwave, etc.
  • the computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that includes one or more available media integrated.
  • Available media may be magnetic media (e.g., floppy disk, hard disk, tape), optical media (e.g., DVD), or semiconductor media (e.g., solid-state drive (SSD)), etc.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Telephone Function (AREA)

Abstract

本申请公开了一种空间位置确定方法、***及其设备,可无需通过组网与认证便可直接进行空间位置的确定。一种方法包括:第一电子设备控制麦克风采集第一模拟音频信号,并响应于第一模拟音频信号根据预存订阅信息控制扬声器播放第二模拟音频信号,第一模拟音频信号是第二电子设备的扬声器播放的音频信号,第二模拟音频信号用于请求进行电子设备之间的空间位置的确定;第一电子设备控制麦克风采集第三模拟音频信号,第三模拟音频信号是第二电子设备的扬声器播放的音频信号,第三模拟音频信号用于通知第二电子设备和第一电子设备之间的空间位置;第一电子设备通过第三模拟音频信号获取第二电子设备与第一电子设备之间的空间位置。

Description

空间位置确定方法、***及其设备
本申请要求于2022年11月8日提交中国国家知识产权局、申请号为202211393980.7、发明名称为“空间位置确定方法、***及其设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端领域,尤其涉及一种空间位置确定方法、***及其设备。
背景技术
目前,超声波是声波的一部分,是人耳听不见、频率高于20KHZ的声波。超声波具有良好的方向性,可向一定方向传播,且可被定向采集,因此,可基于TOA(Time of Arrival,到达时间)或者TDOA(Time Difference of Arrival,到达时间差)等方法通过超声波来实现两个电子设备之间的距离、两个电子设备之间的角度等空间位置的确定。但是,在确定空间位置之前,需要两个电子设备先完成组网与认证。没有完成组网与认证的两个电子设备无法实现空间位置的确定。
发明内容
鉴于以上内容,有必要提供一种空间位置确定方法、***及其设备,可无需通过组网与认证便可直接进行空间位置的确定。
第一方面,本申请的一实施例提供一种空间位置确定方法,应用于包括第一电子设备和第二电子设备的***中,所述方法包括:所述第二电子设备控制扬声器播放第一模拟音频信号,所述第一模拟音频信号用于指示所述第二电子设备在线;所述第一电子设备控制麦克风采集所述第一模拟音频信号,并响应于所述第一模拟音频信号根据预存订阅信息控制扬声器播放第二模拟音频信号,所述第二模拟音频信号用于请求进行电子设备之间的空间位置的确定;所述第二电子设备控制麦克风采集所述第二模拟音频信号,并根据所述第二模拟音频信号确定所述第二电子设备与所述第一电子设备之间的空间位置;所述第二电子设备根据所述第二电子设备与所述第一电子设备之间的空间位置生成第三模拟音频信号,并控制所述扬声器播放所述第三模拟音频信号,所述第三模拟音频信号用于通知所述第二电子设备与所述第一电子设备之间的空间位置;所述第一电子设备控制所述麦克风采集所述第三模拟音频信号,并通过所述第三模拟音频信号获取所述第二电子设备与所述第一电子设备之间的空间位置。
本申请的第一方面,第二电子设备通过扬声器播放第一模拟音频信号,且第一电子设备通过麦克风采集第一模拟音频信号,从而无需传送之前进行第一电子设备和第二电子设备的组网认证,第一模拟音频信号可直接通过扬声器和麦克风从第二电子设备传送至第一电子设备,且第一电子设备可开始第二电子设备和第一电子设备之间的相对位置的检测;第一电子设备通过扬声器播放第二模拟音频信号,且第二电子设备通过麦克风采集第二模拟音频信号,从而第二电子设备可接收第二模拟音频信号,并根据接收的第二模拟音频信号确定第二电子设备和第一电子设备之间的相对位置;第二电子设备通过扬声器播放第三模拟音频信号,且第一电子设备通过麦克风采集第三模拟音频信号,从而无需传送之前进行第一电子设备和第二电子设备的组网认证,第二电子设备与第一电子设备之间的相对位置可直接通过扬声器和麦克风从第二电子设备传送至第一电子设备。从而可无需通过组网与认证便可直接进行空间位置的确定。
根据本申请的一些实施例,所述第二电子设备控制扬声器播放第一模拟音频信号包括:在所述第二电子设备休眠之后,若所述第二电子设备的运动传感器检测到所述第二电子设备的运动状态为运动后停止,所述第二电子设备控制所述扬声器播放所述第一模拟音频信号。本申请通过在第二电子设备休眠之后,第二电子设备可根据运动传感器检测的第二电子设备的运动状态来控制扬声器播放第一模拟音频信号,可实现第二电子设备休眠时启动第一模拟音频信号的播放。
根据本申请的一些实施例,所述第二电子设备控制扬声器播放第一模拟音频信号包括:若所述第二电 子设备侦测到目标应用程序处于运行状态下,所述第二电子设备控制所述扬声器播放所述第一模拟音频信号。本申请通过第二电子设备的目标应用程序的运行来控制扬声器播放第一模拟音频信号,可实现第二电子设备未休眠时启动第一模拟音频信号的播放。
根据本申请的一些实施例,在所述第二电子设备控制扬声器播放第一模拟音频信号之前,所述方法还包括:所述第二电子设备对预设信息进行二进制编码,并将编码后的二进制数据编码为所述第一模拟音频信号,所述预设信息用于表示所述第二电子设备在线,所述第一模拟音频信号包括第一啁啾信号和第二啁啾信号中的至少一种,所述第一啁啾信号用于表示二进制代码0,所述第二啁啾信号用于表示二进制代码1。本申请通过二进制编码后的编码,使得第一模拟音频信号中可携带预设信息。
根据本申请的一些实施例,所述第一电子设备包括第一处理器,所述第一处理器处于休眠状态,在所述第一电子设备通过所述第三模拟音频信号获取所述第二电子设备与所述第一电子设备之间的空间位置之后,所述方法还包括:所述第一电子设备唤醒所述第一处理器;所述第一电子设备通过所述第一处理器根据所述第二电子设备与所述第一电子设备之间的空间位置熄屏显示所述第二电子设备的图标。本申请通过在第一处理器进入休眠状态后,第一电子设备仍可进行空间位置的确定,使得在休眠场景下,也可实现设备的发现和信息的传输;同时在确定空间位置之后,唤醒第一处理器进行熄屏显示第二电子设备的图标,可在熄屏场景下提示用户。
根据本申请的一些实施例,所述第一电子设备根据所述第二电子设备与所述第一电子设备之间的空间位置熄屏显示所述第二电子设备的图标包括:所述第一电子设备根据所述第二电子设备与所述第一电子设备之间的空间位置确定所述第二电子设备的图标的目标显示位置;所述第一电子设备在所述目标显示位置熄屏显示所述第二电子设备的图标。本申请通过根据第二电子设备与第一电子设备之间的空间位置,在不同的位置显示第二电子设备的图标,可后续进行不同的协同模式。
根据本申请的一些实施例,在所述第一电子设备响应于所述第一模拟音频信号根据预存订阅信息控制扬声器播放第二模拟音频信号之前,所述方法还包括:在所述第一处理器休眠之前,所述第一电子设备的目标应用程序或操作***向所述第一处理器发送订阅请求,所述订阅请求用于请求订阅电子设备之间的第一类型的空间位置;所述第一电子设备通过所述第一处理器根据所述订阅请求生成所述订阅信息;所述第一电子设备保存所述订阅信息。本申请通过在第一处理器休眠之前,目标应用程序或操作***向第一电子设备订阅电子设备之间的空间位置,并存储电子设备之间的空间信息,可实现预存订阅信息,从而在第一处理器休眠之后,直接使用预存订阅信息。
根据本申请的一些实施例,所述第一模拟音频信号还用于请求进行电子设备之间的第二类型的相对位置的确定;所述第一电子设备响应于所述第一模拟音频信号根据预存订阅信息控制扬声器播放第二模拟音频信号包括:若所述第一模拟音频信号与所述预存订阅信息匹配,所述第一电子设备响应于所述第一模拟音频信号根据所述预存订阅信息控制所述扬声器播放所述第二模拟音频信号。本申请通过在第一模拟音频信号与预存订阅信息匹配时,才控制扬声器播放第二模拟音频信号,可避免不匹配时进行空间位置的确定的浪费。
根据本申请的一些实施例,所述电子设备之间的空间位置的类型包括所述电子设备之间的相对位置和所述电子设备之间的距离信息。本申请通过电子设备之间的空间位置的类型包括所述电子设备之间的相对位置和所述电子设备之间的距离信息,可实现多种空间位置的确定。
根据本申请的一些实施例,在所述第一电子设备熄屏显示所述第二电子设备的图标之后,所述方法还包括:所述第一电子设备响应于对所述第二电子设备的图标的操作,与所述第二电子设备进行协同。本申请通过第一电子设备与第二电子设备进行协同,可实现跨设备的资源共享,协同操作。
第二方面,本申请的一实施例还提供一种空间位置确定方法,所述方法包括:第一电子设备控制麦克风采集第一模拟音频信号,并响应于所述第一模拟音频信号根据预存订阅信息控制扬声器播放第二模拟音频信号,所述第一模拟音频信号是第二电子设备的扬声器播放的音频信号,所述第一模拟音频信号用于指示所述第二电子设备在线,所述第二模拟音频信号用于请求进行电子设备之间的空间位置的确定;所述第一电子设备控制所述麦克风采集第三模拟音频信号,所述第三模拟音频信号是所述第二电子设备的所述扬声器播放的音频信号,所述第三模拟音频信号用于通知所述第二电子设备和所述第一电子设备之间的空间位置;所述第一电子设备通过所述第三模拟音频信号获取所述第二电子设备与所述第一电子设备之间的空 间位置。
根据本申请的一些实施例,在所述第一电子设备响应于所述第一模拟音频信号根据预存订阅信息控制扬声器播放第二模拟音频信号之前,所述方法还包括:所述第一电子设备将所述第一模拟音频信号解码为二进制数据,并将所述二进制数据解码为预设信息,所述第一模拟音频信号包括第一啁啾信号和第二啁啾信号中的至少一种,所述第一啁啾信号用于表示二进制代码0,所述第二啁啾信号用于表示二进制代码1,所述预设信息用于表示所述第二电子设备在线。
根据本申请的一些实施例,所述第一电子设备包括第一处理器,所述第一处理器处于休眠状态,在所述第一电子设备通过所述第三模拟音频信号获取所述第二电子设备与所述第一电子设备之间的空间位置之后,所述方法还包括:所述第一电子设备唤醒所述第一处理器;所述第一电子设备通过所述第一处理器根据所述第二电子设备与所述第一电子设备之间的空间位置熄屏显示所述第二电子设备的图标。
根据本申请的一些实施例,所述第一电子设备根据所述第二电子设备与所述第一电子设备之间的空间位置熄屏显示所述第二电子设备的图标包括:所述第一电子设备根据所述第二电子设备与所述第一电子设备之间的空间位置确定所述第二电子设备的图标的目标显示位置;所述第一电子设备在所述目标显示位置熄屏显示所述第二电子设备的图标。
根据本申请的一些实施例,在所述第一电子设备响应于所述第一模拟音频信号根据预存订阅信息控制扬声器播放第二模拟音频信号之前,所述方法还包括:在所述第一处理器休眠之前,所述第一电子设备的目标应用程序或操作***向所述第一处理器发送订阅请求,所述订阅请求用于请求订阅电子设备之间的第一类型的空间位置;所述第一电子设备通过所述第一处理器根据所述订阅请求生成所述订阅信息;所述第一电子设备保存所述订阅信息。
根据本申请的一些实施例,所述第一模拟音频信号还用于请求进行电子设备之间的第二类型的相对位置的确定;所述第一电子设备响应于所述第一模拟音频信号根据预存订阅信息控制扬声器播放第二模拟音频信号包括:若所述第一模拟音频信号与所述预存订阅信息匹配,所述第一电子设备响应于所述第一模拟音频信号根据所述预存订阅信息控制所述扬声器播放所述第二模拟音频信号。
根据本申请的一些实施例,所述电子设备之间的空间位置的类型包括所述电子设备之间的相对位置和所述电子设备之间的距离信息。
根据本申请的一些实施例,在所述第一电子设备熄屏显示所述第二电子设备的图标之后,所述方法还包括:所述第一电子设备响应于对所述第二电子设备的图标的操作,与所述第二电子设备进行协同。
第三方面,本申请的一实施例还提供一种空间位置确定方法,应用于第一电子设备,所述第一电子设备包括第一处理器和第二处理器,所述第二处理器与所述第一处理器连接,所述第二处理器的运行功耗小于所述第一处理器的运行功耗,所述方法包括:所述第二处理器控制麦克风采集第一模拟音频信号,并响应于所述第一模拟音频信号根据预存订阅信息控制扬声器播放第二模拟音频信号,所述第一模拟音频信号是第二电子设备的扬声器播放的音频信号,所述第一模拟音频信号用于指示所述第二电子设备在线,所述第二模拟音频信号用于请求进行电子设备之间的空间位置的确定,所述预存订阅信息包括订阅者;所述第二处理器控制所述麦克风采集第三模拟音频信号,所述第三模拟音频信号是所述第二电子设备的所述扬声器播放的音频信号,所述第三模拟音频信号用于通知所述第二电子设备和所述第一电子设备之间的空间位置;所述第二处理器通过所述第一处理器发送所述第三模拟音频信号中的所述第二电子设备和所述第一电子设备之间的空间位置至所述订阅者。
根据本申请的一些实施例,在所述第二处理器控制麦克风采集第一模拟音频信号之前,所述方法还包括:所述第一处理器进入休眠状态;在所述第二处理器通过所述第一处理器发送所述第三模拟音频信号中的所述第二电子设备和所述第一电子设备之间的空间位置至所述订阅者之前,所述方法还包括:所述第二处理器唤醒所述第一处理器。
根据本申请的一些实施例,在所述第一处理器进入休眠状态之前,所述方法还包括:所述订阅者向所述第一处理器发送订阅请求,所述订阅请求用于请求订阅电子设备之间的第一类型的空间位置;所述订阅者包括目标应用程序或者操作***;所述第一处理器根据所述订阅请求生成所述订阅信息;所述第一处理器将所述订阅信息发送给所述第二处理器进行保存。
根据本申请的一些实施例,所述第一处理器为应用处理器,所述第二处理器为音频数字信号处理器。
根据本申请的一些实施例,在所述第二处理器响应于所述第一模拟音频信号根据预存订阅信息控制扬声器播放第二模拟音频信号之前,所述方法还包括:所述第二处理器将所述第一模拟音频信号解码为二进制数据,并将所述二进制数据解码为所述预设信息,所述第一模拟音频信号包括第一啁啾信号和第二啁啾信号中的至少一种,所述第一啁啾信号用于表示二进制代码0,所述第二啁啾信号用于表示二进制代码1,所述预设信息用于表示所述第二电子设备在线。
根据本申请的一些实施例,在所述第二处理器通过所述第一处理器发送所述第三模拟音频信号中的所述第二电子设备和所述第一电子设备之间的空间位置至所述订阅者之后,所述方法还包括:所述第一电子设备与所述第二电子设备进行协同。
第四方面,本申请的一实施例还提供一种空间位置确定方法,所述方法包括:第二电子设备控制扬声器播放第一模拟音频信号,所述第一模拟音频信号用于指示所述第二电子设备在线;所述第二电子设备控制麦克风采集第二模拟音频信号,并根据所述第二模拟音频信号确定所述第二电子设备与所述第一电子设备之间的空间位置,所述第二模拟音频信号是所述第一电子设备的扬声器播放的音频信号,所述第二模拟音频信号用于请求进行电子设备之间的空间位置的确定;所述第二电子设备根据所述第二电子设备与所述第一电子设备之间的空间位置生成第三模拟音频信号,并控制所述扬声器播放所述第三模拟音频信号,所述第三模拟音频信号用于通知所述第二电子设备与所述第一电子设备之间的空间位置。
根据本申请的一些实施例,所述第二电子设备控制扬声器播放第一模拟音频信号包括:在所述第二电子设备休眠之后,若所述第二电子设备的运动传感器检测到所述第二电子设备的运动状态为运动后停止,所述第二电子设备控制所述扬声器播放所述第一模拟音频信号。
根据本申请的一些实施例,所述第二电子设备控制扬声器播放第一模拟音频信号包括:若所述第二电子设备侦测到目标应用程序处于运行状态下,所述第二电子设备控制所述扬声器播放所述第一模拟音频信号。
根据本申请的一些实施例,在所述第二电子设备控制扬声器播放第一模拟音频信号之前,所述方法还包括:所述第二电子设备对预设信息进行二进制编码,并将编码后的二进制数据编码为所述第一模拟音频信号,所述预设信息用于表示所述第二电子设备在线,所述第一模拟音频信号包括第一啁啾信号和第二啁啾信号中的至少一种,所述第一啁啾信号用于表示二进制代码0,所述第二啁啾信号用于表示二进制代码1。
第五方面,本申请的一实施例还提供一种空间位置确定***,所述***包括第一电子设备和第二电子设备,所述第一电子设备用于执行如上第二方面,或如上第三方面任意一种可能的实施例的所述的方法,所述第二电子设备用于执行如上第四方面任意一种可能的实施例的所述的方法。
第六方面,本申请的一实施例还提供一种电子设备,所述电子设备包括至少一个处理器、存储器、扬声器和麦克风;所述至少一个处理器与所述存储器、所述扬声器和所述麦克风耦合;所述存储器用于存储指令,所述处理器用于执行所述指令,所述扬声器用于播放音频信号,所述麦克风用于采集音频信号;所述指令在被所述至少一个处理器执行时,使所述至少一个处理器执行如上第一方面、如上第二方面、如上第三方面、或如上第四方面任意一种可能的实施例的所述的方法。
第七方面,本申请的一实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有程序,所述程序使得计算机设备执行如上第一方面、如上第二方面、如上第三方面、或如上第四方面任意一种可能的实施例的所述的方法。
第八方面,本申请的一实施例还提供一种计算机程序产品,所述计算机程序产品包括计算机执行指令,所述计算机执行指令存储在计算机可读存储介质中;电子设备的至少一个处理器可以从所述计算机可读存储介质中读取所述计算机执行指令,所述至少一个处理器执行所述计算机执行指令使得所述电子设备执行如上第一方面、如上第二方面、如上第三方面、或如上第四方面任意一种可能的实施例的所述的方法。本申请中第二方面到第八方面及其各种实现方式的有益效果,可以参考第一方面及其各种实现方式,以及第一方面中的有益效果分析,此处不再赘述。
附图说明
图1为现有技术的空间位置确定的示意图。
图2为本申请实施例提供的空间位置确定***的示意图。
图3为本申请实施例提供的电子设备的结构示意图。
图4为本申请实施例提供的电子设备的软件结构示意图。
图5为本申请实施例提供的空间位置确定***的架构图。
图6为本申请实施例提供的编码方式的示意图。
图7为本申请实施例提供的空间位置确定方法的示意图。
图8为本申请实施例提供的第一电子设备和第二电子设备均休眠的场景下的界面示意图。
图9为本申请实施例提供的熄屏显示小气泡图标的界面示意图。
图10为本申请实施例提供的第一电子设备和第二电子设备进行协同办公的示意图。
图11为本申请实施例提供的第一电子设备休眠且第二电子设备不休眠的场景下的界面示意图。
图12为本申请实施例提供的第一电子设备不休眠且第二电子设备休眠的场景下的界面示意图。
图13为本申请实施例提供的第一电子设备不休眠且第二电子设备不休眠的场景下的界面示意图。
图14为本申请实施例提供的一空间位置确定方法的流程图。
图15为本申请实施例提供的另一空间位置确定方法的流程图。
具体实施方式
在本申请实施例的描述中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请中的技术领域的技术人员通常理解的含义相同。本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请。应理解,本申请中除非另有说明,“多个”是指两个或多于两个。
现有技术提供一种空间位置确定方法,可确定电子设备A和电子设备B之间的相对位置,并根据相对位置控制电子设备B的显示界面作为电子设备A的扩展屏。具体地:如图1所示,电子设备A可包括第一扬声器和第二扬声器,电子设备B可包括麦克风,例如第一麦克风和第二麦克风。电子设备A可先向电子设备B发送检测请求,用于请求电子设备A和电子设备B完成发现及组网认证,并进行空间位置确定。根据检测请求,电子设备A和电子设备B可完成发现及组网认证,以建立无线或有线通信链路。然后,电子设备A可通过第一扬声器和第二扬声器发送超声波信号。电子设备B可通过麦克风接收超声波信号,并根据接收的超声波信号确定电子设备A与电子设备B之间的相对位置。可理解,电子设备B在确定电子设备A与电子设备B之间的相对位置之前,电子设备A还可通过无线或有线通信链路将第一时刻、第二时刻及第一扬声器和第二扬声器之间的距离发送至电子设备B;第一时刻为电子设备A的第一扬声器发送超声波信号的时刻;第二时刻为电子设备A的第二扬声器发送超声波信号的时刻,从而电子设备B为根据接收的超声波信号、第一时刻、第二时刻及距离确定电子设备A与电子设备B之间的相对位置。电子设备B还可通过建立的无线或有线通信链路将所确定的电子设备A与电子设备B之间的相对位置发送至电子设备A,以供电子设备A将电子设备A上的显示界面中显示的内容扩展到电子设备B中显示。但是,现有技术的空间位置确定方法依赖于通信单元,例如软总线,需要先完成电子设备A和电子设备B的发现及组网认证,如此将会导致建立无线通信链路比较慢,将会使得空间位置确定时延较高。
有鉴于此,本申请实施例提出了一种空间位置确定方法,可无需通过组网与认证便可直接进行空间位置的确定。
请参考图2,为本申请实施例提供的空间位置确定***的示意图。空间位置确定***2可包括多个电子设备200。电子设备200可为例如,手机、平板电脑、笔记本电脑、数码相机、个人数字助理(personal digital assistant,PDA)、可穿戴设备、膝上型计算机(laptop)等设备。每个电子设备200可包括音频发送单元和音频接收单元。音频发送单元可向外发送模拟音频信号,例如超声波信号。音频发送单元可为例如,扬声器等。音频接收单元可接收外界的模拟音频信号,例如超声波信号。音频接收单元可为例如,麦克风等。为了便于描述,以下以音频发送单元为扬声器及音频接收单元为麦克风为例,对本申请进行说明。每个电子设备200可通过扬声器发送模拟音频信号。每个电子设备200还可通过麦克风接收模拟音频信号。 多个电子设备200可分别为第一电子设备201和第二电子设备202。为了便于描述,以下以第二电子设备202的数量为一个为例,对本申请进行说明。但是可理解,第二电子设备202的数量还可为两个或多个,本申请对此不作限制。
第一电子设备201和第二电子设备202可均安装有可以利用电子设备之间的空间位置信息来进行多设备协同的应用程序,例如,WPS(word processing system,文字编辑***)应用、相机应用等。不同应用程序所利用的电子设备之间的空间位置信息不同,不同应用程序可订阅不同的电子设备之间的空间位置信息。例如,WPS应用所利用的电子设备之间的空间位置信息为电子设备之间的相对位置,则WPS应用可订阅电子设备之间的相对位置;相机应用所利用的电子设备之间的空间位置信息为电子设备之间的距离信息,则相机应用可订阅电子设备之间的距离信息。为了便于描述,以下以第一电子设备201和第二电子设备202均安装WPS应用为例,对本申请进行说明。可理解,不同应用程序所利用的电子设备之间的空间位置信息也可相同,不同应用程序可订阅相同的电子设备之间的空间位置信息,本申请对此不作限制。
在一种可能的实现方式中,第二电子设备202可在休眠时,若满足预设条件,例如若侦测到第二电子设备202运动后停止,响应于满足预设条件,第二电子设备202可通过扬声器周期性地发送一个第一模拟音频信号。在另一种可能的实现方式中,第二电子设备202可在亮屏时,若满足预设条件,例如若第二电子设备202前台运行WPS应用,响应于满足预设条件,第二电子设备202可通过扬声器周期性地发送一个第一模拟音频信号。第一电子设备201可接收第一模拟音频信号,并根据第一模拟音频信号识别第二电子设备202在线。第一电子设备201还根据订阅的电子设备之间的空间位置信息通过扬声器发送一个第二模拟音频信号。第二电子设备202可接收第二模拟音频信号,并根据第二模拟音频信号确定对应的电子设备之间的相对位置,例如确定第二电子设备202位于第一电子设备201的左侧。第二电子设备202可根据确定的电子设备之间的相对位置发送一个第三模拟音频信号。第一电子设备201可接收第三模拟音频信号。在一种可能的实现方式中,第一电子设备201可在休眠时,根据第三模拟音频信号唤醒第一处理器,例如AP(application processor,应用处理器),并通过第一处理器将确定的电子设备之间的相对位置传送至WPS应用,以供WPS应用进行扩展显示。在另一种可能的实现方式中,第一电子设备201可在亮屏时,直接通过第一处理器将确定的电子设备之间的相对位置传送至WPS应用,以供WPS应用进行扩展显示。
请参考图3,为本申请实施例提供的电子设备的结构示意图。电子设备200可以包括处理器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等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备200的具体限定。在本申请另一些实施例中,电子设备200可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器110中。
处理器110可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器可以为高速缓冲存储器。该存储器可以保存处理器110用过或使用频率较高的指令或数据。如果处理器110需要使用该指令或数据,可从该存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了***的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit, I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。处理器110可以通过以上至少一种接口连接触摸传感器、音频模块、无线通信模块、显示器、摄像头等模块。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备200的结构限定。在本申请另一些实施例中,电子设备200也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
USB接口130是一种符合USB标准规范的接口,可以用于连接显示设备和***设备,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。
充电管理模块140用于接收充电器的充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备200的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备200供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备200的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备200中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备200上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备200上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),蓝牙低功耗(bluetooth low energy,BLE),超宽带(ultra wide band,UWB),全球导航卫星***(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备200的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备200可以通过无线通信技术与网络和其他电子设备200通信。该无线通信技术可以包括全球移动通讯***(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)。
电子设备200可以通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备200可以包括1个或多个显示屏194。
电子设备200可以通过摄像头193,ISP,视频编解码器,GPU,显示屏194以及应用处理器AP、神经网络处理器NPU等实现摄像功能。
摄像头193可用于采集拍摄对象的彩色图像数据以及深度数据。ISP可用于处理摄像头193采集的彩色图像数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将该电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备200的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。
内部存储器121可以用于存储计算机可执行程序代码,该可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作***,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备200使用过程中所创建的数据(比如数字音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备200的各种功能方法或数据处理。
电子设备200可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备200可以通过扬声器170A收听音乐,或输出免提通话的音频信号。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备200接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
按键190可以包括开机键,音量键等。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。
请参考图4,为本申请实施例提供的电子设备的逻辑结构示意图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android***分为五层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime,ART)和原生C/C++库,硬件抽象层(Hardware Abstract Layer,HAL)以及内核层。可理解,本文以Android***举例来说明,在其他操作***中(例如鸿蒙***,IOS***等),只要各个功能模块实现的功能和本申请的实施例类似也能实现本申请的方案。
应用程序层可以包括一系列应用程序包。
如图4所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息,WPS应用等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图4所示,应用程序框架层可以包括窗口管理器,内容提供器,视图***,资源管理器,通知管理器,活动管理器,输入管理器等。
窗口管理器提供窗口管理服务(Window Manager Service,WMS),WMS可以用于窗口管理、窗口动画管理、surface管理以及作为输入***的中转站。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。该数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图***包括可视控件,例如显示文字的控件,显示图片的控件等。视图***可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在***顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
活动管理器可以提供活动管理服务(Activity Manager Service,AMS),AMS可以用于***组件(例如活动、服务、内容提供者、广播接收器)的启动、切换、调度以及应用进程的管理和调度工作。
输入管理器可以提供输入管理服务(Input Manager Service,IMS),IMS可以用于管理***的输入,例如触摸屏输入、按键输入、传感器输入等。IMS从输入设备节点取出事件,通过和WMS的交互,将事件分配至合适的窗口。
安卓运行时包括核心库和安卓运行时。安卓运行时负责将源代码转换为机器码。安卓运行时主要包括采用提前(ahead or time,AOT)编译技术和及时(just in time,JIT)编译技术。
核心库主要用于提供基本的Java类库的功能,例如基础数据结构、数学、IO、工具、数据库、网络等库。核心库为用户进行安卓应用开发提供了API。
原生C/C++库可以包括多个功能模块。例如:表面管理器(surface manager),媒体框架(Media Framework),libc,OpenGL ES、SQLite、Webkit等。
其中,表面管理器用于对显示子***进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体框架支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。OpenGL ES提供应用程序中2D图形和3D图形的绘制和操作。SQLite为电子设备的应用程序提供轻量级关系型数据库。
硬件抽象层运行于用户空间(user space),对内核层驱动进行封装,向上层提供调用接口。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
请参考图5,为本申请实施例提供的空间位置确定***5的架构图。空间位置确定***5包括多个电子设备500。电子设备500可为例如,手机、平板电脑、笔记本电脑、数码相机、个人数字助理(personal digital assistant,PDA)、可穿戴设备、膝上型计算机(laptop)等设备。每个电子设备500可包括扬声器510、麦克风520、目标应用程序530、SDK(software development kit,软件开发工具包)540、第一处理器550、及第二处理器560。扬声器510的数量可为一个或多个。扬声器510用于发送模拟音频信号,例如超声波信号。麦克风520的数量可为一个或多个。麦克风520用于接收模拟音频信号,例如超声波信号。
目标应用程序530可为可以利用电子设备之间的空间位置信息来进行多设备协同的应用程序。示例性地,目标应用程序530可为WPS应用。
SDK 540可为具有空间位置管理功能的应用程序的SDK。SDK 540可在WPS应用打包被加载到WPS应用中,会随着WPS应用启动而运行在WPS应用中。WPS应用可调用SDK 540向具有空间位置管理功能的应用程序发送订阅请求。订阅请求用于请求订阅电子设备之间的空间位置信息,例如请求订阅电子设备之间的相对位置。从而,具有空间位置管理功能的应用程序可将WPS应用确定为订阅了电子设备之间的相对位置的目标应用,则,在具有空间位置管理功能的应用程序获取到电子设备之间的相对位置时,具有空间位置管理功能的应用程序会将电子设备之间的相对位置发送给目标应用。当用户关闭WPS应用时,SDK 540会随着WPS应用关闭而关闭。可理解,SDK 540还可在WPS应用运行时被加载到WPS应用中,会随着WPS应用的运行而运行在WPS应用中,本申请对此不作限制。
第一处理器550可用于实现与目标应用程序530和第二处理器560之间的交互,例如可以用于实现电子设备之间的空间位置信息的订阅、传送信息至第二处理器560及接收第二处理器560传送的信息。第一处理器550可为独立的应用处理器(Application Processor,AP)。第一处理器550可用于运行***软件,例如,第一处理器550用于运行操作***软件。操作***软件可以为例如,鸿蒙HarmonyOS***、安卓Android***、iOS***或Linux***中的至少一项;操作***软件还可包括除应用程序之外的其他驱动软件或平台软件,如开源***软件、中间件、或微件等。第一处理器550还可存储一些应用程序的指令,例如具有空间位置管理功能的应用程序的指令。第一处理器550可运行具有空间位置管理功能的应用程序的指令。第一处理器550还可运行设置于第一处理器550外的应用程序,例如目标应用程序530和SDK 540等。这些应用程序可均运行于操作***上。图5以目标应用程序530和SDK 540设置于第一处理器550外为例进行说明,但是可理解,目标应用程序530和SDK 540还可集成于第一处理器550中,本申请对此不作限制。第一处理器550可在电子设备500休眠时,也进入休眠状态,停止运行操作***软件,以及第一处理器内和第一处理器外的应用程序。在一些实施例中,第一处理器550中可包括订阅管理模块551及HIFI交互模块552。
订阅管理模块551可用于接收目标应用程序530通过SDK 540发送的订阅请求,例如接收WPS应用通过SDK 540发送的订阅请求。订阅管理模块551还可用于根据订阅请求生成订阅信息。可理解,若多个不同的目标应用程序530通过SDK 540订阅相同的电子设备之间的空间位置信息,则订阅管理模块551可将多个订阅请求进行合并,来生成订阅信息,本申请对此不作限制。
HIFI交互模块552可用于实现第一处理器550与第二处理器560之间的数据和控制信息的交互,例如可以用于实现将订阅信息传送至第二处理器560、接收第二处理器560发送的唤醒信号以及接收第二处理器560发送的电子设备之间的空间位置信息等。
第二处理器560可用于实现与其他电子设备交互相关的处理,例如可以用于实现传输信号的编解码、其他电子设备的发现以及确定与其他电子设备之间的空间位置信息等。第二处理器560还可用于唤醒第一处理器550。第二处理器560可为高保真(High Fidelity,HIFI)器件。第二处理器560可为独立的低功耗声音处理芯片,例如ADSP(audio digital signal processor,音频数字信号处理器)。第二处理器560可在电子设 备500休眠时,以低功耗运行,可以较大地降低电量损耗。第二处理器560可接收第一处理器550通过HIFI交互模块552发送的订阅信息,并存储订阅信息。从而,即使第一处理器550休眠,第二处理器560也可根据存储的订阅信息控制扬声器510播放对应的模拟音频信号。
第二处理器560中可存储一些指令。第二处理器560可运行指令,从而实现一些功能。在一些实施例中,第二处理器560中可包括信号编解码模块561、设备发现模块562、及设备测距模块563。
在一些实施例中,设备发现模块562可用于在电子设备500亮屏时,若侦测到电子设备500前台运行WPS应用,通知信号编解码模块561按照第一预设编码方法将第一信息转换为第一模拟音频信号。
设备发现模块562还可用于在电子设备500休眠时,若侦测到电子设备500运动后停止,通知信号编解码模块561按照第一预设编码方法将第一信息转换为第一模拟音频信号。
信号编解码模块561可用于按照第一预设编码方法将第一信息转换为第一模拟音频信号,以供扬声器510进行播放。具体地,如图6所示,信号编解码模块561可用于按照第一预设编码方法将第一信息转换为第一超声波信号。第一超声波信号可为例如,chirp(啁啾)信号等。其中,第一chirp信号可表示二进制代码1,第二chirp信号可表示二进制代码0。在一些实施例中,第一chirp信号的频率可随时间线性增加,第二chirp信号的频率可随时间线性减小。可理解,在另一些实施例中,第一chirp信号的频率可随时间线性减小,第二chirp信号的频率可随时间线性增加;第一chirp信号的频率和第二chirp信号的频率还可为非线性增加和非线性减少,本申请对此不作限制。第一超声波信号可包括多个在时间上连续的chirp信号,可代表一段二进制数据。这段二进制数据可用于表示一个或多个十六进制数。这一个或多个十六进制数可代表预设信息。在图6中,X轴表示时间,Y轴表示频率,从时刻t0至时刻t8,超声波信号可包括八个在时间上连续的chirp信号,为“chirp 0”、“chirp 1”、“chirp 2”、“chirp 3”、“chirp 4”、“chirp 5”、“chirp 6”、“chirp 7”。其中,“chirp 0”、“chirp 1”、“chirp 4”均为第一chirp信号,“chirp 2”、“chirp 3”、“chirp 5”、“chirp 6”、“chirp 7”均为第二chirp信号。在图6中,每个chirp信号的时间长度相同,每个chirp信号的频率在第一频率F0和第二频率F1之间变化。图6中的超声波信号可表示8位二进制数据“11001000”。其中,8位二进制数据中的每四位连续的二进制数据可表示一个十六进制数,图6中的超声波信号可代表十六位进制数“C8”。在一些实施例中,第一超声波信号还可携带电子设备500的唯一标识符。电子设备500的唯一标识信息可为对电子设备500的硬件信息进行处理后形成的唯一标识符。电子设备500的唯一标识符还可为电子设备500的某些硬件信息,例如蓝牙MAC地址等,本申请对电子设备500的唯一标识符不作限制。可理解,8位二进制数据中的每四位连续的二进制数据还可表示一个十进制数;预设信息还可为其他十六进制数,例如十六位进制数“A8”等;编码的方法还可为其他编码方法,本申请对此不作限制。
信号编解码模块561还可用于将麦克风520采集的模拟音频信号转换成对应的信息。例如,信号编解码模块561可将麦克风520采集的第二模拟音频信号转换为第二信息,第二信息为数字音频信息。第二信息用于确定电子设备之间的相对位置。
信号编解码模块561还可用于按照第三预设编码方法将第三信息转换为第三模拟音频信号,例如将电子设备之间的相对位置转换为第三超声波信号,以供扬声器510进行播放。第三预设编码方法可与第一预设编码方法不相同。可理解,第三预设编码方法也可与第一预设编码方法相同,本申请对此不作限制。
设备测距模块563还可用于根据信号编解码模块561转换的第二音频信号确定电子设备之间的相对位置。
在其他实施例中,信号编解码模块561还可用于将麦克风520采集的模拟音频信号转换成对应的信号。例如,信号编解码模块561可将麦克风520采集的第一模拟音频信号转换为预设信息和电子设备500的唯一标识符;信号编解码模块561可将麦克风520采集的第三模拟音频信号转换为电子设备之间的相对位置。
信号编解码模块561还可用于按照第二预设编码方法将第二信息转换为第二模拟音频信号,例如将数字音频信息转换为第二超声波信号,以供扬声器510进行播放。第二预设编码方法可与第一预设编码方法不相同。可理解,第二预设编码方法也可与第一预设编码方法相同,本申请对此不作限制。
设备发现模块562可用于根据信号编解码模块561转换的预设信息发现其他电子设备在线。在一些实施例中,设备发现模块562可用于根据信号编解码模块561转换的预设信息及电子设备500的唯一标识符发现对应的电子设备在线。
设备测距模块563可用于在设备发现模块562发现其他电子设备在线时,根据存储的订阅信息通过扬 声器510播放第二模拟音频信号。在一些实施例中,WPS应用订阅的电子设备之间的空间位置信息为电子设备之间的相对位置。
第二处理器560还可用于在第一处理器550休眠时,发送唤醒信号至第一处理器550的HIFI交互模块552,以唤醒第一处理器550。第二处理器560还可用于在WPS应用处于前台运行状态时,发送电子设备之间的相对位置至WPS应用。
可理解,信号编解码模块561也可以是单独的音频编解码芯片,本申请对此不作限制。
在一些实施例中,多个电子设备500可分别为第一电子设备501和第二电子设备502。为了便于描述,以下以第一电子设备501是笔记本电脑,第二电子设备502是手机为例,对本申请进行说明。
请参考图7,为本申请实施例提供的空间位置确定方法的示意图。空间位置确定方法可应用于图5所示的空间位置确定***。空间位置确定方法可应用于第一电子设备和第二电子设备均休眠的场景。在第一电子设备和第二电子设备均休眠的场景下,如图8所示,第一电子设备801的屏幕和第二电子设备802的屏幕均关闭。在第一电子设备和第二电子设备均休眠时,第一电子设备的第一处理器和第二电子设备的第一处理器还均会处于休眠状态,不再运行,但是第一电子设备的第二处理器和第二电子设备的第二处理器不会休眠,还处于运行状态。则图7中,步骤S701由第一电子设备的第一处理器执行,步骤S702至步骤S717由第一电子设备的第二处理器或者第二电子设备的第二处理器执行,步骤S718由第一电子设备的第一处理器执行。
空间位置确定方法包括:
S701:在第一电子设备休眠之前,第一电子设备的目标应用程序订阅电子设备之间的相对位置。
第一电子设备的目标应用程序通过SDK向第一电子设备的第一处理器订阅电子设备之间的相对位置。SDK可在目标应用程序打包被加载到目标应用程序中,会随着目标应用程序启动而运行在目标应用程序中。目标应用程序可调用SDK向包括具有空间位置管理功能的应用程序的第一处理器发送订阅请求。订阅请求用于请求订阅电子设备之间的相对位置。第一处理器可接收目标应用程序通过SDK发送的订阅请求,并根据订阅请求生成订阅信息。第一处理器可根据订阅信息将目标应用程序确定为订阅了电子设备之间的相对位置的目标应用,则,在第一处理器获取到电子设备之间的相对位置时,第一处理器会将电子设备之间的相对位置发送给目标应用。当用户关闭目标应用程序时,SDK会随着目标应用程序关闭而关闭。可理解,SDK还可在目标应用程序运行时被加载到目标应用程序中,会随着目标应用程序的运行而运行在目标应用程序中,本申请对此不作限制。在一些实施例中,第一电子设备休眠之前,第一电子设备的第一处理器还将订阅信息发送至第二处理器进行保存。从而,在第一电子设备休眠之后,第一电子设备的第一处理器也会处于休眠状态,不再运行,且第一电子设备的目标应用程序及第一电子设备的SDK也会关闭,但是第一电子设备的第二处理器不会休眠且会存储了订阅信息。
可理解,目标应用程序还可向第一电子设备的第一处理器取消订阅电子设备之间的相对位置,第一电子设备的第一处理器可发送删除信息至第二处理器以删除订阅信息,本申请对此不作限制。
在一些实施例中,生成订阅信息和取消订阅信息的步骤可以由第一电子设备的订阅管理模块完成。第一电子设备的订阅管理模块可为图5所示的空间位置确定***的电子设备的订阅管理模块。
在一些实施例中,发送订阅信息和发送删除信息至第二处理器的步骤可以由第一电子设备的HIFI交互模块完成。第一电子设备的HIFI交互模块可为图5所示的空间位置确定***的电子设备的HIFI交互模块。
S702:在第二电子设备休眠之后,第二电子设备侦测到第二电子设备满足预设条件。
在一些实施例中,第二电子设备可以包括运动传感器。运动传感器可用于检测第二电子设备的运动状态。第二电子设备可根据运动传感器检测的第二电子设备的运动状态判断第二电子设备是否满足预设条件。其中,当运动传感器检测的第二电子设备的运动状态为运动后停止时,第二电子设备侦测到第二电子设备满足预设条件。否则,第二电子设备侦测到第二电子设备没有满足预设条件。在一些实施例中,“运动后停止”的运动状态可以对应于如下场景:用户握持着休眠的第二电子设备、将休眠的第二电子设备移动到靠近休眠的第一电子设备的位置之后,不再移动休眠的第二电子设备。第二电子设备中可以预设有用于检测是否发生运动后停止运动状态的检测算法。
在一些实施例中,运动传感器可为速度传感器。速度传感器可用于检测第二电子设备的运动速度。当 速度传感器检测的第二电子设备的运动速度由大于第一预设值变化到为0时,速度传感器检测到第二电子设备的运动状态为运动后停止。
在一些实施例中,运动传感器可为加速度传感器。加速度传感器可用于检测第二电子设备在各个方向上(一般为三轴)加速度的大小。当加速传感器检测的第二电子设备的加速度的大小由小于第二预设值变化到为0时,加速度传感器检测到第二电子设备的运动状态为运动后停止。
可理解,运动传感器还可为其他传感器,本申请对此不作限制。
在一些实施例中,步骤S702可以由第二电子设备的设备发现模块完成。第二电子设备的设备发现模块可为图5所示的空间位置确定***的电子设备的设备发现模块。
S703:第二电子设备按照第一预设编码方法将第一信息转换为第一模拟音频信号。
在一些实施例中,第二电子设备可按照第一预设编码方法将第一信息转换为第一超声波信号。第一信息可包括预设信息。预设信息可为例如,十六位进制数“C8”。第一超声波信号可包括多个在时间上连续的chirp信号。Chirp信号的频率可随时间线性增加或者随时间线性减小。多个在时间上连续的chirp信号可代表一段二进制数据,可用于表示一个或多个十六进制数,从而第一超声波信号可表示预设信息。预设信息可用于表示设备在线。在一些实施例中,预设信息还可用于请求进行电子设备之间的相对位置的确定。可理解,根据第二电子设备安装的应用程序的不同,或者根据第二电子设备与第一电子设备之间的协商等,预设信息可为其他信息,不同的预设信息所请求去确定的电子设备之间的空间位置信息不同,例如,十六位进制数“A8”可用于请求进行电子设备之间的距离信息的确定,本申请对此不作限制。
在一些实施例中,第一信息还可包括第二电子设备的唯一标识符,则第一超声波信号还可携带第二电子设备的唯一标识符。电子设备的唯一标识符还可为电子设备的某些硬件信息,例如蓝牙MAC地址等。电子设备的唯一标识信息可为对电子设备的硬件信息进行处理后形成的唯一标识符,本申请对电子设备的唯一标识符不作限制。第二电子设备的唯一标识符可用于标识第二电子设备。
在一些实施例中,步骤S703可以由第二电子设备的信号编解码模块完成。第二电子设备的信号编解码模块可为图5所示的空间位置确定***中的电子设备的信号编解码模块。第二电子设备的信号编解码模块还可为第二电子设备自带的单独的音频编解码芯片。
S704:第二电子设备通过扬声器播放第一模拟音频信号。
第一模拟音频信号可用于指示设备在线。在一些实施例中,第一模拟音频信号可用于指示第二电子设备在线。在一些实施例中,第一模拟音频信号还可用于请求进行电子设备之间的相对位置的确定。
S705:第一电子设备通过麦克风采集第一模拟音频信号。
在一些实施例中,第二电子设备通过扬声器播放第一模拟音频信号,且第一电子设备通过麦克风采集第一模拟音频信号,从而无需传送之前进行第一电子设备和第二电子设备的组网认证,预设信息可直接通过扬声器和麦克风从第二电子设备传送至第一电子设备,以供后续第一电子设备可开始第二电子设备和第一电子设备之间的相对位置的检测。
S706:第一电子设备按照第一预设解码方法将第一模拟音频信号转换为第一信息。
在一些实施例中,第一预设解码方法是指与第一预设编码方法对应的解码方法。
在一些实施例中,第一电子设备可按照第一预设解码方法将第一模拟音频信号转换为第一信息。第一信息可包括预设信息。预设信息可为例如,十六位进制数“C8”。预设信息可用于表示设备在线。第一信息还可包括第二电子设备的唯一标识符。
在一些实施例中,预设信息还可用于请求进行电子设备之间的相对位置的确定。
在一些实施例中,步骤S706可以由第一电子设备的信号编解码模块完成。第一电子设备的信号编解码模块可为图5所示的空间位置确定***中的电子设备的信号编解码模块。第一电子设备的信号编解码模块还可为第一电子设备自带的单独的音频编解码芯片。
S707:第一电子设备根据第一信息确定第二电子设备在线。
在一些实施例中,第一电子设备可根据第一信息中的预设信息和第二电子设备的唯一标识符确定第二电子设备在线。第一电子设备在后续的播放模拟音频信号时,可同时携带第二电子设备的唯一标识符,使得第二电子设备接收到模拟音频信号后,才处理模拟音频信号,而其他电子设备不进行处理。
在一些实施例中,步骤S707可以由第一电子设备的设备发现模块完成。第一电子设备的设备发现模 块可以为图5所示的空间位置确定***的电子设备的设备发现模块。
在确定第二电子设备在线后,第一电子设备可开始第二电子设备和第一电子设备之间的相对位置的检测。
S708:若第一信息与订阅信息匹配,则第一电子设备按照第二预设编码方法将第二信息转换为第二模拟音频信号。
在一些实施例中,第一电子设备的第二处理器预存订阅信息。第一电子设备可判断第一信息中的预设信息所请求确定的电子设备之间的空间位置信息是否与订阅信息匹配。若第一信息中的预设信息所请求确定的电子设备之间的空间位置信息与订阅信息相同,则第一电子设备确定第一信息与订阅信息匹配。其中,相同可包括完全相同,也可包括实质相同。实质相同可通过预先设置的规则来确定,例如,字体、简繁体等的差别实质上是相同的,则可通过设置字体、简繁体转换等来确定实质上一样。若第一信息中的预设信息所请求确定的电子设备之间的空间位置信息与订阅信息不相同,则第一电子设备确定第一信息与订阅信息不匹配。可理解,若第一信息与订阅信息不匹配,则流程结束。
例如,第一信息中的预设信息为“C8”,“C8”所请求确定的电子设备之间的空间位置信息为电子设备之间的相对位置,订阅信息为电子设备之间的相对位置,则第一电子设备确定第一信息与订阅信息匹配。又例如,第一信息中的预设信息为“A8”,“A8”所请求确定的电子设备之间的空间位置信息为电子设备之间的距离信息,订阅信息为电子设备之间的相对位置,则第一电子设备确定第一信息与订阅信息不匹配。
可理解,在另一些实施例中,第一电子设备也可省略判断匹配的过程,直接根据订阅信息进行编码,本申请对此不作限制。
在一些实施例中,上述的判断是否匹配的步骤可以由第一电子设备的设备测距模块完成。第一电子设备的设备测距模块可为图5所示的空间位置确定***中的电子设备的设备测距模块。
在一些实施例中,第二信息可包括数字音频信息。在一些实施例中,第二信息还可包括第一时刻、第二时刻及第一扬声器和第二扬声器之间的距离。第一时刻为电子设备A的第一扬声器发送超声波信号的时刻;第二时刻为电子设备A的第二扬声器发送超声波信号的时刻。在一些实施例中,第二信息转换为第二模拟音频信号的步骤可以由第一电子设备的信号编解码模块完成。第一电子设备的信号编解码模块可为图5所示的空间位置确定***中的电子设备的信号编解码模块。
S709:第一电子设备通过扬声器播放第二模拟音频信号。
在一些实施例中,第二模拟音频信号用于请求进行电子设备之间的相对位置的确定。
S710:第二电子设备通过麦克风采集第二模拟音频信号。
在一些实施例中,第一电子设备通过扬声器播放第二模拟音频信号,且第二电子设备通过麦克风采集第二模拟音频信号,从而第二电子设备可接收第二信号,并根据接收的第二信号确定第二电子设备和第一电子设备之间的相对位置。
S711:第二电子设备按照第二预设解码方法将第二模拟音频信号转换为第二信息。
在一些实施例中,步骤S711可以由第二电子设备的信号编解码模块完成。第二电子设备的信号编解码模块可为图5所示的空间位置确定***中的电子设备的信号编解码模块。
S712:第二电子设备根据第二信息确定第二电子设备与第一电子设备之间的相对位置。
在一些实施例中,第一电子设备可通过两个扬声器按照时间间隔先后发送至少两个第二模拟音频信号,第二电子设备可通过一个麦克风采集至少两个第二模拟音频信号,并将至少两个第二模拟音频信号转换为至少两个第二信息,第二电子设备可根据至少两个第二信息确定第二电子设备与第一电子设备之间的相对位置。
在另一些实施例中,第一电子设备可通过两个扬声器按照时间间隔先后发送至少两个第二模拟音频信号,第二电子设备可通过第一麦克风采集至少两个第二模拟音频信号,并通过第二麦克风采集至少两个第二模拟音频信号,第二电子设备还可将第一麦克风采集的信号和第二麦克风采集的信号转换为第二信息,并根据第二信息确定第二电子设备与第一电子设备之间的相对位置。
从而,第二电子设备和第一电子设备之间无需组网认证,第一电子设备可将数字音频信息,或者还可将第一时刻、第二时刻及距离发送至第二电子设备,则第二电子设备可确定第二电子设备与第一电子设备之间的相对位置。
在一些实施例中,步骤S712可以由第二电子设备的设备测距模块完成。第二电子设备的设备测距模块可为图5所示的空间位置确定***中的电子设备的设备测距模块。
S713:第二电子设备按照第三预设编码方法将第二电子设备与第一电子设备之间的相对位置转换为第三模拟音频信号。
在一些实施例中,第三预设编码方法可与第一预设编码方法不相同。可理解,第三预设编码方法也可与第一预设编码方法相同,本申请对此不作限制。
在一些实施例中,第三预设编码方法可与第二预设编码方法不相同。可理解,第三预设编码方法也可与第二预设编码方法相同,本申请对此不作限制。
在一些实施例中,步骤S713可以由第二电子设备的信号编解码模块完成。第二电子设备的信号编解码模块可为图5所示的空间位置确定***中的电子设备的信号编解码模块。
S714:第二电子设备通过扬声器播放第三模拟音频信号。
在一些实施例中,第三模拟音频信号可用于通知第二电子设备与第一电子设备之间的相对位置。
S715:第一电子设备通过麦克风采集第三模拟音频信号。
在一些实施例中,第二电子设备通过扬声器播放第三模拟音频信号,且第一电子设备通过麦克风采集第三模拟音频信号,从而无需传送之前进行第一电子设备和第二电子设备的组网认证,第二电子设备与第一电子设备之间的相对位置可直接通过扬声器和麦克风从第二电子设备传送至第一电子设备,以供第一电子设备可开始第二电子设备和第一电子设备之间协同办公。
S716:第一电子设备按照第三预设解码方法将第三模拟音频信号转换为第二电子设备与第一电子设备之间的相对位置。
在一些实施例中,步骤S716可以由第一电子设备的信号编解码模块完成。第一电子设备的信号编解码模块可为图5所示的空间位置确定***中的电子设备的信号编解码模块。
S717:第一电子设备根据第二电子设备与第一电子设备之间的相对位置唤醒第一电子设备的第一处理器。
在一些实施例中,在第一电子设备根据第二电子设备与第一电子设备之间的相对位置唤醒第一电子设备的第一处理器之前,第一电子设备还可判断第二电子设备与第一电子设备之间的相对位置是否满足预设位置关系。预设位置关系可为例如,第二电子设备位于第一电子设备的左侧区域或右侧区域。在第二电子设备与第一电子设备之间的相对位置满足预设位置关系时,第一电子设备根据第二电子设备与第一电子设备之间的相对位置唤醒第一电子设备的第一处理器。
在一些实施例中,第一电子设备可通过第一电子设备的第一处理器中的HIFI交互模块唤醒第一电子设备的第一处理器。从而,后续第一电子设备的第一处理器可显示信息、运行目标应用程序、与第二电子设备进行组网认证、通过无线或有线通信链路发送信息至第二电子设备等。
S718:第一电子设备在第一电子设备的屏幕上熄屏显示第二电子设备的图标。
在一些实施例中,第一电子设备在第一电子设备900的屏幕上熄屏显示小气泡图标901,如图9所示。可理解,第二电子设备的图标还可为其他图标,例如手机图标等,本申请对此不作限制。
在一些实施例中,第一电子设备可根据第二电子设备与第一电子设备之间的相对位置确定第二电子设备的图标在屏幕上的目标显示位置,并在屏幕的目标显示位置显示第二电子设备的图标。例如,若第二电子设备与第一电子设备之间的相对位置为第二电子设备位于第一电子设备的左侧区域,则第一电子设备可在屏幕的左下角位置显示第二电子设备的图标;若第二电子设备与第一电子设备之间的相对位置为第二电子设备位于第一电子设备的右侧区域,则第一电子设备可在屏幕的右下角位置显示第二电子设备的图标。可理解,第二电子设备的图标还可显示在其他位置,本申请对此不作限制。
可理解,在步骤S718之后,第一电子设备还可响应于对第二电子设备的图标的操作,运行目标应用程序。由于目标应用程序已向第一处理器订阅了电子设备之间的相对位置,则第一电子设备还可将第二电子设备与第一电子设备之间的相对位置通过第一处理器和SDK发送至目标应用程序。第一电子设备还可与第二电子设备进行组网认证,建立无线或有线通信链路,通过无线或有线通信链路通知第二电子设备唤醒第二电子设备的第一处理器。第一电子设备还根据第二电子设备与第一电子设备之间的相对位置将预设的待显示的内容通过建立的无线通信链路发送给第二电子设备,第一电子设备和第二电子设备可进行协同 办公。例如,第二电子设备与第一电子设备之间的相对位置为第二电子设备位于第一电子设备的左侧,则第一电子设备可将预设的WPS文档的批注界面通过建立的无线通信链路发送给第二电子设备,第一电子设备显示预设的WPS文档的主界面,且第二电子设备显示预设的WPS文档的批注界面,从而第一电子设备和第二电子设备进行协同办公,如图10所示。在图10中,第一电子设备1001和第二电子设备1002共同显示第一电子设备中的预设的WPS文档。可理解,图10是协同办公的一种示例,本申请对此不作限制。又例如,第二电子设备与第一电子设备之间的相对位置为第二电子设备位于第一电子设备的右侧,则第一电子设备可将预设的WPS文档的目录界面通过建立的无线通信链路发送给第二电子设备,第一电子设备显示预设的WPS文档的主界面,且第二电子设备显示预设的WPS文档的目录界面,从而第一电子设备和第二电子设备也可进行协同办公。
可理解,第一电子设备通过无线或有线通信链路通知第二电子设备唤醒第二电子设备的第一处理器之后,第一电子设备可响应于用户拖动第一WPS文档的操作,将第一电子设备上显示的内容扩展到第二电子设备中进行显示。例如第二电子设备与第一电子设备之间的相对位置为第二电子设备位于第一电子设备的左侧,则第一电子设备可响应于用户拖动第一WPS文档向左移动的操作,将第一电子设备上显示的内容扩展到第二电子设备中进行显示。又例如第二电子设备与第一电子设备之间的相对位置为第二电子设备位于第一电子设备的右侧,则第一电子设备可响应于用户拖动第一WPS文档向右移动的操作,将第一电子设备上显示的内容扩展到第二电子设备中进行显示。
可理解,在步骤S718之后,第一电子设备还可判断在预设时间内是否接收到对第二电子设备的图标的操作。若在预设时间内未接收到对第二电子设备的图标的操作,则第一电子设备停止显示第二电子设备的图标的操作。若在预设时间内接收到对第二电子设备的图标的操作,第一电子设备还可响应于对第二电子设备的图标的操作,运行目标应用程序。
可理解,在第一电子设备运行目标应用程序之前,第一电子设备还显示第一预设解锁界面。第一预设解锁界面中可显示密码解锁、人脸解锁、指纹解锁、虹膜解锁、语音解锁、及声波解锁中的至少一种。所述密码解锁包括数字密码解锁、图案解锁、PIN解锁中的至少一种。第一电子设备还响应于在第一预设解锁界面中输入解锁信息的操作,若输入的解锁信息与预设的第一解锁信息匹配,则解锁屏幕并运行目标应用程序。若输入的解锁信息与预设的第一解锁信息不匹配,则继续熄屏显示第二电子设备的图标。
可理解,在第一电子设备运行目标应用程序之前,第一电子设备还可省略显示第一预设解锁界面,直接显示第一电子设备的主界面。第一电子设备还响应于在主界面上开启目标应用程序的操作,运行目标应用程序。可理解,第一电子设备还可响应于在主界面上的操作进入其他界面,并经过一次或多次操作后可开启目标应用程序,本申请对此不作限制。
可理解,在第二电子设备与第一电子设备进行协同办公之前,第二电子设备还显示第二预设解锁界面,第二电子设备还响应于在第二预设解锁界面中输入解锁信息的操作,若输入的解锁信息与预设的第二解锁信息匹配,则解锁屏幕并与第一电子设备进行协同办公。若输入的解锁信息与预设的第二解锁信息不匹配,则进入锁屏状态。
可理解,步骤S701可为在第一电子设备休眠之前,第一电子设备的操作***订阅电子设备之间的相对位置,则在步骤S718之后,第一电子设备还可响应于对第二电子设备的图标的操作,将第二电子设备与第一电子设备之间的相对位置发送至第一处理器,第一电子设备的第一处理器可根据第二电子设备与第一电子设备之间的相对位置确定可以利用电子设备之间的相对位置信息来进行多设备协同的应用程序,并显示确定的应用程序,例如WPS应用的图标、多屏协同应用的图标等。第一电子设备的第一处理器还可响应于选择目标图标的操作,例如选择WPS应用的图标的操作,运行WPS应用。随后,第一电子设备可发送第二电子设备与第一电子设备之间的相对位置至WPS应用,与第二电子设备进行组网认证,通知第二电子设备唤醒第二电子设备的第一处理器,并执行第一电子设备和第二电子设备的协同办公。
可理解,应用程序还可为其他应用,例如相机应用等,本申请对此不作限制。
可理解,由于多径效应的影响,扬声器广播的模拟音频信号在传播过程中,可能会发生变化,本申请对此不作限制。
可理解,图7所示的空间位置确定方法不仅可应用于第一电子设备和第二电子设备均休眠的场景下,还可应用于第一电子设备休眠且第二电子设备不休眠的场景下。在第一电子设备1101休眠且第二电子设 备1102不休眠的场景下,第二电子设备1102运行目标应用程序,如图11所示。在图11中,第一电子设备1101休眠,此时,第一电子设备1101的屏幕关闭且操作***和应用程序均停止运行。在图11中,第二电子设备1102显示第二WPS文档。可理解,图11是第一电子设备休眠且第二电子设备不休眠的场景的一种示例,本申请对此不作限制。
应用于第一电子设备休眠且第二电子设备不休眠的场景下的空间位置确定方法与应用于图7的第一电子设备和第二电子设备均休眠的场景下的空间位置确定方法相似,不同之处在于,在第一电子设备休眠且第二电子设备不休眠的场景下,步骤S702a代替图7中的步骤S702:
步骤S702a中,第二电子设备可根据目标应用程序的状态来判断第二电子设备是否满足预设条件。当第二电子设备侦测到目标应用程序处于运行状态下时,第二电子设备侦测到第二电子设备满足预设条件。否则,第二电子设备侦测到第二电子设备没有满足预设条件。
在一些实施例中,“目标应用程序处于运行状态下”可以对应于如下场景:在第一电子设备休眠后,用户开启第二电子设备上的第二WPS文档,使得第二电子设备上显示第二WPS文档;或者用户开启第二电子设备上的第二WPS文档后,第一电子设备自动或者手动休眠,此时第二电子设备上显示第二WPS文档。第二电子设备中可以预设有用于检测目标应用程序是否处于运行状态下的检测算法。
应用于第一电子设备休眠且第二电子设备不休眠的场景下的空间位置确定方法与应用于图7的第一电子设备和第二电子设备均休眠的场景下的空间位置确定方法,不同之处还在于:
在步骤S718之后,且在第一电子设备与第二电子设备进行组网认证,建立无线或有线通信链路之后,第一电子设备可省略通知第二电子设备唤醒第二电子设备的第一处理器,直接根据第二电子设备与第一电子设备之间的相对位置将预设的待显示的内容通过建立的无线通信链路发送给第二电子设备,第一电子设备和第二电子设备直接进行协同办公,如图10所示。第一电子设备和第二电子设备直接进行协同办公的过程与上述的第一电子设备和第二电子设备均休眠的场景下第一电子设备和第二电子设备进行协同办公的过程相似,在此不再赘述。在图10中,第一电子设备1001和第二电子设备1002共同显示第一电子设备中的预设的WPS文档。可理解,第二电子设备还可同时显示第二电子设备中的第二WPS文档,本申请对此不作限制。
可理解,在第一电子设备休眠且第二电子设备不休眠的场景下,第二电子设备可不显示第二WPS文档,而是处于锁屏状态。在一些实施例中,“处于锁屏状态”可以对应于如下场景:当第一电子设备休眠且第二电子设备显示第二WPS文档,用户手动锁定第二电子设备的屏幕,第二电子设备进入锁屏状态;或者当第一电子设备休眠且第二电子设备显示第二WPS文档,第二电子设备自动锁定屏幕,进入锁屏状态。在锁屏状态下,第二电子设备的第二WPS文档仍处于运行状态,但是不再继续显示。在步骤S718之后,且在第一电子设备与第二电子设备进行组网认证,建立无线或有线通信链路之后,第一电子设备通过无线或有线通信链路通知第二电子设备显示第二预设解锁界面,并根据在第二预设解锁界面中输入的解锁信息确定是否解锁。第二电子设备解锁后,第一电子设备可根据第二电子设备与第一电子设备之间的相对位置将预设的待显示的内容通过建立的无线通信链路发送给第二电子设备,第一电子设备和第二电子设备直接进行协同办公。
可理解,图7所示的空间位置确定方法不仅可应用于第一电子设备和第二电子设备均休眠的场景下,还可应用于第一电子设备不休眠且第二电子设备休眠的场景下。在第一电子设备1201不休眠且第二电子设备1202休眠的场景下,第一电子设备运行目标应用程序,如图12所示。在图12中,第一电子设备1201显示第一WPS文档,第二电子设备1202休眠,此时第二电子设备1101的屏幕关闭且操作***和应用程序均停止运行。可理解,图12是第一电子设备不休眠且第二电子设备休眠的场景的一种示例,本申请对此不作限制。
应用于第一电子设备不休眠且第二电子设备休眠的场景下的空间位置确定方法与应用于图7的第一电子设备和第二电子设备均休眠的场景下的空间位置确定方法相似,不同之处在于,在第一电子设备不休眠且第二电子设备休眠的场景下,步骤S701b代替图7中的步骤S701,步骤S702b代替图7中的步骤S702,且省略图7中的步骤S717-S718:
步骤S701b中,第一电子设备的目标应用程序订阅电子设备之间的相对位置。可理解,步骤S701b可与步骤S702或者步骤S703互换位置,本申请对此不作限制。
步骤S702b中,“运动后停止”的运动状态可以对应于如下场景:用户握持着休眠的第二电子设备、将休眠的第二电子设备移动到靠近显示第一WPS文档的第一电子设备的位置之后,不再移动休眠的第二电子设备。
应用于第一电子设备不休眠且第二电子设备休眠的场景下的空间位置确定方法与应用于图7的第一电子设备和第二电子设备均休眠的场景下的空间位置确定方法,不同之处还在于:
在步骤S716之后,由于第一电子设备显示第一WPS文档,则第一电子设备可省略运行目标应用程序,直接将第二电子设备与第一电子设备之间的相对位置通过第一处理器和SDK发送至目标应用程序。随后,第一电子设备可与第二电子设备进行组网认证,建立无线或有线通信链路,唤醒第二电子设备的第一处理器,并发送第一WPS文档的预设内容,第一电子设备和第二电子设备可进行协同办公。第一电子设备和第二电子设备进行协同办公的过程与上述的第一电子设备和第二电子设备均休眠的场景下第一电子设备和第二电子设备进行协同办公的过程相似,在此不再赘述。
可理解,在第一电子设备不休眠且第二电子设备休眠的场景下,第一电子设备可不显示第二WPS文档,而是处于锁屏状态。在一些实施例中,“处于锁屏状态”可以对应于如下场景:当第二电子设备休眠且第一电子设备显示第一WPS文档,用户手动锁定第一电子设备的屏幕,第一电子设备进入锁屏状态;或者当第二电子设备休眠且第一电子设备显示第一WPS文档,第一电子设备自动锁定屏幕,进入锁屏状态。在锁屏状态下,第一电子设备的第一WPS文档仍处于运行状态,但是不再继续显示。在步骤S716之后,且第一电子设备将第二电子设备与第一电子设备之间的相对位置通过第一处理器和SDK发送至目标应用程序之前,第一电子设备在第一电子设备的屏幕上显示第二电子设备的图标。第一电子设备还可响应于对第二电子设备的图标的操作,显示第一预设解锁界面,并根据在第一预设解锁界面中输入的解锁信息确定是否解锁。解锁屏幕后,第一电子设备可运行目标应用程序,并直接将第二电子设备与第一电子设备之间的相对位置通过第一处理器和SDK发送至目标应用程序。
可理解,图7所示的空间位置确定方法不仅可应用于第一电子设备和第二电子设备均休眠的场景下,还可应用于第一电子设备不休眠且第二电子设备不休眠的场景下。在第一电子设备1301不休眠且第二电子设备1302不休眠的场景下,第一电子设备1301和第二电子设备1302均运行目标应用程序,如图13所示。在图13中,第一电子设备1301显示第一WPS文档,第二电子设备1302显示第二WPS文档。可理解,图13是第一电子设备不休眠且第二电子设备不休眠的场景的一种示例,本申请对此不作限制。
应用于第一电子设备不休眠且第二电子设备不休眠的场景下的空间位置确定方法与应用于图7的第一电子设备和第二电子设备均休眠的场景下的空间位置确定方法相似,不同之处在于,在第一电子设备不休眠且第二电子设备不休眠的场景下,步骤S701c代替图7中的步骤S701,步骤S702c代替图7中的步骤S702,且省略图7中的步骤S717-S718:
步骤S701c中,第一电子设备的目标应用程序订阅电子设备之间的相对位置。可理解,步骤S701c可与步骤S702或者步骤S703互换位置,本申请对此不作限制。
步骤S702c中,第二电子设备可根据目标应用程序的状态来判断第二电子设备是否满足预设条件。当第二电子设备侦测到目标应用程序处于运行状态下时,第二电子设备侦测到第二电子设备满足预设条件。否则,第二电子设备侦测到第二电子设备没有满足预设条件。
在一些实施例中,“目标应用程序处于运行状态下”可以对应于如下场景:在第一电子设备显示第一WPS文档后,用户开启第二电子设备上的第二WPS文档,使得第二电子设备上显示第二WPS文档;或者用户开启第二电子设备上的第二WPS文档后,第一电子设备上的第一WPS文档也被开启,从而第一电子设备上显示第一WPS文档,且第二电子设备上显示第二WPS文档。此时,第一电子设备和第二电子设备各自运行各自的WPS文档,并未进入协同办公状态。第二电子设备中可以预设有用于检测目标应用程序是否处于运行状态下的检测算法。
应用于第一电子设备不休眠且第二电子设备不休眠的场景下的空间位置确定方法与应用于图7的第一电子设备和第二电子设备均休眠的场景下的空间位置确定方法,不同之处还在于:
在步骤S716之后,由于第一电子设备显示第一WPS文档,则第一电子设备可省略运行目标应用程序,直接将第二电子设备与第一电子设备之间的相对位置通过第一处理器和SDK发送至目标应用程序。随后,第一电子设备可与第二电子设备进行组网认证,建立无线或有线通信链路,并通过无线或有线通信链路向 第二电子设备发送第一WPS文档的预设内容,第一电子设备和第二电子设备可进行协同办公,如图10所示。第一电子设备和第二电子设备进行协同办公的过程与上述的第一电子设备和第二电子设备均休眠的场景下第一电子设备和第二电子设备进行协同办公的过程相似,在此不再赘述。在图10中,第一电子设备1001和第二电子设备1002共同显示第一电子设备中的第一WPS文档。可理解,第二电子设备还可同时显示第二电子设备中的第二WPS文档,本申请对此不作限制。
可理解,在第一电子设备不休眠且第二电子设备不休眠的场景下,第一电子设备可不显示第一WPS文档,且第二电子设备不显示第二WPS文档,而是第一电子设备处于锁屏状态且第二电子设备处于锁屏状态。在一些实施例中,“第一电子设备处于锁屏状态且第二电子设备处于锁屏状态”可以对应于如下场景:当第一电子设备显示第一WPS文档且第二电子设备显示第二WPS文档,用户手动锁定第一电子设备的屏幕或者第一电子设备自动锁定屏幕,用户手动锁定第二电子设备的屏幕或者第二电子设备自动锁定屏幕,第一电子设备和第二电子设备进入锁屏状态。在第一电子设备处于锁屏状态且第二电子设备处于锁屏状态下,第一电子设备的第一WPS文档和第二电子设备的第二WPS文档仍处于运行状态,但是不再继续显示。在步骤S716之后,且第一电子设备将第二电子设备与第一电子设备之间的相对位置通过第一处理器和SDK发送至目标应用程序之前,第一电子设备在第一电子设备的屏幕上显示第二电子设备的图标。响应于对第二电子设备的图标的操作,第一电子设备显示第一预设解锁界面,并根据在第一预设解锁界面中输入的解锁信息确定是否解锁。第一电子设备解锁后,第一电子设备将第二电子设备与第一电子设备之间的相对位置通过第一处理器和SDK发送至目标应用程序,第一电子设备还可与第二电子设备进行组网认证,建立无线或有线通信链路,通过无线或有线通信链路通知第二电子设备显示第二预设解锁界面,并根据在第二预设解锁界面中输入的解锁信息确定是否解锁。第二电子设备解锁后,第一电子设备可根据第二电子设备与第一电子设备之间的相对位置将预设的待显示的内容通过建立的无线通信链路发送给第二电子设备,第一电子设备和第二电子设备直接进行协同办公。
可理解,在第一电子设备不休眠且第二电子设备不休眠的场景下,第一电子设备可处于锁屏状态或者第二电子设备处于锁屏状态,本申请对此不作限制。
请参考图14,为本申请实施例提供的一空间位置确定方法的流程图。方法包括:
S1401:第二电子设备控制扬声器播放第一模拟音频信号,第一模拟音频信号用于指示第二电子设备在线。
S1402:第一电子设备控制麦克风采集第一模拟音频信号,并响应于第一模拟音频信号根据预存订阅信息控制扬声器播放第二模拟音频信号,第二模拟音频信号用于请求进行电子设备之间的空间位置的确定。
S1403:第二电子设备控制麦克风采集第二模拟音频信号,并根据第二模拟音频信号确定第二电子设备与第一电子设备之间的空间位置。
S1404:第二电子设备根据第二电子设备与第一电子设备之间的空间位置生成第三模拟音频信号,并控制扬声器播放第三模拟音频信号,第三模拟音频信号用于通知第二电子设备与第一电子设备之间的空间位置。
S1405:第一电子设备控制麦克风采集第三模拟音频信号,并通过第三模拟音频信号获取第二电子设备与第一电子设备之间的空间位置。
在一些实施例中,第二电子设备控制扬声器播放第一模拟音频信号包括:在第二电子设备休眠之后,若第二电子设备的运动传感器检测到第二电子设备的运动状态为运动后停止,第二电子设备控制扬声器播放第一模拟音频信号。
在一些实施例中,第二电子设备控制扬声器播放第一模拟音频信号包括:若第二电子设备侦测到目标应用程序处于运行状态下,第二电子设备控制扬声器播放第一模拟音频信号。
在一些实施例中,在第二电子设备控制扬声器播放第一模拟音频信号之前,方法还包括:第二电子设备对预设信息进行二进制编码,并将编码后的二进制数据编码为第一模拟音频信号,预设信息用于表示第二电子设备在线,第一模拟音频信号包括第一啁啾信号和第二啁啾信号中的至少一种,第一啁啾信号用于表示二进制代码0,第二啁啾信号用于表示二进制代码1。
在一些实施例中,第一电子设备包括第一处理器,第一处理器处于休眠状态,在第一电子设备通过第三模拟音频信号获取第二电子设备与第一电子设备之间的空间位置之后,方法还包括:第一电子设备唤醒 第一处理器;第一电子设备通过第一处理器根据第二电子设备与第一电子设备之间的空间位置熄屏显示第二电子设备的图标。
在一些实施例中,第一电子设备根据第二电子设备与第一电子设备之间的空间位置熄屏显示第二电子设备的图标包括:第一电子设备根据第二电子设备与第一电子设备之间的空间位置确定第二电子设备的图标的目标显示位置;第一电子设备在目标显示位置熄屏显示第二电子设备的图标。
在一些实施例中,在第一电子设备响应于第一模拟音频信号根据预存订阅信息控制扬声器播放第二模拟音频信号之前,方法还包括:在第一处理器休眠之前,第一电子设备的目标应用程序或操作***向第一处理器发送订阅请求,订阅请求用于请求订阅电子设备之间的第一类型的空间位置;第一电子设备通过第一处理器根据订阅请求生成订阅信息;第一电子设备保存订阅信息。
在一些实施例中,第一模拟音频信号还用于请求进行电子设备之间的第二类型的相对位置的确定;第一电子设备响应于第一模拟音频信号根据预存订阅信息控制扬声器播放第二模拟音频信号包括:若第一模拟音频信号与预存订阅信息匹配,第一电子设备响应于第一模拟音频信号根据预存订阅信息控制扬声器播放第二模拟音频信号。
在一些实施例中,电子设备之间的空间位置的类型包括电子设备之间的相对位置和电子设备之间的距离信息。
在一些实施例中,在第一电子设备熄屏显示第二电子设备的图标之后,方法还包括:第一电子设备响应于对第二电子设备的图标的操作,与第二电子设备进行协同。
请参考图15,为本申请实施例提供的另一空间位置确定方法的流程图。方法应用于第一电子设备。第一电子设备包括第一处理器和第二处理器,第二处理器与第一处理器连接。第二处理器的运行功耗小于第一处理器的运行功耗。方法包括:
S1501:第二处理器控制麦克风采集第一模拟音频信号,并响应于第一模拟音频信号根据预存订阅信息控制扬声器播放第二模拟音频信号,第一模拟音频信号是第二电子设备的扬声器播放的音频信号,第一模拟音频信号用于指示第二电子设备在线,第二模拟音频信号用于请求进行电子设备之间的空间位置的确定,预存订阅信息包括订阅者。
S1502:第二处理器控制麦克风采集第三模拟音频信号,第三模拟音频信号是第二电子设备的扬声器播放的音频信号,第三模拟音频信号用于通知第二电子设备和第一电子设备之间的空间位置。
S1503:第二处理器通过第一处理器发送第三模拟音频信号中的第二电子设备和第一电子设备之间的空间位置至订阅者。
在一些实施例中,在第二处理器控制麦克风采集第一模拟音频信号之前,方法还包括:第一处理器进入休眠状态;在第二处理器通过第一处理器发送第三模拟音频信号中的第二电子设备和第一电子设备之间的空间位置至订阅者之前,方法还包括:第二处理器唤醒第一处理器。
在一些实施例中,在第一处理器进入休眠状态之前,方法还包括:订阅者向第一处理器发送订阅请求,订阅请求用于请求订阅电子设备之间的第一类型的空间位置;订阅者包括目标应用程序或者操作***;第一处理器根据订阅请求生成订阅信息;第一处理器将订阅信息发送给第二处理器进行保存。
在一些实施例中,第一处理器为应用处理器,第二处理器为音频数字信号处理器。
在一些实施例中,在第二处理器响应于第一模拟音频信号根据预存订阅信息控制扬声器播放第二模拟音频信号之前,方法还包括:第二处理器将第一模拟音频信号解码为二进制数据,并将二进制数据解码为预设信息,第一模拟音频信号包括第一啁啾信号和第二啁啾信号中的至少一种,第一啁啾信号用于表示二进制代码0,第二啁啾信号用于表示二进制代码1,预设信息用于表示第二电子设备在线。
在一些实施例中,在第二处理器通过第一处理器发送第三模拟音频信号中的第二电子设备和第一电子设备之间的空间位置至订阅者之后,方法还包括:第一电子设备与第二电子设备进行协同。
除以上方法和终端设备外,本申请实施例还提供一种计算机可读存储介质,计算机可读存储介质存储有程序,程序使得电子设备实现图14或图15所示的空间位置确定方法。
一种计算机程序产品,计算机程序产品包括计算机执行指令,计算机执行指令存储在计算机可读存储介质中;电子设备的至少一个处理器可以从计算机可读存储介质中读取计算机执行指令,至少一个处理器执行计算机执行指令使得电子设备执行图14或图15所示的空间位置确定方法。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件的方式来实现,当然也可以通过专用硬件包括专用集成电路、专用CPU、专用存储器、专用元器件等来实现。一般情况下,凡由计算机程序完成的功能都可以很容易地用相应的硬件来实现,而且,用来实现同一功能的具体硬件结构也可以是多种多样的,例如模拟电路、数字电路或专用电路等。但是,对本申请而言更多情况下软件程序实现是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘、U盘、移动硬盘、ROM、RAM、磁碟或者光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。
计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(Solid State Disk,SSD))等。
最后应说明的是,以上实施例仅用以说明本申请的技术方案而非限制,尽管参照较佳实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或等同替换,而不脱离本申请技术方案的精神和范围。

Claims (32)

  1. 一种空间位置确定方法,应用于包括第一电子设备和第二电子设备的***中,其特征在于,所述方法包括:
    所述第二电子设备控制扬声器播放第一模拟音频信号,所述第一模拟音频信号用于指示所述第二电子设备在线;
    所述第一电子设备控制麦克风采集所述第一模拟音频信号,并响应于所述第一模拟音频信号根据预存订阅信息控制扬声器播放第二模拟音频信号,所述第二模拟音频信号用于请求进行电子设备之间的空间位置的确定;
    所述第二电子设备控制麦克风采集所述第二模拟音频信号,并根据所述第二模拟音频信号确定所述第二电子设备与所述第一电子设备之间的空间位置;
    所述第二电子设备根据所述第二电子设备与所述第一电子设备之间的空间位置生成第三模拟音频信号,并控制所述扬声器播放所述第三模拟音频信号,所述第三模拟音频信号用于通知所述第二电子设备与所述第一电子设备之间的空间位置;
    所述第一电子设备控制所述麦克风采集所述第三模拟音频信号,并通过所述第三模拟音频信号获取所述第二电子设备与所述第一电子设备之间的空间位置。
  2. 如权利要求1所述的方法,其特征在于,
    所述第二电子设备控制扬声器播放第一模拟音频信号包括:
    在所述第二电子设备休眠之后,若所述第二电子设备的运动传感器检测到所述第二电子设备的运动状态为运动后停止,所述第二电子设备控制所述扬声器播放所述第一模拟音频信号。
  3. 如权利要求1所述的方法,其特征在于,
    所述第二电子设备控制扬声器播放第一模拟音频信号包括:
    若所述第二电子设备侦测到目标应用程序处于运行状态下,所述第二电子设备控制所述扬声器播放所述第一模拟音频信号。
  4. 如权利要求1至3任一项所述的方法,其特征在于,
    在所述第二电子设备控制扬声器播放第一模拟音频信号之前,所述方法还包括:
    所述第二电子设备对预设信息进行二进制编码,并将编码后的二进制数据编码为所述第一模拟音频信号,所述预设信息用于表示所述第二电子设备在线,所述第一模拟音频信号包括第一啁啾信号和第二啁啾信号中的至少一种,所述第一啁啾信号用于表示二进制代码0,所述第二啁啾信号用于表示二进制代码1。
  5. 如权利要求1至4任一项所述的方法,其特征在于,
    所述第一电子设备包括第一处理器,所述第一处理器处于休眠状态,在所述第一电子设备通过所述第三模拟音频信号获取所述第二电子设备与所述第一电子设备之间的空间位置之后,所述方法还包括:
    所述第一电子设备唤醒所述第一处理器;
    所述第一电子设备通过所述第一处理器根据所述第二电子设备与所述第一电子设备之间的空间位置熄屏显示所述第二电子设备的图标。
  6. 如权利要求5所述的方法,其特征在于,所述第一电子设备根据所述第二电子设备与所述第一电子设备之间的空间位置熄屏显示所述第二电子设备的图标包括:
    所述第一电子设备根据所述第二电子设备与所述第一电子设备之间的空间位置确定所述第二电子设备的图标的目标显示位置;
    所述第一电子设备在所述目标显示位置熄屏显示所述第二电子设备的图标。
  7. 如权利要求5至6任一项所述的方法,其特征在于,
    在所述第一电子设备响应于所述第一模拟音频信号根据预存订阅信息控制扬声器播放第二模拟音频信号之前,所述方法还包括:
    在所述第一处理器休眠之前,所述第一电子设备的目标应用程序或操作***向所述第一处理器发送订阅请求,所述订阅请求用于请求订阅电子设备之间的第一类型的空间位置;
    所述第一电子设备通过所述第一处理器根据所述订阅请求生成所述订阅信息;
    所述第一电子设备保存所述订阅信息。
  8. 如权利要求7所述的方法,其特征在于,
    所述第一模拟音频信号还用于请求进行电子设备之间的第二类型的相对位置的确定;
    所述第一电子设备响应于所述第一模拟音频信号根据预存订阅信息控制扬声器播放第二模拟音频信号包括:
    若所述第一模拟音频信号与所述预存订阅信息匹配,所述第一电子设备响应于所述第一模拟音频信号根据所述预存订阅信息控制所述扬声器播放所述第二模拟音频信号。
  9. 如权利要求7至8任一项所述的方法,其特征在于,
    所述电子设备之间的空间位置的类型包括所述电子设备之间的相对位置和所述电子设备之间的距离信息。
  10. 如权利要求5至9任一项所述的方法,其特征在于,
    在所述第一电子设备熄屏显示所述第二电子设备的图标之后,所述方法还包括:
    所述第一电子设备响应于对所述第二电子设备的图标的操作,与所述第二电子设备进行协同。
  11. 一种空间位置确定方法,其特征在于,所述方法包括:
    第一电子设备控制麦克风采集第一模拟音频信号,并响应于所述第一模拟音频信号根据预存订阅信息控制扬声器播放第二模拟音频信号,所述第一模拟音频信号是第二电子设备的扬声器播放的音频信号,所述第一模拟音频信号用于指示所述第二电子设备在线,所述第二模拟音频信号用于请求进行电子设备之间的空间位置的确定;
    所述第一电子设备控制所述麦克风采集第三模拟音频信号,所述第三模拟音频信号是所述第二电子设备的所述扬声器播放的音频信号,所述第三模拟音频信号用于通知所述第二电子设备和所述第一电子设备之间的空间位置;
    所述第一电子设备通过所述第三模拟音频信号获取所述第二电子设备与所述第一电子设备之间的空间位置。
  12. 如权利要求11所述的方法,其特征在于,
    在所述第一电子设备响应于所述第一模拟音频信号根据预存订阅信息控制扬声器播放第二模拟音频信号之前,所述方法还包括:
    所述第一电子设备将所述第一模拟音频信号解码为二进制数据,并将所述二进制数据解码为预设信息,所述第一模拟音频信号包括第一啁啾信号和第二啁啾信号中的至少一种,所述第一啁啾信号用于表示二进制代码0,所述第二啁啾信号用于表示二进制代码1,所述预设信息用于表示所述第二电子设备在线。
  13. 如权利要求11至12任一项所述的方法,其特征在于,
    所述第一电子设备包括第一处理器,所述第一处理器处于休眠状态,在所述第一电子设备通过所述第三模拟音频信号获取所述第二电子设备与所述第一电子设备之间的空间位置之后,所述方法还包括:
    所述第一电子设备唤醒所述第一处理器;
    所述第一电子设备通过所述第一处理器根据所述第二电子设备与所述第一电子设备之间的空间位置熄屏显示所述第二电子设备的图标。
  14. 如权利要求13所述的方法,其特征在于,所述第一电子设备根据所述第二电子设备与所述第一电子设备之间的空间位置熄屏显示所述第二电子设备的图标包括:
    所述第一电子设备根据所述第二电子设备与所述第一电子设备之间的空间位置确定所述第二电子设备的图标的目标显示位置;
    所述第一电子设备在所述目标显示位置熄屏显示所述第二电子设备的图标。
  15. 如权利要求13至14任一项所述的方法,其特征在于,
    在所述第一电子设备响应于所述第一模拟音频信号根据预存订阅信息控制扬声器播放第二模拟音频信号之前,所述方法还包括:
    在所述第一处理器休眠之前,所述第一电子设备的目标应用程序或操作***向所述第一处理器发送订阅请求,所述订阅请求用于请求订阅电子设备之间的第一类型的空间位置;
    所述第一电子设备通过所述第一处理器根据所述订阅请求生成所述订阅信息;
    所述第一电子设备保存所述订阅信息。
  16. 如权利要求15所述的方法,其特征在于,
    所述第一模拟音频信号还用于请求进行电子设备之间的第二类型的相对位置的确定;
    所述第一电子设备响应于所述第一模拟音频信号根据预存订阅信息控制扬声器播放第二模拟音频信号包括:
    若所述第一模拟音频信号与所述预存订阅信息匹配,所述第一电子设备响应于所述第一模拟音频信号根据所述预存订阅信息控制所述扬声器播放所述第二模拟音频信号。
  17. 如权利要求15至16任一项所述的方法,其特征在于,
    所述电子设备之间的空间位置的类型包括所述电子设备之间的相对位置和所述电子设备之间的距离信息。
  18. 如权利要求13至17任一项所述的方法,其特征在于,在所述第一电子设备熄屏显示所述第二电子设备的图标之后,所述方法还包括:
    所述第一电子设备响应于对所述第二电子设备的图标的操作,与所述第二电子设备进行协同。
  19. 一种空间位置确定方法,应用于第一电子设备,其特征在于,所述第一电子设备包括第一处理器和第二处理器,所述第二处理器与所述第一处理器连接,所述第二处理器的运行功耗小于所述第一处理器的运行功耗,所述方法包括:
    所述第二处理器控制麦克风采集第一模拟音频信号,并响应于所述第一模拟音频信号根据预存订阅信息控制扬声器播放第二模拟音频信号,所述第一模拟音频信号是第二电子设备的扬声器播放的音频信号,所述第一模拟音频信号用于指示所述第二电子设备在线,所述第二模拟音频信号用于请求进行电子设备之间的空间位置的确定,所述预存订阅信息包括订阅者;
    所述第二处理器控制所述麦克风采集第三模拟音频信号,所述第三模拟音频信号是所述第二电子设备的所述扬声器播放的音频信号,所述第三模拟音频信号用于通知所述第二电子设备和所述第一电子设备之间的空间位置;
    所述第二处理器通过所述第一处理器发送所述第三模拟音频信号中的所述第二电子设备和所述第一电子设备之间的空间位置至所述订阅者。
  20. 如权利要求19所述的方法,其特征在于,
    在所述第二处理器控制麦克风采集第一模拟音频信号之前,所述方法还包括:
    所述第一处理器进入休眠状态;
    在所述第二处理器通过所述第一处理器发送所述第三模拟音频信号中的所述第二电子设备和所述第一电子设备之间的空间位置至所述订阅者之前,所述方法还包括:
    所述第二处理器唤醒所述第一处理器。
  21. 如权利要求20所述的方法,其特征在于,
    在所述第一处理器进入休眠状态之前,所述方法还包括:
    所述订阅者向所述第一处理器发送订阅请求,所述订阅请求用于请求订阅电子设备之间的第一类型的空间位置;所述订阅者包括目标应用程序或者操作***;
    所述第一处理器根据所述订阅请求生成所述订阅信息;
    所述第一处理器将所述订阅信息发送给所述第二处理器进行保存。
  22. 如权利要求19至21任一项所述的方法,其特征在于,
    所述第一处理器为应用处理器,所述第二处理器为音频数字信号处理器。
  23. 如权利要求19至22任一项所述的方法,其特征在于,
    在所述第二处理器响应于所述第一模拟音频信号根据预存订阅信息控制扬声器播放第二模拟音频信号之前,所述方法还包括:
    所述第二处理器将所述第一模拟音频信号解码为二进制数据,并将所述二进制数据解码为预设信息,所述第一模拟音频信号包括第一啁啾信号和第二啁啾信号中的至少一种,所述第一啁啾信号用于表示二进制代码0,所述第二啁啾信号用于表示二进制代码1,所述预设信息用于表示所述第二电子设备在线。
  24. 如权利要求19至23任一项所述的方法,其特征在于,
    在所述第二处理器通过所述第一处理器发送所述第三模拟音频信号中的所述第二电子设备和所述第一电子设备之间的空间位置至所述订阅者之后,所述方法还包括:
    所述第一电子设备与所述第二电子设备进行协同。
  25. 一种空间位置确定方法,其特征在于,所述方法包括:
    第二电子设备控制扬声器播放第一模拟音频信号,所述第一模拟音频信号用于指示所述第二电子设备在线;
    所述第二电子设备控制麦克风采集第二模拟音频信号,并根据所述第二模拟音频信号确定所述第二电子设备与第一电子设备之间的空间位置,所述第二模拟音频信号是所述第一电子设备的扬声器播放的音频信号,所述第二模拟音频信号用于请求进行电子设备之间的空间位置的确定;
    所述第二电子设备根据所述第二电子设备与所述第一电子设备之间的空间位置生成第三模拟音频信号,并控制所述扬声器播放所述第三模拟音频信号,所述第三模拟音频信号用于通知所述第二电子设备与所述第一电子设备之间的空间位置。
  26. 如权利要求25所述的方法,其特征在于,
    所述第二电子设备控制扬声器播放第一模拟音频信号包括:
    在所述第二电子设备休眠之后,若所述第二电子设备的运动传感器检测到所述第二电子设备的运动状态为运动后停止,所述第二电子设备控制所述扬声器播放所述第一模拟音频信号。
  27. 如权利要求25所述的方法,其特征在于,
    所述第二电子设备控制扬声器播放第一模拟音频信号包括:
    若所述第二电子设备侦测到目标应用程序处于运行状态下,所述第二电子设备控制所述扬声器播放所述第一模拟音频信号。
  28. 如权利要求25至27任一项所述的方法,其特征在于,
    在所述第二电子设备控制扬声器播放第一模拟音频信号之前,所述方法还包括:
    所述第二电子设备对预设信息进行二进制编码,并将编码后的二进制数据编码为所述第一模拟音频信号,所述预设信息用于表示所述第二电子设备在线,所述第一模拟音频信号包括第一啁啾信号和第二啁啾信号中的至少一种,所述第一啁啾信号用于表示二进制代码0,所述第二啁啾信号用于表示二进制代码1。
  29. 一种空间位置确定***,其特征在于,所述***包括第一电子设备和第二电子设备,所述第一电子设备用于执行如权利要求11至18、或权利要求19至24任一项所述的方法,所述第二电子设备用于执行如权利要求25至28任一项所述的方法。
  30. 一种电子设备,其特征在于,所述电子设备包括至少一个处理器、存储器、扬声器和麦克风;
    所述至少一个处理器与所述存储器、所述扬声器和所述麦克风耦合;
    所述存储器用于存储指令,所述处理器用于执行所述指令,所述扬声器用于播放音频信号,所述麦克风用于采集音频信号;
    所述指令在被所述至少一个处理器执行时,使所述至少一个处理器执行如权利要求1至10、权利要求11至18、权利要求19至24、或权利要求25至28任一项所述的方法。
  31. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有程序,所述程序使得计算机设备执行如权利要求1至10、权利要求11至18、权利要求19至24、或权利要求25至28任一项所述的方法。
  32. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机执行指令,所述计算机执行指令存储在计算机可读存储介质中;电子设备的至少一个处理器可以从所述计算机可读存储介质中读取所述计算机执行指令,所述至少一个处理器执行所述计算机执行指令使得所述电子设备执行如1至10、权利要求11至18、权利要求19至24、或权利要求25至28任一项所述的方法。
PCT/CN2023/129111 2022-11-08 2023-11-01 空间位置确定方法、***及其设备 WO2024099212A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211393980.7A CN118033541A (zh) 2022-11-08 2022-11-08 空间位置确定方法、***及其设备
CN202211393980.7 2022-11-08

Publications (1)

Publication Number Publication Date
WO2024099212A1 true WO2024099212A1 (zh) 2024-05-16

Family

ID=90982807

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/129111 WO2024099212A1 (zh) 2022-11-08 2023-11-01 空间位置确定方法、***及其设备

Country Status (2)

Country Link
CN (1) CN118033541A (zh)
WO (1) WO2024099212A1 (zh)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101228749B1 (ko) * 2011-08-24 2013-01-31 한국과학기술원 가청 주파수를 이용한 위치 감지 시스템, 방법 및 이를 이용한 기록 매체
KR20150130845A (ko) * 2014-05-14 2015-11-24 삼성전자주식회사 전자장치의 위치 측정 장치 및 방법
CN113518304A (zh) * 2021-03-18 2021-10-19 深圳云里物里科技股份有限公司 室内定位方法及装置
CN113873444A (zh) * 2020-06-30 2021-12-31 华为技术有限公司 一种定位方法及电子设备
CN114564209A (zh) * 2022-02-08 2022-05-31 福思(杭州)智能科技有限公司 智能汽车数据的处理方法、装置、设备及存储介质
CN114666736A (zh) * 2020-12-22 2022-06-24 成都鼎桥通信技术有限公司 位置订阅方法及设备
CN114690113A (zh) * 2020-12-31 2022-07-01 华为技术有限公司 确定设备位置的方法和装置
CN114895244A (zh) * 2021-01-25 2022-08-12 华为技术有限公司 设备交互方法、位置确定方法、电子设备及芯片***

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101228749B1 (ko) * 2011-08-24 2013-01-31 한국과학기술원 가청 주파수를 이용한 위치 감지 시스템, 방법 및 이를 이용한 기록 매체
KR20150130845A (ko) * 2014-05-14 2015-11-24 삼성전자주식회사 전자장치의 위치 측정 장치 및 방법
CN113873444A (zh) * 2020-06-30 2021-12-31 华为技术有限公司 一种定位方法及电子设备
CN114666736A (zh) * 2020-12-22 2022-06-24 成都鼎桥通信技术有限公司 位置订阅方法及设备
CN114690113A (zh) * 2020-12-31 2022-07-01 华为技术有限公司 确定设备位置的方法和装置
CN114895244A (zh) * 2021-01-25 2022-08-12 华为技术有限公司 设备交互方法、位置确定方法、电子设备及芯片***
CN113518304A (zh) * 2021-03-18 2021-10-19 深圳云里物里科技股份有限公司 室内定位方法及装置
CN114564209A (zh) * 2022-02-08 2022-05-31 福思(杭州)智能科技有限公司 智能汽车数据的处理方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN118033541A (zh) 2024-05-14

Similar Documents

Publication Publication Date Title
WO2021052263A1 (zh) 语音助手显示方法及装置
US11683850B2 (en) Bluetooth reconnection method and related apparatus
AU2019385366A1 (en) Voice control method and electronic device
WO2021052282A1 (zh) 数据处理方法、蓝牙模块、电子设备与可读存储介质
EP4084486B1 (en) Cross-device content projection method, and electronic device
WO2021185141A1 (zh) Wi-Fi Aware的建链方法、***、电子设备和存储介质
WO2021121052A1 (zh) 一种多屏协同方法、***及电子设备
JP7459438B2 (ja) モバイル端末の消費電力を削減するための方法およびモバイル端末
WO2021017894A1 (zh) 一种使用远程sim模块的方法及电子设备
WO2021052204A1 (zh) 基于通讯录的设备发现方法、音视频通信方法及电子设备
EP4152190A1 (en) Permission management method and apparatus for application, and electronic device
WO2020006711A1 (zh) 一种消息的播放方法及终端
WO2021000817A1 (zh) 环境音处理方法及相关装置
WO2021017935A1 (zh) 一种唤醒锁的管理方法及电子设备
CN113806105A (zh) 消息处理方法、装置、电子设备和可读存储介质
CN113887264A (zh) 扫码方法、***及相关装置
EP4228233A1 (en) Method for adding operation sequence, electronic device, and system
WO2023071940A1 (zh) 跨设备的导航任务的同步方法、装置、设备及存储介质
WO2023284555A1 (zh) 安全调用服务的方法、安全注册服务的方法及装置
WO2024099212A1 (zh) 空间位置确定方法、***及其设备
CN117425227A (zh) 建立基于WiFi直接连接的会话的方法和装置
WO2024083031A1 (zh) 一种显示方法、电子设备和***
WO2022267656A1 (zh) 组件访问方法和装置、计算机可读存储介质以及芯片
WO2023174322A1 (zh) 图层处理方法和电子设备
CN116828102B (zh) 录音方法、设备及存储介质

Legal Events

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

Ref document number: 23887902

Country of ref document: EP

Kind code of ref document: A1