Method, device and system for adjusting position information

By detecting the relative position relationship between electronic devices and using acoustic signals for automatic update, the problem of manual setting of position information in the prior art is solved, and the automatic adjustment and update of position information is realized, improving the user experience.

CN119484696APending Publication Date: 2025-02-18HUAWEI TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411395236.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2020-09-30
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

In the prior art, the position information in the electronic device is generally manually set by the user, which leads to complex and cumbersome operation. Especially when the physical relative position between the electronic devices changes, the user needs to manually set the position information again, which further aggravates the complex operation. affects the user experience.

Method used

Provide a system and method for adjusting position information, automatically update the pre-pre-in-first electronic device by detecting relative position relationships between the first electronic device and the second electronic device and using a sound wave signal or other wave signal for detection. The location information is set without the user setting manually.

Benefits of technology

It realizes automatic setting of position information in electronic devices, simplifies user operations, improves user experience, and automatically updates position information when physical relative positions between electronic devices change.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119484696A_ABST
    Figure CN119484696A_ABST
Patent Text Reader

Abstract

The invention provides a method, device and system for adjusting position information, and the method comprises the steps: first electronic equipment determines that a first triggering condition is satisfied, sends a first instruction to enable a first sound wave transmitter to send a first sound wave signal, and sends a second instruction to enable a second sound wave transmitter to send a second sound wave signal, and the second electronic equipment sends a third instruction to enable the first sound wave receiver to receive the first sound wave signal and the second sound wave signal, calculates a first receiving starting moment and a second receiving starting moment, obtains first position information, determines second position information according to the first receiving starting moment, the second receiving starting moment and the first position information, and sends the second position information to the second electronic equipment. The second position information is sent to the first electronic equipment, and the first electronic equipment uses the second position information to update the third position information. The preset position information in the first electronic equipment can be automatically adjusted, manual setting of a user is not needed, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent terminal technology, and in particular to a method, device and system for adjusting location information. Background Art

[0002] In a system consisting of multiple electronic devices, it is sometimes necessary to set location information in one or more of the electronic devices. The location information is used to record the relative position relationship between the electronic devices in the system in physical space (hereinafter referred to as physical relative position).

[0003] At present, the location information in electronic devices is generally set manually by users. For ordinary users, the user finds the setting interface of the location information and then manually sets the location information, which is a complicated and cumbersome process. Moreover, after the physical relative positions of the electronic devices in the system change, the user needs to manually set the location information in one or more electronic devices again, which further increases the complexity of the operation and affects the user experience. Summary of the invention

[0004] The present application provides a method, device and system for adjusting location information, which can automatically set the location information in an electronic device to improve the user experience.

[0005] In a first aspect, the present application provides a system for adjusting position information, including: a first electronic device determines that a first trigger condition is satisfied; the first trigger condition is used to trigger the detection of a relative position relationship between the first electronic device and a second electronic device; the first electronic device sends a first instruction, the first instruction is used to enable a first sound wave transmitter to send a first sound wave signal; the first electronic device sends a second instruction, the second instruction is used to enable a second sound wave transmitter to send a second sound wave signal; the first sound wave signal and the second sound wave signal have different amplitudes and / or frequencies; the first sound wave transmitter and the second sound wave transmitter are arranged in the first electronic device; the second electronic device sends a third instruction, the third instruction is used to enable a first sound wave receiver to receive the first sound wave signal and the second sound wave signal, the first sound wave receiver is arranged in the second electronic device; the second electronic device calculates a first reception start time and a second reception start time; the first reception start time is the time when the first sound wave receiver receives to the start time of the first sound wave signal, the second reception start time is the start time when the first sound wave receiver receives the second sound wave signal; the second electronic device obtains the first position information, and determines the second position information according to the first reception start time, the second reception start time and the first position information; the first position information is used to describe: based on the angle at which the user views the first electronic device, the first sound wave transmitter is located on the left side of the second sound wave transmitter; the second position information is used to describe: based on the angle at which the user views the display screen of the second electronic device, the left-right relative position relationship between the first electronic device and the second electronic device; the second electronic device sends the second position information to the first electronic device; the first electronic device receives the second position information, and uses the second position information to update the third position information; the third position information is used to describe: based on the angle at which the user views the display screen of the first electronic device, the left-right relative position relationship between the first electronic device and the second electronic device. The system automatically completes the detection of the physical relative position between the first electronic device and the second electronic device, and the update of the preset third position information in the first electronic device after the first electronic device determines that the trigger condition is met, without the need for manual setting by the user, thereby improving the user experience.

[0006] In a possible implementation, it also includes: the first sound wave signal and the second sound wave signal are sent at the same time; the second electronic device determines the second location information according to the first reception start time, the second reception start time and the first location information, including: the second electronic device determines the temporal sequence of the first reception start time and the second reception start time; if the result of the judgment is that the first reception start time is earlier than the second reception start time, the second location information is determined as the first information, and the first information is used to describe: based on the angle at which the user views the display screen of the second electronic device, the second electronic device is located on the left side of the first electronic device; if the result of the judgment is that the first reception start time is later than the second reception start time, the second location information is determined as the second information, and the second information is used to describe: based on the angle at which the user views the display screen of the second electronic device, the second electronic device is located on the right side of the first electronic device. The method provides a possible implementation of determining the second location information.

[0007] In a possible implementation, before the second electronic device determines the temporal sequence of the first receiving start moment and the second receiving start moment, it also includes: the second electronic device determines whether the time difference between the first receiving start moment and the second receiving start moment is less than a preset first threshold; if the judgment result is not less than the first threshold, executing the step of determining the temporal sequence of the first receiving start moment and the second receiving start moment.

[0008] In a possible implementation, the second electronic device determines the second location information according to the first receiving start time, the second receiving start time and the first location information, including: the second electronic device obtains the first sending start time and the second sending start time respectively; the first sending start time is the start time when the first electronic device uses the first sound wave transmitter to send the first sound wave signal, and the second sending start time is the start time when the second electronic device uses the second sound wave transmitter to send the second sound wave signal; the second electronic device calculates the first time difference according to the first sending start time and the first receiving start time, and calculates the second time difference according to the second sending start time and the second receiving start time; the second electronic device determines the magnitude relationship between the first time difference and the second time difference; if the result of the judgment is that the first time difference is greater than the second time difference, the second electronic device determines the second location information as the first information, and the first information is used to describe: based on the angle at which the user views the display screen of the second electronic device, the second electronic device is located on the left side of the first electronic device; if the result of the judgment is that the first time difference is less than the second time difference, the second electronic device determines the second location information as the second information, and the second information is used to describe: based on the angle at which the user views the display screen of the second electronic device, the second electronic device is located on the right side of the first electronic device. The method provides another possible implementation of determining the second location information.

[0009] In one possible implementation, before the second electronic device determines the size relationship between the first time difference and the second time difference, it also includes: the second electronic device determines whether the difference between the first time difference and the second time difference is less than a preset second threshold; if the judgment result is not less than the second threshold, executing the step of determining the size relationship between the first time difference and the second time difference.

[0010] In a possible implementation, the first electronic device determines that the first trigger condition is met, including: the first electronic device receives a first message sent by the second electronic device, the first message is a confirmation message for the collaborative display request sent by the first electronic device; or the first electronic device receives an interface conversion operation for a display element in a collaborative display state; or the first electronic device determines that the first electronic device has moved based on the received movement data in a collaborative display state; or the first electronic device receives a position information adjustment request sent by the second electronic device in a collaborative display state, the position information adjustment request is sent after the second electronic device detects that the second electronic device has moved; or the first electronic device determines that the trigger moment of relative position relationship detection has arrived according to a preset period in a collaborative display state. The method provides a possible implementation for determining that the first trigger condition is met.

[0011] In a possible implementation, before using the first location information to update the second location information, the process also includes: the first electronic device determines whether the first location information is consistent with the second location information; if the result of the determination is inconsistent, executing the step of using the first location information to update the second location information.

[0012] In a second aspect, the present application provides a method for adjusting position information, which is applied to a first electronic device, including: determining that a first trigger condition is satisfied; the first trigger condition is used to trigger the detection of a relative position relationship between the first electronic device and the second electronic device; sending a first instruction, the first instruction is used to enable a first sound wave transmitter to send a first sound wave signal; sending a second instruction, the second instruction is used to enable a second sound wave transmitter to send a second sound wave signal; the first sound wave signal and the second sound wave signal have different amplitudes and / or frequencies; the first sound wave transmitter and the second sound wave transmitter are arranged in the first electronic device; receiving second position information sent by the second electronic device, the second position information is used to describe: based on the angle at which a user views a display screen of the second electronic device, the first electronic device and the second electronic device The left-right relative position relationship between the first and second electronic devices; the second position information is determined by the second electronic device according to the first receiving start time, the second receiving start time and the first position information, the first sound wave receiver is set in the second electronic device, the first receiving start time is the start time when the first sound wave receiver receives the first sound wave signal, the second receiving start time is the start time when the first sound wave receiver receives the second sound wave signal, the first position information is used to describe: based on the angle at which the user views the first electronic device, the first sound wave transmitter is located on the left side of the second sound wave transmitter; the second position information is used to update the third position information; the third position information is used to describe: based on the angle at which the user views the display screen of the first electronic device, the left-right relative position relationship between the first electronic device and the second electronic device. The method automatically completes the detection of the physical relative position between the first electronic device and the second electronic device, and the update of the preset third position information in the first electronic device after the first electronic device determines that the trigger condition is met, without the need for manual setting by the user, thereby improving the user experience. The method can be executed by a processor of the first electronic device.

[0013] In one possible implementation, determining that the first trigger condition is satisfied includes: receiving a first message sent by the second electronic device, the first message being a confirmation message for a collaborative display request sent by the first electronic device; or, receiving an interface conversion operation for a display element in a collaborative display state; or, determining that the first electronic device has moved based on received movement data in a collaborative display state; or, receiving a position information adjustment request sent by the second electronic device in a collaborative display state, the position information adjustment request being sent after the second electronic device detects that the second electronic device has moved; or, determining, in a collaborative display state, based on a preset period, that a trigger moment for relative position relationship detection has been reached.

[0014] In a possible implementation, before using the first location information to update the second location information, the process further includes: determining whether the second location information is consistent with the third location information; if the determination result is inconsistent, executing the step of using the second location information to update the third location information.

[0015] In a third aspect, the present application provides a method for adjusting position information, which is applied to a second electronic device, including: sending a third instruction, the third instruction is used to enable a first sound wave receiver to receive a first sound wave signal and a second sound wave signal, and the first sound wave receiver is arranged in the second electronic device; the first sound wave signal is sent by the first electronic device using a first sound wave transmitter after determining that a first trigger condition is satisfied, and the second sound wave signal is sent by the first electronic device using a second sound wave transmitter after determining that the first trigger condition is satisfied, and the first trigger condition is used to trigger the detection of the relative position relationship between the first electronic device and the second electronic device; the first sound wave signal and the second sound wave signal have different amplitudes and / or frequencies; the first sound wave transmitter and the second sound wave transmitter are arranged in the first electronic device; based on the angle at which the user views the first electronic device, the first sound wave transmitter is located on the left side of the second sound wave transmitter; calculating a first reception start time and a second reception start time; the first reception start time The time is the starting time when the first sound wave receiver receives the first sound wave signal, and the second receiving starting time is the starting time when the first sound wave receiver receives the second sound wave signal; the first position information is obtained, and the second position information is determined according to the first receiving starting time, the second receiving starting time and the first position information; the first position information is used to describe: based on the angle at which the user views the first electronic device, the first sound wave transmitter is located on the left side of the second sound wave transmitter; the second position information is used to describe: based on the angle at which the user views the display screen of the second electronic device, the left-right relative position relationship between the first electronic device and the second electronic device; the second position information is sent to the first electronic device, and the second position information is used to instruct the first electronic device to update the third position information using the second position information; the third position information is used to describe: based on the angle at which the user views the display screen of the first electronic device, the left-right relative position relationship between the first electronic device and the second electronic device. The method automatically completes the detection of the physical relative position between the first electronic device and the second electronic device, and the update of the preset third position information in the first electronic device after the first electronic device determines that the trigger condition is met, without the need for manual setting by the user, thereby improving the user experience. The method can be executed by the processor of the second electronic device.

[0016] In a possible implementation, it also includes: the sending time of the first sound wave signal and the second sound wave signal is the same; the second position information is determined according to the first reception start time, the second reception start time and the first position information, including: judging the time sequence of the first reception start time and the second reception start time; if the result of the judgment is that the first reception start time is earlier than the second reception start time, the second position information is determined as the first information, and the first information is used to describe: based on the angle at which the user views the display screen of the second electronic device, the second electronic device is located on the left side of the first electronic device; if the result of the judgment is that the first reception start time is later than the second reception start time, the second position information is determined as the second information, and the second information is used to describe: based on the angle at which the user views the display screen of the second electronic device, the second electronic device is located on the right side of the first electronic device.

[0017] In a possible implementation, before determining the temporal order of the first receiving start moment and the second receiving start moment, the step further includes: determining whether the time difference between the first receiving start moment and the second receiving start moment is less than a preset first threshold; if the determination result is not less than the first threshold, executing the step of determining the temporal order of the first receiving start moment and the second receiving start moment.

[0018] In a possible implementation, the second position information is determined according to the first receiving start time, the second receiving start time and the first position information, including: respectively obtaining the first sending start time and the second sending start time; the first sending start time is the start time when the first electronic device uses the first sound wave transmitter to send the first sound wave signal, and the second sending start time is the start time when the second electronic device uses the second sound wave transmitter to send the second sound wave signal; calculating the first time difference according to the first sending start time and the first receiving start time, and calculating the second time difference according to the second sending start time and the second receiving start time; judging the size relationship between the first time difference and the second time difference; if the result of the judgment is that the first time difference is greater than the second time difference, determining the second position information as the first information, the first information is used to describe: based on the angle at which the user views the display screen of the second electronic device, the second electronic device is located on the left side of the first electronic device; if the result of the judgment is that the first time difference is less than the second time difference, determining the second position information as the second information, the second information is used to describe: based on the angle at which the user views the display screen of the second electronic device, the second electronic device is located on the right side of the first electronic device.

[0019] In a possible implementation, before determining the size relationship between the first time difference and the second time difference, the step further includes: the second electronic device determines whether the difference between the first time difference and the second time difference is less than a preset second threshold; if the determination result is not less than the second threshold, executing the step of determining the size relationship between the first time difference and the second time difference.

[0020] In a fourth aspect, the present application provides a first electronic device, including: a first sound wave transmitter, a second sound wave transmitter, a receiver, and a processor; the processor executes the following steps: determining that a first trigger condition is satisfied; the first trigger condition is used to trigger the detection of the relative position relationship between the first electronic device and the second electronic device; sending a first instruction, the first instruction is used to enable the first sound wave transmitter to send a first sound wave signal; sending a second instruction, the second instruction is used to enable the second sound wave transmitter to send a second sound wave signal; the first sound wave signal and the second sound wave signal have different amplitudes and / or frequencies; obtaining second position information sent by the second electronic device received by the receiver, the second position information is used to describe: based on the angle at which the user views the display screen of the second electronic device, the first electronic device and the second electronic device The second position information is determined by the second electronic device according to the first receiving start time, the second receiving start time and the first position information, the first receiving start time is the start time when the first sound wave receiver receives the first sound wave signal, the second receiving start time is the start time when the first sound wave receiver receives the second sound wave signal, the first position information is used to describe: based on the angle at which the user views the first electronic device, the first sound wave transmitter is located on the left side of the second sound wave transmitter, and the first sound wave receiver is set in the second electronic device; the second position information is used to update the third position information; the third position information is used to describe: based on the angle at which the user views the display screen of the first electronic device, the left-right relative position relationship between the first electronic device and the second electronic device. After determining that the trigger condition is met, the first electronic device automatically completes the detection of the physical relative position between the first electronic device and the second electronic device, and the update of the preset third position information in the first electronic device, without the need for manual setting by the user, thereby improving the user experience.

[0021] In a possible implementation, the first sound wave signal and the second sound wave signal are sent at the same time; the second electronic device determines the second position information according to the first reception start time, the second reception start time and the first position information, including: the second electronic device determines the time sequence of the first reception start time and the second reception start time; if the result of the judgment is that the first reception start time is earlier than the second reception start time, the second position information is determined as the first information, and the first information is used to describe: based on the angle at which the user views the display screen of the second electronic device, the second electronic device is located on the left side of the first electronic device; if the result of the judgment is that the first reception start time is later than the second reception start time, the second position information is determined as the second information, and the second information is used to describe: based on the angle at which the user views the display screen of the second electronic device, the second electronic device is located on the right side of the first electronic device.

[0022] In a possible implementation, the second electronic device determines the second position information according to the first reception start time, the second reception start time and the first position information, including: the second electronic device obtains the first sending start time and the second sending start time respectively; the first sending start time is the start time when the first electronic device uses the first sound wave transmitter to send the first sound wave signal, and the second sending start time is the start time when the second electronic device uses the second sound wave transmitter to send the second sound wave signal; the second electronic device calculates the first time difference according to the first sending start time and the first reception start time, and calculates the second time difference according to the second sending start time and the second reception start time; the second electronic device determines the size relationship between the first time difference and the second time difference; if the result of the judgment is that the first time difference is greater than the second time difference, the second electronic device determines the second position information as the first information, and the first information is used to describe: based on the angle at which the user views the display screen of the second electronic device, the second electronic device is located on the left side of the first electronic device; if the result of the judgment is that the first time difference is less than the second time difference, the second electronic device determines the second position information as the second information, and the second information is used to describe: based on the angle at which the user views the display screen of the second electronic device, the second electronic device is located on the right side of the first electronic device.

[0023] In one possible implementation, the first electronic device determines that the first trigger condition is met, including: the first electronic device receives a first message sent by the second electronic device, and the first message is a confirmation message for the collaborative display request sent by the first electronic device; or, the first electronic device receives an interface conversion operation for a display element in the collaborative display state; or, the first electronic device determines that the first electronic device has moved based on the received movement data in the collaborative display state; or, the first electronic device receives a position information adjustment request sent by the second electronic device in the collaborative display state, and the position information adjustment request is sent after the second electronic device detects that the second electronic device has moved; or, the first electronic device determines that a trigger moment for relative position relationship detection has arrived according to a preset period in the collaborative display state.

[0024] In a fifth aspect, the present application provides a second electronic device, comprising: a first sound wave receiver; a transmitter; a processor; the processor executes the following steps: sending a third instruction, the third instruction is used to enable the first sound wave receiver to receive a first sound wave signal and a second sound wave signal, the first sound wave receiver is arranged in the second electronic device; the first sound wave signal is sent by the first electronic device using the first sound wave transmitter after determining that the first trigger condition is met, and the second sound wave signal is sent by the first electronic device using the second sound wave transmitter after determining that the first trigger condition is met, the first trigger condition is used to trigger the detection of the relative position relationship between the first electronic device and the second electronic device; the first sound wave signal and the second sound wave signal have different amplitudes and / or frequencies; the first sound wave transmitter and the second sound wave transmitter are arranged in the first electronic device; based on the angle at which the user views the first electronic device, the first sound wave transmitter is located on the left side of the second sound wave transmitter; calculating the first reception start time and the second reception start time ; The first receiving start time is the start time when the first sound wave receiver receives the first sound wave signal, and the second receiving start time is the start time when the first sound wave receiver receives the second sound wave signal; the first position information is obtained, and the second position information is determined according to the first receiving start time, the second receiving start time and the first position information; the first position information is used to describe: based on the angle at which the user views the first electronic device, the first sound wave transmitter is located on the left side of the second sound wave transmitter; the second position information is used to describe: based on the angle at which the user views the display screen of the second electronic device, the left-right relative position relationship between the first electronic device and the second electronic device; the second position information is sent to the first electronic device, and the second position information is used to instruct the first electronic device to update the third position information using the second position information; the third position information is used to describe: based on the angle at which the user views the display screen of the first electronic device, the left-right relative position relationship between the first electronic device and the second electronic device.

[0025] In one possible implementation, determining that the first trigger condition is satisfied includes: receiving a first message sent by the second electronic device, the first message being a confirmation message for a collaborative display request sent by the first electronic device; or, receiving an interface conversion operation for a display element in a collaborative display state; or, determining that the first electronic device has moved based on received movement data in a collaborative display state; or, receiving a position information adjustment request sent by the second electronic device in a collaborative display state, the position information adjustment request being sent after the second electronic device detects that the second electronic device has moved; or, determining, in a collaborative display state, based on a preset period, that a trigger moment for relative position relationship detection has been reached.

[0026] In a sixth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer-readable storage medium is run on a computer, the computer executes any one of the methods of the first to third aspects.

[0027] In the seventh aspect, the present application provides a method for adjusting position information, including: establishing a connection for collaborative work between a first electronic device and a second electronic device, detecting a trigger condition for relative position detection, using a first wave transmitter to send a first wave signal, and using a second wave transmitter to send a second wave signal; the second electronic device uses a first wave receiver to receive the first wave signal and the second wave signal, determines first information based on receiving parameters of the first wave signal and the second wave signal, and sends the first information to the first electronic device; the first electronic device adjusts the position information based on the received first information so that the position information is consistent with the first information; wherein the first wave signal and the second wave signal have different wave characteristics, and the sending start time of the first wave signal and the second wave signal is the same; the physical relative position between the first wave transmitter and the second wave transmitter is: left and right, or up and down; the first information is used to record the physical relative position between the first electronic device and the second electronic device. Under collaborative working conditions, the method detects a trigger condition for relative position detection, determines first information for recording the physical relative position between a first electronic device and a second electronic device, and adjusts the position information in the first electronic device according to the first information, thereby being able to automatically adjust the position information set in the first electronic device participating in the collaborative work so that the relative position between the electronic devices recorded thereby is consistent with the physical relative position between the electronic devices, thereby improving the user experience of the collaborative function.

[0028] In a possible implementation, the first electronic device detects a trigger condition for relative position detection, including: the first electronic device detects that the connection between the first electronic device and the second electronic device for collaborative work is established; or the first electronic device detects an interface conversion operation for a display element during collaborative display with the second electronic device; or the first electronic device detects that the first electronic device moves during collaborative display with the second electronic device; or the first electronic device receives a position information adjustment request sent by the second electronic device during collaborative display with the second electronic device, and the position information adjustment request is sent after the second electronic device detects that the second electronic device moves; or the first electronic device determines that the trigger moment for position information adjustment has arrived according to a preset period during collaborative display with the second electronic device. In this method, position information adjustment is automatically triggered under various trigger conditions without manual operation by the user, further improving the user experience.

[0029] In a possible implementation, the first wave signal and the second wave signal are sound waves, and the first information is determined according to the reception parameters of the first wave signal and the reception parameters of the second wave signal, including: determining the first information according to the reception start time of the first wave signal and the reception start time of the second wave signal. In this method, the wave signal is realized by sound waves, and then the physical relative position between the first electronic device and the second electronic device is determined by the reception start time of the sound waves, thereby realizing the detection of the physical relative position and providing accurate reference data for the adjustment of the position information.

[0030] In a possible implementation, the first information is determined according to the start time of receiving the first wave signal and the start time of receiving the second wave signal, including: if the start time of receiving the first wave signal is earlier than the start time of receiving the second wave signal, the physical relative position recorded in the first information is: the second electronic device is located on the first side of the first electronic device, and the first side is the side corresponding to the first wave transmitter; if the start time of receiving the first wave signal is later than the start time of receiving the second wave signal, the physical relative position recorded in the first information is: the second electronic device is located on the second side of the first electronic device, and the second side is the side corresponding to the second wave transmitter. This method provides a more specific method for detecting physical relative position based on sound waves, realizes the detection of the physical relative position between the first electronic device and the second electronic device, and provides accurate reference data for adjusting the position information.

[0031] In a possible implementation, the first wave signal and the second wave signal are Bluetooth signals or UWB signals, and the first information is determined according to the reception parameters of the first wave signal and the reception parameters of the second wave signal, including: calculating the departure angle according to the phase difference between the first wave signal and the second wave signal received by the first receiver, and determining the first information according to the departure angle. The method provides a physical relative position detection method based on Bluetooth signals or UWB signals, realizes the detection of the physical relative position between the first electronic device and the second electronic device, and provides accurate reference data for position information adjustment.

[0032] In a possible implementation, the method further includes: the first electronic device uses a third wave transmitter to transmit a third wave signal, the third wave signal has different wave characteristics from the first wave signal, the third wave signal has different wave characteristics from the second wave signal, and the transmission start time of the third wave signal and the first wave signal is the same; the second electronic device uses a first wave receiver to receive the third wave signal; wherein, if the physical relative position between the first wave transmitter and the second wave transmitter is: left and right, the physical relative position between the third wave transmitter and the first wave transmitter is: up and down; or, if the physical relative position between the first wave transmitter and the second wave transmitter is: up and down, the physical relative position between the third wave transmitter and the first wave transmitter is: left and right; then the second electronic device also determines the first information according to the reception parameter of the third wave signal. In the method, a third wave transmitter is added to transmit the third wave signal, so that the second electronic device can detect the physical relative position between the first electronic device and the second electronic device according to the reception parameters of the first wave signal, the second wave signal and the third wave signal, further increasing the physical relative positions that may be detected.

[0033] In a possible implementation, the second electronic device further determines the first information based on the reception parameters of the third wave signal, including: determining the second information based on the reception parameters of the first wave signal and the reception parameters of the second wave signal, determining the third information based on the reception parameters of the third wave signal and the reception parameters of the first wave signal, and determining the first information based on the second information and the third information.

[0034] In a possible implementation, the number of second electronic devices connected to the first electronic device is greater than 1, and the method further includes: the second electronic device sends a preset first parameter to the first electronic device, and the preset first parameter is determined by the second electronic device according to the reception parameter of the first wave signal and / or the reception parameter of the second wave signal; the first electronic device determines that there are at least two second electronic devices that send the same first information, and determines fourth information according to the first parameters sent by at least two second electronic devices, and the fourth information is used to record the physical relative position between at least two second electronic devices; then the first electronic device also adjusts the position information according to the fourth information. This implementation provides a method for detecting the physical relative position between second electronic devices with the same first information.

[0035] In a possible implementation, the first wave signal and the second wave signal are sound waves, and the first parameter is a start time of receiving the first wave signal and / or a start time of receiving the second wave signal.

[0036] In a possible implementation manner, the first wave signal and the second wave signal are Bluetooth signals or UWB signals, and the first parameter is a departure angle calculated according to a phase difference between the first wave signal and the second wave signal.

[0037] In an eighth aspect, the present application provides a method for adjusting position information, which is applied to a first electronic device, comprising: establishing a connection for collaborative work with a second electronic device, detecting a trigger condition for relative position detection, using a first wave transmitter to send a first wave signal, using a second wave transmitter to send a second wave signal, receiving the first information sent by the second electronic device, and adjusting the position information according to the received first information so that the position information is consistent with the first information; wherein the first wave signal and the second wave signal have different wave characteristics, and the first wave signal and the second wave signal have the same sending start time; the physical relative position between the first wave transmitter and the second wave transmitter is: left and right, or up and down; the first information is determined by the second electronic device based on the receiving parameters of the first wave signal and the receiving parameters of the second wave signal, and the receiving parameters of the first wave signal and the second wave signal are obtained by the second electronic device using the first wave receiver to receive the first wave signal and the second wave signal, and the first information is used to record the physical relative position between the first electronic device and the second electronic device.

[0038] In one possible implementation, detecting a trigger condition for relative position detection includes: detecting that a connection for collaborative work with a second electronic device is established; or detecting an interface conversion operation for a display element during collaborative display with the second electronic device; or detecting movement of the first electronic device during collaborative display with the second electronic device; or receiving a position information adjustment request sent by the second electronic device during collaborative display with the second electronic device, the position information adjustment request being sent after the second electronic device detects that the second electronic device has moved; or determining, during collaborative display with the second electronic device, that a trigger moment for position information adjustment has been reached according to a preset period.

[0039] In a possible implementation, it also includes: using a third wave transmitter to transmit a third wave signal, the third wave signal has different wave characteristics from the first wave signal, the third wave signal has different wave characteristics from the second wave signal, and the transmission start time of the third wave signal and the first wave signal is the same; the third wave signal is used to enable the second electronic device to also determine the first information according to the reception parameter of the third wave signal; wherein, if the physical relative position between the first wave transmitter and the second wave transmitter is: left and right, the physical relative position between the third wave transmitter and the first wave transmitter is: up and down; or, if the physical relative position between the first wave transmitter and the second wave transmitter is: up and down, the physical relative position between the third wave transmitter and the first wave transmitter is: left and right.

[0040] In one possible implementation, the number of second electronic devices that establish a connection with the first electronic device is greater than one, and the method further includes: receiving a preset first parameter sent by the second electronic device, the preset first parameter being determined by the second electronic device based on a reception parameter of the first wave signal and / or a reception parameter of the second wave signal; determining that there are at least two second electronic devices that send the same first information, determining fourth information based on the first parameters sent by at least two second electronic devices, the fourth information being used to record the physical relative position between at least two second electronic devices; and adjusting the position information based on the fourth information, so that the information in the position information used to record the relative position between the second electronic devices is consistent with the fourth information.

[0041] In a possible implementation, the first wave signal and the second wave signal are sound waves, and the first parameter is a start time of receiving the first wave signal and / or a start time of receiving the second wave signal.

[0042] In a possible implementation manner, the first wave signal and the second wave signal are Bluetooth signals or UWB signals, and the first parameter is a departure angle calculated according to a phase difference between the first wave signal and the second wave signal.

[0043] In a ninth aspect, the present application provides a method for adjusting position information, which is applied to a second electronic device, including: establishing a connection for collaborative work with a first electronic device, using a first wave transmitter to receive a first wave signal and a second wave signal sent by the first electronic device, determining first information according to reception parameters of the first wave signal and reception parameters of the second wave signal, and sending the first information to the first electronic device, wherein the first information is used to instruct the first electronic device to adjust the position information according to the first information so that the position information is consistent with the first information; wherein the first wave signal is sent by the first electronic device using the first wave transmitter after detecting a trigger condition for relative position detection, and the second wave signal is sent by the first electronic device using the second wave transmitter after detecting a trigger condition for relative position detection, the first wave signal and the second wave signal have different wave characteristics, and the sending start time of the first wave signal and the second wave signal is the same; the physical relative position between the first wave transmitter and the second wave transmitter is: left and right, or up and down; the first information is used to record the physical relative position between the first electronic device and the second electronic device.

[0044] In a possible implementation, the first wave signal and the second wave signal are sound waves, and the first information is determined according to the reception parameters of the first wave signal and the reception parameters of the second wave signal, including: determining the first information according to the reception start time of the first wave signal and the reception start time of the second wave signal.

[0045] In a possible implementation, the first information is determined according to the start time of receiving the first wave signal and the start time of receiving the second wave signal, including: if the start time of receiving the first wave signal is earlier than the start time of receiving the second wave signal, the physical relative position recorded in the first information is: the second electronic device is located at a first side of the first electronic device, and the first side is a side corresponding to the first wave transmitter; if the start time of receiving the first wave signal is later than the start time of receiving the second wave signal, the physical relative position recorded in the first information is: the second electronic device is located at a second side of the first electronic device, and the second side is a side corresponding to the second wave transmitter.

[0046] In one possible implementation, the first wave signal and the second wave signal are Bluetooth signals or UWB signals, and the first information is determined based on the reception parameters of the first wave signal and the reception parameters of the second wave signal, including: calculating the departure angle based on the phase difference between the first wave signal and the second wave signal received by the first receiver; and determining the first information based on the departure angle.

[0047] In a possible implementation, it also includes: using the first wave receiver to receive a third wave signal, the third wave signal is sent by the first electronic device using the third wave transmitter after detecting the trigger condition of relative position detection, the third wave signal has different wave characteristics from the first wave signal, the third wave signal has different wave characteristics from the second wave signal, and the third wave signal and the first wave signal have the same sending start time; wherein, if the physical relative position between the first wave transmitter and the second wave transmitter is: left and right, the physical relative position between the third wave transmitter and the first wave transmitter is: up and down; or, if the physical relative position between the first wave transmitter and the second wave transmitter is: up and down, the physical relative position between the third wave transmitter and the first wave transmitter is: left and right; then the first information is also determined according to the reception parameters of the third wave signal.

[0048] In a possible implementation, the first information is also determined according to the reception parameters of the third wave signal, including: determining the second information according to the reception parameters of the first wave signal and the reception parameters of the second wave signal, determining the third information according to the reception parameters of the third wave signal and the reception parameters of the first wave signal, and determining the first information according to the second information and the third information.

[0049] In a possible implementation, the number of second electronic devices connected to the first electronic device is greater than 1, and the method further includes: sending a preset first parameter to the first electronic device, and the preset first parameter is determined by the second electronic device based on a reception parameter of the first wave signal and / or a reception parameter of the second wave signal.

[0050] In a possible implementation, the first wave signal and the second wave signal are sound waves, and the first parameter is a start time of receiving the first wave signal and / or a start time of receiving the second wave signal.

[0051] In a possible implementation manner, the first wave signal and the second wave signal are Bluetooth signals or UWB signals, and the first parameter is a departure angle calculated according to a phase difference between the first wave signal and the second wave signal.

[0052] In a tenth aspect, the present application provides a method for adjusting position information, including: establishing a connection for collaborative work between a first electronic device and a second electronic device, and detecting a trigger condition for relative position detection; the second electronic device uses a first wave transmitter to send a first wave signal, and uses a second wave transmitter to send a second wave signal, the first wave signal and the second wave signal have different wave characteristics, and the first wave signal and the second wave signal have the same sending start time; the physical relative position between the first wave transmitter and the second wave transmitter is: left and right, or up and down; the first electronic device uses a first wave receiver to receive the first wave signal and the second wave signal, determines first information according to the receiving parameters of the first wave signal and the receiving parameters of the second wave signal, and adjusts the position information according to the first information so that the position information is consistent with the first information; the first information is used to record the physical relative position between the first electronic device and the second electronic device.

[0053] In one possible implementation, the first electronic device detects a trigger condition for relative position detection, including: the first electronic device detects that a connection for collaborative work with the second electronic device is established; or, the first electronic device detects an interface conversion operation for a display element during collaborative display with the second electronic device; or, the first electronic device detects movement of the first electronic device during collaborative display with the second electronic device; or, the first electronic device receives a position information adjustment request sent by the second electronic device during collaborative display with the second electronic device, the position information adjustment request being sent after the second electronic device detects movement of the second electronic device; or, the first electronic device determines, according to a preset period, when a trigger moment for position information adjustment has been reached during collaborative display with the second electronic device.

[0054] In a possible implementation, the first wave signal and the second wave signal are sound waves, and the first information is determined according to the reception parameters of the first wave signal and the reception parameters of the second wave signal, including: determining the first information according to the reception start time of the first wave signal and the reception start time of the second wave signal.

[0055] In a possible implementation, the first information is determined according to the start time of receiving the first wave signal and the start time of receiving the second wave signal, including: if the start time of receiving the first wave signal is earlier than the start time of receiving the second wave signal, the physical relative position recorded in the first information is: the second electronic device is located at a first side of the first electronic device, and the first side is a side corresponding to the first wave transmitter; if the start time of receiving the first wave signal is later than the start time of receiving the second wave signal, the physical relative position recorded in the first information is: the second electronic device is located at a second side of the first electronic device, and the second side is a side corresponding to the second wave transmitter.

[0056] In one possible implementation, the first wave signal and the second wave signal are Bluetooth signals or UWB signals, and the first information is determined based on the reception parameters of the first wave signal and the reception parameters of the second wave signal, including: calculating the departure angle based on the phase difference between the first wave signal and the second wave signal received by the first receiver, and determining the first information based on the departure angle.

[0057] In a possible implementation, it also includes: the second electronic device uses a third wave transmitter to transmit a third wave signal, the third wave signal has different wave characteristics from the first wave signal, the third wave signal has different wave characteristics from the second wave signal, and the transmission start time of the third wave signal and the first wave signal is the same; the first electronic device uses a first wave receiver to receive the third wave signal; wherein, if the physical relative position between the first wave transmitter and the second wave transmitter is: left and right, and the physical relative position between the third wave transmitter and the first wave transmitter is: up and down; or, if the physical relative position between the first wave transmitter and the second wave transmitter is: up and down, and the physical relative position between the third wave transmitter and the first wave transmitter is: left and right; then the first electronic device also determines the first information according to the reception parameter of the third wave signal.

[0058] In a possible implementation, the first electronic device further determines the first information based on the reception parameters of the third wave signal, including: determining the second information based on the reception parameters of the first wave signal and the reception parameters of the second wave signal, determining the third information based on the reception parameters of the third wave signal and the reception parameters of the first wave signal, and determining the first information based on the second information and the third information.

[0059] In one possible implementation, the number of second electronic devices connected to the first electronic device is greater than one, and the method further includes: determining that the first information corresponding to at least two second electronic devices is the same, and determining fourth information based on preset first parameters corresponding to at least two second electronic devices, the preset first parameters being determined by the first electronic device based on reception parameters of the first wave signal and / or the second wave signal corresponding to the second electronic device, and the fourth information being used to record the physical relative position between at least two second electronic devices; the first electronic device also adjusts the position information based on the fourth information, so that the information in the position information used to record the relative position between the second electronic devices is consistent with the fourth information.

[0060] In one possible implementation, the first wave signal and the second wave signal are sound waves, the first parameter is the time difference of the first wave signal, the time difference of the first wave signal is the difference between the start time of receiving and the start time of sending the first wave signal, and / or, the time difference of the second wave signal, the time difference of the second wave signal is the difference between the start time of receiving and the start time of sending the second wave signal.

[0061] In a possible implementation manner, the first wave signal and the second wave signal are Bluetooth signals or UWB signals, and the first parameter is a departure angle calculated according to a phase difference between the first wave signal and the second wave signal.

[0062] In an eleventh aspect, the present application provides a method for adjusting position information, which is applied to a first electronic device, comprising: establishing a connection for collaborative work with a second electronic device, detecting a trigger condition for relative position detection, using a first wave receiver to receive a first wave signal and a second wave signal, determining first information according to reception parameters of the first wave signal and reception parameters of the second wave signal, and adjusting the position information according to the first information so that the position information is consistent with the first information; wherein the first wave signal is sent by the second electronic device using a first wave transmitter, and the second wave signal is sent by the second electronic device using a second wave transmitter, the first wave signal and the second wave signal have different wave characteristics, and the sending start time of the first wave signal and the second wave signal is the same; the physical relative position between the first wave transmitter and the second wave transmitter is: left and right, or up and down; the first information is used to record the physical relative position between the first electronic device and the second electronic device.

[0063] In one possible implementation, detecting a trigger condition for relative position detection includes: detecting that a connection for collaborative work with a second electronic device is established; or detecting an interface conversion operation for a display element during collaborative display with the second electronic device; or detecting movement of the first electronic device during collaborative display with the second electronic device; or receiving a position information adjustment request sent by the second electronic device during collaborative display with the second electronic device, the position information adjustment request being sent after the second electronic device detects that the second electronic device has moved; or determining, during collaborative display with the second electronic device, that a trigger moment for position information adjustment has been reached according to a preset period.

[0064] In a possible implementation, the first wave signal and the second wave signal are sound waves, and the first information is determined according to the reception parameters of the first wave signal and the reception parameters of the second wave signal, including: determining the first information according to the reception start time of the first wave signal and the reception start time of the second wave signal.

[0065] In a possible implementation, the first information is determined according to the start time of receiving the first wave signal and the start time of receiving the second wave signal, including: if the start time of receiving the first wave signal is earlier than the start time of receiving the second wave signal, the physical relative position recorded in the first information is: the second electronic device is located at a first side of the first electronic device, and the first side is a side corresponding to the first wave transmitter; if the start time of receiving the first wave signal is later than the start time of receiving the second wave signal, the physical relative position recorded in the first information is: the second electronic device is located at a second side of the first electronic device, and the second side is a side corresponding to the second wave transmitter.

[0066] In one possible implementation, the first wave signal and the second wave signal are Bluetooth signals or UWB signals, and the first information is determined based on the reception parameters of the first wave signal and the reception parameters of the second wave signal, including: calculating the departure angle based on the phase difference between the first wave signal and the second wave signal received by the first receiver, and determining the first information based on the departure angle.

[0067] In a possible implementation, it also includes: using a first wave receiver to receive a third wave signal, the first wave signal is sent by the second electronic device using a third wave transmitter, the third wave signal has different wave characteristics from the first wave signal, the third wave signal has different wave characteristics from the second wave signal, and the third wave signal and the first wave signal have the same sending start time; wherein, if the physical relative position between the first wave transmitter and the second wave transmitter is: left and right, the physical relative position between the third wave transmitter and the first wave transmitter is: up and down; or, if the physical relative position between the first wave transmitter and the second wave transmitter is: up and down, the physical relative position between the third wave transmitter and the first wave transmitter is: left and right; then the first information is also determined according to the reception parameters of the third wave signal.

[0068] In a possible implementation, the first information is also determined according to the reception parameters of the third wave signal, including: determining the second information according to the reception parameters of the first wave signal and the reception parameters of the second wave signal, determining the third information according to the reception parameters of the third wave signal and the reception parameters of the first wave signal, and determining the first information according to the second information and the third information.

[0069] In one possible implementation, the number of second electronic devices connected to the first electronic device is greater than one, and the method further includes: determining that the first information corresponding to at least two second electronic devices is the same, determining fourth information based on preset first parameters corresponding to at least two second electronic devices, the preset first parameters being determined by the first electronic device based on reception parameters of the first wave signal and / or the second wave signal corresponding to the second electronic device, and the fourth information being used to record the physical relative position between at least two second electronic devices; and adjusting the position information based on the fourth information so that the information in the position information used to record the relative position between the second electronic devices is consistent with the fourth information.

[0070] In one possible implementation, the first wave signal and the second wave signal are sound waves, the first parameter is the time difference of the first wave signal, the time difference of the first wave signal is the difference between the start time of receiving and the start time of sending the first wave signal, and / or, the time difference of the second wave signal, the time difference of the second wave signal is the difference between the start time of receiving and the start time of sending the second wave signal.

[0071] In a possible implementation manner, the first wave signal and the second wave signal are Bluetooth signals or UWB signals, and the first parameter is a departure angle calculated according to a phase difference between the first wave signal and the second wave signal.

[0072] In a twelfth aspect, the present application provides a method for adjusting position information, including: establishing a connection for collaborative work between a first electronic device and a second electronic device, detecting a trigger condition for relative position detection, and using a first wave transmitter to send a first wave signal; the second electronic device uses a first wave receiver and a second wave receiver to respectively receive the first wave signal, determines first information based on a first receiving parameter of the first wave receiver for the first wave signal, and a second receiving parameter of the second wave receiver for the first wave signal, and sends the first information to the first electronic device; the first electronic device adjusts the position information based on the received first information so that the position information is consistent with the first information; wherein the first information is used to record the physical relative position between the first electronic device and the second electronic device; the physical relative position between the first wave receiver and the second wave receiver is: left and right, or up and down.

[0073] In one possible implementation, the first electronic device detects a trigger condition for relative position detection, including: the first electronic device detects that a connection for collaborative work with the second electronic device is established; or, the first electronic device detects an interface conversion operation for a display element during collaborative display with the second electronic device; or, the first electronic device detects movement of the first electronic device during collaborative display with the second electronic device; or, the first electronic device receives a position information adjustment request sent by the second electronic device during collaborative display with the second electronic device, the position information adjustment request being sent after the second electronic device detects movement of the second electronic device; or, the first electronic device determines, according to a preset period, when a trigger moment for position information adjustment has been reached during collaborative display with the second electronic device.

[0074] In one possible implementation, the first wave signal is a sound wave; determining the first information based on a first reception parameter of the first wave receiver for the first wave signal and a second reception parameter of the second wave receiver for the first wave signal includes: determining the first information based on a first reception start time of the first wave signal by the first wave receiver and a second reception start time of the first wave signal by the second wave receiver.

[0075] In a possible implementation, the first information is determined based on a first reception start time of the first wave receiver for the first wave signal and a second reception start time of the second wave receiver for the first wave signal, including: if the first reception start time is earlier than the second reception start time, the physical relative position recorded in the first information is: the first electronic device is located at a first side of the second electronic device, and the first side is a side corresponding to the first wave receiver; if the first reception start time is later than the second reception start time, the physical relative position recorded in the first information is: the first electronic device is located at a second side of the second electronic device, and the second side is a side corresponding to the second wave receiver.

[0076] In one possible implementation, the first wave signal is a Bluetooth signal or a UWB signal, and the first information is determined based on a first receiving parameter of the first wave receiver for the first wave signal and a second receiving parameter of the second wave receiver for the first wave signal, including: calculating the angle of arrival based on a phase difference between the first wave signal received by the first wave receiver and the first wave signal received by the second wave receiver, and determining the first information based on the angle of arrival.

[0077] In a possible implementation, the method further includes: the second electronic device uses a third receiver to receive the first wave signal; wherein, if the physical relative position between the first wave receiver and the second wave receiver is: left and right, and the physical relative position between the third wave receiver and the first wave receiver is: up and down; or, if the physical relative position between the first wave receiver and the second wave receiver is: up and down, and the physical relative position between the third wave receiver and the first wave receiver is: left and right; then the second electronic device further determines the first information according to a third reception parameter of the third wave receiver for the first wave signal.

[0078] In a possible implementation, the second electronic device also determines the first information based on the third reception parameter of the third wave receiver for the first wave signal, including: determining the second information based on the first reception parameter and the second reception parameter of the first wave signal, determining the third information based on the third reception parameter and the first reception parameter of the first wave signal, and determining the first information based on the second information and the third information.

[0079] In a possible implementation, the number of second electronic devices connected to the first electronic device is greater than 1, and the method further includes: the second electronic device sends a preset first parameter to the first electronic device, where the preset first parameter is determined by the second electronic device according to the first receiving parameter and / or the second receiving parameter of the first wave signal;

[0080] The first electronic device determines that the first information sent by at least two second electronic devices is the same, and determines fourth information based on the first parameters sent by the at least two second electronic devices, where the fourth information is used to record the physical relative positions between the at least two second electronic devices. The first electronic device also adjusts the position information based on the fourth information, so that the information in the position information used to record the relative positions between the second electronic devices is consistent with the fourth information.

[0081] In a possible implementation, the first wave signal and the second wave signal are sound waves, and the first parameter is a starting time when the first wave receiver receives the first wave signal and / or a starting time when the second wave receiver receives the first wave signal.

[0082] In a possible implementation, the first wave signal and the second wave signal are Bluetooth signals or UWB signals, and the first parameter is an arrival angle calculated based on a phase difference between the first wave signal received by the first wave receiver and the first wave signal received by the second wave receiver.

[0083] In a thirteenth aspect, the present application provides a method for adjusting position information, which is applied to a first electronic device, including: establishing a connection for collaborative work with a second electronic device, detecting a trigger condition for relative position detection, using a first wave transmitter to send a first wave signal, receiving first information sent by the second electronic device, and adjusting the position information according to the received first information so that the position information is consistent with the first information; wherein the first information is determined by the second electronic device based on a first receiving parameter of the first wave receiver for the first wave signal and a second receiving parameter of the second wave receiver for the first wave signal, and the first information is used to record the physical relative position between the first electronic device and the second electronic device; the physical relative position between the first wave receiver and the second wave receiver is: left and right, or up and down.

[0084] In one possible implementation, detecting a trigger condition for relative position detection includes: detecting that a connection for collaborative work with a second electronic device is established; or detecting an interface conversion operation for a display element during collaborative display with the second electronic device; or detecting movement of the first electronic device during collaborative display with the second electronic device; or receiving a position information adjustment request sent by the second electronic device during collaborative display with the second electronic device, the position information adjustment request being sent after the second electronic device detects that the second electronic device has moved; or determining, during collaborative display with the second electronic device, that a trigger moment for position information adjustment has been reached according to a preset period.

[0085] In one possible implementation, the number of second electronic devices connected to the first electronic device is greater than one, and the method further includes: receiving a preset first parameter sent by the second electronic device, the preset first parameter being determined by the second electronic device based on the first receiving parameter and / or the second receiving parameter of the first wave signal; determining that there are at least two second electronic devices that send the same first information, determining fourth information based on the first parameters sent by at least two second electronic devices, the fourth information being used to record the physical relative position between at least two second electronic devices; and adjusting the position information based on the fourth information, so that the information in the position information used to record the relative position between the second electronic devices is consistent with the fourth information.

[0086] In a possible implementation, the first wave signal and the second wave signal are sound waves, and the first parameter is a starting time when the first wave receiver receives the first wave signal and / or a starting time when the second wave receiver receives the first wave signal.

[0087] In a possible implementation, the first wave signal and the second wave signal are Bluetooth signals or UWB signals, and the first parameter is an arrival angle calculated based on a phase difference between the first wave signal received by the first wave receiver and the first wave signal received by the second wave receiver.

[0088] In a fourteenth aspect, the present application provides a method for adjusting position information, which is applied to a second electronic device, including: establishing a connection for collaborative work with a first electronic device, using a first wave receiver and a second wave receiver to respectively receive a first wave signal, determining first information based on a first receiving parameter of the first wave receiver for the first wave signal and a second receiving parameter of the second wave receiver for the first wave signal, and sending the first information to the first electronic device, wherein the first information is used to instruct the first electronic device to adjust the position information based on the first information so that the position information is consistent with the first information; wherein the first wave signal is sent using a first wave transmitter after the first electronic device detects a trigger condition for relative position detection; the first information is used to record the physical relative position between the first electronic device and the second electronic device; the physical relative position between the first wave receiver and the second wave receiver is: left and right, or up and down.

[0089] In one possible implementation, the first wave signal is a sound wave; determining the first information based on a first reception parameter of the first wave receiver for the first wave signal and a second reception parameter of the second wave receiver for the first wave signal includes: determining the first information based on a first reception start time of the first wave signal by the first wave receiver and a second reception start time of the first wave signal by the second wave receiver.

[0090] In a possible implementation, the first information is determined based on a first reception start time of the first wave receiver for the first wave signal and a second reception start time of the second wave receiver for the first wave signal, including: if the first reception start time is earlier than the second reception start time, the physical relative position recorded in the first information is: the first electronic device is located at a first side of the second electronic device, and the first side is a side corresponding to the first wave receiver; if the first reception start time is later than the second reception start time, the physical relative position recorded in the first information is: the first electronic device is located at a second side of the second electronic device, and the second side is a side corresponding to the second wave receiver.

[0091] In one possible implementation, the first wave signal is a Bluetooth signal or a UWB signal, and the first information is determined based on a first receiving parameter of the first wave receiver for the first wave signal and a second receiving parameter of the second wave receiver for the first wave signal, including: calculating the angle of arrival based on a phase difference between the first wave signal received by the first wave receiver and the first wave signal received by the second wave receiver, and determining the first information based on the angle of arrival.

[0092] In a possible implementation, the method further includes: using a third receiver to receive the first wave signal; wherein, if the physical relative position between the first wave receiver and the second wave receiver is: left and right, the physical relative position between the third wave receiver and the first wave receiver is: up and down; or, if the physical relative position between the first wave receiver and the second wave receiver is: up and down, the physical relative position between the third wave receiver and the first wave receiver is: left and right; then the first information is also determined according to a third reception parameter of the third wave receiver for the first wave signal.

[0093] In a possible implementation, the first information is also determined based on the third reception parameter of the third wave receiver for the first wave signal, including: determining the second information based on the first reception parameter and the second reception parameter of the first wave signal, determining the third information based on the third reception parameter and the first reception parameter of the first wave signal, and determining the first information based on the second information and the third information.

[0094] In one possible implementation, the number of second electronic devices connected to the first electronic device is greater than 1, and the method further includes: sending a preset first parameter to the first electronic device, and the preset first parameter is determined by the second electronic device based on the first receiving parameter and / or the second receiving parameter of the first wave signal.

[0095] In a possible implementation, the first wave signal and the second wave signal are sound waves, and the first parameter is a starting time when the first wave receiver receives the first wave signal and / or a starting time when the second wave receiver receives the first wave signal.

[0096] In a possible implementation, the first wave signal and the second wave signal are Bluetooth signals or UWB signals, and the first parameter is an arrival angle calculated based on a phase difference between the first wave signal received by the first wave receiver and the first wave signal received by the second wave receiver.

[0097] In a fifteenth aspect, the present application provides a method for adjusting position information, including: establishing a connection for collaborative work between a first electronic device and a second electronic device, and detecting a trigger condition for relative position detection; the second electronic device uses a first wave transmitter to send a first wave signal; the first electronic device uses a first wave receiver and a second wave receiver to respectively receive the first wave signal, determines first information based on a first receiving parameter of the first wave receiver for the first wave signal, and a second receiving parameter of the second wave receiver for the first wave signal, and adjusts the position information based on the first information so that the position information is consistent with the first information; the first information is used to record the physical relative position between the first electronic device and the second electronic device; the physical relative position between the first wave receiver and the second wave receiver is: left and right, or up and down.

[0098] In one possible implementation, the first electronic device detects a trigger condition for relative position detection, including: the first electronic device detects that a connection for collaborative work with the second electronic device is established; or, the first electronic device detects an interface conversion operation for a display element during collaborative display with the second electronic device; or, the first electronic device detects movement of the first electronic device during collaborative display with the second electronic device; or, the first electronic device receives a position information adjustment request sent by the second electronic device during collaborative display with the second electronic device, the position information adjustment request being sent after the second electronic device detects movement of the second electronic device; or, the first electronic device determines, according to a preset period, when a trigger moment for position information adjustment has been reached during collaborative display with the second electronic device.

[0099] In a possible implementation, the first wave signal is a sound wave; determining the first information according to a first receiving parameter of the first wave receiver for the first wave signal and a second receiving parameter of the second wave receiver for the first wave signal includes:

[0100] The first information is determined according to a first reception start time of the first wave signal by the first wave receiver and a second reception start time of the first wave signal by the second wave receiver.

[0101] In a possible implementation, the first information is determined based on a first reception start time of the first wave receiver for the first wave signal and a second reception start time of the second wave receiver for the first wave signal, including: if the first reception start time is earlier than the second reception start time, the physical relative position recorded in the first information is: the first electronic device is located at a first side of the second electronic device, and the first side is a side corresponding to the first wave receiver; if the first reception start time is later than the second reception start time, the physical relative position recorded in the first information is: the first electronic device is located at a second side of the second electronic device, and the second side is a side corresponding to the second wave receiver.

[0102] In one possible implementation, the first wave signal is a Bluetooth signal or a UWB signal, and the first information is determined based on a first receiving parameter of the first wave receiver for the first wave signal and a second receiving parameter of the second wave receiver for the first wave signal, including: calculating the angle of arrival based on a phase difference between the first wave signal received by the first wave receiver and the first wave signal received by the second wave receiver, and determining the first information based on the angle of arrival.

[0103] In a possible implementation, the method further includes: the first electronic device uses a third receiver to receive a first wave signal; wherein, if the physical relative position between the first wave receiver and the second wave receiver is: left and right, and the physical relative position between the third wave receiver and the first wave receiver is: up and down; or, if the physical relative position between the first wave receiver and the second wave receiver is: up and down, and the physical relative position between the third wave receiver and the first wave receiver is: left and right; then the first electronic device further determines the first information according to a third reception parameter of the third wave receiver for the first wave signal.

[0104] In a possible implementation, the first electronic device also determines the first information based on the third reception parameter of the third wave receiver for the first wave signal, including: determining the second information based on the first reception parameter and the second reception parameter of the first wave signal, determining the third information based on the third reception parameter and the first reception parameter of the first wave signal, and determining the first information based on the second information and the third information.

[0105] In one possible implementation, the number of second electronic devices connected to the first electronic device is greater than one, and the method further includes: the first electronic device determines that the first information corresponding to at least two second electronic devices is the same, and determines fourth information based on the first parameters corresponding to the at least two second electronic devices, where the first parameter is determined by the first electronic device based on the first receiving parameter and / or the second receiving parameter of the first wave signal; the fourth information is used to record the physical relative position between the at least two second electronic devices; the first electronic device also adjusts the position information based on the fourth information, so that the information in the position information used to record the relative position between the second electronic devices is consistent with the fourth information.

[0106] In one possible implementation, the first wave signal and the second wave signal are sound waves, the first parameter is the time difference of the first wave signal, the time difference of the first wave signal is the difference between the start time of receiving and the start time of sending the first wave signal, and / or, the time difference of the second wave signal, the time difference of the second wave signal is the difference between the start time of receiving and the start time of sending the second wave signal.

[0107] In a possible implementation, the first wave signal and the second wave signal are Bluetooth signals or UWB signals, and the first parameter is an arrival angle calculated based on a phase difference between the first wave signal received by the first wave receiver and the first wave signal received by the second wave receiver.

[0108] In a sixteenth aspect, the present application provides a method for adjusting position information, which is applied to a first electronic device, including: establishing a connection for collaborative work with a second electronic device, detecting a trigger condition for relative position detection, using a first wave receiver and a second wave receiver to respectively receive a first wave signal, determining first information based on a first receiving parameter of the first wave receiver for the first wave signal and a second receiving parameter of the second wave receiver for the first wave signal, and adjusting the position information based on the first information so that the position information is consistent with the first information; wherein the first wave signal is sent by the second electronic device using a first wave transmitter; the physical relative position between the first wave receiver and the second wave receiver is: left and right, or up and down; the first information is used to record the physical relative position between the first electronic device and the second electronic device.

[0109] In one possible implementation, detecting a trigger condition for relative position detection includes: detecting that a connection for collaborative work with a second electronic device is established; or detecting an interface conversion operation for a display element during collaborative display with the second electronic device; or detecting movement of the first electronic device during collaborative display with the second electronic device; or receiving a position information adjustment request sent by the second electronic device during collaborative display with the second electronic device, the position information adjustment request being sent after the second electronic device detects that the second electronic device has moved; or determining, during collaborative display with the second electronic device, that a trigger moment for position information adjustment has been reached according to a preset period.

[0110] In one possible implementation, the first wave signal is a sound wave; determining the first information based on a first reception parameter of the first wave receiver for the first wave signal and a second reception parameter of the second wave receiver for the first wave signal includes: determining the first information based on a first reception start time of the first wave signal by the first wave receiver and a second reception start time of the first wave signal by the second wave receiver.

[0111] In a possible implementation, the first information is determined based on a first reception start time of the first wave receiver for the first wave signal and a second reception start time of the second wave receiver for the first wave signal, including: if the first reception start time is earlier than the second reception start time, the physical relative position recorded in the first information is: the first electronic device is located at a first side of the second electronic device, and the first side is a side corresponding to the first wave receiver; if the first reception start time is later than the second reception start time, the physical relative position recorded in the first information is: the first electronic device is located at a second side of the second electronic device, and the second side is a side corresponding to the second wave receiver.

[0112] In one possible implementation, the first wave signal is a Bluetooth signal or a UWB signal, and the first information is determined based on a first receiving parameter of the first wave receiver for the first wave signal and a second receiving parameter of the second wave receiver for the first wave signal, including: calculating the angle of arrival based on a phase difference between the first wave signal received by the first wave receiver and the first wave signal received by the second wave receiver, and determining the first information based on the angle of arrival.

[0113] In a possible implementation, the method further includes: using a third receiver to receive the first wave signal; wherein, if the physical relative position between the first wave receiver and the second wave receiver is: left and right, the physical relative position between the third wave receiver and the first wave receiver is: up and down; or, if the physical relative position between the first wave receiver and the second wave receiver is: up and down, the physical relative position between the third wave receiver and the first wave receiver is: left and right; then the first information is also determined according to a third reception parameter of the third wave receiver for the first wave signal.

[0114] In a possible implementation, the first information is also determined based on the third reception parameter of the third wave receiver for the first wave signal, including: determining the second information based on the first reception parameter and the second reception parameter of the first wave signal, determining the third information based on the third reception parameter and the first reception parameter of the first wave signal, and determining the first information based on the second information and the third information.

[0115] In one possible implementation, the number of second electronic devices connected to the first electronic device is greater than one, and the method further includes: determining that the first information corresponding to at least two second electronic devices is the same, determining fourth information based on the first parameters corresponding to the at least two second electronic devices, the first parameter being determined by the first electronic device based on the first receiving parameter and / or the second receiving parameter of the first wave signal; the fourth information is used to record the physical relative position between the at least two second electronic devices; and adjusting the position information based on the fourth information so that the information in the position information used to record the relative position between the second electronic devices is consistent with the fourth information.

[0116] In one possible implementation, the first wave signal and the second wave signal are sound waves, the first parameter is the time difference of the first wave signal, the time difference of the first wave signal is the difference between the start time of receiving and the start time of sending the first wave signal, and / or, the time difference of the second wave signal, the time difference of the second wave signal is the difference between the start time of receiving and the start time of sending the second wave signal.

[0117] In a possible implementation, the first wave signal and the second wave signal are Bluetooth signals or UWB signals, and the first parameter is an arrival angle calculated based on a phase difference between the first wave signal received by the first wave receiver and the first wave signal received by the second wave receiver.

[0118] In the seventeenth aspect, the present application provides a first electronic device, comprising: a first wave transmitter; a second wave transmitter; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the device, enable the device to execute any method of the eighth aspect.

[0119] In the eighteenth aspect, the present application provides a first electronic device, comprising: a first wave receiver; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the device, enable the device to perform any method of the eleventh aspect.

[0120] In the nineteenth aspect, the present application provides a first electronic device comprising: a first wave transmitter; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the device, enable the device to execute any method of the thirteenth aspect.

[0121] In the twentieth aspect, the present application provides a first electronic device, comprising: a first wave receiver; a second wave receiver; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the device, enable the device to execute any method of the sixteenth aspect.

[0122] In the twenty-first aspect, the present application provides a second electronic device comprising: a first wave receiver; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the device, cause the device to execute any one of the methods of the ninth aspect.

[0123] In the twenty-second aspect, the present application provides a second electronic device, comprising: a first wave receiver; a second wave receiver; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the device, enable the device to execute any method of the fourteenth aspect.

[0124] In the twenty-third aspect, the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes any one of the methods of the first to tenth aspects.

[0125] In the twenty-fourth aspect, the present application provides a chip system that executes any method of the second to third aspects.

[0126] In the twenty-fifth aspect, the present application provides a computer program, which, when executed by a computer, is used to execute any one of the methods in aspects seven to sixteen.

[0127] In one possible design, the program in aspect 25 may be stored in whole or in part on a storage medium packaged together with the processor, or may be stored in whole or in part on a memory not packaged together with the processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0128] Figure 1 This is an example diagram of the collaborative display interface of an embodiment of the present application;

[0129] Figure 2 This is another example diagram of the collaborative display interface of the embodiment of the present application;

[0130] Figure 3 This is an example diagram of the location information setting interface of the embodiment of the present application;

[0131] Figure 4A This is an example diagram of the physical relative positions of the embodiment of the present application;

[0132] Figure 4B This is another example diagram of the collaborative display interface of the embodiment of the present application;

[0133] Figure 5A Another example diagram of the physical relative positions of the embodiment of the present application;

[0134] Figure 5B This is another example diagram of the collaborative display interface of the embodiment of the present application;

[0135] Figure 6 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application;

[0136] Figure 7 This is an example diagram of the physical relative position between the main device and the expansion device in the embodiment of the present application;

[0137] Figure 8 This is an example diagram of a system structure applicable to the method for adjusting position information according to an embodiment of the present application;

[0138] Fig. 9 This is an example diagram of the interface for starting the collaborative display function in an embodiment of the present application;

[0139] Fig.10 This is another example diagram of the collaborative display interface of the embodiment of the present application;

[0140] Fig.11 This is a schematic diagram of the trigger detection process of the embodiment of the present application;

[0141] Fig. 12A This is an example diagram of the collaborative display interface before and after the position information is adjusted in an embodiment of the present application;

[0142] Fig. 12B This is an example diagram of a scenario in which the device detects that it has moved, triggering position information adjustment in an extended embodiment of the present application;

[0143] Fig.13 A system architecture diagram of an embodiment of the location information adjustment method of the present application;

[0144] Fig.14A A flowchart of an embodiment of the method for adjusting location information of the present application;

[0145] Fig. 14B This is the principle diagram of the starting angle method for this application;

[0146] Fig. 14C This is a schematic diagram of determining the first position information according to the departure angle in this application;

[0147] Fig.15 A system architecture diagram of another embodiment of the location information adjustment method of the present application;

[0148] Fig.16 A system architecture diagram of another embodiment of the location information adjustment method of the present application;

[0149] Fig.17 A flowchart of another embodiment of the method for adjusting location information of the present application;

[0150] Fig.18 A system architecture diagram of another embodiment of the location information adjustment method of the present application;

[0151] Fig.19 This is a flowchart of another embodiment of the method for adjusting location information of the present application;

[0152] Fig. 20 A system architecture diagram of another embodiment of the location information adjustment method of the present application;

[0153] Fig.21 This is a flowchart of another embodiment of the method for adjusting location information of the present application;

[0154] Fig. 22 This is a flowchart of another embodiment of the method for adjusting location information of the present application;

[0155] Fig.23 This is a flowchart of another embodiment of the method for adjusting location information of the present application;

[0156] Fig.24 This is a flowchart of another embodiment of the method for adjusting location information of the present application;

[0157] Fig.25 This is a flowchart of another embodiment of the location information adjustment method of the present application. DETAILED DESCRIPTION

[0158] The terms used in the implementation section of this application are only used to explain the specific embodiments of this application and are not intended to limit this application.

[0159] Taking the collaborative display of a system composed of multiple electronic devices as an example, collaborative display generally refers to the display screens of multiple electronic devices jointly displaying a complete interface, with one electronic device in the system serving as the main device and the other electronic devices serving as extended devices. The main device and the extended device of the collaborative display have a relative position in physical space, that is, a physical relative position, which is related to the installation or placement of the electronic devices. In order to achieve collaborative display, in one possible implementation, the main device is provided with the above-mentioned location information for recording the physical relative positions between the electronic devices. During collaborative display, the main device divides the interface that needs to be collaboratively displayed based on the location information, determines the interface that needs to be displayed on the main device and the interface that needs to be displayed on the extended device, and sends the interface data that needs to be displayed on the extended device to the extended device for display. When the relative positions between the electronic devices recorded by the location information set in the main device are consistent with the physical relative positions between the electronic devices, the user's experience of collaborative display is relatively better.

[0160] For example, assuming that the electronic devices for collaborative display are a laptop and a portable android device (PAD), the laptop is the main device and the PAD is the extended device. If the relative positions between the electronic devices recorded by the position information set in the laptop are consistent with the physical relative positions between the laptop and the PAD, the display of the laptop and the display of the PAD can be displayed as follows: Figure 1 If the relative positions of the electronic devices recorded by the position information set in the laptop computer are inconsistent with the physical relative positions between the laptop computer and the PAD, the display of the laptop computer and the display of the PAD will appear as shown in FIG. Figure 2 The visually misaligned views shown provide a poor visual experience for users.

[0161] In one example, the electronic devices participating in the collaborative display are two electronic devices. In order to make the relative positions between the electronic devices recorded by the position information set in the main device participating in the collaborative display consistent with the physical relative positions between the main device and the extended device, the user configures the relative positions between the main device and the extended device in the main device based on the physical relative positions between the main device and the extended device. Figure 3 , is a sample diagram of the location information setting interface in the main device. The display numbered 1 represents the display of the main device, and the display numbered 2 represents the display of the extended device. The user can select a display and drag it to set the relative position of the two displays. After the user completes the setting, the main device can obtain the corresponding location information based on the relative position of the two displays set by the user. However, this method of setting location information is difficult for ordinary users to find in the operating system of the main device. Figure 3 The setting interface shown in the figure sets the relative positions of the two displays, which is a complicated and tedious task in itself. Each time the physical relative position between the main device and the expansion device is changed, the position information needs to be reset in the main device, which further increases the complexity of the operation and affects the user experience.

[0162] To this end, the embodiments of the present application provide a location information adjustment method and an electronic device, which can automatically adjust the location information set in the main device without the need for manual setting by the user, thereby improving the user experience.

[0163] Still taking the example that the electronic devices participating in the collaborative display are a laptop and a PAD, the position information set in the laptop is consistent with the physical relative position of the laptop and the PAD, except that in e.g. Figure 1 and Figure 2 In addition to affecting the user's visual effect in the static display shown, it also affects the effect of the user dragging elements such as windows / text / pictures across windows according to the visual orientation.

[0164] See also Figure 4A As shown, it is assumed that the physical relative positions of the display of the laptop and the display of the PAD are that the laptop is on the left and the PAD is on the right, and the relative positions recorded by the position information set in the laptop as the master device are Figure 4A If the physical relative positions of the laptop computer and the PAD computer are consistent, then if an application window is displayed on the laptop computer display, and the user wants to drag the window from the laptop computer display on the left to the PAD display on the right, the laptop computer display and the PAD display will appear as follows: Figure 4B The visual feedback effect shown is consistent with the user's expectations, and the user's visual experience is more natural;

[0165] If the physical relative position of the laptop display and the PAD display changes from Figure 4A The laptop computer on the left and the PAD on the right is changed to Figure 5A The PAD is on the left and the laptop is on the right, but the relative positions recorded by the position information set in the laptop are different from Figure 5A The physical relative positions of the laptop and the PAD are inconsistent, and the relative positions recorded in the position information are still that the laptop is on the left and the PAD is on the right. Then, if an application window is displayed on the display screen of the laptop, and the user wants to drag the window from the display screen of the laptop on the left to the display screen of the PAD on the right, the display screens of the laptop and the PAD will appear as follows: Figure 5B The visual feedback effect shown is inconsistent with the user's expectations, and the user's visual experience is very bad.

[0166] For portable electronic devices such as laptops and PADs, changes in physical relative positions are very likely to occur. Therefore, if the electronic devices can automatically adjust the position information set in the main device, it can greatly enhance the user's visual experience and usage experience of collaborative display.

[0167] The position information adjustment method of the embodiment of the present application can not only be applied to the scenario of collaborative display, but can also be further extended to other possible scenarios of cooperation among multiple electronic devices, for example, in a scenario where the speakers of multiple electronic devices constitute a multi-speaker stereo system and collaboratively play sounds, in this scenario, the position information can be set in the main device, and the main device determines the channel parameters of each speaker in each electronic device based on the physical relative positions between the electronic devices recorded in the position information.

[0168] The method provided in the embodiments of the present application can be applied to electronic devices, such as laptop computers, PADs, personal computers (PCs), smart screens, mobile phones, etc.

[0169] For example, Figure 6 The schematic diagram of the structure of the electronic device 600 is shown. The electronic device 600 may include a processor 610, an internal memory 620, and a display screen 630; optionally, the electronic device 600 may also include: an antenna 1, a wireless communication module 640, an audio module 650, a speaker 650A, a microphone 650B, etc.

[0170] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 600. In other embodiments of the present application, the electronic device 600 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.

[0171] The processor 610 may include one or more processing units, for example, the processor 610 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 into one or more processors.

[0172] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0173] The processor 610 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 610 is a cache memory. The memory may store instructions or data that the processor 610 has just used or cyclically used. If the processor 610 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 610, and thus improves the efficiency of the system.

[0174] The internal memory 620 can be used to store computer executable program codes, which include instructions. The internal memory 620 may include a program storage area and a data storage area. Among them, the program storage area may 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 may store data created during the use of the electronic device 600 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 620 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 (UFS), etc. The processor 610 executes various functional applications and data processing of the electronic device 600 by running instructions stored in the internal memory 620 and / or instructions stored in a memory provided in the processor.

[0175] The wireless communication function of the electronic device 600 can be implemented through the antenna 1, the wireless communication module 640, the modem processor and the baseband processor.

[0176] Antenna 1 is used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 600 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0177] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 650A, etc.), or displays an image or video through a display screen 630. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 610 and be arranged in the same device with other functional modules.

[0178] The wireless communication module 640 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 600. The wireless communication module 640 can be one or more devices integrating at least one communication processing module. The wireless communication module 640 receives electromagnetic waves via the antenna 1, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 610. The wireless communication module 640 can also receive the signal to be sent from the processor 610, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 1.

[0179] The electronic device 600 implements the display function through a GPU, a display screen 630, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 630 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 610 may include one or more GPUs, which execute program instructions to generate or change display information.

[0180] The display screen 630 is used to display images, videos, etc. In some embodiments, the electronic device 600 may include 1 or N display screens 630 , where N is a positive integer greater than 1.

[0181] The electronic device 600 can implement audio functions such as music playing and recording through the audio module 650, the speaker 650A, the microphone 650B and the application processor.

[0182] The audio module 650 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 650 can also be used to encode and decode audio signals. In some embodiments, the audio module 650 can be arranged in the processor 610, or some functional modules of the audio module 650 can be arranged in the processor 610.

[0183] The speaker 650A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 600 can listen to music or listen to a hands-free call through the speaker 650A.

[0184] Microphone 650B, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. The electronic device 600 may be provided with at least one microphone 650B. In other embodiments, the electronic device 600 may be provided with two microphones 650B, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 600 may also be provided with three, four or more microphones 650B to realize sound signal collection, noise reduction, sound source identification, directional recording function, etc.

[0185] The software system of the electronic device 600 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. For example, if the electronic device 600 is a PC, a PAD, etc., the software system may be a Windows system, a MAC OS system, an iOS system, a Hongmeng system with a distributed microkernel architecture, etc.; if the electronic device 600 is a mobile phone, the software system may be an Android system with a layered architecture.

[0186] For ease of understanding, the following embodiments of the present application will be described in detail with Figure 6 Taking the electronic device with the structure shown as an example, the method provided in the embodiment of the present application is specifically described in combination with the accompanying drawings and application scenarios.

[0187] The following terms are involved in the embodiments of the present application: physical relative position, second position information and third position information, which are explained below.

[0188] The physical relative position refers to the relative position of electronic devices in physical space.

[0189] The second position information is information obtained by the electronic device detecting the physical relative position between the electronic devices and is used to describe the physical relative position between the electronic devices;

[0190] The third location information is a location information parameter that needs to be set in the electronic device. The third location information is also used to describe the physical relative position between electronic devices. Figure 3 The location information set by the user through the location information setting interface is the third location information. Figure 3 It can be seen from the position information setting interface shown in that the third position information is set based on the angle at which the user simultaneously views the display interfaces of the two display screens when the display screens of the two electronic devices are in the same plane.

[0191] Since the purpose of adjusting the position information in the embodiment of the present application is to automatically adjust the third position information so that the third position information is consistent with the physical relative position between the electronic device, the physical relative position and the second position information in the embodiment of the present application can also be set based on the angle of the display interface of the display screen when the display screen of the electronic device is in the same plane. Based on this, see Figure 7 As shown, still taking the two electronic devices, namely a PAD and a laptop, as an example, taking the laptop as a reference object, the physical relative position of the PAD relative to the laptop may include: the PAD is located on the upper side, lower side, left side, right side, upper left side, lower left side, upper right side, lower right side, etc. of the laptop; accordingly, the second position information is used to describe the above-mentioned physical relative position. For example, see Figure 7 From the user's perspective, the PAD is on the right side of the laptop computer. In the embodiment of the present application, the physical relative position between the PAD and the laptop computer is: the PAD is on the right side of the laptop computer. Accordingly, the second position information needs to describe: the PAD is on the right side of the laptop computer. The physical relative position between electronic devices and the corresponding second position information are irrelevant to the coordinate system established inside the laptop computer and the PAD.

[0192] How to record the physical relative positions between electronic devices such as the above-mentioned PC and PAD through the second position information, for example, the PAD is on the right side of the notebook, is not limited in the embodiments of the present application. In one possible implementation: for a pair of electronic devices, assuming that electronic device A is on the left side of electronic device B, the second position information can be: ((electronic device A, left side) (electronic device B, right side)). In actual applications, different binary codes can also be assigned to different physical relative positions, for example, 000 for the upper side, 001 for the lower side, 010 for the left side, 011 for the right side, and so on; at this time, for the physical relative position of the PAD on the right side of the notebook, the second position information can be ((electronic device A, 010) (electronic device B, 011)).

[0193] In order to more conveniently adjust the third location information through the second location information, the second location information may represent the physical relative position between electronic devices in a manner consistent with the third location information set in the electronic device.

[0194] The location information adjustment method of the embodiment of the present application can be applied to a system including several electronic devices and requiring to set the location information between the electronic devices in at least one electronic device. The electronic devices in the system may have a master-slave relationship or may not have a master-slave relationship, which is not limited by the embodiment of the present application.

[0195] Still taking the collaborative display of the two electronic devices mentioned above as an example, at this time, generally one electronic device serves as the main device and the other electronic device serves as the expansion device, and the main device and the expansion device are connected for data transmission. The connection between the main device and the expansion device can be a wired connection or a wireless connection. If it is a wireless connection, the connection method can be, for example, WiFi, Bluetooth, etc., which is not limited in the embodiments of the present application. Optionally, the number of expansion devices under the above system architecture can also be expanded from one to multiple. In this case, the main device can be connected to multiple expansion devices, and the main device is connected to each expansion device separately for data transmission. For example, in Figure 8 In the example, the main device can be connected to expansion device 2 and expansion device 3 in addition to expansion device 1.

[0196] In collaborative display, there are generally three stages, namely, collaborative display connection establishment stage, position information adjustment stage, and collaborative display stage.

[0197] During the collaborative display connection establishment phase, Fig. 9 As shown, the user can open the main device ( Fig. 9 Taking a laptop as an example, the collaborative display function setting interface is used to start the collaborative display function. The main device detects the user's operation of starting the collaborative display function, searches for peripheral devices, and displays the device list to the user, such as Fig. 9 A total of three devices, devices 1 to 3, are listed in the figure. The user selects the required expansion device, the main device detects the user's selection operation, and establishes a connection based on collaborative display with the device indicated by the user's selection operation; the connection can be used for data transmission between the main device and the expansion device, such as data that needs to be transmitted during the execution of the position information adjustment method in the embodiment of the present application, and the main device transmits collaborative display interface data to the expansion device.

[0198] After the main device completes the establishment of the collaborative display connection, it can trigger the execution of the position information adjustment method of the embodiment of the present application, automatically detect the physical relative positions between the electronic devices, obtain the second position information, and adjust the third position information set in the main device according to the second position information, so that the physical relative positions between the electronic devices recorded in the third position information are consistent with the actual physical relative positions between the electronic devices.

[0199] After the main device completes the establishment of the collaborative display connection, it enters the collaborative display stage. At this time, the main device and the expansion device are both in the collaborative display state. The main device can segment the interface that needs to be collaboratively displayed according to the third location information, and determine the interface that each electronic device needs to display. The main device sends the interface data that the expansion device needs to display to the corresponding expansion device, and the main device and the expansion device display the collaborative display interface to achieve collaborative display, for example Figure 1 as shown in .

[0200] It should be noted that during the collaborative display stage, the physical relative positions between electronic devices may also change. Therefore, during the collaborative display stage, the master device may also trigger the execution of the position information adjustment method of the embodiment of the present application, automatically detect the physical relative positions between the electronic devices, and obtain the second position information. When the third position information in the master device is inconsistent with the second position information, the second position information is used to adjust the third position information set in the master device to ensure that it is consistent with the second position information, that is, consistent with the physical relative position between the electronic devices.

[0201] The following is an example of possible scenarios that may trigger the execution of the location information adjustment method according to an embodiment of the present application.

[0202] Scenario 1: The main device starts the collaborative display function and establishes a connection with the expansion device, triggering the execution of the location information adjustment method of the embodiment of the present application. For example, if the connection between the main device and the expansion device is established by the main device sending a collaborative display request to the expansion device, and the expansion device feeds back a confirmation message for the collaborative display request, then the main device receiving the above confirmation message can trigger the execution of the location information adjustment method.

[0203] Scenario 2: After the main device and the extended device start collaborative display, the main device triggers the execution of the position information adjustment method of the embodiment of the present application based on the user's specified operation on the collaborative display interface. The user's interface conversion operation for the display element includes but is not limited to: the user operates the mouse to convert the collaborative display interface of one electronic device to the collaborative display interface of another electronic device, such as Fig.10 As shown; a user drags a dialog box to switch from a collaborative display interface of one electronic device to a collaborative display interface of another electronic device; and so on.

[0204] At this time, the master device executes the following Fig.11 The processing flow shown in is used to detect whether the location information adjustment process of the embodiment of the present application is triggered.

[0205] Step 1101: The master device detects whether the cursor moves to the boundary line of the display screen. If yes, execute step 1102; if not, return to continue the detection of step 1101.

[0206] Among them, the cursor moving to the boundary line of the display screen may be caused by the user performing a mouse movement operation, or by using the mouse to drag the window, etc., which is not limited in the embodiments of the present application.

[0207] Step 1102: The master device determines whether the boundary line where the cursor is located is a relative position related boundary line. If yes, execute step 1103; if not, return to continue the detection of step 1101.

[0208] The relative position-related boundary line is related to the relative position between the electronic devices recorded in the third position information. If the relative position between the electronic devices recorded in the third position information set in the main device is only left or right, the relative position-related boundary line is the left boundary line or right boundary line of the collaborative display interface. If the relative position between the electronic devices recorded in the third position information set in the main device is only up or down, the relative position-related boundary line is the upper boundary line or lower boundary line of the collaborative display interface. If the relative position between the electronic devices recorded in the third position information set in the main device includes up, down, left, right, etc., the relative position-related boundary line is the four upper, lower, left, and right boundary lines of the collaborative display interface.

[0209] Step 1103: The master device triggers the location information adjustment process.

[0210] If the main device adjusts the third position information, it will re-determine the interface that each electronic device needs to display based on the adjusted third position information, send the interface data for collaborative display to the extended device, and the main device and the extended device will display the interface according to the new interface data. Fig. 12A shown.

[0211] Scenario three: After the main device and the extended device start collaborative display, the main device or the extended device detects that it has moved, triggering the execution of the location information adjustment method of the embodiment of the present application.

[0212] After the expansion device detects that it has moved, it can inform the main device, and the main device triggers the execution of the location information adjustment method of the embodiment of the present application, such as Fig. 12B shown.

[0213] The main device or the expansion device can detect whether it has moved by the data of the internal gyroscope and / or acceleration sensor. For example, the acceleration sensor in the main device detects that the amplitude of the acceleration curve exceeds a preset threshold, and it can be determined that the main device has moved.

[0214] Scenario 4: After the main device and the extended device begin to display collaboratively, the main device periodically triggers the execution of the location information adjustment method of the embodiment of the present application according to the preset period, so as to achieve the purpose of dynamically adjusting the third location information. It should be noted that when the main device periodically triggers the execution of the location information adjustment method of the embodiment of the present application, the shorter the preset period is, the greater the power consumption of the main device and the extended device is, and the longer the preset period is, the smaller the power consumption of the main device and the extended device is. Moreover, if the wave emitted in the location information adjustment method of the embodiment of the present application is an ultrasonic wave, if the preset period is short, it may cause noise interference to animals in the use environment, such as pets such as cats and dogs in a home environment. Therefore, this application scenario is generally recommended for use in a short period of time.

[0215] The following example illustrates the implementation of the location information adjustment method of the present application.

[0216] See also Fig.13 , is a system architecture diagram of an embodiment of the position information adjustment method of the present application, including a main device and an expansion device, the main device includes two wave transmitters, namely a first wave transmitter 131 and a second wave transmitter 132, and the physical relative position relationship between the first wave transmitter 131 and the second wave transmitter 132 is a left-right position relationship, that is, one of the first wave transmitter 131 and the second wave transmitter 132 is located on the left and the other is located on the right, for example, Fig.13 In the embodiment, the first wave transmitter 131 is located on the left side of the second wave transmitter 132, and the second wave transmitter 132 is located on the right side of the first wave transmitter 131. Fig.13 The first wave transmitter 131 is arranged on the left side of the main device, and the second wave transmitter 132 is arranged on the right side of the main device. A first wave receiver 130 is arranged in the expansion device.

[0217] In one possible implementation, the first wave transmitter and the second wave transmitter may be a speaker, which may emit sound waves. The sound waves emitted by the speaker may be sound waves audible to human ears or ultrasonic waves, preferably ultrasonic waves. The sound waves emitted by the first wave transmitter and the second wave transmitter may have different sound wave characteristics, which may be: frequency, and / or amplitude, etc. The first wave receiver may be a microphone, which is used to receive the sound waves emitted by the speaker.

[0218] In another possible implementation, the first wave transmitter, the second wave transmitter, and the first wave receiver may be a Bluetooth antenna of a Bluetooth module, and the wave signals emitted by the first wave transmitter and the second wave transmitter may be Bluetooth signals, specifically electromagnetic waves. The electromagnetic waves emitted by the first wave transmitter and the second wave transmitter have different electromagnetic wave characteristics, and the electromagnetic wave characteristics may include phase and / or amplitude, etc. It should be noted that if the first wave transmitter and the second wave transmitter are Bluetooth antennas, the distance between the first wave transmitter and the second wave transmitter is generally less than the wavelength of the Bluetooth signal.

[0219] In another possible implementation, the first wave transmitter, the second wave transmitter, and the first wave receiver may be antennas of an ultra wide band (UWB) module, and the wave signals emitted by the first wave transmitter and the second wave transmitter may be UWB signals, specifically wireless carriers. The wireless carriers emitted by the first wave transmitter and the second wave transmitter have different wireless carrier characteristics, and the wireless carrier characteristics may include phase and / or amplitude, etc.

[0220] See also Fig.14A As shown, Fig.13 A flow chart of an embodiment of a method for adjusting position information under the system architecture shown in FIG. Fig.14A As shown, including:

[0221] Step 1401: A connection for collaborative display is established between the main device and the extended device.

[0222] The implementation of this step can refer to Fig. 9 As shown, no further description is given here.

[0223] How to establish a connection between the main device and the expansion device is not limited in this embodiment of the application.

[0224] Step 1402: The main device determines that the triggering condition for relative position detection is met, starts the first wave transmitter and the second wave transmitter, and notifies the extended device to start relative position detection.

[0225] The triggering conditions of relative position detection may correspond to the above-mentioned scenarios 1 to 4. The triggering conditions of relative position detection may include but are not limited to:

[0226] The first electronic device receives a first message sent by the second electronic device, where the first message is a confirmation message for the collaborative display request sent by the first electronic device; or

[0227] The first electronic device receives an interface conversion operation for a display element in a collaborative display state; or,

[0228] The first electronic device determines that the first electronic device moves based on the received movement data in the collaborative display state; or,

[0229] The first electronic device receives a position information adjustment request sent by the second electronic device in a collaborative display state, and the position information adjustment request is sent after the second electronic device detects that the second electronic device has moved; or

[0230] The first electronic device determines, in the collaborative display state, according to a preset period, that a triggering moment for relative position relationship detection has arrived.

[0231] Step 1403: The extension device starts the first wave receiver and feeds back a wave receiver startup completion message to the main device.

[0232] The expansion device starting the first wave receiver may be implemented by the processor of the expansion device sending a start instruction to the first wave receiver.

[0233] Step 1404: The master device uses a first wave transmitter to send a first wave signal, and uses a second wave transmitter to send a second wave signal, the first wave signal and the second wave signal having different wave characteristics.

[0234] Among them, the main device uses the first wave transmitter to send the first wave signal by the main device's processor sending instructions to the first wave transmitter. Similarly, the main device uses the second wave transmitter to send the second wave signal by the main device's processor sending instructions to the second wave transmitter.

[0235] The wave feature may be the frequency and / or amplitude of the wave signal. The first wave signal and the second wave signal have different wave features in that the first wave signal and the second wave signal are different, so that the subsequent expansion device can obtain the first wave signal and the second wave signal from the received wave signal to complete subsequent processing.

[0236] Step 1405: The main device sends the wave information of the first wave signal and the wave information of the second wave signal to the extension device.

[0237] Optionally, the main device may obtain first position information and send the first position information to the extension device. The first position information is used to describe: the left-right position relationship between the first wave transmitter and the second wave transmitter based on the angle at which the user views the main device.

[0238] If the first wave signal and the second wave signal are sound waves, and the wave characteristics are frequency and / or amplitude, the wave information of the first wave signal may include: the frequency and / or amplitude of the first wave signal, and the wave information of the second wave signal may include: the frequency and / or amplitude of the second wave signal; if the sound wave characteristics of the first wave signal and the second wave signal are: ascending and descending order of amplitude, the wave information of the first wave signal may include: the amplitude sequence of the first wave signal, and the wave information of the second wave signal may include: the amplitude sequence of the second wave signal.

[0239] If the first wave signal and the second wave signal are Bluetooth signals or UWB signals, and the wave characteristics are phase and / or amplitude, the wave information of the first wave signal may include: the phase and / or amplitude of the first wave signal, and the wave information of the second wave signal may include: the phase and / or amplitude of the second wave signal.

[0240] Step 1405 may be executed between steps 1401 to 1406 , and is not limited to the execution order of steps 1402 to 1404 .

[0241] In actual applications, the wave information of the first wave signal and the wave information of the second wave signal may be preset in the expansion device. In this case, this step may be omitted.

[0242] Step 1406: The expansion device obtains the wave signal received by the first wave receiver, determines the second position information according to the received wave signal, the wave information of the first wave signal and the wave information of the second wave signal, and sends the second position information to the main device.

[0243] In a possible implementation, if the wave signal is a sound wave, this step may include:

[0244] The expansion device calculates a first reception start time according to the received wave signal and the wave information of the first wave signal, the first reception start time is the start time when the expansion device receives the first wave signal using the first wave receiver, and calculates a second reception start time according to the received wave signal and the wave information of the second wave signal, the second reception start time is the start time when the expansion device receives the second wave signal using the first wave receiver;

[0245] The extension device acquires first location information;

[0246] The expansion device determines the second position information according to the first reception start time, the second reception start time, and the first position information.

[0247] The first location information may be preset in the extension device, or may be sent from the main device to the extension device.

[0248] Specifically, if the master device sends the first signal and the second signal at the same time, the expansion device determines the second location information according to the first reception start time and the second reception start time, which may include:

[0249] Determine the temporal sequence of the first receiving start time and the second receiving start time;

[0250] If the judgment result is that the first receiving start time is earlier than the second receiving start time in time, the second position information is determined as the first information, and the first information is used to describe that: based on the angle at which the user views the display screen of the extension device, the extension device is located on the left side of the main device;

[0251] If the judgment result is that the first receiving start time is later than the second receiving start time, the second position information is determined as the first information, and the first information is used to describe that based on the angle at which the user views the display screen of the extended device, the extended device is located on the right side of the main device.

[0252] For example: Fig.13 Taking the settings of the first wave transmitter and the first wave receiver as an example, assuming that the first reception start time is earlier than the second reception start time, it means that the first wave signal reaches the first wave receiver first, and the extension device is located on the side close to the first wave transmitter, that is, the left side of the main device; the first reception start time is later than the second reception start time, it means that the second wave signal reaches the first wave receiver first, and the extension device is located on the side close to the second wave transmitter, that is, the right side of the main device.

[0253] Optionally, if the expansion device is located on the upper side or the lower side of the main device, the first receiving start time and the second receiving start time may also have a temporal sequence, and at this time, the time difference between the first receiving start time and the second receiving start time is generally relatively small. Based on this, in order to screen out the situation where the expansion device is actually located on the upper side or the lower side of the main device, the time difference between the first receiving start time and the second receiving start time can be calculated. If the time difference is less than the preset first threshold, it means that the expansion device is more likely to be located on the upper side or the lower side of the main device, and the subsequent steps of determining the second position information can be omitted. At this time, the expansion device can send a request to the main device to resend the wave signal, or prompt the user to adjust the physical position of the expansion device. The specific value of the first threshold is not limited in the embodiment of the present application.

[0254] Specifically, if the main device does not restrict the sending time of the first wave signal and the second wave signal, the expansion device determines the second location information according to the first receiving start time and the second receiving start time, which may include:

[0255] The expansion device obtains a first sending start time and a second sending start time; the first sending start time is the start time when the main device uses the first wave transmitter to send the first wave signal, and the second sending start time is the start time when the main device uses the second wave transmitter to send the second wave signal;

[0256] The expansion device calculates a first time difference according to the first sending start time and the first receiving start time, and calculates a second time difference according to the second sending start time and the second receiving start time;

[0257] The expansion device determines the magnitude relationship between the first time difference and the second time difference;

[0258] If the judgment result is that the first time difference is greater than the second time difference, the expansion device determines the second position information as the first information, where the first information is used to describe that: based on the angle at which the user views the display screen of the expansion device, the expansion device is located on the left side of the main device;

[0259] If the judgment result is that the first time difference is less than the second time difference, the expansion device determines the second position information as the second information, and the second information is used to describe that based on the angle at which the user views the display screen of the expansion device, the expansion device is located on the right side of the main device.

[0260] Similarly, in order to filter out the situation where the expansion device is actually located on the upper side or the lower side of the main device, the difference between the first time difference and the second time difference can be calculated. If the difference is less than the preset second threshold, it means that the expansion device is more likely to be located on the upper side or the lower side of the main device, and the subsequent steps of determining the second location information can be omitted. At this time, the expansion device can send a request to the main device to resend the wave signal, or prompt the user to adjust the physical position of the expansion device. The specific value of the second threshold is not limited in the embodiment of the present application.

[0261] In another possible implementation, if the wave signal is a Bluetooth signal or a UWB signal, this step may include: the extension device calculates the phase difference between the first wave signal and the second wave signal received by the first wave receiver based on the received wave signal, the wave information of the first wave signal, and the wave information of the second wave signal, uses the departure angle method to calculate the possible orientation of the first wave receiver on the preset plane of the extension device relative to the first wave transmitter and the second wave transmitter, and determines the second position information between the main device and the extension device based on the calculated possible orientation. The preset plane may be the plane where the display of the extension device is located. Optionally, if the wave signal is a Bluetooth signal or a UWB signal, the wavelengths of the first wave signal and the second wave signal are the same.

[0262] by Fig.13Taking the setting of the first wave transmitter and the first wave receiver as an example, assuming that the calculated possible position of the transmitting source on the preset plane is the right side of the first wave receiver, the extended device is located on the left side of the main device, and the calculated possible position of the transmitting source on the preset plane is the left side of the first wave receiver, then the extended device is located on the right side of the main device.

[0263] The departure angle method is briefly described below.

[0264] like Fig. 14B As shown, the first wave transmitter and the second wave transmitter are Bluetooth antennas, respectively Fig. 14B As shown in the figure, the distance d between antenna 1 and antenna 2 is fixed; the first wave receiver is also a Bluetooth antenna, such as Fig. 14B Antenna 3 is shown in the figure.

[0265] Based on the wave signal received by the first wave receiver, the wave characteristics of the first wave signal, and the wave characteristics of the second wave signal, the phase difference between the received first wave signal and the second wave signal can be calculated. Combined with the wavelength of the first wave signal and the second wave signal (the wavelengths of the two are the same), the Fig. 14B The length of the L side is L = (wavelength * phase difference) / (2π). Then the starting angle θ = arccos (L / d) can be calculated using trigonometric functions.

[0266] After the departure angle θ is calculated, the possible orientation of antenna 3 relative to antenna 1 and antenna 2 can be estimated on the preset plane of the extension device as follows: Fig. 14C Regardless of whether antenna 3 is located in direction A or direction B, the left-right position relationship between antenna 3 and antenna 1 and antenna 2 is the same, so that the second position information between the main device and the extended device can be determined based on the departure angle θ.

[0267] The angle of arrival method in the subsequent description is similar to the angle of departure method, the only difference being that the wave transmitter and the wave receiver are interchanged.

[0268] The above method for determining the second location information between the main device and the extended device based on the departure angle method can be extended from Bluetooth signals to UWB signals, which will not be described in detail here.

[0269] Based on the above description, the physical relative position recorded in the second position information between the main device and the expansion device obtained in this step is a left-right relative position, for example: the main device is located on the left side of the expansion device, or the main device is located on the right side of the expansion device, etc.

[0270] Step 1407: The master device receives the second location information, and adjusts the third location information preset by the master device according to the second location information.

[0271] In a possible implementation, the main device may directly use the second location information to update the third location information, and then redetermine the interface that the main device and the expansion device need to display based on the updated third location information, and resend the corresponding interface data to the expansion device.

[0272] Optionally, the second location information may be consistent with the preset third location information. In this case, the third location information may not be directly updated, thereby reducing the data processing amount of the main device. Then, after the main device receives the second location information, this step may also include: the main device determines whether the second location information and the third location information are consistent. If they are consistent, the third location information is kept unchanged; if they are inconsistent, the step of using the second location information to update the third location information is executed.

[0273] See also Fig.15 , is a system architecture diagram of another embodiment of the location information adjustment method of the present application, and Fig.13 The main difference of the system architecture shown is that the physical relative position between the first wave transmitter and the second wave transmitter in the master device is an upper and lower relative position, that is, one wave transmitter is located on the upper side of the other wave transmitter; for example, in Fig.15 In the example, the first wave transmitter 131 is arranged on the upper side of the main device, and the second wave transmitter 132 is arranged on the lower side of the main device.

[0274] Fig.15 The flowchart of the embodiment of the method for adjusting the position information under the system architecture shown can be found in Fig.14A The only difference is that the physical relative position recorded in the second position information determined by the expansion device in step 1406 is an up-down relative position, rather than a left-right relative position. Correspondingly, the relative position recorded in the third position information set by the main device in steps 1406 and 1407 is also an up-down relative position, rather than a left-right relative position.

[0275] See also Fig.16 , is a system architecture diagram of another embodiment of the location information adjustment method of the present application, Fig.13 On the basis of the system architecture diagram shown, a third wave transmitter 133 is added to the main device, and among the first to third wave transmitters, the physical relative position between the first wave transmitter and the second wave transmitter is a left-right relative position, and the physical relative position between the third wave transmitter and the first wave transmitter (or the second wave transmitter) is an up-down relative position; for example, at least one wave transmitter is arranged on the upper side of the main device, at least one wave transmitter is arranged on the lower side of the main device, at least one wave transmitter is arranged on the left side of the main device, and at least one wave transmitter is arranged on the right side of the main device. For example, in Fig.16In the example, the first wave transmitter is set at the lower left side, the second wave transmitter is set at the lower right side, and the third wave transmitter is set at the upper left side. It should be noted that Fig.16 This is only an example and is not intended to limit the location of the wave transmitter of the main device in the embodiment of the present application.

[0276] The third wave transmitter of the main device can send a third wave signal, and the third wave signal has different wave characteristics from the first wave signal and the second wave signal. Correspondingly, when the main device uses the first wave transmitter to the third wave transmitter to send the first wave signal to the third wave signal respectively, the first wave receiver of the extension device receives the wave signal, and the physical relative position between the main device and the extension device can be determined according to the received wave signal. Specifically, the extension device can determine the left and right relative position information between the main device and the extension device according to the start time of receiving the received first wave signal and the second wave signal, and can determine the up and down relative position between the main device and the extension device according to the start time of receiving the received first wave signal (or the second wave signal) and the third wave signal. Therefore, the physical relative position between the extension devices determined by the extension device can be extended from up and down, or left and right to at least up, down, left, right, upper left, lower left, upper right, lower right and other physical relative positions, that is, the extension device is located at the top, bottom, left, right, upper left, lower left, upper right, lower right and other physical relative positions of the main device, see Figure 7 shown.

[0277] Fig.16 The flowchart of the embodiment of the method for adjusting the position information under the system architecture shown can be found in Fig.17 ,and Fig.14A The main differences are:

[0278] Step 1701 is relative to step 1402, the master device starts the third wave transmitter;

[0279] In step 1702, relative to step 1404, the third wave transmitter of the master device sends a third wave signal; the first wave signal to the third wave signal have different wave characteristics, and the sending start time of the first wave signal to the third wave signal is the same.

[0280] In step 1703 , relative to step 1405 , the main device further sends the wave information of the third wave signal to the extension device.

[0281] Step 1704 is relative to step 1406 , and the expansion device further determines second position information based on the third wave signal.

[0282] Specifically, in step 1704:

[0283] The expansion device receives the wave signal using the first wave receiver, determines the second position information according to the received wave signal and the wave information of the first wave signal to the third wave signal, and sends the second position information to the main device.

[0284] In a possible implementation, if the wave signal is a sound wave, the implementation of this step may include: the extension device determines the receiving start time of each wave signal of the first wave signal to the third wave signal according to the wave information of the received wave signal and the first wave signal to the third wave signal, determines the left-right relative position information between the main device and the extension device according to the receiving start time of the first wave signal, the receiving start time of the second wave signal, and the physical relative position information of the first wave transmitter and the second wave transmitter, determines the up-down relative position information between the main device and the extension device according to the receiving start time of the first wave signal, the receiving start time of the third wave signal, and the physical relative position information of the first wave transmitter and the third wave transmitter; determines the second position information according to the left-right relative position information and the up-down relative position information between the main device and the extension device.

[0285] In another possible implementation, if the wave signal is a Bluetooth signal or a UWB signal, this step may include: the extension device calculates the phase difference between the first wave signal and the second wave signal, and the phase difference between the first wave signal and the third wave signal based on the received wave signal, the wave information of the first wave signal, and the wave information of the second wave signal, and uses the departure angle method to calculate the possible orientation of the first wave receiver on the preset plane of the extension device relative to the first wave transmitter and the second wave transmitter, and determines the left-right relative position information between the main device and the extension device based on the calculated possible orientation; the extension device calculates the possible orientation of the first wave receiver on the preset plane of the extension device relative to the first wave transmitter and the third wave transmitter based on the received wave signal, the wave information of the first wave signal, and the wave information of the third wave signal, and determines the up-down relative position information between the main device and the extension device based on the calculated possible orientation; the second position information is determined based on the left-right relative position information and the up-down relative position information between the main device and the extension device.

[0286] See also Fig.18 , is a system architecture diagram of another embodiment of the location information adjustment method of the present application, relative to Fig.13 In the system architecture diagram shown, the expansion device adds at least one wave receiver as an auxiliary receiver, and the wave receivers set in the expansion device can be distributed in different positions of the expansion device, and the specific positions are not limited in the embodiment of the application. Fig.18 In the example, the expansion device is taken to add one second wave receiver 134.

[0287] The expansion device can determine the second position information between the main device and the expansion device based on the wave signal received by the first wave receiver, and also determine the second position information based on the wave signal received by the newly added wave receiver, such as the second wave receiver, so as to verify the second position information through the added wave receiver. Fig.18 The flowchart of the embodiment of the method for adjusting the position information under the system architecture shown can be found in Fig.19 , relative to Fig.14A In the embodiment shown, the second wave receiver is also started in step 1403. In addition, step 1406 can be replaced by steps 1901 to 1902:

[0288] Step 1901: The first wave receiver and the second wave receiver of the extension device receive a wave signal, determine the second position information according to the wave signal received by the first wave receiver and the wave information of the first wave signal and the second wave signal, and determine the fourth position information according to the wave signal received by the second wave receiver and the wave information of the first wave signal and the second wave signal.

[0289] The fourth location information is used to describe the physical relative locations between electronic devices.

[0290] Step 1902: the expansion device determines whether the second location information and the fourth location information are consistent. If so, the second location information is sent to the main device and step 1903 is executed; otherwise, a retry request is sent to the main device, and the main device returns to execute step 1404.

[0291] refer to Fig.18 , Fig.15 and Fig.16 Under the system architecture shown, the expansion device can also add at least one wave receiver as an auxiliary receiver. The system architecture and processing flow after adding the wave receiver can be referred to Figure 18-19 , I will not go into details here.

[0292] See also Fig. 20 , is a system architecture diagram of another embodiment of the location information adjustment method of the present application, relative to Fig.13 As shown in the system architecture diagram, the expansion device increases from 1 to at least 2 ( Fig. 20 The number of expansion devices shown in FIG. 2 is 2), each expansion device includes 1 wave receiver, and the processing flow of the position information adjustment method of this embodiment is shown in FIG. Fig.21 As shown, different from Fig.14A , the main device and each expansion device perform steps 1401 to 1405, and then perform steps 2101 to 2102, specifically:

[0293] Step 2101: For each expansion device, the expansion device obtains the wave signal received by the first wave receiver, determines the second position information between the main device and the expansion device according to the received wave signal and the wave information of the first wave signal and the second wave signal, and sends the second position information and the preset first parameter to the main device.

[0294] If the wave signal is a sound wave, the preset first parameter may be a reception start time of the first wave signal and a reception start time of the second wave signal determined by the expansion device.

[0295] If the wave signal is a Bluetooth signal or a UWB signal, the preset first parameter may be a departure angle determined by the extension device.

[0296] Step 2102: the main device receives the second location information and the preset first parameter sent by each expansion device. If it is determined that the second location information sent by at least two expansion devices is the same, the second location information between the at least two expansion devices is determined according to the preset first parameter of the expansion devices with the same second location information. The second location information between the expansion devices is used to record the physical relative position between the at least two expansion devices. The main device updates the third location information according to the second location information sent by each expansion device and the determined second location information between the at least two expansion devices.

[0297] If the preset first parameter is the start time of receiving the first wave signal and the start time of receiving the second wave signal by the extension device, determining the second location information between the extension devices according to the preset first parameter with the same second location information may include:

[0298] By comparing the start time of receiving the first wave signal of the expansion devices with the same second position information, and / or comparing the start time of receiving the second wave signal of the expansion devices with the same second position information, the second position information between the expansion devices with the same second position information is determined based on the principle that the earlier the start time of receiving, the closer to the main device.

[0299] In step 2101, in addition to sending the second position information to the main device, each expansion device also sends a preset first parameter. For example, when the wave signal is a sound wave, the preset first parameter can be the reception start time of the first wave signal and the reception start time of the second wave signal determined by the expansion device. Therefore, when the main device receives the same second position information sent by two or more expansion devices, the main device can determine the second position information between the two or more expansion devices with the same second position information based on the preset first parameter sent by the expansion device.

[0300] For example: Fig. 20Taking the physical relative position shown as an example, the expansion device 1 and the expansion device 2 are both located on the left side of the main device, and the expansion device 1 is located on the left side of the expansion device 2, then the second position information sent to the main device by the expansion device 1 and the expansion device 2 is both on the left side. At this time, the main device compares the preset first parameters of the expansion device 1 and the expansion device 2, such as the start time of the expansion device receiving the first wave signal, and / or compares the start time of the expansion device 1 and the expansion device 2 receiving the second wave signal, and can determine that the start time of the expansion device 2 receiving the first wave signal is earlier than the start time of the expansion device 1 receiving the first wave signal, and / or the start time of the expansion device 2 receiving the second wave signal is earlier than the start time of the expansion device 1 receiving the second wave signal, so that the main device can determine that the expansion device 1 is located on the left side of the expansion device 2.

[0301] It should be noted that Fig.15 , Fig.16 , Fig.18 Under the system architecture shown, the expansion device can also be expanded from 1 to 2 or more. The system architecture and processing flow can be referred to Fig. 20 and Fig.21 , I will not go into details here.

[0302] In another embodiment, the wave transmitter and the wave receiver in the above system architecture can be interchangeable, that is, the wave transmitter set in the main device becomes the wave receiver, and the wave receiver set in the expansion device becomes the wave transmitter. Fig.13 , 15 , 16, 18, and 20 system architectures in which the wave transmitter and the wave receiver are interchanged are used as an example for explanation.

[0303] if Fig.13 In the system architecture shown, the wave transmitter and the wave receiver are interchanged, so the first wave transmitter and the second wave transmitter set in the main device become the first wave receiver and the second wave receiver, and the first wave receiver in the expansion device becomes the first wave transmitter. A flow chart of an embodiment of the method for adjusting position information under the system architecture is shown in FIG. Fig. 22 As shown, including:

[0304] Step 2201: A connection for collaborative display is established between the main device and the extended device.

[0305] Step 2202: The main device determines that the triggering condition for relative position detection is met, starts the first wave receiver and the second wave receiver, and notifies the extended device to start relative position detection.

[0306] Step 2203: The extension device starts the first wave transmitter and uses the first wave transmitter to send the first wave signal.

[0307] Step 2204: The extended device sends the wave information of the first wave signal to the main device.

[0308] If the wave information of the first wave signal is preset in the main device, this step may not be performed.

[0309] Step 2205: The main device uses the first wave receiver and the second wave receiver to receive wave signals respectively, and determines the second position information between the main device and the extension device according to the received first receiving signal, the second receiving signal and the wave information of the first wave signal.

[0310] In one possible implementation, if the wave signal is a sound wave, this step may include: determining the reception start time when the first wave receiver receives the first wave signal based on the first received signal and the wave information of the first wave signal, and determining the reception start time when the second wave receiver receives the first wave signal based on the second received signal and the wave information of the first wave signal; determining the second position information based on the reception start time corresponding to the first wave receiver and the reception start time corresponding to the second wave receiver.

[0311] For example, the reception start time corresponding to the first wave receiver is earlier than the reception start time corresponding to the second wave receiver, and the extension device is located on the left side of the main device; the reception start time corresponding to the first wave receiver is later than the reception start time corresponding to the second wave receiver, and the extension device is located on the right side of the main device.

[0312] In another possible implementation, if the wave signal is a Bluetooth signal or a UWB signal, this step may include: the extension device calculates the possible orientation of the first wave receiver on a preset plane of the extension device relative to the first wave transmitter and the second wave transmitter using an arrival angle method based on the received wave signal, the wave information of the first wave signal, and the wave information of the second wave signal, and determines the left-right relative position information between the main device and the extension device based on the calculated possible orientation.

[0313] Step 2206: The master device updates the third location information preset in the master device according to the second location information.

[0314] if Fig.15 In the system architecture shown, the wave transmitter and the wave receiver are interchanged, so the first wave transmitter and the second wave transmitter set in the main device become the first wave receiver and the second wave receiver, and the first wave receiver in the expansion device becomes the first wave transmitter. A flow chart of an embodiment of the method for adjusting the position information under the system architecture can be found in Fig. 22 The only difference is that the second position information determined by the master device in step 2205 is a relative position of up and down, rather than a relative position of left and right.

[0315] if Fig.16In the system architecture shown, the wave transmitter and the wave receiver are interchanged, so the first wave transmitter to the third wave transmitter set in the main device become the first wave receiver to the third wave receiver, and the first wave receiver in the expansion device becomes the first wave transmitter. A flow chart of an embodiment of the position information adjustment method under the system architecture can be found in Fig.23 ,and Fig. 22 The main differences are:

[0316] Step 2301 is relative to step 2202, the master device also starts the third wave receiver;

[0317] In step 2302, relative to step 2205, the master device further uses a third wave receiver to receive a wave signal, and further determines the second position information according to a third received signal received by the third wave receiver. At this time, if the wave signal is a sound wave, step 2302 may include:

[0318] The reception start time when the first wave receiver receives the first wave signal is determined according to the first received signal and the wave information of the first wave signal, and the reception start time when the second wave receiver receives the first wave signal is determined according to the second received signal and the wave information of the first wave signal, and the reception start time when the third wave receiver receives the first wave signal is determined according to the third received signal and the wave information of the first wave signal; the left-right relative position information between the main device and the extension device is determined according to the reception start time corresponding to the first wave receiver and the reception start time corresponding to the second wave receiver, and the second position information is determined according to the reception start time corresponding to the first wave receiver (or the second wave receiver) and the reception start time corresponding to the third wave receiver.

[0319] Thereby, the relative position can be expanded to at least: up, down, left, right, upper left, lower left, upper right, lower right, etc.

[0320] if Fig.18 In the system architecture shown, the wave transmitter and the wave receiver are interchanged, so the first wave transmitter and the second wave transmitter set in the main device become the first wave receiver and the second wave receiver, and the first wave receiver in the expansion device becomes the first wave transmitter, and the second wave receiver becomes the second wave transmitter.

[0321] The second wave transmitter transmits a second wave signal, and the first wave signal and the second wave signal have different wave characteristics.

[0322] In this embodiment, the start time of sending the wave signal by the first wave transmitter and the second wave transmitter may be the same or different, and this embodiment does not limit this.

[0323] If the second wave transmitter is used to verify the physical relative position of the master device based on the first wave transmitter, the processing flow can be as follows: Fig.24 As shown, relative to Fig. 22 In the step flow shown, steps 2203 to 2205 are replaced by steps 2401 to 2404:

[0324] Step 2401: the extension device starts the first wave transmitter and the second wave transmitter, uses the first wave transmitter to send a first wave signal, and uses the second wave transmitter to send a second wave signal.

[0325] Step 2402: The extension device sends the wave information of the first wave signal and the second wave signal to the main device.

[0326] Step 2403: The main device uses the first wave receiver and the second wave receiver to receive wave signals respectively, determines the second position information between the main device and the extension device according to the first receiving signal received by the first wave receiver, the second receiving signal received by the second wave receiver, and the wave information of the first wave signal, and determines the fourth position information between the main device and the extension device according to the first receiving signal, the second receiving signal, and the wave information of the second wave signal.

[0327] Step 2404: the main device determines whether the second position information is consistent with the fourth position information, and if so, executes step 2206; otherwise, the main device notifies the extension device to restart relative position detection, and the extension device executes step 2401.

[0328] if Fig. 20 In the system architecture shown, the wave transmitter and the wave receiver are interchanged, so the first wave transmitter and the second wave transmitter set in the main device become the first wave receiver and the second wave receiver, and the first wave receiver set in each extended device becomes the first wave transmitter. At this time, the first wave signals sent by the first wave transmitter in each extended device have different wave characteristics.

[0329] The following can be performed between the main device and each expansion device: Fig.25 The steps shown are similar to Fig. 22 The difference between the steps shown is mainly that: steps 2201 to 2205 are respectively performed between the main device and each expansion device, and after the main device has determined the second position information between the main device and each expansion device, steps 2501 to 2502 are performed; in addition, in step 2204, when each expansion device sends the wave information of the first wave signal to the main device, it can also send the sending start time of the first wave signal to the main device; for steps 2501 to 2502:

[0330] Step 2501: The main device determines whether there are at least two extended devices with the same second location information. If so, for at least two extended devices with the same second location information, the main device calculates the time difference of the first wave signal corresponding to each extended device with the same second location information, determines the second location information between the extended devices with the second location information based on the time difference, and obtains the second location information between the electronic devices.

[0331] The time difference of the first wave signal corresponding to each extension device is: the time difference between the start time of receiving the first wave signal by the main device and the start time of sending the first wave signal.

[0332] Step 2502: The master device adjusts the third location information according to the second location information.

[0333] Since there are at least two expansion devices, the actual physical locations of two or more expansion devices may be located on the same side of the main device, so that the second location information of at least two expansion devices determined by the main device is the same. In order to solve this problem, the expansion device can send the sending start time of the first wave signal sent by its own first wave transmitter to the main device; accordingly, the main device can determine the time difference of the same first wave signal according to the receiving start time and the sending start time of the wave signal, and for at least two expansion devices with the same second location information, the second location information between the main device and at least two expansion devices, and between at least two expansion devices, is determined according to the size of the time difference of the expansion devices.

[0334] Still Fig. 20 Taking the physical relative position shown as an example, the main device compares the time difference of expansion device 1 and the time difference of expansion device 2. If the time difference of expansion device 1 is greater than the time difference of expansion device 2, it can be determined that expansion device 1 is located on the left side of expansion device 2.

[0335] In another embodiment, the structure of the main device and the structure of the expansion device in the above system architecture can be interchangeable, that is, the structure of the main device in the system architecture is converted into the structure of the expansion device, and the structure of the expansion device is converted into the structure of the main device. At this time, the processing flow of the location information adjustment method under each system architecture can refer to the processing flow of the above embodiment and make adaptive adjustments. The main difference is that the step execution subject interchanges the main device and the expansion device, and if the expansion device determines the second location information, the determined second location information needs to be sent to the main device, and the main device updates the third location information preset in the main device according to the second location information.

[0336] It is to be understood that some or all of the steps or operations in the above embodiments are merely examples, and the present application embodiments may also perform other operations or variations of various operations. In addition, the various steps may be performed in different orders presented in the above embodiments, and it is possible that not all of the operations in the above embodiments need to be performed.

[0337] The present application also provides an electronic device, comprising: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, and when the instructions are executed by the device, the device executes Figure 14A to Figure 25 The method shown.

[0338] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes the present application. Figure 14A to Figure 25 The method provided by the illustrated embodiment.

[0339] The present application also provides a computer program product, which includes a computer program, which, when executed on a computer, enables the computer to execute the present application. Figure 14A to Figure 25 The method provided by the illustrated embodiment.

[0340] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.

[0341] Those of ordinary skill in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0342] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0343] In several embodiments provided in the present application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as: ROM), random access memory (Random Access Memory; hereinafter referred to as: RAM), disk or optical disk, and other media that can store program codes.

[0344] The above is only a specific implementation of the present application. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. The protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A system for adjusting position information, characterized in that: The system includes a first electronic device and a second electronic device, the first electronic device includes a first sound wave transmitter and a second sound wave transmitter, the second electronic device includes a first sound wave receiver, and the method specifically includes: When the first electronic device determines that a first trigger condition is met, the first electronic device notifies the second electronic device to start position detection, and the first sound wave transmitter sends a first sound wave signal; the second sound wave transmitter sends a second sound wave signal; the first sound wave signal and the second sound wave signal have different amplitudes and / or frequencies; the first trigger condition is used to trigger relative position relationship detection between the first electronic device and the second electronic device; The second electronic device activates the first sound wave receiver, and the first sound wave receiver receives the first sound wave signal and the second sound wave signal; The second electronic device calculates a first receiving start time and a second receiving start time; the first receiving start time is the start time when the first sound wave receiver receives the first sound wave signal, and the second receiving start time is the start time when the first sound wave receiver receives the second sound wave signal; The second electronic device determines whether a time difference between the first receiving start time and the second receiving start time is less than a preset first threshold; If the judgment result is not less than the first threshold, the second electronic device acquires first position information, where the first position information is used to describe that: based on the angle at which the user views the first electronic device, the first sound wave transmitter is located on the left side of the second sound wave transmitter, and the first sound wave receiver is disposed in the second electronic device; The second electronic device determines second position information according to the first receiving start time, the second receiving start time and the first position information; the first position information is used to describe: the left-right position relationship between the first sound wave transmitter and the second sound wave transmitter from the direction from which the user views the first electronic device; the second position information is used to describe: the position of the second electronic device relative to the first electronic device from the direction from which the user views the display screen of the second electronic device; The determining of the second location information specifically includes: If the result of the determination is that the first receiving start time is earlier than the second receiving start time, the second position information is: based on the angle at which the user views the display screen of the second electronic device, the second electronic device is located on the left side of the first electronic device; If the result of the determination is that the first receiving start time is later than the second receiving start time, the second position information is: based on the angle at which the user views the display screen of the second electronic device, the second electronic device is located on the right side of the first electronic device; The second electronic device sends the second location information to the first electronic device; The first electronic device receives the second location information and uses the second location information to update third location information; the third location information is used to describe: the relationship of the second electronic device relative to the first electronic device from the direction from which the user views the display screen of the first electronic device.

2. The system according to claim 1, characterized in that Also includes: The first sound wave signal and the second sound wave signal are sent at the same time.

3. The system according to claim 1 or 2, characterized in that: The first electronic device determines that a first trigger condition is satisfied, including: The first electronic device receives a first message sent by the second electronic device, where the first message is a confirmation message for the collaborative display request sent by the first electronic device; or The first electronic device receives an interface conversion operation for a display element in a collaborative display state; or The first electronic device determines, in the collaborative display state, based on the received movement data, that the first electronic device moves; or, The first electronic device receives a position information adjustment request sent by the second electronic device in a collaborative display state, and the position information adjustment request is sent after the second electronic device detects that the second electronic device has moved; or The first electronic device determines, in a collaborative display state, according to a preset period, that a triggering moment for detecting the relative position relationship has arrived.

4. The system according to any one of claims 1 to 3, characterized in that: Before using the first location information to update the second location information, the method further includes: The first electronic device determines whether the first location information is consistent with the second location information; If the result of the judgment is inconsistency, the step of using the first location information to update the second location information is performed.

5. The system according to any one of claims 1 to 4, characterized in that: When there are multiple second electronic devices and the second location information of at least two of the second electronic devices is the same, the third location information is determined according to the start time of receiving the first sound wave signal or the start time of receiving the second sound wave signal by the at least two second electronic devices with the same second location information.

6. A method for adjusting location information, applied to a first electronic device, characterized in that: include: Determining that a first trigger condition is satisfied; The first trigger condition is used to trigger detection of a relative position relationship between the first electronic device and the second electronic device; Sending a first instruction, wherein the first instruction is used to enable a first sound wave transmitter to send a first sound wave signal; sending a second instruction, wherein the second instruction is used to enable a second sound wave transmitter to send a second sound wave signal; the first sound wave signal and the second sound wave signal have different amplitudes and / or frequencies; the first sound wave transmitter and the second sound wave transmitter are arranged in the first electronic device; receiving second position information sent by the second electronic device, the second position information being used to describe: the position of the second electronic device relative to the first electronic device from the direction in which the user views the display screen of the second electronic device; the second position information being determined by the second electronic device according to the first reception start time, the second reception start time, and the first position information, the first reception start time being the start time at which the first sound wave receiver receives the first sound wave signal, the second reception start time being the start time at which the first sound wave receiver receives the second sound wave signal, the first position information being used to describe: based on the angle at which the user views the first electronic device, the first sound wave transmitter is located on the left side of the second sound wave transmitter, and the first sound wave receiver is disposed in the second electronic device; The third location information is updated using the second location information; the third location information is used to describe: the position of the second electronic device relative to the first electronic device from the direction from which the user views the display screen of the first electronic device.

7. The method according to claim 8, characterized in that The determining that the first trigger condition is satisfied includes: receiving a first message sent by the second electronic device, where the first message is a confirmation message for the collaborative display request sent by the first electronic device; or An interface conversion operation for a display element is received in a collaborative display state; or In the collaborative display state, determining that the first electronic device moves based on the received movement data; or, receiving a position information adjustment request sent by the second electronic device in the collaborative display state, the position information adjustment request being sent after the second electronic device detects that the second electronic device has moved; or In the collaborative display state, the triggering moment for detecting the relative position relationship is determined according to a preset period.

8. The method according to claim 6 or 7, characterized in that: Before using the second location information to update the third location information, the method further includes: Determining whether the second location information is consistent with the third location information; If the result of the judgment is inconsistency, the step of using the second location information to update the third location information is performed.

9. A method for adjusting location information, applied to a second electronic device, characterized in that: include: Sending a third instruction, wherein the third instruction is used to start a first sound wave receiver so that the first sound wave receiver receives a first sound wave signal and a second sound wave signal, wherein the first sound wave receiver is disposed in the second electronic device; The first sound wave signal is sent by the first electronic device using a first sound wave transmitter after the first electronic device determines that a first trigger condition is satisfied, and the second sound wave signal is sent by the first electronic device using a second sound wave transmitter after the first electronic device determines that a first trigger condition is satisfied, and the first trigger condition is used to trigger the detection of the relative position relationship between the first electronic device and the second electronic device; the first sound wave signal and the second sound wave signal have different amplitudes and / or frequencies; the first sound wave transmitter and the second sound wave transmitter are arranged in the first electronic device; Calculate a first receiving start time and a second receiving start time; the first receiving start time is the start time when the first sound wave receiver receives the first sound wave signal, and the second receiving start time is the start time when the first sound wave receiver receives the second sound wave signal; Determine whether the time difference between the first receiving start time and the second receiving start time is less than a preset first threshold, and if the determination result is not less than the first threshold, perform the following steps: Acquire first position information, and determine second position information according to the first receiving start time, the second receiving start time, and the first position information; the first position information is used to describe that: based on the angle at which a user views the first electronic device, the first sound wave transmitter is located on the left side of the second sound wave transmitter; the second position information is used to describe: based on the angle at which a user views a display screen of the second electronic device, a left-right relative position relationship between the first electronic device and the second electronic device; The determining of the second location information specifically includes: If the result of the determination is that the first receiving start time is earlier than the second receiving start time, the second position information is: based on the angle at which the user views the display screen of the second electronic device, the second electronic device is located on the left side of the first electronic device; If the result of the determination is that the first receiving start time is later than the second receiving start time, the second position information is: based on the angle at which the user views the display screen of the second electronic device, the second electronic device is located on the right side of the first electronic device; The second location information is sent to the first electronic device, and the third location information is updated using the second location information; the third location information is used to describe: the position of the second electronic device relative to the first electronic device from the direction from which the user views the display screen of the first electronic device.

10. The method according to claim 9, characterized in that Also includes: The first sound wave signal and the second sound wave signal are sent at the same time.

11. The method according to claim 9 or 10, characterized in that: When there are multiple second electronic devices and the second location information of at least two of the second electronic devices is the same, the third location information is determined according to the start time of receiving the first sound wave signal or the start time of receiving the second sound wave signal by the at least two second electronic devices with the same second location information.

12. An electronic device, comprising a first electronic device executing the method as claimed in any one of claims 6, 7, and 8, or comprising a second electronic device executing the method as claimed in any one of claims 9, 10, and 11.

13. A chip system, characterized in that: Execute the method according to any one of claims 8 to 21.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed on a computer, enables the computer to execute the method according to any one of claims 8 to 21.

Citation Information

Cited By

  • Angle determining method, electronic device, and chip system

    US12399002B2

  • Angle Determining Method, Electronic Device, and Chip System

    US20230366676A1