Patent ID: 11921968
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G  H | IPC G

Claim 13:
14. A first electronic device, comprising:
a processor; and
a non-transitory memory, wherein the a non-transitory memory stores one or more instructions, and when the one or more instructions are executed by the processor, the first electronic device is enabled to perform the following:
obtaining an acceleration in a direction of a first axis, an acceleration in a direction of a second axis, and an acceleration in a direction of third axis, wherein the first axis is parallel to a long side of the first electronic device, the second axis is parallel to a short side of the first electronic device, and the third axis is perpendicular to a plane in which the first axis and the second axis extend;
in a motion process in which a user holds the first electronic device to move from a first location as a start location to a second location, determining as follows:
the acceleration in the direction of the first axis is greater than or equal to a first threshold, or a duration in which the acceleration in the direction of the first axis is greater than or equal to the first threshold is greater than or equal to a first preset duration;
the acceleration in the direction of the second axis is less than or equal to a second threshold; and
the acceleration in the direction of the third axis is less than or equal to a third threshold;

detecting that at the second location, the first axis of the first electronic device intersects with a second electronic device, or the first axis of the first electronic device intersects with a second electronic device within a preset precision range;
receiving login account information and device information of the second electronic device that are sent by the second electronic device; and
displaying a first window based on the login account information and the device information of the second electronic device, wherein the first window displays an interface usable for controlling the second electronic device.