WO2022028290A1 - 基于指向操作的设备之间的交互方法及电子设备 - Google Patents

基于指向操作的设备之间的交互方法及电子设备 Download PDF

Info

Publication number
WO2022028290A1
WO2022028290A1 PCT/CN2021/108941 CN2021108941W WO2022028290A1 WO 2022028290 A1 WO2022028290 A1 WO 2022028290A1 CN 2021108941 W CN2021108941 W CN 2021108941W WO 2022028290 A1 WO2022028290 A1 WO 2022028290A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
axis
user
acceleration
positioning
Prior art date
Application number
PCT/CN2021/108941
Other languages
English (en)
French (fr)
Inventor
徐杰
龙嘉裕
杨桐
唐建中
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to US18/040,471 priority Critical patent/US11921968B2/en
Priority to EP21854586.1A priority patent/EP4184321A4/en
Publication of WO2022028290A1 publication Critical patent/WO2022028290A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1626Constructional details or arrangements for portable computers with a single-body enclosure integrating a flat display, e.g. Personal Digital Assistants [PDAs]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • G06F1/1694Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being a single or a set of motion sensors for pointer control or gesture input obtained by sensing movements of the portable computer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/016Input arrangements with force or tactile feedback as computer generated output to the user
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/017Gesture based interaction, e.g. based on a set of recognized hand gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72415User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration

Definitions

  • the present application relates to the field of electronic technologies, and in particular, to an interaction method between devices based on pointing operation and an electronic device.
  • each user may have different types of electronic devices such as smartphones, personal computers, smart TVs, tablets and speakers.
  • users may also have a variety of home equipment such as smart audio-visual equipment, routers, wireless fidelity (WIFI) boxes, smart cleaning equipment, smart kitchen appliances, and smart lighting systems.
  • WIFI wireless fidelity
  • the user In the process of interconnecting and interacting with multiple devices, the user is often required to select one or more specific target devices, and then perform different operations on the selected target devices, such as device discovery, pairing, data transmission, and screen projection. This process is cumbersome to operate, has many interactive processes, and has poor user experience.
  • the present application provides an interaction method and electronic device between devices based on pointing operation.
  • the method helps a user to select and control a remote device according to a user's pointing operation, simplifies the process of interactive operation between the devices, and improves the performance of the device. user experience.
  • an interaction method between devices comprising: acquiring the acceleration of the first electronic device in the direction of the first axis, the acceleration on the second axis and the third acceleration on an axis, wherein the first axis is parallel to the long side of the first electronic device, the second axis is parallel to the short side of the first electronic device, and the third axis is perpendicular to the first axis and the third axis
  • the plane determined by the two axes determine that the acceleration in the direction of the first axis is greater than or equal to the first threshold or the The duration of the acceleration in an axis direction is greater than or equal to the first threshold is greater than or equal to the first preset duration, the acceleration in the second axis direction is less than or equal to the second threshold, the acceleration in the third axis direction is less than or equal to equal to a third threshold; detecting that at the second position, the first axis of the first electronic device and the second electronic device intersect,
  • the pointing operation of the user can be described as a pointing operation in which the user holds the first electronic device and moves from the first position to the second position, and at the second position, the long side of the first electronic device is located.
  • the axis intersects or approximately intersects with one or more other devices.
  • the intersection here can be understood as the existence of other devices in the direction pointed by the user; approximate intersection can be understood as the existence of other devices within the preset precision range in the direction pointed by the user, both of which can be understood as the detection of the user's pointing operation.
  • the coordinate system O-XYZ is established on the first electronic device.
  • the coordinate system O-XYZ takes the center of gravity of the first electronic device as the coordinate origin O, and the straight line where the long frame of the first electronic device passes through the coordinate origin O is the Y axis, that is, the first axis; the short frame of the first electronic device
  • the straight line is the X axis, that is, the second axis; the line perpendicular to the ground or the XOY plane is the Z axis, that is, the third axis.
  • the axis of the first electronic device is related to the antenna layout of the first electronic device.
  • the antenna is arranged at the front frame of the first electronic device, the user can point the axis of the long side to the second electronic device, or when the antenna is arranged inside the casing of the first electronic device, the user can also point the When an electronic device stands up, the normal line perpendicular to the display screen of the first electronic device is used as the axis, so that the axis where the normal line is located points to the second electronic device, which is not limited in this embodiment of the present application.
  • the pointing operation of the user may be recognized by means of one or more sensors of the first electronic device, or a camera of the first electronic device, or the like.
  • the pointing operation of the user may be referred to as a "pointing and one-fingering operation".
  • the sensor of the first electronic device may include an acceleration sensor, a gyroscope, a magnetometer (magnetometer sensor, M-sensor), an inertial measurement unit (inertial measurement unit, IMU) and the like.
  • the camera of the first electronic device is not limited to the front camera or the rear camera of the first electronic device; or, the camera of the first electronic device is not limited to one or more of the main camera, wide-angle camera, and telephoto camera of the first electronic device.
  • the pointing operation of the user is identified according to the picture obtained by the camera, which is not limited in this embodiment of the present application.
  • acquiring the acceleration of the first electronic device in the direction of the first axis, the acceleration on the second axis, and the acceleration on the third axis includes: based on an acceleration sensor , one or more of an inertial detection unit IMU and a gyroscope to acquire the acceleration in the direction of the first axis, the acceleration on the second axis and the acceleration on the third axis.
  • the acceleration sensor of the first electronic device detects that the acceleration of the first electronic device along the line where the Y axis is located is greater than or is equal to the first preset threshold a A .
  • the acceleration of the line where the X axis and the Z axis of the first electronic device are located are less than or equal to the second preset threshold a B .
  • the acceleration of the first electronic device in different directions may be detected by the IMU of the first electronic device.
  • the acceleration of the first electronic device in different directions may be detected based on the image captured by the front camera of the first electronic device and the always-on optical flow algorithm.
  • the adjacent frames in the picture are acquired by using the front camera of the first electronic device, wherein the two-dimensional vector field of the feature points in the adjacent frames during the translation process is the velocity field representing the three-dimensional motion of the object points through the two-dimensional image. .
  • the image changes formed by the motion of the object point within a certain time interval can be reflected to determine the motion direction and motion rate of the object point on the image, and then determine the motion of the first electronic device. Whether the trajectory is a straight line or a straight line.
  • the first electronic device can guide the user to perform the correct pointing through different methods such as guiding icons, sound feedback, and vibration feedback. operation, so as to realize the control of the second electronic device through the pointing operation provided by the embodiment of the present application.
  • the sound feedback may be issued by the first electronic device, or issued by the pointed second electronic device, for example, the first electronic device prompts the user "please move to the right" in a voice manner.
  • the vibration feedback may be sent by the first electronic device, so as to be sensed by the user more quickly and sensitively. It should be understood that this is not limited in this embodiment of the present application.
  • feedback may also be provided on the first electronic device or the pointed second electronic device, where the feedback is used to inform the user that the pointing operation is successful.
  • the feedback information may include one or more of visual feedback, sound feedback, and vibration feedback.
  • the first electronic device may vibrate to inform the user that the pointing operation is completed.
  • the second electronic device can transmit the currently logged-in account information and device information to the first electronic device, and then display the second electronic device on the first electronic device.
  • Device Control window
  • the second electronic device pointed by the user can be determined.
  • Electronic equipment Specifically, when it is recognized that the axis of the first electronic device substantially intersects the physical position of the second electronic device with a certain predetermined precision, or when it is recognized that the first electronic device is aligned with the second electronic device, the second electronic device pointed by the user can be determined.
  • device that is, it can provide feedback on the first electronic device or the pointed second electronic device, transmit the login account information and device information of the second electronic device to the first electronic device, and display the first electronic device on the first electronic device.
  • Two electronic device control windows or interfaces related to the second electronic device.
  • a user can use a first electronic device to point to a second electronic device, based on the acceleration sensor, gyroscope, IMU, etc. of the first electronic device
  • One or more sensors and/or cameras detect the pointing operation of the user, and trigger the wireless positioning function of the first electronic device.
  • the first electronic device determines the distance between the first electronic device and other devices, and the location and direction of the other devices according to the wireless positioning function.
  • Visual feedback, audio feedback, At least one kind of feedback such as vibration and transmit the login account information and device information of the second electronic device to the first electronic device, and display the control window of the second electronic device on the first electronic device.
  • the control window on the control window realizes the control of the second electronic device.
  • at least one guiding manner such as visual guidance, sound guidance, vibration, etc. may also be provided on the first electronic device and/or the second electronic device , so as to guide the user to perform the correct pointing operation, and further realize the display of the control window of the second electronic device on the first electronic device and the control function of the second electronic device.
  • the method further includes: capturing a picture during the movement through a camera of the first electronic device; determining that the first electronic device is in the first electronic device The picture collected at one position includes the user's face feature information, and the picture collected at the second position does not include the user's face feature information.
  • the first electronic device may detect that the first electronic device is far away from the user's body or away from the user's body through the image acquired by the camera.
  • the camera of the first electronic device may acquire images in real time, and perform facial feature detection according to the acquired images.
  • the first electronic device first detects the face information in the acquired image, and determines that it is in a state close to the user's body; and then does not detect the human face information in the acquired image, and determines that it is far from the user's body. state.
  • the first electronic device gradually changes from being close to the user's body to being away from the user's body.
  • the method further includes: collecting the magnetic induction intensity during the movement through the magnetometer of the first electronic device; determining that the first electronic device is in the The magnetic induction intensity collected at the first position is greater than or equal to a fourth threshold, the magnetic induction intensity collected at the second position is less than or equal to a fifth threshold, and the fourth threshold is greater than the fifth threshold.
  • the first electronic device may detect away from the user's body or close to the user's body through a magnetometer. Since the human body itself is a magnetic field, when the first electronic device is far away from the human body or close to the human body, the intensity of the magnetic field detected by the magnetometer will change significantly. Therefore, according to the magnetic field strength detected by the magnetometer, it can be determined that the first electronic device is in a state away from the user's body or close to the user's body.
  • the method further includes: determining that the duration of the hovering of the first electronic device at the second position is greater than or equal to a second preset duration .
  • the IMU of the first electronic device detects that the first electronic device accelerates and stops, and the hovering time of the first electronic device reaches the second preset duration t dwell , it can be determined that the user points to the second electronic device.
  • the first electronic device is then triggered to determine the location of the device pointed by the user through the wireless positioning technology. This process can combine data collected by multiple sensors to more accurately determine that the user has performed a pointing operation.
  • the method when the acceleration in the first axis direction is greater than or equal to the first threshold, the method further includes: displaying first prompt information, the The first prompt information is used to guide the user to continue to accelerate along the direction of the first axis, and the first prompt information includes one or more of text, icon, sound and vibration.
  • this embodiment of the present application does not limit the prompting method of any of the above prompt information (the aforementioned first prompt information, second prompt information, third prompt information, fourth prompt information, etc.) visual or non-visual prompts, such as different interface prompts, vibration, indicator lights, voice and other prompt methods.
  • prompt information may be displayed on the first electronic device, and the prompt information is used to guide the user to perform a correct pointing operation to The control of the second electronic device through the pointing operation provided by the embodiment of the present application is realized.
  • the prompt information can be displayed through a window displayed on the first electronic device, or displayed on the first electronic device in the form of an icon, or in other visual guidance methods such as arrows, to guide the user to perform the correct pointing operation. , so as to realize the control of the second electronic device through the pointing operation provided by the embodiment of the present application.
  • the display positions of the arrows or icons may be changed according to different positions of the user currently.
  • the method further includes: displaying second prompt information, where the second prompt information is used to prompt the user that the acceleration duration in the direction of the first axis reaches the first preset duration, and the second prompt information includes text, icons, and sounds. and one or more of vibrations.
  • the method when the duration of the hovering of the first electronic device at the second position is greater than or equal to a second preset duration, the method further includes : Displays third prompt information, the third prompt information is used to instruct the first electronic device to detect whether the first axis intersects the second electronic device at the second position, and the third prompt information includes text and icons , one or more of sound and vibration.
  • the method further includes: displaying fourth prompt information, where the fourth prompt information is used to indicate that the first electronic device points to the second electronic device
  • the fourth prompt information includes one or more of text, icon, sound and vibration.
  • the embodiment of the present application may trigger the first electronic device to detect the pointing operation of the user in a preset scenario, and the preset scenario includes: The first electronic device is in a bright screen state; and/or, the first electronic device is in an unlocked state; and/or, the first electronic device is displayed as a main interface; There is a certain angle between the normal direction and the ground. Wherein, a certain angle between the discovery direction of the display screen of the first electronic device and the ground can be understood as the normal direction of the display screen is not perpendicular to the ground.
  • the first electronic device when the IMU of the first electronic device detects that the first electronic device accelerates and stops, and when the hovering time of the first electronic device reaches the second preset duration t dwell , the first electronic device can The device displays third prompt information, the third prompt information is used to prompt the second electronic device to which the user is pointed, and when at least two devices are detected in the direction pointed by the user, the third prompt information can display the at least two devices for the user Information. The user can select the second electronic device from there.
  • fourth prompt information may also appear on the pointed device at this time, for prompting the user to point to the correct pointing operation of the device.
  • a pop-up window may appear on the smart screen, and the pop-up window includes fourth prompt information for instructing the user to control the smart screen. The correct pointing operation that the smart screen needs to perform.
  • the guidance and feedback of the pointing operation are performed on the first electronic device and the pointed second electronic device through the visual and non-visual prompting methods above, which improves the success rate of the pointing operation and improves the user experience.
  • the first electronic device can recognize whether the user has performed a pointing operation only when one preset scenario or multiple scenarios are satisfied at the same time. Identify whether the user has performed a pointing operation, or identify whether the user has performed a pointing operation only when the first electronic device is displayed as the main interface, or limit the first electronic device to be in a bright screen state and an unlocked state at the same time and display the first electronic device. Whether the user has performed a pointing operation is only recognized when the user performs the pointing operation on the main interface.
  • the setting of the preset scene can increase the accuracy of identifying the pointing operation of the user, and avoid detection in possible scenarios such as the user just handing the first electronic device to others, thereby reducing the detection rate. The false touch rate improves the user experience.
  • the first aspect it is detected that at the second position, the first axis of the first electronic device and the second electronic device intersect, or the first electronic device
  • the first axis of the device and the second electronic device approximately intersect within a preset accuracy range, including: detecting, according to the positioning device, that the first axis of the first electronic device and the second electronic device intersect at the second position , or the first axis of the first electronic device and the second electronic device approximately intersect within a preset accuracy range, wherein the positioning device is an independently installed positioning sensor, or the positioning device is installed on the first electronic device
  • the positioning chip includes any one of a Bluetooth positioning chip, an ultra-wideband UWB positioning chip, and a wireless fidelity WIFI positioning chip.
  • At least three fixed positioning devices can be installed, and it is ensured that the three positioning devices are in a power-on working state, and the at least three positioning devices can communicate with the user's first electronic device. to communicate.
  • the positioning device may be a sensor with a positioning function or a structure with a positioning function
  • the sensor may be a laser sensor, an infrared sensor, etc.
  • the structure with a positioning function may be a positioning chip.
  • the structure with the positioning function may be a Bluetooth positioning chip, an ultra-wideband UWB positioning chip, a wireless fidelity WIFI positioning chip, and the like.
  • the positioning device may also be installed on devices such as smart TVs (smart screens), air conditioners, speakers, and routers in the home scene.
  • devices such as smart TVs (smart screens), air conditioners, speakers, and routers in the home scene.
  • devices such as smart screens, air conditioners, speakers, etc. have UWB chips themselves, in the home scenario, there is no need to additionally lay out at least three fixed positioning devices, and the first electronic device and smart screens, air conditioners, speakers, etc.
  • the interaction between devices realizes the positioning function of any device in the home scene.
  • For the specific positioning algorithm please refer to the process introduced later. It should be understood that the embodiments of the present application do not limit the quantity and implementation form of the positioning devices.
  • the first electronic device can detect the second electronic device pointed by the user through three positioning devices arranged in the home scene, or the first electronic device can detect the second electronic device pointed by the user through the positioning chip
  • the second electronic device can be controlled by the user's first electronic device.
  • the method when the first axis of the first electronic device intersects or approximately intersects with one or more of the second electronic devices, the method further Including: displaying a second window, the second window includes the information of the one or more second electronic devices; in the second window, detecting a first operation; in response to the first operation, the first electronic device displays the first window.
  • the first electronic device may recognize multiple devices pointed by the user, or when the user wishes to control the multiple nearby devices, it may display the information of the multiple devices for the user.
  • the method further includes: in the first window, detecting a second operation; in response to the second operation, the first electronic device sends The second electronic device sends a control command, and the control command is used to control the behavior of the second electronic device.
  • the second threshold is equal to the third threshold.
  • a first electronic device including: a processor and a memory, where the memory stores one or more instructions, when the one or more instructions are executed by the processor, the electronic device is made to execute the following Step: acquiring the acceleration in the direction of the first axis, the acceleration on the second axis and the acceleration on the third axis, wherein the first axis is parallel to the long side of the first electronic device, and the second axis is parallel to the The short side of the first electronic device, the third axis is perpendicular to the plane defined by the first axis and the second axis; it is determined that the user holds the first electronic device and moves from the first position to the second position with the first position as the starting position.
  • the acceleration in the direction of the first axis is greater than or equal to the first threshold or the duration of the acceleration in the direction of the first axis is greater than or equal to the first threshold is greater than or equal to the first preset duration, the second axis
  • the acceleration in the direction is less than or equal to the second threshold, and the acceleration in the direction of the third axis is less than or equal to the third threshold; it is detected that at the second position, the first axis of the first electronic device and the second electronic device intersect , or the first axis of the first electronic device and the second electronic device approximately intersect within a preset accuracy range; receive the account information and device information logged in by the second electronic device sent by the second electronic device; The account information and device information logged in by the second electronic device displays a first window, where the first window displays an interface for controlling the second electronic device.
  • the electronic device when the one or more instructions are executed by the processor, the electronic device is caused to perform the following steps: based on the acceleration sensor, the inertial detection unit IMU, the gyroscope One or more of , the acceleration in the direction of the first axis, the acceleration in the second axis and the acceleration in the third axis are obtained.
  • the electronic device when the one or more instructions are executed by the processor, the electronic device is caused to perform the following steps: through the camera of the first electronic device Collecting a picture during the movement; determining that the picture collected at the first position includes the user's face feature information, and the picture collected at the second position does not include the user's face feature information.
  • the electronic device when the one or more instructions are executed by the processor, the electronic device is caused to perform the following steps: by the magnetic force of the first electronic device The magnetic induction intensity during the movement is collected by the meter; it is determined that the magnetic induction intensity collected at the first position is greater than or equal to the fourth threshold, the magnetic induction intensity collected at the second position is less than or equal to the fifth threshold, and the fourth The threshold is greater than the fifth threshold.
  • the electronic device when the one or more instructions are executed by the processor, the electronic device is caused to perform the following steps: determining that the first electronic device is in the The duration of hovering at the second position is greater than or equal to the second preset duration.
  • the electronic device when the acceleration in the first axis direction is greater than or equal to the first threshold, when the one or more instructions are executed by the processor , the electronic device is further configured to perform the following steps: display first prompt information, the first prompt information is used to guide the user to continue to accelerate along the direction of the first axis, the first prompt information includes text, icons, sounds and vibrations one or more of.
  • the electronic device when the acceleration in the first axis direction is greater than or equal to the first threshold for a duration greater than or equal to the first preset duration, the electronic device is further configured to perform the following step: displaying second prompt information, where the second prompt information is used to prompt the user that the acceleration time in the direction of the first axis reaches The first preset duration, and the second prompt information include one or more of text, icon, sound and vibration.
  • the electronic device when the duration of the hovering of the first electronic device at the second position is greater than or equal to the second preset duration, the one or more When each instruction is executed by the processor, the electronic device is further configured to perform the following steps: display third prompt information, the third prompt information is used to instruct the first electronic device to detect that at the second position, the first axis Whether it intersects with the second electronic device, the third prompt information includes one or more of text, icon, sound and vibration.
  • the electronic device when the one or more instructions are executed by the processor, the electronic device is caused to perform the following steps: displaying fourth prompt information, the first Four prompt information is used to indicate that the first electronic device points to the second electronic device, and the fourth prompt information includes one or more of text, icon, sound and vibration.
  • the electronic device when the one or more instructions are executed by the processor, the electronic device is caused to perform the following steps: At two positions, the first axis of the first electronic device and the second electronic device intersect, or the first axis of the first electronic device and the second electronic device approximately intersect within a preset accuracy range, wherein the positioning The device is an independently installed positioning sensor, or, the positioning device is a positioning chip installed on the first electronic device and the second electronic device, and the positioning chip includes a Bluetooth positioning chip, an ultra-wideband UWB positioning chip, and a wireless fidelity WIFI. Any one of the positioning chips.
  • the electronic device when the first axis of the first electronic device intersects or approximately intersects one or more of the second electronic devices, the one or When multiple instructions are executed by the processor, the electronic device is further configured to perform the following steps: display a second window, the second window includes the information of the one or more second electronic devices; in the second window, A first operation is detected; in response to the first operation, the first electronic device displays the first window.
  • the electronic device when the one or more instructions are executed by the processor, the electronic device is caused to perform the following steps: in the first window, detecting A second operation; in response to the second operation, the first electronic device sends a control instruction to the second electronic device, where the control instruction is used to control the behavior of the second electronic device.
  • the second threshold is equal to the third threshold.
  • the present application provides an apparatus, the apparatus is included in an electronic device, and the apparatus has a function of implementing the behavior of the electronic device in the above-mentioned aspect and possible implementations of the above-mentioned aspect.
  • the functions can be implemented by hardware, or by executing corresponding software by hardware.
  • the hardware or software includes one or more modules or units corresponding to the above functions. For example, a display module or unit, a detection module or unit, a processing module or unit, and the like.
  • the present application provides an electronic device, comprising: a touch display screen, wherein the touch display screen includes a touch-sensitive surface and a display; a positioning chip; one or more cameras; one or more processors; a plurality of memory; a plurality of application programs; and one or more computer programs.
  • one or more computer programs are stored in the memory, the one or more computer programs comprising instructions. When executed by one or more processors, the instructions cause the electronic device to perform the pointing operation-based interaction method between devices in any possible implementation of any of the above aspects.
  • the present application provides an electronic device including one or more processors and one or more memories.
  • the one or more memories are coupled to the one or more processors for storing computer program code, the computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform An interaction method between devices based on a pointing operation in any possible implementation of any of the above aspects.
  • the present application provides a computer storage medium, including computer instructions, which, when the computer instructions are executed on an electronic device, enable the electronic device to perform any one of the above-mentioned point-to-device interaction methods.
  • the present application provides a computer program product that, when the computer program product runs on an electronic device, enables the electronic device to perform any one of the above-mentioned point-to-device interaction methods.
  • FIG. 1 is a schematic structural diagram of an example of an electronic device provided by an embodiment of the present application.
  • FIG. 2 is a block diagram of a software structure of an example of an electronic device according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a graphical user interface of an example of device interconnection according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a graphical user interface of another example of device interconnection according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of an example of a graphical user interface for enabling a quick interaction function between devices according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of an example of installation of a positioning device provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of an example of establishing a connection between a handheld device and a positioning device according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of an example of determining the location of a device in a home scene provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of an example of setting devices in a home scenario provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of an example of a user pointing to a speaker according to an embodiment of the present application.
  • FIG. 11 is a schematic diagram of an example of a user pointing to a speaker according to an embodiment of the present application.
  • FIG. 12 is a schematic diagram of an example of a user controlling a speaker through a handheld device according to an embodiment of the present application.
  • FIG. 13 is a schematic diagram of an example of a user pointing to a smart screen according to an embodiment of the present application.
  • FIG. 14 is a schematic diagram of an example of a user controlling a smart screen through a handheld device according to an embodiment of the present application.
  • FIG. 15 is a schematic diagram of an example of a user pointing at an air conditioner according to an embodiment of the present application.
  • FIG. 16 is a schematic diagram of an example of a user controlling an air conditioner through a handheld device according to an embodiment of the present application.
  • FIG. 17 is a schematic diagram of another example of a user controlling a speaker through a handheld device according to an embodiment of the present application.
  • FIG. 18 is a schematic diagram of another example of a user controlling a speaker through a handheld device according to an embodiment of the present application.
  • FIG. 19 is a schematic flowchart of an example of an interaction method between devices based on a pointing operation provided by an embodiment of the present application.
  • first and second are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implicitly indicating the number of indicated technical features.
  • a feature defined as “first” or “second” may expressly or implicitly include one or more of that feature.
  • the methods provided in the embodiments of the present application can be applied to mobile phones, tablet computers, wearable devices, in-vehicle devices, augmented reality (AR)/virtual reality (VR) devices, notebook computers, ultra-mobile personal computers (ultra mobile personal computers) -mobile personal computer, UMPC), netbook, personal digital assistant (personal digital assistant, PDA) and other electronic devices, the embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
  • AR augmented reality
  • VR virtual reality
  • notebook computers notebook computers
  • netbook personal digital assistant
  • PDA personal digital assistant
  • FIG. 1 shows a schematic structural diagram of an electronic device 100 .
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
  • SIM Subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • graphics processor graphics processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may contain multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate with each other through the I2C bus interface, so as to realize the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • the processor 110 may contain multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is typically used to connect the processor 110 with the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
  • the processor 110 communicates with the camera 193 through a CSI interface, so as to realize the photographing function of the electronic device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the electronic device 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
  • the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones.
  • the interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140 and supplies power to the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 194 is used to display images, videos, and the like.
  • Display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the electronic device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
  • the electronic device 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
  • the ISP is used to process the data fed back by the camera 193 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy and so on.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos of various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG Moving Picture Experts Group
  • MPEG2 moving picture experts group
  • MPEG3 MPEG4
  • MPEG4 Moving Picture Experts Group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100 .
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing the instructions stored in the internal memory 121 .
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 100 and the like.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be answered by placing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the earphone jack 170D is used to connect wired earphones.
  • the earphone interface 170D may be the USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • the pressure sensor 180A may be provided on the display screen 194 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the motion attitude of the electronic device 100 .
  • the angular velocity of electronic device 100 about three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse motion to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the electronic device 100 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 100 emits infrared light to the outside through the light emitting diode.
  • Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking pictures with fingerprints, answering incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect the temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by the low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the location where the display screen 194 is located.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal.
  • the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
  • the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
  • the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
  • Motor 191 can generate vibrating cues.
  • the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • touch operations on different areas of the display screen 194 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be contacted and separated from the electronic device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 100 employs an eSIM, ie: an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiments of the present application take an Android system with a layered architecture as an example to exemplarily describe the software structure of the electronic device 100 .
  • FIG. 2 is a block diagram of a software structure of an example of the electronic device 100 according to the embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as camera, music, settings, Bluetooth, search, and smart life.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions. As shown in Figure 2, the application framework layer may include window managers, content providers, view systems, telephony managers, resource managers, notification managers, and the like.
  • a window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.
  • Content providers are used to store and retrieve data and make these data accessible to applications.
  • the data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
  • a display interface can consist of one or more views. For example, including the display of the icon of the camera application on the mobile phone interface, may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide the communication function of the electronic device 100 .
  • the management of call status including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
  • the notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also display notifications in the status bar at the top of the system in the form of a graphic or scroll bar text, such as notifications from applications running in the background, or on-screen notifications in the form of a dialog window. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device vibrates, and the indicator light flashes.
  • the Android runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
  • the core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
  • a system library can include multiple functional modules. For example: surface manager (surface manager), media library (media library), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • the Surface Manager manages the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • a 2D graphics engine is a drawing engine for 2D drawing.
  • the image processing library can provide analysis of various image data and provide a variety of image processing algorithms, such as image cutting, image fusion, image blurring, image sharpening and other processing, which will not be repeated here.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
  • FIG. 3 is a schematic diagram of a graphical user interface (graphical user interface, GUI) of an example of device interconnection.
  • the user can discover other electronic devices and establish a connection with the target electronic device through the process shown in FIG. 3 .
  • 3 (a) shows the main interface 301 currently displayed by the mobile phone in the unlocking mode, and the main interface 301 displays a variety of applications (application, App), such as music, camera, settings and smart life and other applications.
  • application, App applications
  • the main interface 301 may also include other more application programs, which are not limited in this embodiment of the present application.
  • the control center interface 302 shown in (b) of FIG. 3 may include various control menus or control options, such as "Airplay mirroring", “Airdrop reception off”, “wireless local area networks (WLAN)", “mute”, “auto-rotate”, “ “Camera” and other different control menus or control options, which are not limited in this embodiment of the present application.
  • the user can perform the operation as shown in (b) in FIG. 3 , click the “Airplay mirroring” option on the control center interface 302, and in response to the user’s click operation, the mobile phone enters ( c) Airplay mirroring details interface 303 shown in the figure.
  • Airplay mirroring details interface 303 On the Airplay mirroring details interface 303, a list of devices discovered by the mobile phone can be displayed. It should be understood that the device list may include electronic devices that have been connected to the mobile phone before, or electronic devices registered based on the same user account, or electronic devices that are connected to the same network, or the current device scans and discovers. Electronic devices, etc., are not limited in this embodiment of the present application.
  • the control center interface 403 may include various menus or buttons for controlling the smart TV, such as an exit connection switch, a playback progress bar, a pause button, a selection button, etc. The buttons are used to control the smart TV in the home scene.
  • devices that can be controlled by the mobile phone are displayed in a list by performing device discovery and selection of multiple devices on the mobile phone, and the user can select a certain device in the list and perform corresponding control as required.
  • the user can identify the device according to the device's icon, device name, etc., and select a target device from multiple devices in combination with scrolling operations.
  • the arrangement order of the devices in the device list is related to the signal strength of the device. When the signal is unstable or the location of the user changes, the arrangement order of the devices in the device list may change.
  • Swiping multiple times to find the target device increases the user's operating cost; in addition, since the mobile phone system cannot perceive the target device the user expects to select, it can only display all the scanned devices to the user, which also increases the user's operating cost. and the time for selecting the target device; in addition, when the user selects the target device from the device list, misoperations such as accidental touch are prone to occur.
  • FIG. 4 is a schematic diagram of a graphical user interface of another example of device interconnection.
  • the user can also discover other electronic devices and establish a connection with the target electronic device through the process shown in FIG. 4 .
  • 4 (a) shows the main interface 401 currently displayed by the mobile phone in the unlocking mode, the main interface 401 displays a variety of applications (application, App), such as music, camera, settings and search, etc. application.
  • applications application, App
  • the locations of multiple devices can be displayed in the form of a map.
  • the mobile phone can find device 1, device 2, device 3, and device 4. and device 5 and display each device's location label, which is used to mark the location of each device.
  • the user can further control the target device by clicking on the location label of the target device to establish a connection with the target device, or display the control center interface of the target device.
  • the map In the process of displaying multiple devices by finding the map of the application, the map needs to occupy most of the screen of the mobile phone, so the display area of the device list becomes smaller in comparison, and fewer electronic devices can be displayed.
  • the positions of multiple devices when the distance between the devices is close, the positions of multiple devices will overlap, and the user will easily touch other devices by mistake when clicking on the target device; or the process needs to perform complex interactive operations such as zooming, dragging, etc.
  • Auxiliary operation to select the target device increases the user's operating cost and time for selecting the target device.
  • the user may also contact the two devices at the place where the NFC patch is attached by means of near field communication (NFC), so as to realize the discovery and selection of the device.
  • NFC near field communication
  • the user needs to bring the mobile phone close to the target device, and discover and select between devices by physically touching a specific area, but not all devices support the NFC function, and it is required that the mobile phone and the target device must display the NFC patch on the appearance of the device. , which affects the appearance of the device to a certain extent.
  • the existing processes of device discovery, device connection or control between devices all require the user to perform complex interactive operations, which increases the user's operating cost and time for selecting a target device.
  • the embodiments of the present application will provide a fast device interaction method, which realizes discovery, connection, or control between devices and the like under the condition of reducing user operations.
  • the mobile phone will be used as the user's handheld device, or referred to as the "control device", to introduce how to control other electronic devices in the home scene through the mobile phone, or connect other electronic devices, which can be used to control other electronic devices.
  • Electronic devices are called "controlled devices".
  • the user's handheld device may be a mobile phone, tablet or other device with the structures shown in Figures 1 and 2, and the controlled devices may include smart TVs (smart screens), air conditioners, speakers, personal computers, routers, etc. No more examples here.
  • the following will take a mobile phone to control a smart TV (smart screen), an air conditioner, and a speaker in a home scenario as an example to describe in detail how to implement a control process between devices in the embodiments of the present application through shortcut gestures.
  • FIG. 5 is a schematic diagram of an example of a graphical user interface for enabling a quick interaction function between devices according to an embodiment of the present application.
  • 5(a) shows the main interface 501 currently displayed on the mobile phone in the unlocking mode. The user clicks the icon of the application setting on the main interface 501, and in response to the user's click operation, the mobile phone displays as shown in Fig. 5 (b) The main interface 502 of the setting application shown in the figure.
  • the interface 503 may further include a variety of submenus for realizing intelligent control of the mobile phone, such as travel assistant, one-hand operation, gesture control, smart screen recognition, holster operation, stylus operation and other submenus, the interface 503 It may also include switches with different functions such as the anti-mistouch mode. It should be understood that the embodiments of the present application do not limit the types and quantities of menus or switches displayed on the interface, and the functions of each menu or switch can be implemented with reference to the prior art. , which will not be repeated here.
  • a switch of "one-finger control function” may be added to the intelligent assistance and gesture control menu, and the user may perform the operation as shown in (c) in FIG.
  • the "one-finger control function” switch enables the quick interaction function between devices to be introduced in the embodiments of this application, that is, the interaction between the devices is controlled through a shortcut mobile phone.
  • the user can perform a pull-down operation from the top of the mobile phone on any interface of the mobile phone, and in response to the user's pull-down operation, the mobile phone displays the notification interface 302 as shown in (b) in FIG.
  • the notification interface 302 a "one-finger control function” switch is added, and the user can click the "one-finger control function” switch to enable the quick interaction function between devices.
  • the embodiment of the present application does not make any changes to the method of enabling the quick interaction function between devices. limited.
  • the user enables the function of realizing interaction between devices through shortcut gestures provided in the embodiment of the present application.
  • the mobile phone as the user's handheld device, also needs to realize the smart TV in the home scene. (Smart screen), air conditioners, speakers, routers and other devices for positioning, that is, the mobile phone needs to determine the location of each device, and then more accurately control it through shortcut gestures.
  • At least three fixed positioning devices are installed in the home scene, and it is ensured that the three positioning devices are powered on and can communicate with the user's handheld device.
  • the positioning device may be a sensor with a positioning function or a structure with a positioning function, etc.
  • the sensor may be a laser sensor, an infrared sensor, etc.
  • the structure with a positioning function may be a chip.
  • the structure with positioning function may be a positioning structure based on a Bluetooth module, a positioning chip based on an ultra wide-band (UWB) wireless perception capability, a positioning structure based on a global positioning system (GPS), Based on wireless fidelity (wireless fidelity, WIFI) module positioning structure and so on.
  • UWB ultra wide-band
  • GPS global positioning system
  • WIFI wireless fidelity
  • the positioning device may also be installed on devices such as smart TVs (smart screens), air conditioners, speakers, and routers in the home scene.
  • devices such as smart TVs (smart screens), air conditioners, speakers, and routers in the home scene.
  • devices such as smart screens, air conditioners, and speakers have UWB chips themselves, in the home scenario, there is no need to lay out at least 3 additional fixed positioning devices, so that devices such as smart screens, air conditioners, and speakers can pass between the mobile phone and smart screens, air conditioners, speakers, and other devices.
  • the interaction implements the positioning function of any device in the home scene.
  • For the specific positioning algorithm please refer to the process introduced later. It should be understood that the embodiments of the present application do not limit the quantity and implementation form of the positioning devices.
  • FIG. 6 is a schematic diagram of an example of installation of a positioning device provided by an embodiment of the present application. Specifically, taking the installation of three fixed positioning devices in a home scenario as an example, the installation rules for positioning devices are introduced.
  • the specific installation rules may include:
  • each positioning device can communicate with any device in the home scene, so that the mobile phone, as a handheld device, can communicate with each positioning device, and then the mobile phone can accurately locate the home scene. the location of each device.
  • FIG. 6 shows a wrong installation method, there is an obstacle between the positioning device 1 and the device A, which may cause the communication between the positioning device 1 and the device A, and thus cannot pass through.
  • the three positioning devices locate the device A in the home scene.
  • any device B in the home scene can communicate with the positioning device 1, the positioning device 2, and the positioning device 3 respectively, and the device B communicates with any one of them.
  • the minimum installation height H-min ensures that the height of each positioning device and the plane where the ground is located is greater than or equal to 2 meters, or referred to as the minimum installation height H-min.
  • the minimum installation height H-min can ensure that the three positioning devices have a larger coverage, and can locate any device in the home scene.
  • (c) in FIG. 6 shows a wrong installation method, the height H2 of the plane where the positioning device 2 and the ground are located, and the height H3 of the plane where the positioning device 3 and the ground are located are less than 2 meters, which may lead to As a result, the coverage of the three positioning devices is small, and it is impossible to locate any device in the home scene through the three positioning devices.
  • the positioning device as shown in (d) in Figure 6, make sure that the heights of the positioning device 1, positioning device 2, and positioning device 3 from the plane where the ground is located are greater than H-min, that is, positioning device 1, positioning device 3
  • the device 2 and the positioning device 3 are installed in a shadow area greater than H-min from the plane where the ground is located.
  • the positioning device during the installation of the positioning device, it is ensured that the combined coverage of the three positioning devices can be maximized, that is, the smart screens, air conditioners, speakers and other equipment in the entire home scene can be covered as much as possible.
  • FIG. 6 shows an incorrect installation method.
  • the area of the triangle area formed after positioning device 1, positioning device 2, and positioning device 3 is connected is small, which may lead to the failure of the three positioning devices.
  • the coverage is small, and it is impossible to locate any device in the home scene through three positioning devices.
  • the installation of the positioning device as shown in (f) of FIG. 6 , it is ensured that the area of the triangle area formed by the connection of the positioning device 1 , the positioning device 2 , and the positioning device 3 is maximized.
  • the positioning devices ensure that the three positioning devices are installed on the vertical wall surface, and avoid installing the positioning device on the wall surface with an inclined angle on the plane where the ground is located.
  • (g) in FIG. 6 shows a wrong installation method
  • the positioning device 1 is installed on the inclined wall, which may cause the coverage of the three positioning devices to be small, and it is impossible to pass the three positioning devices.
  • the device locates any device in the home scene.
  • the positioning devices ensure that three positioning devices are installed on different walls, and avoid installing two or more positioning devices on the same wall.
  • FIG. 6 shows a wrong installation method
  • the positioning device 1 and the positioning device 2 are installed on the same wall, which may cause the coverage of the three positioning devices to be small and cannot pass through.
  • the three positioning devices locate any device in the home scene.
  • the barrier-free communication rule introduced in this rule (1) ensures that there is no obstacle blocking between any device in the home scene and each positioning device, and communication can be performed.
  • (j) in FIG. 6 shows an incorrect installation method, there is an obstacle blocking between the positioning device 1 and the positioning device 3, and it should be ensured that there is no obstacle blocking between the three.
  • the handheld device After installing the three positioning devices, it is also necessary to establish the connection between the handheld device and the three positioning devices, so that the handheld device can interact with the three positioning devices, and further determine the position of each device in the home scene and the position of the handheld device and the three positioning devices. The distance between each device, etc.
  • FIG. 7 is a schematic diagram of establishing a connection between a handheld device and a positioning device according to an embodiment of the present application.
  • 7(a) shows the main interface 701 currently displayed by the mobile phone in the unlocking mode.
  • the user clicks the icon of the smart life application on the main interface 701, and in response to the user's click operation, the mobile phone displays as shown in Figure 7 Figure (b) shows the main interface 702 of the smart life application.
  • a virtual experience menu and an add device menu may be included, as well as “home”, “mall”, “smart” and "My” and other functional areas.
  • the mobile phone can automatically scan the surrounding devices or devices that can be connected. It should be understood that in the process, it must be ensured that the three positioning devices installed in the home scene are in a powered-on working state and can be searched and discovered by the mobile phone.
  • the user can also discover the three positioning devices by means of “manually adding” or “scanning to add” on the main interface 702 of the smart life application.
  • the embodiment of the present application does not limit the way that the mobile phone discovers the positioning devices. , and will not be repeated here.
  • an interface 704 as shown in (d) in FIG. 7 can be displayed.
  • the names of 3 positioning devices such as Tag 1, Tag 2, and Tag 3, can be displayed.
  • the mobile phone can display the network configuration interface 705 as shown in (e) of FIG. 7 .
  • the user can input the current network name and password, and click the "Next" button, and then the mobile phone jumps to the successful connection interface 706 as shown in (f) in Figure 7.
  • connection between the mobile phone and the positioning device 1 is realized.
  • the mobile phone and the positioning device 2 and the positioning device 3 can be realized. Connection.
  • the mobile phone and the positioning device may also be connected through a shortcut such as "touch", which will not be repeated in this embodiment of the present application.
  • the handheld device can determine the position of each device in the home scene and the distance between the handheld device and each device, etc., according to the three positioning devices.
  • FIG. 8 is a schematic diagram of an example of determining the location of a device in a home scene provided by an embodiment of the present application.
  • the space coordinate system is established in the space where the room is located, for example, the length, width and height of the room are used as coordinate axes to establish the space coordinate system, and the embodiment of the present application does not limit the method of establishing the space coordinate system. It should be understood that only the same spatial coordinate system is used when calculating the position of each device in the home scene by using the three positioning devices.
  • the spatial coordinates (x1, y1, z1) of positioning device 1, the spatial coordinates (x2, y2, z2) of positioning device 2, and the spatial coordinates (x3, y3, z3) of positioning device 3 are known, and it is known that they can be measured
  • the distance d 1 between the device A and the positioning device 1 , the distance d 2 between the device A and the positioning device 2 , and the distance d 3 between the device A and the positioning device 3 After obtaining the above known parameters, assume the spatial coordinates (x0, y0, z0) of any device A in the home scene, and determine the values of x0, y0, z0 according to the following calculation process.
  • the mobile phone can already communicate with the three positioning devices laid out in the home scene.
  • FIG. 9 is a schematic diagram of an example of setting devices in a home scenario provided by an embodiment of the present application.
  • Figure (a) in Figure 9 shows the main interface 901 currently displayed on the mobile phone in the unlocking mode.
  • the user clicks the icon of the smart life application on the main interface 901 and in response to the user's click operation, the mobile phone displays as shown in Figure 9
  • Figure (b) shows the main interface 902 of the smart life application.
  • the home scene infrared remote control, my speaker, Huawei router, my air conditioner and Huawei smart screen have been added to the main interface 902 of the smart life application.
  • the main interface 902 of the smart life application can Displays cards for multiple devices that have been paired with the handheld.
  • the user selects the area where the card of the device in a certain family scene is located through a preset operation, and then points the handheld device to the device corresponding to the area where the card is located, The device is thus activated to agree that the device can be controlled by the handheld device upon detection of the user's finger-and-finger gesture.
  • the user long presses the area where the "My Speaker” card is located, and at the same time or within a certain period of time, the user uses a mobile phone to point to the where the speakers are placed.
  • the long-press operation can trigger the activation of the speaker, and then by pointing the phone to the position where the speaker is placed, information can be exchanged between the phone and the speaker, so as to agree that when the phone detects the user's one-finger gesture, the speaker can be activated.
  • Cell phone control can trigger the activation of the speaker, and then by pointing the phone to the position where the speaker is placed, information can be exchanged between the phone and the speaker, so as to agree that when the phone detects the user's one-finger gesture, the speaker can be activated.
  • the user can make information exchange between the mobile phone and the speaker by pointing the mobile phone to the position where the speaker is placed.
  • the specific position of the speaker in the home scene is determined.
  • the way of triggering and activating the speaker is not limited to the operation of long-pressing the area where the “My Speaker” card is located and the mobile phone pointing to the position where the speaker is placed as shown in (b) in FIG.
  • Other preset operations or gestures such as operation, and the operation of pointing the mobile phone to the position where the speaker is placed are implemented, which are not limited in this embodiment of the present application.
  • the user can select the area where the card of the device in a certain home scene is located, enter the details interface of the device, turn on the one-finger control function switch of the device, and when the user's one-finger finger is detected When gesturing, the device can be controlled by the handheld device. It should be understood that in this implementation, the user can also point the handheld device to the device corresponding to the area where the card is located, thereby activating the device. At this time, the mobile phone locates the device through the three positioning devices connected above, and determines the device. At a specific location in the home scene, and it is agreed that when the handheld device detects the user's finger gesture, the device can be controlled by the handheld device.
  • the user can select the area where the card of the device in a certain home scene is located on the main interface 902 of the smart life application, or select the area where the card of the device in a certain home scene is located through the shortcut entry.
  • the control center interface 904 can display my speakers and Huawei smart screen cards in the home scene that have been added.
  • a "one-finger control function" switch can be added.
  • the mobile phone locates the Huawei smart screen through the three positioning devices connected above, determines the specific position of the Huawei smart screen in the home scene, and agrees that when the mobile phone detects the user's one-finger gesture, Huawei smart screen
  • the screen can be controlled by the mobile phone.
  • prompt information may be displayed to the user, where the prompt information is used to indicate that the device has been successfully activated.
  • the prompt information can be displayed in a specific application or interface in a pop-up window, etc., to inform the user that the device has been positioned and successfully activated. .
  • the mobile phone finds that the distance between the device and the mobile phone is very close during the process of activating a certain device, the user can be prompted that "the distance between the mobile phone and the located XX device is relatively close, it is recommended to remove the mobile phone or XX device", or, Multiple possible devices may also be displayed, and the user further selects the currently positioned device in the actual operation, which is not limited in this embodiment of the present application.
  • the mobile phone can locate and activate any other device such as the smart screen in the home scene, which will not be repeated here.
  • This method can be used in a specific application or interface (such as smart life), or the control center interface of a handheld device, or the device details interface of a certain device. Operation (long press, swipe, etc.) or clicking the preset switch, etc., makes other devices that have been paired with the handheld device and the user is using the handheld device in the home scene to enter the active state, so as to make an appointment on the handheld device.
  • the device can be controlled by the handheld device when the user's one-finger gesture is detected.
  • FIG. 10 is a schematic diagram of an example of a user pointing to a speaker provided by an embodiment of the present application, wherein the processes of (a) to (c) in FIG. 10 show a possible pointing operation process of the user.
  • the user may hold the mobile phone in the gesture shown in (a) of FIG. 10 , and through the gesture shown in (b) of FIG.
  • the pose shown is pointing at the speakers in the home scene.
  • the mobile phone can detect the displacement change process as shown in the figure when the user holds the mobile phone, and finally points to the location of the speaker.
  • the mobile phone as a handheld device of the user, can identify the pointing operation of the user by means of one or more sensors of the mobile phone or a camera of the mobile phone.
  • the pointing operation of the user may be referred to as a "pointing and one-fingering operation”.
  • the sensor of the mobile phone may include an acceleration sensor, a gyroscope, a magnetometer (magnetometer sensor, M-sensor), an inertial measurement unit (inertial measurement unit, IMU), and the like.
  • the camera of the mobile phone is not limited to the front camera or rear camera of the mobile phone; or, the camera of the mobile phone is not limited to one or more of the main camera, wide-angle camera, and telephoto camera of the mobile phone, and the user's pointing operation is recognized according to the screen obtained by the camera. , which is not limited in the embodiments of the present application.
  • a coordinate system O-XYZ as shown in (d) in FIG. 10 is established.
  • the coordinate system O-XYZ takes the center of gravity of the mobile phone as the coordinate origin O
  • the line where the long frame of the mobile phone passes through the coordinate origin O is the Y axis
  • the line where the short frame of the mobile phone is located is the X axis
  • the line perpendicular to the ground is Z axis.
  • the starting position of the user can be the state of the user holding the phone naturally straight as shown in (a) of FIG. 10 , or the user holding the phone naturally as shown in (b) of FIG. chest position.
  • the user's pointing operation can be (a) map directly to (c) map, including different trajectories; or (b) map directly to (c) map; or via (a) map-(b) map-( c) The trajectory of the graph, which is not limited in this embodiment of the present application.
  • the user's arm stretches forward, the mobile phone accelerates along the line where the Y axis is located, and the acceleration sensor of the mobile phone detects that the acceleration of the mobile phone along the line where the Y axis is located is greater than or equal to the first preset threshold a A .
  • the change curve of the acceleration can be shown in (e) of FIG. 10 .
  • the acceleration of the mobile phone along the line where the Y axis is located is greater than or equal to the first preset threshold a A .
  • the acceleration of the line where the mobile phone is located on the X axis and the line where the Z axis is located is less than or equal to the second preset threshold a B .
  • the acceleration of the mobile phone in different directions can be detected by the IMU of the mobile phone.
  • the acceleration of the mobile phone in different directions can be detected based on the picture collected by the front camera of the mobile phone and the always-on optical flow algorithm.
  • the adjacent frames in the picture are obtained by using the front camera of the mobile phone, wherein the two-dimensional vector field of the feature points in the adjacent frames during the translation process is the velocity field representing the three-dimensional motion of the object points through the two-dimensional image.
  • the image changes formed by the motion of the object point within a certain time interval can be reflected to determine the motion direction and motion rate of the object point on the image, and then determine whether the motion trajectory of the mobile phone is Straight line or straight line.
  • the first prompt message may appear on the handheld device to guide the user to continue accelerating along the Y-axis direction.
  • the IMU of the mobile phone detects that the acceleration time of the acceleration of the mobile phone along the straight line where the Y axis is located reaches the first preset duration ta .
  • the acceleration value is greater than or equal to the first preset threshold a A and the acceleration time of the acceleration reaches the first preset duration t a , it can be A second prompt message appears on the handheld device, prompting the user that the handheld device has enabled the wireless positioning function.
  • the mobile phone can detect far from the user's body or close to the user's body through a magnetometer. Since the human body itself is a magnetic field, when the mobile phone is far away from the human body or close to the human body, the magnetic field strength detected by the magnetometer will change significantly. Therefore, according to the magnetic field strength detected by the magnetometer, it can be determined that the mobile phone is in a state away from the user's body or close to the user's body.
  • the mobile phone may detect that the mobile phone is far away from the user's body or away from the user's body through the image acquired by the camera.
  • the camera of the mobile phone can acquire images in real time, and perform facial feature detection according to the acquired images.
  • the mobile phone first detects the face information in the acquired image and determines that it is in a state close to the user's body; then, no face information is detected in the acquired image, and it is determined to be a state away from the user's body.
  • the mobile phone gradually changes from being close to the user's body to being away from the user's body.
  • the mobile phone detects the above action change process (1) (2) (3) (4) (5), it can be determined that the current user has performed a pointing operation, and then the mobile phone is triggered to determine the location of the device pointed by the user through wireless positioning technology. This process can combine the data collected by multiple sensors to more accurately determine that the user has performed a pointing operation. It should be understood that when the mobile phone detects one or more of the above action change processes (1) (2) (3) (4) (5), it can trigger the mobile phone to determine the location of the device pointed by the user through wireless positioning technology. position, which is not limited in this embodiment of the present application.
  • the embodiment of the present application may trigger the handheld device to detect the pointing operation of the user in a preset scenario, and the preset scenario includes: The device is in a bright screen state; and/or, the handheld device is in an unlocked state; and/or, the handheld device is displayed as the main interface; and/or, it is detected that there is a certain clamp between the normal direction of the display screen of the handheld device and the ground. Horn. Wherein, the finding direction of the display screen of the handheld device has a certain angle with the ground, which can be understood as the normal direction of the display screen is not perpendicular to the ground.
  • a third prompt message may appear on the handheld device, and the third prompt message
  • the user prompts the target device to which the user is pointed, and when at least two devices are detected in the direction pointed by the user, the third prompt information may display the information of the at least two devices for the user. The user can select the target device from it.
  • fourth prompt information may also appear on the pointed device at this time, for prompting the user to point to the correct pointing operation of the device.
  • a pop-up window may appear on the smart screen, and the pop-up window includes fourth prompt information for instructing the user to control the smart screen. The correct pointing operation needs to be performed.
  • the guidance and feedback of the pointing operation are performed on the handheld device and the pointed target device through the visual and non-visual prompting methods, which improves the success rate of the pointing operation and improves the user experience.
  • the above-mentioned embodiment introduces the possible situation of displaying prompt information on the handheld device or the target device. It should be understood that when the user points to the target device, the phenomenon of hand-eye separation occurs, that is, the user cannot see the interface of the mobile phone. Therefore, the embodiment of the present application does not limit the prompting method of any of the above prompt information (the first prompt information, the second prompt information, the third prompt information, and the fourth prompt information), for example, it may be a visual visual that the user can identify with differences Or non-visual prompts, such as different interface prompts, vibration, indicator lights, voice and other prompts.
  • non-visual prompts such as different interface prompts, vibration, indicator lights, voice and other prompts.
  • the prompting effect of the prompting information on the handheld device may be matched with the direction of the user's pointing action, the acceleration of the handheld device, and the like.
  • the mobile phone can recognize whether the user has performed the pointing operation only when one preset scene or multiple scenarios are satisfied simultaneously.
  • the mobile phone can only recognize whether the user has performed the pointing operation when the screen is bright and/or unlocked. operation, or restricting the mobile phone to display the main interface to identify whether the user has performed the pointing operation, or restricting the mobile phone to be in the bright screen state and unlocked state at the same time and displaying the main interface of the mobile phone to recognize whether the user has performed the pointing operation.
  • the setting of the scene can increase the accuracy of identifying the user's pointing operation, and avoid detection in a possible scene such as the user just handing the mobile phone to another person, thereby reducing the false touch rate and improving the user experience.
  • the user may perform the operation as shown in (c) in FIG. 10 and the hovering time of the mobile phone reaches the second preset time.
  • the duration t dwell is set, the user can press a physical button, or perform a preset screen gesture, or an air gesture, etc., to send a signal to the mobile phone to determine the detection result of the current mobile phone detection.
  • This process can be understood as the user sends confirmation information to the mobile phone through the above-mentioned pressing operation or preset gesture to confirm that the action currently detected by the mobile phone is the operation of the user pointing to the speaker. Trigger the positioning process of the mobile phone to the speaker more accurately.
  • the mobile phone detects that the user has performed the operation as shown in (c) of FIG. 10 and the mobile phone hovering time reaches the second preset duration t dwell , the user does not press the physical button or the preset cleaning, and the mobile phone does not receive The confirmation signal to the user may not trigger the positioning process of the speaker.
  • the mobile phone after the mobile phone has recognized the user's current operation of pointing to the speaker, it will further activate the wireless positioning function of the mobile phone, search for the peripheral devices of the mobile phone, and determine the location of the peripheral devices, as well as the distance between the peripheral devices and the mobile phone, etc., and determine the pointing direction of the user. whether there is a device on it.
  • the wireless positioning function of the mobile phone search for the peripheral devices of the mobile phone, and determine the location of the peripheral devices, as well as the distance between the peripheral devices and the mobile phone, etc., and determine the pointing direction of the user. whether there is a device on it.
  • the infinite positioning technology of the mobile phone can be triggered.
  • the mobile phone when the target device pointed by the user is installed with a positioning structure, the mobile phone can perform wireless positioning according to the two-way connection between itself and the target device.
  • the target device pointed by the user may be installed with a Bluetooth positioning chip, a UWB positioning chip, or one or more of a GPS positioning structure, a WIFI positioning structure, a laser sensor with a positioning function, an infrared sensor, etc.
  • the target device can be located based on the bidirectional connection between the target device and the mobile phone.
  • both the mobile phone and the pointed target device have hardware that can transmit or receive wireless positioning signals, and calculate and determine the distance between the mobile phone and the pointed target device according to the wireless positioning signals transmitted or received between the mobile phone and the pointed target device. distance and angle.
  • the mobile phone when three positioning devices are arranged in the home scene, the mobile phone can combine the three-point positioning capability of the three positioning devices to determine the distance and direction between the mobile phone and the pointed target device.
  • the connection between the handheld device and the three positioning devices is established according to the method shown in FIG. 7 , so that the handheld device can communicate with The three positioning devices interact, and further determine the position of each device in the home scene and the distance between the handheld device and each device according to the three-point positioning method introduced in FIG. 8 , which will not be repeated here.
  • the phone can determine the distance and angle between the phone and the target device pointed to by triangulating between multiple devices.
  • a mobile phone can transmit or receive wireless positioning signals, as long as the space of the home scene includes three or more fixed positioning devices capable of transmitting or receiving wireless positioning signals, as shown in (d) in Figure 10 Tag 1, Tag 2, and Tag 3.
  • the mobile phone calculates the absolute positioning (x, y, z, ⁇ ) of the mobile phone by the time difference of arrival (TDOA). That is, the position of each device in the home scene and the distance between the handheld device and each device can be determined by the three-point positioning method.
  • TDOA time difference of arrival
  • the positioning of the six degrees of freedom (6DoF) of the mobile phone can be determined, which will not be repeated here.
  • the positioning device may exist independently, or be installed on other devices in the home scene, and is a component of devices such as a smart screen, an air conditioner, and a sound box, which is not limited in this embodiment of the present application.
  • the mobile phone has recognized the user's current operation of pointing to the speaker, and further activates the wireless positioning function of the mobile phone, and determines the position of the speaker pointed by the user. speakers to control.
  • FIG. 11 is a schematic diagram of an example of a user pointing to a speaker provided by an embodiment of the present application
  • FIG. 12 is a schematic diagram of an example of a user controlling the speaker through a handheld device provided by an embodiment of the present application.
  • FIG. 12 shows the main interface 1201 of the mobile phone.
  • the mobile phone can display the following The interface 1202 shown in (b) of FIG. 12 .
  • the speaker control window 20 automatically pops up, and the speaker control window 20 can be suspended on the main interface of the mobile phone.
  • the speaker control window 20 may include a window zoom option 21 , a window close option 22 , a speaker icon and name display area 23 , and a song playback control area 24 .
  • the user can click the window zoom option 21 to zoom in on the speaker control window 20 for full-screen display or zoom out to a floating display.
  • the song playback control area 24 can display buttons such as singer, singer photo, album picture, song name, play switch, playback progress bar, previous song, next song, etc. The user can click any button according to his own needs to control the sound of the speaker. play.
  • the song playback control area 24 also includes a sound projection button, which is used to control the playback of mobile phone music through the speaker, which will not be repeated here.
  • the speaker control window 20 may include control options, menus, buttons or other functional areas listed above, or the speaker control window 20 may also include other display contents not listed above, such as an area for displaying lyrics.
  • the speaker control window 20 may display different styles and contents according to the type and screen size of the handheld device, which will not be repeated here.
  • FIG. 13 is a schematic diagram of an example of a user pointing to a smart screen provided by an embodiment of the present application
  • FIG. 14 is a schematic diagram of an example of a user controlling the smart screen through a handheld device provided by an embodiment of the present application.
  • FIG. 14 shows the main interface 1401 of the mobile phone.
  • the mobile phone can display An interface 1402 as shown in (b) of FIG. 14 .
  • the smart screen control window 30 automatically pops up, and the smart screen control window 30 can be suspended on the main interface of the mobile phone.
  • the trajectory of the user pointing to the smart screen in FIG. 13 in this embodiment may be different from the trajectory of the user pointing to the speaker in FIG. 11 , or the trajectory may be the same, which is not limited in this embodiment of the present application.
  • the smart screen control window 30 may include a window zoom option 31 , a window close option 32 , a smart screen icon and name display area, and a smart screen playback control area 33 .
  • the user can click the window zoom option 31 to zoom in on the smart screen control window 30 for full-screen display or zoom out to a floating display.
  • the smart screen playback control area 33 can display buttons such as movie name, selection list, play switch, playback progress bar, previous episode, next episode, etc. The user can click any button according to his own needs to control the playback of the movie on the smart screen .
  • the smart screen control window 30 may include the control options, menus, buttons or other functional areas listed above, or the smart screen control window 30 may also include other display contents not listed above, which are not made in this embodiment of the present application. limited.
  • the smart screen control window 30 can display different styles and contents according to the type and screen size of the handheld device, which will not be repeated here.
  • FIG. 15 is a schematic diagram of an example of a user pointing at an air conditioner provided by an embodiment of the present application
  • FIG. 16 is a schematic diagram of an example of a user controlling the air conditioner through a handheld device provided by an embodiment of the present application.
  • FIG. 16 shows the main interface 1601 of the mobile phone.
  • the mobile phone can display the following The interface 1602 shown in (b) of FIG. 16 .
  • the air conditioner control window 40 automatically pops up, and the air conditioner control window 40 can be suspended on the main interface of the mobile phone.
  • the air conditioner control window 40 may include a window zoom option 41 , a window close option 42 , an air conditioner icon and name display area 43 , and an air conditioner control area 44 .
  • the user can click the window zoom option 41 to enlarge the air-conditioning control window 40 for full-screen display or zoom out to a floating display.
  • the air conditioner control area 44 can display whether the air conditioner is on, working modes such as refrigeration, indoor temperature, working power, temperature increase and decrease buttons, and wind speed settings. , working mode settings, etc.
  • the air conditioner control window 40 may include the control options, menus, buttons or other functional areas listed above, or the air conditioner control window 40 may also include other display contents not listed above, which are not limited in this embodiment of the present application.
  • the air-conditioning control window 40 may display different styles and contents according to the type and screen size of the handheld device, which will not be repeated here.
  • a window for controlling the target device can be displayed on the handheld device, and the user can realize the target device through the window. control.
  • the method is simple to operate and reduces the steps for the user to operate the target device; in addition, the method selects the target device according to the user's pointing operation, which can help the user to select a far device. Reduced distance restrictions and improved user experience.
  • prompt information may be displayed on the handheld device, and the prompt information is used to guide the user to perform a correct pointing operation, so as to implement the embodiments of the present application. Provides control of the target device through a pointing action.
  • the prompt information can be displayed through a window displayed on the handheld device, or displayed on the handheld device in the form of an icon, or in other ways of visual guidance, to guide the user to perform a correct pointing operation, so as to realize the implementation of the present application.
  • the example provides control of the target device through pointing operations.
  • FIG. 17 is a schematic diagram of another example of a user controlling a speaker through a handheld device according to an embodiment of the present application.
  • the processes of (a), (b) and (c) in FIG. 17 show a possible pointing operation process of the user.
  • (d) in FIG. 17 shows the main interface 1701 of the mobile phone.
  • the mobile phone is in the bright screen state and displayed as the main interface 1701 of the mobile phone, if the user uses the mobile phone to execute (a), ( b) The operation shown in the figure, the mobile phone does not detect the operation of pointing to the speaker and hovering as shown in (c) in Figure 17 within a certain period of time, the main interface of the mobile phone can display (e) in Figure 17 Interface 1702 is shown.
  • the guide icon 50 is automatically displayed, and the guide icon 50 can be suspended on the main interface of the mobile phone in the form of an arrow.
  • the interface of the mobile phone can be displayed as the interface 1703 shown in FIG. 17(f), on the interface 1703
  • An icon 60 is displayed to indicate that the current mobile phone is re-detecting the pointing operation of the user.
  • the speaker control window 20 may be displayed on the handheld device, which will not be repeated here.
  • the voice feedback mode can be issued by the handheld device, or issued by the pointed target device, for example, the mobile phone prompts the user "please move to the right" in a voice manner.
  • the vibration feedback may be sent by a handheld device, so as to be perceived by the user more quickly and sensitively, and it should be understood that this embodiment of the present application does not limit this.
  • feedback may also be provided on the handheld device or the pointed target device, where the feedback is used to inform the user that the pointing operation is successful.
  • the feedback information may include one or more of visual feedback, sound feedback, and vibration feedback.
  • the mobile phone may vibrate to inform the user that the pointing operation is completed.
  • the target device can transmit the currently logged-in account information and device information to the handheld device, and then display the target shown in (g) in Figure 17 on the handheld device.
  • Device Control window
  • the target device pointed by the user can be determined. Specifically, when it is recognized that the axis of the handheld device substantially intersects with the physical position of the target device with a certain predetermined accuracy, or when it is recognized that the handheld device is aligned with the target device, the target device pointed by the user can be determined, that is, the target device pointed to by the user can be located on the handheld device or the target device.
  • the target device provides feedback, and transmits the login account information and device information of the target device to the handheld device, and displays the target device control window 20 or an interface related to the target device on the handheld device.
  • a user can use a handheld device to point to a target device, and one or more sensors such as an acceleration sensor, a gyroscope, and an IMU based on the handheld device can be used. And/or the camera detects the pointing operation of the user, and triggers the wireless positioning function of the handheld device.
  • the handheld device determines the distance between the handheld device and other devices, and the location and direction of other devices according to the wireless positioning function.
  • at least one feedback such as visual feedback, sound feedback, vibration, etc.
  • the login account information and device information of the target device are transmitted to the handheld device, and the control window of the target device is displayed on the handheld device.
  • the user can control the target device through the control window on the handheld device.
  • at least one guidance method such as visual guidance, sound guidance, vibration, etc. may be provided on the handheld device and/or the target device to guide the user to perform correct pointing
  • the operation is further implemented to display the control window of the target device and the control function of the target device on the handheld device.
  • an embodiment of the present application further provides a method, which can provide a selection window for the user during the process of detecting the pointing operation of the user, and the user can select a target device therein.
  • FIG. 18 is a schematic diagram of another example of a user controlling a speaker through a handheld device according to an embodiment of the present application.
  • FIG. 18 shows the main interface 1801 of the mobile phone.
  • the mobile phone When the mobile phone is in the bright screen state and displayed as the main interface 1801 of the mobile phone, when the mobile phone detects the pointing operation of the user, it can display as shown in FIG. 18 .
  • a guide icon 50 for guiding the user to perform a correct pointing operation is displayed on the interface 1802 .
  • the mobile phone detects the user's pointing operation, it is judged that the pointing operation can trigger both the air conditioner to be controlled by the mobile phone and the speaker to be controlled by the mobile phone.
  • the mobile phone can further display an interface 1803 as shown in (c) of FIG. 18 , and the interface 1803 simultaneously displays the speaker card 70 corresponding to the speaker currently pointed by the user and the air conditioner card 80 corresponding to the air conditioner.
  • the speaker card 70 may only display part of the device name, icon, zoom option and window close option; similarly, the air conditioner card 80 may only display the device name, icon, zoom option and window close option. and other parts, which are not limited in the embodiments of the present application.
  • the user can perform the operation as shown in (c) in Figure 18, and click on any area of the speaker card 70 that is currently desired to be operated or controlled.
  • the mobile phone displays as shown in (d) in Figure 18.
  • Interface 1804 is shown.
  • the speaker control window 20 is displayed on the interface 1804, which will not be repeated here.
  • the above describes the implementation process when the mobile phone recognizes that the user points to two devices.
  • the mobile phone recognizes that the user points to more devices, it can also display cards of multiple devices for the user according to this method, for the user to choose according to their own needs. at least one of the target devices.
  • the user can click to select multiple devices as the target device at the same time, then multiple device control windows can be displayed on the interface 1804, and the user can switch between different device control windows by sliding, which will not be repeated here.
  • the handheld device may recognize multiple devices pointed by the user, or when the user wishes to control multiple nearby devices, it can display the cards of multiple devices for the user to Choose at least one of the target devices according to your own needs.
  • the design is more user-friendly, can better meet the different needs of users, and improve the user experience.
  • the above-mentioned embodiment introduces the interaction method between devices based on pointing operation from the user interaction level.
  • the method can be implemented in electronic devices (eg, mobile phones, tablet computers, etc.) having structures such as a touch screen, a positioning chip, and a camera assembly as shown in FIG. 1 and FIG. 2 .
  • FIG. 19 is a schematic flowchart of an example of an interaction method between devices based on a pointing operation provided by an embodiment of the present application. Taking a mobile phone as a handheld device, as shown in Figure 19, the method may include the following steps:
  • the user enables the one-finger manipulation function of the handheld device.
  • the user may turn on the “one-finger control function” switch in the settings application, and further enable the function of realizing interaction between devices through shortcut gestures of the mobile phone.
  • the "one-finger control function” switch can be added to other applications.
  • the "one-finger control function” switch can be added to the smart life application, and the user can turn it on through the "one-finger control function” switch of Smart Life.
  • the mobile phone realizes the interaction function between devices through shortcut gestures.
  • the user may perform a pull-down operation from the top of the mobile phone on any interface of the mobile phone, and in response to the user's pull-down operation, the mobile phone displays a notification interface.
  • the user can click the switch of "one-finger control function" in the notification interface to enable the interaction function between devices through shortcut gestures of the mobile phone.
  • the embodiment of the present application does not limit the method of enabling the shortcut interaction function between devices.
  • the mobile phone also needs to locate the smart TV (smart screen), air conditioner, speaker, router and other equipment in the home scene, that is, the mobile phone needs to determine the location of each device, and then more accurately pass Control with shortcut gestures.
  • At least three fixed positioning devices are installed in the home scene, and it is ensured that the three positioning devices are in a power-on working state, and the at least three positioning devices can communicate with the user's handheld device.
  • At least three positioning devices can be installed according to the methods and rules introduced in FIG. 6 , and a connection is established between the mobile phone and the positioning device according to the method shown in FIG. 7 , that is, the mobile phone can send signals or Accept the signal sent by the positioning device.
  • the mobile phone can be combined with at least three positioning devices to determine the position of any device in the home scene according to the process described in FIG. 8 .
  • the positioning device may be a sensor with a positioning function or a structure with a positioning function, etc.
  • the sensor may be a laser sensor, an infrared sensor, etc.
  • the structure with a positioning function may be a chip.
  • the structure with positioning function may be a positioning structure based on a Bluetooth module, a positioning chip based on an ultra-wideband UWB wireless perception capability, a positioning structure based on GPS, a positioning structure based on a WIFI module, and the like.
  • the positioning device may also be installed on devices such as smart TVs (smart screens), air conditioners, speakers, and routers in the home scene.
  • devices such as smart TVs (smart screens), air conditioners, speakers, and routers in the home scene.
  • devices such as smart TVs (smart screens), air conditioners, speakers, and routers in the home scene.
  • devices such as smart screens, air conditioners, and speakers have UWB chips themselves, in the home scenario, there is no need to lay out at least 3 additional fixed positioning devices, so that devices such as smart screens, air conditioners, and speakers can pass between the mobile phone and smart screens, air conditioners, speakers, and other devices.
  • the interaction realizes the positioning function of any device in the home scene.
  • the mobile phone as a handheld device of the user, can identify the pointing operation of the user by means of one or more sensors of the mobile phone or a camera of the mobile phone.
  • the sensor of the mobile phone may include an acceleration sensor, a gyroscope, a magnetometer, an inertial detection unit IMU, and the like.
  • the camera of the mobile phone is not limited to the front camera or rear camera of the mobile phone; or, the camera of the mobile phone is not limited to one or more of the main camera, wide-angle camera, and telephoto camera of the mobile phone, and the user's pointing operation is recognized according to the screen obtained by the camera. , which is not limited in the embodiments of the present application.
  • For the specific detection process reference may be made to the specific description of the operation process in which the user points to the speaker in the foregoing FIG. 10 , which will not be repeated here.
  • this embodiment of the present application does not limit the prompting method of any of the above prompt information (the aforementioned first prompt information, second prompt information, third prompt information, fourth prompt information, etc.) visual or non-visual prompts, such as different interface prompts, vibration, indicator lights, voice and other prompts.
  • the mobile phone when the user points to the target device, as shown in (e) of Figure 17, the mobile phone can automatically display a guide icon on the interface, and the guide icon can be suspended in the form of an arrow on the mobile phone. on the interface.
  • the user can be guided to perform the correct pointing operation through non-visual methods such as sound feedback and vibration feedback, so as to The target device controlled by the pointing operation provided by the embodiment of the present application is implemented.
  • the voice feedback can be issued by the handheld device, or by the pointed target device, for example, the mobile phone prompts the user "please move to the right" in a voice manner.
  • the vibration feedback may be sent by a handheld device, so as to be perceived by the user more quickly and sensitively, and it should be understood that this embodiment of the present application does not limit this.
  • the handheld device determines the distance and direction of the handheld device and other devices according to the wireless positioning technology or the three-point positioning technology between multiple devices.
  • the mobile phone after the mobile phone recognizes the user's operation of pointing to the target device, it further starts the wireless positioning function of the mobile phone, searches for the peripheral devices of the mobile phone, and determines the location of the peripheral device and the distance between the peripheral device and the mobile phone, etc., and determines whether the user is pointing in the direction. equipment exists.
  • the wireless positioning function of the mobile phone searches for the peripheral devices of the mobile phone, and determines the location of the peripheral device and the distance between the peripheral device and the mobile phone, etc., and determines whether the user is pointing in the direction. equipment exists.
  • the infinite positioning technology of the mobile phone can be triggered.
  • the mobile phone when the target device pointed by the user is installed with a positioning structure, the mobile phone can perform wireless positioning according to the two-way connection between itself and the target device.
  • the target device pointed by the user may be installed with a Bluetooth positioning chip, a UWB positioning chip, or one or more of a GPS positioning structure, a WIFI positioning structure, a laser sensor with a positioning function, an infrared sensor, etc.
  • the target device can be located based on the bidirectional connection between the target device and the mobile phone.
  • both the mobile phone and the pointed target device have hardware that can transmit or receive wireless positioning signals, and calculate and determine the distance between the mobile phone and the pointed target device according to the wireless positioning signals transmitted or received between the mobile phone and the pointed target device. distance and angle.
  • the mobile phone when three positioning devices are arranged in the home scene, the mobile phone can combine the three-point positioning capability of the three positioning devices to determine the distance and direction between the mobile phone and the pointed target device.
  • the target device pointed by the user can be determined. Specifically, when it is recognized that the axis of the handheld device substantially intersects with the physical position of the target device with a certain predetermined accuracy, or when it is recognized that the handheld device is aligned with the target device, the target device pointed by the user can be determined, that is, the target device pointed to by the user can be located on the handheld device or the target device.
  • the target device provides feedback, and transmits the login account information and device information of the target device to the handheld device, and displays the target device control window 20 or an interface related to the target device on the handheld device.
  • the user's pointing operation can be described as a pointing operation in which the user holds the mobile phone and moves from the first position to the second position, and at the second position, the axis on which the long side of the mobile phone is located and one or more other devices intersect or approximately intersect.
  • the intersection here can be understood as the existence of other devices in the direction pointed by the user; the approximate intersection can be understood as the existence of other devices within the preset accuracy range in the direction pointed by the user, both of which can be understood as detection of the user's pointing operation.
  • the axis of the mobile phone is related to the antenna layout of the mobile phone.
  • the antenna When the antenna is arranged at the front frame of the mobile phone, the user can point the axis of the long side to the target device, or when the antenna is arranged inside the mobile phone case, the mobile phone can also be erected in a similar way to take a picture, and the display will be perpendicular to the mobile phone.
  • the normal line of the screen is the axis, so that the axis where the normal line is located points to the target device, which is not limited in this embodiment of the present application.
  • the target device pointed by the user is determined according to step 1906, that is, the user successfully points to the target device using the handheld device.
  • feedback can also be provided on the handheld device or the pointed target device, where the feedback is used to inform the user that the pointing operation is successful.
  • the feedback information may include one or more of visual feedback, sound feedback, and vibration feedback.
  • the mobile phone may vibrate to inform the user that the pointing operation is completed.
  • the target device can transmit the currently logged-in account information and device information to the handheld device, and then display the target device control window as shown in (g) in Figure 17 on the handheld device .
  • a user can use a handheld device to point to a target device, and one or more sensors such as an acceleration sensor, a gyroscope, and an IMU based on the handheld device can be used. And/or the camera detects the pointing operation of the user, and triggers the wireless positioning function of the handheld device.
  • the handheld device determines the distance between the handheld device and other devices, and the location and direction of other devices according to the wireless positioning function.
  • at least one feedback such as visual feedback, sound feedback, vibration, etc.
  • the login account information and device information of the target device are transmitted to the handheld device, and the control window of the target device is displayed on the handheld device.
  • the user can control the target device through the control window on the handheld device.
  • at least one guidance method such as visual guidance, sound guidance, vibration, etc. may be provided on the handheld device and/or the target device to guide the user to perform correct pointing
  • the operation is further implemented to display the control window of the target device and the control function of the target device on the handheld device.
  • the electronic device includes corresponding hardware and/or software modules for executing each function.
  • the present application can be implemented in hardware or in the form of a combination of hardware and computer software in conjunction with the algorithm steps of each example described in conjunction with the embodiments disclosed herein. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functionality for each particular application in conjunction with the embodiments, but such implementations should not be considered beyond the scope of this application.
  • the electronic device can be divided into functional modules according to the above method examples.
  • each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware. It should be noted that, the division of modules in this embodiment is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
  • the electronic device involved in the above embodiment may include: a display unit, a detection unit, and a processing unit.
  • the display unit, the detection unit, and the processing unit cooperate with each other, and may be used to support the electronic device to perform the above steps, etc., and/or be used for other processes of the technology described herein.
  • the electronic device provided in this embodiment is used to execute the above-mentioned video playback method, and thus can achieve the same effect as the above-mentioned implementation method.
  • the electronic device may include a processing module, a memory module and a communication module.
  • the processing module may be used to control and manage the actions of the electronic device, for example, may be used to support the electronic device to perform the steps performed by the display unit, the detection unit and the processing unit.
  • the memory module can be used to support the electronic device to execute stored program codes and data, etc.
  • the communication module can be used to support the communication between the electronic device and other devices.
  • the processing module may be a processor or a controller. It may implement or execute the various exemplary logical blocks, modules and circuits described in connection with this disclosure.
  • the processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, and the like.
  • the storage module may be a memory.
  • the communication module may specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, and a Wi-Fi chip.
  • the electronic device involved in this embodiment may be a device having the structure shown in FIG. 1 .
  • This embodiment also provides a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and when the computer instructions are executed on the electronic device, the electronic device executes the above-mentioned related method steps to realize the above-mentioned embodiments.
  • This embodiment also provides a computer program product, which, when the computer program product runs on a computer, causes the computer to execute the above-mentioned relevant steps, so as to realize the interaction method between devices based on pointing operation in the above-mentioned embodiment.
  • the embodiments of the present application also provide an apparatus, which may specifically be a chip, a component or a module, and the apparatus may include a connected processor and a memory; wherein, the memory is used for storing computer execution instructions, and when the apparatus is running, The processor can execute the computer-executed instructions stored in the memory, so that the chip executes the pointing operation-based interaction method between devices in the foregoing method embodiments.
  • the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding method provided above. Therefore, for the beneficial effects that can be achieved, reference may be made to the above-provided method. The beneficial effects in the corresponding method will not be repeated here.
  • the disclosed apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or May be integrated into another device, or some features may be omitted, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • Units described as separate components may or may not be physically separated, and components shown as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium.
  • a readable storage medium including several instructions to make a device (which may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Environmental & Geological Engineering (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请提供了一种基于指向操作的设备之间的交互方法及电子设备,电子设备可以是手机等,该方法基于手持设备的加速度传感器、陀螺仪、IMU、摄像头等,检测用户使用手持设备到目标设备的指向操作,触发手持设备的无线定位功能;当识别到手持设备的轴线与目标设备相交或近似相交时,可以在手持设备和/或目标设备上提供视觉反馈、声音反馈、震动等至少一种反馈,并传输目标设备登录的账号信息、设备信息给手持设备,在手持设备上显示目标设备的控制窗口,用户可以通过手持设备上的控制窗口实现对目标设备的控制。该方法根据用户的指向操作,帮助用户选择较远的设备,简化了设备之间的交互操作的流程,提高了用户体验。

Description

基于指向操作的设备之间的交互方法及电子设备
本申请要求于2020年08月05日提交国家知识产权局、申请号为202010781046.7、申请名称为“基于指向操作的设备之间的交互方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子技术领域,尤其涉及一种基于指向操作的设备之间的交互方法及电子设备。
背景技术
在海量终端的环境下,对于每一个用户,可能拥有智能手机、个人电脑、智能电视、平板和音箱等不同类型的电子设备。在家庭场景中,用户还可能拥有智能影音设备、路由器、无线保真(wireless fidelity,WIFI)盒子、智能清洁设备、智能厨电设备,智能照明系统等多种家居设备。随着技术的发展,在万物互联的场景中,用户可以控制的设备越来越多,同时,多个设备之间进行互联的需求也越来越多。
在多个设备时间进行互联交互的过程中,往往需要用户选择特定的一个或多个目标设备,再对选择的目标设备执行如设备发现、配对、数据传输、投屏等不同的操作。该过程操作繁琐,交互流程多,用户体验差。
发明内容
本申请提供一种基于指向操作的设备之间的交互方法及电子设备,该方法根据用户的指向操作,帮助用户选择并控制较远的设备,简化了设备之间的交互操作的流程,提高了用户体验。
第一方面,提供了一种设备之间的交互方法,应用于第一电子设备,该方法包括:获取该第一电子设备在第一轴线方向上的加速度、第二轴线上的加速度和第三轴线上的加速度,其中,该第一轴线平行于该第一电子设备的长边,该第二轴线平行于该第一电子设备的短边,该第三轴线垂直于该第一轴线和该第二轴线确定的平面;确定用户手持该第一电子设备,以第一位置为起始位置运动到第二位置的运动过程中,该第一轴线方向上的加速度大于或等于第一阈值或该第一轴线方向上的加速度大于或等于该第一阈值的持续时长大于或等于第一预设时长,该第二轴线方向上的加速度小于或等于第二阈值,该第三轴线方向上的加速度小于或等于第三阈值;检测在该第二位置处,该第一电子设备的该第一轴线和第二电子设备相交,或者该第一电子设备的该第一轴线和第二电子设备在预设精度范围内近似相交;接收该第二电子设备发送的该第二电子设备登录的账号信息和设备信息;根据该第二电子设备登录的账号信息和设备信息,显示第一窗口,该第一窗口显示用于控制该第二电子设备的界面。
可选地,该用户的指向操作可以描述为用户手持第一电子设备,以第一位置为起始位置运动到第二位置的指向操作,且在第二位置处,第一电子设备长边所在的轴线和一个或多个其他设备相交或近似相交。这里相交可以理解为用户指向的方向上正好存在其他设备;近似相交可以理解为用户指向的方向上的预设精度范围内存在其他设备,这两种情况 都可以理解为检测到了用户的指向操作。
在判断用户手持第一电子设备指向第二电子设备的指向操作的过程中,在第一电子设备上建立坐标系O-XYZ。具体的,该坐标系O-XYZ以第一电子设备的重心为坐标原点O,以经过坐标原点O的第一电子设备长边框所在直线为Y轴,即第一轴线;第一电子设备短边框所在直线为X轴,即第二轴线;以垂直于地面或XOY平面的直线为Z轴,即第三轴线。
应理解,第一电子设备的轴线与第一电子设备的天线布局有关。当天线布局在第一电子设备前端边框处时,用户可以将长边所在的轴线指向第二电子设备,或者当天线布局在第一电子设备壳的里面时,也可以类似于拍照的姿势将第一电子设备立起来,将垂直于第一电子设备显示屏的法线为轴线,使得该法线所在的轴线指向第二电子设备,本申请实施例对此不作限定。
一种可能的实现方式中,可以借助于第一电子设备的一个或多个传感器、或者第一电子设备的摄像头等识别用户的指向操作。在后续实施例的描述中,可以将用户的指向操作称为“指一指操作”。
可选地,第一电子设备的传感器可以包括加速度传感器、陀螺仪、磁力计(magnetometer sensor,M-sensor)、惯性检测单元(inertial measurement unit,IMU)等。第一电子设备的摄像头不限于第一电子设备的前置摄像头或后置摄像头;或者,第一电子设备的摄像头不限于第一电子设备的主摄像头、广角摄像头、长焦摄像头中的一个或多个,根据摄像头获取的画面识别用户的指向操作,本申请实施例对此不作限定。
结合第一方面,在第一方面的某些实现方式中,获取该第一电子设备在第一轴线方向上的加速度、第二轴线上的加速度和第三轴线上的加速度,包括:基于加速度传感器、惯性检测单元IMU、陀螺仪中的一种或多种,获取该第一轴线方向上的加速度、该第二轴线上的加速度和该第三轴线上的加速度。
应理解,当用户的手臂前伸运动过程中,第一电子设备沿Y轴所在的直线进行加速,通过第一电子设备的加速度传感器检测到第一电子设备沿Y轴所在的直线的加速度大于或等于第一预设阈值a A。同时,检测到第一电子设备在X轴所在的直线,以及Z轴所在的直线的加速度小于或等于第二预设阈值a B
可选地,第一电子设备在不同方向上的加速度可以由第一电子设备的IMU进行检测。或者,第一电子设备在不同方向上的加速度可以基于第一电子设备前置摄像头采集的画面以及常开光流算法进行检测。具体地,利用第一电子设备前置摄像头获取画面中的相邻帧,其中相邻帧中特征点在平移过程中的二维矢量场,是通过二维图像来表示物体点三维运动的速度场。即可以根据该物体点三维运动的速度场反映一定时间间隔内,由于该物体点的运动形成的图像变化,以确定图像上该物体点的运动方向和运动速率,进而确定第一电子设备的运动轨迹是否为直线或者类直线。
一种可能的实现方式中,在用户使用第一电子设备指向第二电子设备的操作过程中,第一电子设备可以通过引导图标、声音反馈、震动反馈等不同的方式,引导用户执行正确的指向操作,以实现本申请实施例提供的通过指向操作控制第二电子设备。
可选地,该声音反馈的方式可以由第一电子设备发出,或者由被指向的第二电子设备发出,例如第一电子设备以语音的方式提示用户“请向右移动”。
可选地,该震动反馈可以由第一电子设备发出,以更快更灵敏的被用户感知到,应理解,本申请实施例对此不作限定。
或者,当用户使用第一电子设备成功指向第二电子设备之后,还可以在第一电子设备或者被指向的第二电子设备上提供反馈,该反馈用于告知用户指向操作成功。该反馈信息可以包括视觉反馈、声音反馈、震动反馈等一种或多种。示例性的,当用户使用第一电子设备成功指向音箱之后,第一电子设备可以震动以告知用户指向操作完成。
应理解,当用户使用第一电子设备成功指向第二电子设备之后,第二电子设备可以将当前登录的账号信息、设备信息传输给第一电子设备,进而在第一电子设备上显示第二电子设备控制窗口。
还应理解,当确定第一电子设备是否指向第二电子设备的过程中,识别第一电子设备的轴线和第二电子设备的位置在预设范围之内时,即可以确定用户指向的第二电子设备。具体地,识别第一电子设备的轴线以一定的预定精度与第二电子设备的物理位置基本相交,或者识别到第一电子设备与第二电子设备对准时,就可以确定用户指向的第二电子设备,即可以在第一电子设备或者被指向的第二电子设备上提供反馈,并传输第二电子设备的登录的账号信息、设备信息给第一电子设备,并在第一电子设备上显示第二电子设备控制窗口或者与第二电子设备相关的界面。
综上所述,本申请实施例提供的一种基于指向操作实现跨设备交互的方法,用户可以使用第一电子设备指向第二电子设备,基于第一电子设备的加速度传感器、陀螺仪、IMU等一种或多种传感器和/或摄像头检测用户的指向操作,触发第一电子设备的无线定位功能。第一电子设备根据无线定位功能确定第一电子设备与其他设备的距离、以及其他设备的所处的位置和方向。当识别到第一电子设备的轴线与第二电子设备的物理位置以预定精度判断为相交或基本相交时,还可以在第一电子设备和/或第二电子设备上提供视觉反馈、声音反馈、震动等至少一种反馈,并传输第二电子设备的登录的账号信息、设备信息给第一电子设备,在第一电子设备上显示该第二电子设备的控制窗口,用户可以通过第一电子设备上的该控制窗口实现对该第二电子设备的控制。当识别到第一电子设备的轴线与第二电子设备的物理位置不相交时,还可以在第一电子设备和/或第二电子设备上提供视觉引导、声音引导、震动等至少一种引导方式,以引导用户执行正确的指向操作,进一步实现在第一电子设备上显示该第二电子设备的控制窗口以及对该第二电子设备的控制功能。
结合第一方面和上述实现方式,在第一方面的某些实现方式中,检测在该第二位置处,该第一电子设备的该第一轴线和第二电子设备相交,或者该第一电子设备的该第一轴线和第二电子设备在预设精度范围内近似相交之前,该方法还包括:通过该第一电子设备的摄像头采集运动过程中的画面;确定该第一电子设备在该第一位置处采集的该画面包括用户的人脸特征信息,在该第二位置处采集的该画面不包括该用户的人脸特征信息。
可选地,第一电子设备可以通过摄像头获取的图像检测远离用户的身体或者远离用户的身体。具体地,第一电子设备的摄像头可以实时获取图像,并根据获取的图像进行人脸特征检测。一定时段内,第一电子设备先在获取的图像中检测到人脸信息,确定为靠近用户的身体的状态;随后又在获取的图像中未检测到人脸信息,确定为远离用户的身体的状态。当出现上述的变化过程,可以确定第一电子设备从靠近用户的身体,逐渐转变为远离用户的身体。
结合第一方面和上述实现方式,在第一方面的某些实现方式中,检测在该第二位置处,该第一电子设备的该第一轴线和第二电子设备相交,或者该第一电子设备的该第一轴线和第二电子设备在预设精度范围内近似相交之前,该方法还包括:通过该第一电子设备的磁力计采集运动过程中的磁感应强度;确定该第一电子设备在该第一位置处采集的该磁感应强度大于或等于第四阈值,在该第二位置处采集的该磁感应强度小于或等于第五阈值,且该第四阈值大于该第五阈值。
可选地,第一电子设备可以通过磁力计检测远离用户的身体或者靠近用户的身体。由于人体本身是磁场,第一电子设备远离人体或者靠近人体时,磁力计检测到的磁场强度会产生明显的变化。因此,可以根据磁力计检测的磁场强度确定第一电子设备为远离用户的身体或者靠近用户的身体的状态。
结合第一方面和上述实现方式,在第一方面的某些实现方式中,检测在该第二位置处,该第一电子设备的该第一轴线和第二电子设备相交,或者该第一电子设备的该第一轴线和第二电子设备在预设精度范围内近似相交之前,该方法还包括:确定该第一电子设备在该第二位置悬停的持续时长大于或等于第二预设时长。
具体地,第一电子设备的IMU检测到第一电子设备加速停止时,且第一电子设备悬停的时间达到第二预设时长t dwell时,就可以确定用户指向了第二电子设备。
当检测到指向操作,进而触发第一电子设备通过无线定位技术确定用户指向的设备的位置。该过程可以结合多个传感器采集的数据,更精确的判断出用户执行了指向操作。
结合第一方面和上述实现方式,在第一方面的某些实现方式中,当该第一轴线方向上的加速度大于或等于该第一阈值时,该方法还包括:显示第一提示信息,该第一提示信息用于引导用户沿着该第一轴线的方向继续加速,该第一提示信息包括文字、图标、声音和震动中的一种或多种。
应理解,由于用户在指向第二电子设备的过程中,会出现手眼分离的现象,即眼睛看不到第一电子设备的界面的情况。因此,本申请实施例对上述任意一种提示信息(前述第一提示信息、第二提示信息、第三提示信息、第四提示信息等)的提示方式不作限定,例如可以是用户可识别有差异的视觉或非视觉提示,如不同的界面提示、震动、指示灯、语音等多种提示方式。
一种可能的实现方式中,在用户使用第一电子设备指向第二电子设备的操作过程中,可以在第一电子设备上显示提示信息,该提示信息用于引导用户执行正确的指向操作,以实现本申请实施例提供的通过指向操作控制第二电子设备。
可选地,该提示信息可以通过第一电子设备上显示的窗口进行显示,或者以图标的形式显示在第一电子设备上,或者以箭头等其他视觉引导的方式,引导用户执行正确的指向操作,以实现本申请实施例提供的通过指向操作控制第二电子设备。可选地,可以根据用户当前所处的不同位置,箭头或图标的显示位置发生变化。
结合第一方面和上述实现方式,在第一方面的某些实现方式中,当该第一轴线方向上的加速度大于或等于该第一阈值的持续时长大于或等于该第一预设时长时,该方法还包括:显示第二提示信息,该第二提示信息用于提示用户沿着该第一轴线的方向的加速时长达到该第一预设时长,该第二提示信息包括文字、图标、声音和震动中的一种或多种。
结合第一方面和上述实现方式,在第一方面的某些实现方式中,当该第一电子设备在 该第二位置悬停的持续时长大于或等于第二预设时长时,该方法还包括:显示第三提示信息,该第三提示信息用于指示该第一电子设备检测在该第二位置处,该第一轴线是否和该第二电子设备相交,该第三提示信息包括文字、图标、声音和震动中的一种或多种。
结合第一方面和上述实现方式,在第一方面的某些实现方式中,检测在该第二位置处,该第一电子设备的该第一轴线和第二电子设备相交,或者该第一电子设备的该第一轴线和第二电子设备在预设精度范围内近似相交之后,该方法还包括:显示第四提示信息,该第四提示信息用于指示该第一电子设备指向了该第二电子设备,该第四提示信息包括文字、图标、声音和震动中的一种或多种。
一种可能的实现方式中,为了精准识别用户的指向操作,降低误触率,本申请实施例可以在预设场景下,才触发第一电子设备检测用户的指向操作,该预设场景包括:第一电子设备为亮屏状态;和/或,第一电子设备为解锁状态;和/或,第一电子设备显示为主界面;和/或,检测到垂直于第一电子设备的显示屏的法线方向和地面有一定的夹角。其中,第一电子设备的显示屏的发现方向和地面有一定的夹角可以理解为显示屏的法线方向不垂直于于地面。
又一种可能的实现方式中,当第一电子设备的IMU检测到第一电子设备加速停止时,且第一电子设备悬停的时间达到第二预设时长t dwell时,可以在第一电子设备出现第三提示信息,第三提示信息用于提示用户被指向的第二电子设备,当用户指向的方向上检测到至少2个设备时,第三提示信息可以为用户显示该至少2个设备的信息。用户可以从中选择第二电子设备。
或者,可选地,此时在被指向的设备上也可以出现第四提示信息,用于提示用户要指向该设备的正确的指向操作。示例性的,如果用户通过第一电子设备指向智慧屏,由于用户在指向过程中会注视着智慧屏,因此可以在智慧屏出现弹窗,该弹窗包括第四提示信息,用于指示用户控制智慧屏所需要执行的正确的指向操作。
以上通过视觉和非视觉的提示方式,在第一电子设备和指向的第二电子设备上进行指向操作的引导和反馈,提升了指向操作的成功率,提高了用户体验。
通过上述预设场景的设置,限定第一电子设备可以一种预设场景或者同时满足多种场景才识别用户是否执行了指向操作,例如第一电子设备仅在亮屏状态和/或解锁状态才识别用户是否执行了指向操作,或者限定第一电子设备显示为主界面才识别用户是否执行了指向操作,或者限定第一电子设备同时满足处于亮屏状态且解锁状态且显示了第一电子设备的主界面时才识别用户是否执行了指向操作,该预设场景的设置可以增加识别用户指向操作的精确性,避免用户只是将第一电子设备递给其他人等可能的场景中的检测,从而降低误触率,提高了用户体验。
结合第一方面和上述实现方式,在第一方面的某些实现方式中,检测在该第二位置处,该第一电子设备的该第一轴线和第二电子设备相交,或者该第一电子设备的该第一轴线和第二电子设备在预设精度范围内近似相交,包括:根据定位器件,检测在该第二位置处,该第一电子设备的该第一轴线和第二电子设备相交,或者该第一电子设备的该第一轴线和第二电子设备在预设精度范围内近似相交,其中,该定位器件是独立安装的定位传感器,或者,该定位器件是安装于该第一电子设备和该第二电子设备上的定位芯片,该定位芯片包括蓝牙定位芯片、超宽带UWB定位芯片、无线保真WIFI定位芯片中的任意一种。
一种可能的实现方式中,在家庭场景中,可以安装至少3个固定的定位器件,并保证该3个定位器件为通电工作状态,且该至少3个定位器件可以和用户的第一电子设备进行通信。
可选地,该定位器件可以是具有定位功能的传感器或者具有定位功能的结构等,例如传感器可以是激光传感器、红外传感器等;具有定位功能的结构可以是定位芯片。例如,具有定位功能的结构可以是蓝牙定位芯片、超宽带UWB定位芯片、无线保真WIFI定位芯片等。
可选地,除了在家庭场景中预先布局上述列举的定位器件之外,该定位器件还可以被安装在家庭场景中的智能电视(智慧屏)、空调、音箱、路由器等设备上。示例性的,如果智慧屏、空调、音箱等设备本身具有UWB芯片,在家庭场景中不需要额外再布局至少3个固定的定位器件,就可以通过第一电子设备和智慧屏、空调、音箱等设备之间的交互实现对家庭场景中的任意一个设备的定位功能,具体的定位算法请参考后续介绍的过程。应理解,本申请实施例对定位器件的数量、实现形式不作限定。
通过上述方案,第一电子设备作为第一电子设备,可以通过家庭场景中布局的3个定位器件检测用户指向的第二电子设备,或者,第一电子设备通过定位芯片检测用户指向的第二电子设备,进一步在检测到用户指一指的快捷手势之后,第二电子设备可以被用户的第一电子设备控制。
结合第一方面和上述实现方式,在第一方面的某些实现方式中,当该第一电子设备的该第一轴线和一个或多个该第二电子设备相交或近似相交时,该方法还包括:显示第二窗口,该第二窗口包括该一个或多个该第二电子设备的信息;在该第二窗口中,检测第一操作;响应于该第一操作,该第一电子设备显示该第一窗口。
通过上述过程,对于位置临近的多个第二电子设备,第一电子设备可能识别到多个被用户指向的设备,或者用户期望控制该临近的多个设备时,可以为用户显示多个设备的卡片,供用户根据自己的需求选择其中的至少一个第二电子设备。该设计更加人性化,更能满足用户的不同需求,提高了用户体验。
结合第一方面和上述实现方式,在第一方面的某些实现方式中,该方法还包括:在该第一窗口中,检测第二操作;响应于该第二操作,该第一电子设备向该第二电子设备发送控制指令,该控制指令用于控制该第二电子设备的行为。
一种可能的情况中,该第二阈值等于该第三阈值。
第二方面,提供了一种第一电子设备,包括:处理器和存储器,该存储器存储有一个或者多个指令,当该一个或者多个指令被该处理器执行时,使得该电子设备执行以下步骤:获取在第一轴线方向上的加速度、第二轴线上的加速度和第三轴线上的加速度,其中,该第一轴线平行于该第一电子设备的长边,该第二轴线平行于该第一电子设备的短边,该第三轴线垂直于该第一轴线和该第二轴线确定的平面;确定用户手持该第一电子设备,以第一位置为起始位置运动到第二位置的运动过程中,该第一轴线方向上的加速度大于或等于第一阈值或该第一轴线方向上的加速度大于或等于该第一阈值的持续时长大于或等于第一预设时长,该第二轴线方向上的加速度小于或等于第二阈值,该第三轴线方向上的加速度小于或等于第三阈值;检测在该第二位置处,该第一电子设备的该第一轴线和第二电子设备相交,或者该第一电子设备的该第一轴线和第二电子设备在预设精度范围内近似相 交;接收该第二电子设备发送的该第二电子设备登录的账号信息和设备信息;根据该第二电子设备登录的账号信息和设备信息,显示第一窗口,该第一窗口显示用于控制该第二电子设备的界面。
结合第二方面,在第二方面的某些实现方式中,当该一个或者多个指令被该处理器执行时,使得该电子设备执行以下步骤:基于加速度传感器、惯性检测单元IMU、陀螺仪中的一种或多种,获取该第一轴线方向上的加速度、该第二轴线上的加速度和该第三轴线上的加速度。
结合第二方面和上述实现方式,在第二方面的某些实现方式中,当该一个或者多个指令被该处理器执行时,使得该电子设备执行以下步骤:通过该第一电子设备的摄像头采集运动过程中的画面;确定在该第一位置处采集的该画面包括用户的人脸特征信息,在该第二位置处采集的该画面不包括该用户的人脸特征信息。
结合第二方面和上述实现方式,在第二方面的某些实现方式中,当该一个或者多个指令被该处理器执行时,使得该电子设备执行以下步骤:通过该第一电子设备的磁力计采集运动过程中的磁感应强度;确定在该第一位置处采集的该磁感应强度大于或等于第四阈值,在该第二位置处采集的该磁感应强度小于或等于第五阈值,且该第四阈值大于该第五阈值。
结合第二方面和上述实现方式,在第二方面的某些实现方式中,当该一个或者多个指令被该处理器执行时,使得该电子设备执行以下步骤:确定该第一电子设备在该第二位置悬停的持续时长大于或等于第二预设时长。
结合第二方面和上述实现方式,在第二方面的某些实现方式中,当该第一轴线方向上的加速度大于或等于该第一阈值时,该一个或者多个指令被该处理器执行时,该电子设备还用于执行以下步骤:显示第一提示信息,该第一提示信息用于引导用户沿着该第一轴线的方向继续加速,该第一提示信息包括文字、图标、声音和震动中的一种或多种。
结合第二方面和上述实现方式,在第二方面的某些实现方式中,当该第一轴线方向上的加速度大于或等于该第一阈值的持续时长大于或等于该第一预设时长时,该一个或者多个指令被该处理器执行时,该电子设备还用于执行以下步骤:显示第二提示信息,该第二提示信息用于提示用户沿着该第一轴线的方向的加速时长达到该第一预设时长,该第二提示信息包括文字、图标、声音和震动中的一种或多种。
结合第二方面和上述实现方式,在第二方面的某些实现方式中,当该第一电子设备在该第二位置悬停的持续时长大于或等于第二预设时长时,该一个或者多个指令被该处理器执行时,该电子设备还用于执行以下步骤:显示第三提示信息,该第三提示信息用于指示该第一电子设备检测在该第二位置处,该第一轴线是否和该第二电子设备相交,该第三提示信息包括文字、图标、声音和震动中的一种或多种。
结合第二方面和上述实现方式,在第二方面的某些实现方式中,当该一个或者多个指令被该处理器执行时,使得该电子设备执行以下步骤:显示第四提示信息,该第四提示信息用于指示该第一电子设备指向了该第二电子设备,该第四提示信息包括文字、图标、声音和震动中的一种或多种。
结合第二方面和上述实现方式,在第二方面的某些实现方式中,当该一个或者多个指令被该处理器执行时,使得该电子设备执行以下步骤:根据定位器件,检测在该第二位置 处,该第一电子设备的该第一轴线和第二电子设备相交,或者该第一电子设备的该第一轴线和第二电子设备在预设精度范围内近似相交,其中,该定位器件是独立安装的定位传感器,或者,该定位器件是安装于该第一电子设备和该第二电子设备上的定位芯片,该定位芯片包括蓝牙定位芯片、超宽带UWB定位芯片、无线保真WIFI定位芯片中的任意一种。
结合第二方面和上述实现方式,在第二方面的某些实现方式中,当该第一电子设备的该第一轴线和一个或多个该第二电子设备相交或近似相交时,该一个或者多个指令被该处理器执行时,该电子设备还用于执行以下步骤:显示第二窗口,该第二窗口包括该一个或多个该第二电子设备的信息;在该第二窗口中,检测第一操作;响应于该第一操作,该第一电子设备显示该第一窗口。
结合第二方面和上述实现方式,在第二方面的某些实现方式中,当该一个或者多个指令被该处理器执行时,使得该电子设备执行以下步骤:在该第一窗口中,检测第二操作;响应于该第二操作,该第一电子设备向该第二电子设备发送控制指令,该控制指令用于控制该第二电子设备的行为。
结合第二方面和上述实现方式,在第二方面的某些实现方式中,该第二阈值等于该第三阈值。
第三方面,本申请提供了一种装置,该装置包含在电子设备中,该装置具有实现上述方面及上述方面的可能实现方式中电子设备行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块或单元。例如,显示模块或单元、检测模块或单元、处理模块或单元等。
第四方面,本申请提供了一种电子设备,包括:触摸显示屏,其中,触摸显示屏包括触敏表面和显示器;定位芯片;一个或多个摄像头;一个或多个处理器;一个或多个存储器;多个应用程序;以及一个或多个计算机程序。其中,一个或多个计算机程序被存储在存储器中,一个或多个计算机程序包括指令。当指令被一个或多个处理器执行时,使得电子设备执行上述任一方面任一项可能的实现中的基于指向操作的设备之间的交互方法。
第五方面,本申请提供了一种电子设备,包括一个或多个处理器和一个或多个存储器。该一个或多个存储器与一个或多个处理器耦合,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,使得电子设备执行上述任一方面任一项可能的实现中的基于指向操作的设备之间的交互方法。
第六方面,本申请提供了一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述任一方面任一项基于指向操作的设备之间的交互方法。
第七方面,本申请提供了一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行上述任一方面任一项基于指向操作的设备之间的交互方法。
附图说明
图1是本申请实施例提供的一例电子设备的结构示意图。
图2是本申请实施例的一例电子设备的软件结构框图。
图3是本申请实施例的一例设备互联的图形用户界面示意图。
图4是本申请实施例的又一例设备互联的图形用户界面示意图。
图5是本申请实施例提供的一例开启设备之间快捷交互功能的图形用户界面示意图。
图6是本申请实施例提供的一例定位器件安装示意图。
图7是本申请实施例提供的一例为手持设备和定位器件建立连接的示意图。
图8是本申请实施例提供的一例确定家庭场景中的设备位置的示意图。
图9是本申请实施例提供的一例设置家庭场景中的设备的示意图。
图10是本申请实施例提供的一例用户指向音箱的示意图。
图11是本申请实施例提供的一例用户指向音箱的示意图。
图12是本申请实施例提供的一例用户通过手持设备控制音箱的示意图。
图13是本申请实施例提供的一例用户指向智慧屏的示意图。
图14是本申请实施例提供的一例用户通过手持设备控制智慧屏的示意图。
图15是本申请实施例提供的一例用户指向空调的示意图。
图16是本申请实施例提供的一例用户通过手持设备控制空调的示意图。
图17是本申请实施例提供的又一例用户通过手持设备控制音箱的示意图。
图18是本申请实施例提供的又一例用户通过手持设备控制音箱的示意图。
图19是本申请实施例提供的一例基于指向操作的设备之间的交互方法的示意性流程图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。
本申请实施例提供的方法可以应用于手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等电子设备上,本申请实施例对电子设备的具体类型不作任何限制。
示例性的,图1示出了电子设备100的结构示意图。电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本 申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过 UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例 中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应 用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效 果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图2是本申请实施例的一例电子设备100的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。应用程序层可以包括一系列应用程序包。
如图2所示,应用程序包可以包括相机、音乐、设置、蓝牙、查找、智慧生活等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括手机界面上相机应用的图标的显示,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通 知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media libraries),三维图形处理库(例如:OpenGL ES),二维图形引擎(例如:SGL)等。表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了二维图层和三维图层的融合。媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。二维图形引擎是二维绘图的绘图引擎。图像处理库可以提供针对各种图像数据的分析以及提供多种图像处理算法等,例如可以提供图像切割、图像融合、图像模糊、图像锐化等处理,此处不再赘述。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
为了便于理解,本申请以下实施例将以具有图1和图2所示结构的手机为例,结合附图和应用场景,对本申请实施例提供的基于指向操作的设备之间的交互方法进行具体阐述。
图3是一例设备互联的图形用户界面(graphical user interface,GUI)示意图,用户可以通过图3所示的过程,发现其他电子设备并和目标电子设备建立连接。其中,图3中的(a)图示出了解锁模式下,手机当前显示的主界面301,该主界面301显示了多款应用程序(application,App),例如音乐、相机、设置和智慧生活等应用程序。应理解,该主界面301还可以包括其他更多的应用程序,本申请实施例对此不作限定。
如图3中的(a)图所示,用户可以在该主界面301的执行从手机底部向上的滑动操作,例如黑色箭头示出的滑动轨迹,响应于用户的滑动操作,手机进入如图3中的(b)图所示的控制中心界面302。该控制中心界面302可以包括不同的控制菜单或控制选项,例如“Airplay镜像”、“Airdrop接收关闭”、“无线局域网(wireless local area networks,WLAN)”、“静音”、“自动旋转”、“相机”等不同的控制菜单或控制选项,本申请实施例对此不作限定。
示例性的,用户可以执行如图3中的(b)图所示的操作,点击该控制中心界面302上的“Airplay镜像”选项,响应于用户的点击操作,手机进入如图3中的(c)图所示的Airplay镜像详情界面303。在该Airplay镜像详情界面303上,可以显示手机发现的设备列表。应理解,该设备列表中可以包括之前和手机已经建立过连接的电子设备,或者包括基于同一用户账号注册的电子设备,或者包括连接在同一网络中的电子设备,又或者包括当前设备扫描发现的电子设备等,本申请实施例对此不作限定。
如果在家庭场景中,用户当前期望手机连接并控制智能电视,用户可以点击“user A’s TV”,手机进入智能电视的控制中心界面403。在该控制中心界面403上,可以包括用于控制智能电视的各类菜单或者按键等,例如退出连接开关、播放进度条、暂停按键、选集按键等,用户可以通过该控制中心界面403的菜单或者按键对家庭场景中的智能电视进行控制。
上述方法通过在手机上进行多设备的设备发现与选择,进而将可以被手机控制的设备显示在列表中,用户可以根据需要在该列表中选择某个设备并进行相应的控制。该过程中,当列表中可选的设备超过一定数量时,用户可以根据设备的图标、设备的名称等进行识别,结合滚屏操作等从多个设备中选择目标设备。一种可能的情况中,设备列表中的设备排列顺序和设备的信号强弱有关,当信号不稳定或用户所处的位置发生变化时,设备列表中的设备排列顺序可能会发生变化,用户需要多次滑动,查找到目标设备,增加了用户的操作成本;此外,由于手机系统无法感知用户期望选择的目标设备,只能把所有扫描到的设备都显示给用户,也增加了用户的操作成本和选择目标设备的时间;再者,在用户从设备列表中选择目标设备时,容易出现误触等误操作。
图4是又一例设备互联的图形用户界面示意图,用户还可以通过图4所示的过程,发现其他电子设备并和目标电子设备建立连接。其中,图4中的(a)图示出了解锁模式下,手机当前显示的主界面401,该主界面401显示了多款应用程序(application,App),例如音乐、相机、设置和查找等应用程序。
如图4中的(a)图所示,用户点击查找应用,响应于用户的点击操作,手机进入如图4中的(b)图所示查找界面402。在该查找界面402上,可以通过地图的方式展示多个设备的位置,示例性的,如图4中的(b)图所示,手机可以查找到设备1、设备2、设备3、设备4和设备5并显示每个设备的位置标签,用于标记每个设备的位置。用户可以通过点击目标设备的位置标签,从而和该目标设备建立连接,或者显示该目标设备的控制中心界面,进一步对目标设备进行控制。
通过查找应用的地图显示多个设备的过程中,地图需要占据手机屏幕的大部分区域,那么设备列表的显示区域相比之下变小,可以显示更少的电子设备。此外,在地图中,设备之间距离较近时会导致多个设备的位置重合,用户点击目标设备时容易误触其他设备;或者该过程需要结合用户执行缩放,拖拽等复杂的交互操作或辅助操作来选择目标设备,增加了用户的操作成本和选择目标设备的时间。
又一种可能的实现方式中,用户还可以通过近距离无线通信技术(near field communication,NFC)的方式,在两个设备在贴有NFC贴片的地方进行接触,实现设备的发现和选择。该过程用户需要将手机接近目标设备,通过物理接触特定的区域进行设备之间的发现和选择,但是不是所有的设备都支持NFC功能,且要求手机和目标设备必须在设备的外观显示NFC贴片,一定程度上影响了设备的外观。
综上所述,现有的设备发现、设备连接或者设备之间控制的过程都需要用户执行复杂的交互操作,增加了用户的操作成本和选择目标设备的时间。鉴于此,本申请实施例将提供一种快捷的设备交互方法,在减少用户操作的情况下,实现设备之间的发现、连接或者设备之间控制等。
应理解,在后续实施例的描述中,将以手机作为用户的手持设备,或者称为“控制设 备”,介绍如何通过手机控制家庭场景中的其他电子设备,或者连接其他电子设备,可以将其他电子设备称为“被控制设备”。在家庭场景中,用户的手持设备可以是具有图1和图2所示结构的手机、平板等设备,被控制设备可以包括智能电视(智慧屏)、空调、音箱、个人电脑、路由器等,此处不再一一举例。下面将以手机控制家庭场景中的智能电视(智慧屏)、空调、音箱为例,详细介绍如何通过快捷手势实现本申请实施例的设备之间的控制过程。
图5是本申请实施例提供的一例开启设备之间快捷交互功能的图形用户界面示意图。其中,图5中的(a)图示出了解锁模式下,手机当前显示的主界面501,用户点击主界面501上设置应用的图标,响应于用户的点击操作,手机显示如图5中的(b)图所示的设置应用的主界面502。具体地,如图5中的(b)图所示,在该设置应用的主界面502上,包括多个用于设置手机网络连接、蓝牙连接、桌面于壁纸、显示与亮度、声音和智能辅助功能的菜单。
用户点击智能辅助与手势控制菜单,响应于用户的点击操作,手机显示如图5中的(c)图所示的智能辅助与手势控制的详情界面503。在界面503上,可以进一步包括多种用于实现智能化控制手机的子菜单,例如旅行助手、单手操作、手势控制、智慧识屏、皮套操作、手写笔操作等子菜单,该界面503还可以包括防误触模式等不同功能的开关,应理解,本申请实施例对界面上显示的菜单或者开关的种类、数量不作限定,每一种菜单或者开关的功能可以参照现有技术的实现,这里不再赘述。
一种可能的实现方式中,本申请实施例可以在智能辅助与手势控制菜单中增加“指一指操控功能”开关,用户可以执行如图5中的(c)图所示的操作,点击该“指一指操控功能”开关,开启本申请实施例将要介绍的设备之间快捷交互功能,即通过快捷手机控制设备之间的交互。
应理解,上述介绍了在设置应用开启该“指一指操控功能”开关,还可以在其他应用中增加该“指一指操控功能”开关,例如在智慧生活应用中增加该“指一指操控功能”开关,用户可以通过智慧生活的“指一指操控功能”开关开启设备之间快捷交互功能,本身实施例对此不作限定。
或者,除了在手机安装的设置应用、智慧生活应用中开启设备之间快捷交互功能之外,还可以通过在手机的通知栏中增加“指一指操控功能”开关。示例性的,用户可以在手机任意的界面上执行从手机顶端向下的下拉操作,响应于用户的下拉操作,手机显示如图3中的(b)图所示的通知界面302,并在该通知界面302中增加“指一指操控功能”开关,用户可以点击该“指一指操控功能”开关,开启设备之间快捷交互功能,本申请实施例对开启设备之间快捷交互功能的方式不作限定。
通过图5介绍的方法,用户开启了本申请实施例提供的通过快捷手势实现设备之间交互功能,在详细介绍快捷手势之前,手机作为用户的手持设备,还需要实现对家庭场景中的智能电视(智慧屏)、空调、音箱、路由器等设备进行定位,即手机需要确定每一个设备的位置,进而更精确的通过快捷手势进行控制。
一种可能的实现方式中,在家庭场景中安装至少3个固定的定位器件,并保证该3个定位器件为通电工作状态,且该至少3个定位器件可以和用户的手持设备进行通信。
可选地,该定位器件可以是具有定位功能的传感器或者具有定位功能的结构等,例如 传感器可以是激光传感器、红外传感器等;具有定位功能的结构可以是芯片。例如,具有定位功能的结构可以是基于蓝牙模块的定位结构、基于超宽带(ultra wide-band,UWB)无线感知能力的定位芯片、基于全球卫星定位系统(global positioning system,GPS)的定位结构、基于无线保真(wireless fidelity,WIFI)模块的定位结构等。
可选地,除了在家庭场景中预先布局上述列举的定位器件之外,该定位器件还可以被安装在家庭场景中的智能电视(智慧屏)、空调、音箱、路由器等设备上。示例性的,如果智慧屏、空调、音箱等设备本身具有UWB芯片,在家庭场景中不需要额外再布局至少3个固定的定位器件,就可以通过手机和智慧屏、空调、音箱等设备之间的交互实现对家庭场景中的任意一个设备的定位功能,具体的定位算法请参考后续介绍的过程。应理解,本申请实施例对定位器件的数量、实现形式不作限定。
图6是本申请实施例提供的一例定位器件安装示意图。具体地,以在家庭场景中安装3个固定的定位器件为例,介绍定位器件的安装规则,具体安装规则可以包括:
(1)无障碍通信规则。
具体地,在定位器件的安装过程中,确保每一个定位器件可以与家庭场景的任意一个设备进行通信,使得手机作为手持设备,可以和每一个定位器件进行通信,进而手机可以精确定位家庭场景中的每一个设备的位置。
示例性的,图6中的(a)图示出了一种错误的安装方式,定位器件1和设备A之间有障碍物阻隔,可能会导致定位器件1和设备A的通信,进而无法通过3个定位器件对家庭场景中的设备A进行定位。在定位器件的安装过程中,可以图6中的(b)图所示,确保家庭场景的任意一个设备B可以与定位器件1、定位器件2、定位器件3分别进行通信,设备B和任意一个定位器件之间没有障碍物的影响。
(2)定位器件的安装高度规则。
具体地,在定位器件的安装过程中,确保每一个定位器件与地面所在平面的高度大于或等于2米,或者称为最小安装高度H-min。该最小安装高度H-min可以确保3个定位器件具有更大的覆盖范围,可以对家庭场景中的任意一个设备进行定位。
示例性的,图6中的(c)图示出了一种错误的安装方式,定位器件2和地面所在平面的高度H2、以及定位器件3和地面所在平面的高度H3小于2米,进而可能导致3个定位器件的覆盖范围小,无法通过3个定位器件对家庭场景中的任意一个设备进行定位。在定位器件的安装过程中,可以图6中的(d)图所示,确保定位器件1、定位器件2、定位器件3分别与地面所在平面的高度大于H-min,即定位器件1、定位器件2、定位器件3安装在距离地面所在平面的大于H-min的阴影区域。
(3)定位器件的大覆盖范围规则。
具体地,在定位器件的安装过程中,确保3个定位器件联合的覆盖范围可以最大化,即尽可能覆盖整个家庭场景中的智慧屏、空调、音箱等设备。
示例性的,图6中的(e)图示出了一种错误的安装方式,定位器件1、定位器件2、定位器件3连接之后形成的三角区域面积小,进而可能导致3个定位器件的覆盖范围小,无法通过3个定位器件对家庭场景中的任意一个设备进行定位。在定位器件的安装过程中,可以图6中的(f)图所示,确保定位器件1、定位器件2、定位器件3连接之后形成的三角区域面积最大化。
(4)定位器件的垂直安装规则。
具体地,在定位器件的安装过程中,确保3个定位器件安装在竖直墙面上,避免将定位装置安装在于地面所在平面具有倾斜角度的墙面上。
示例性的,图6中的(g)图示出了一种错误的安装方式,定位器件1安装在倾斜的墙面上,进而可能导致3个定位器件的覆盖范围小,无法通过3个定位器件对家庭场景中的任意一个设备进行定位。在定位器件的安装过程中,可以图6中的(h)图所示,确保定位器件1、定位器件2、定位器件3都安装在竖直墙面上。
(5)定位器件的均匀安装规则。
具体地,在定位器件的安装过程中,确保3个定位器件安装在不同的墙面上,避免将同一墙面上安装了两个或两个以上的定位器件。
示例性的,图6中的(i)图示出了一种错误的安装方式,定位器件1和定位器件2安装在同一墙面上,进而可能导致3个定位器件的覆盖范围小,无法通过3个定位器件对家庭场景中的任意一个设备进行定位。在定位器件的安装过程中,可以图6中的(h)图所示,确保定位器件1、定位器件2、定位器件3都安装在不同的墙面上。
(6)定位器件之间没有障碍物(墙壁或物体)。
具体地,该规则(1)中介绍的无障碍通信规则保证了家庭场景中的任意一个设备和每一个定位器件之间没有障碍物阻隔,可以进行通信。此外,在定位器件的安装过程中,还应该确保3个定位器件之间没有障碍物阻隔,且在垂直于地面所在平面的方向、和平行于地面所在平面的方向都没有障碍物阻隔,进一步保证3个定位器件的尽可能大的覆盖范围,进而可以通过3个定位器件对家庭场景中的任意一个设备进行定位。
示例性的,图6中的(j)图示出了一种错误的安装方式,定位器件1和定位器件3之间有障碍物阻隔,应该保证3个之间没有障碍物阻隔。
以上介绍了6种安装定位器件的规则,应理解,本申请实施例在保证3个定位器件可以对家庭场景中的任意一个设备进行定位的情况下,可以包括更多或更少的规则,本申请实施例对此不作限定。
安装了3个定位器件之后,还需要建立手持设备和3个定位器件之间的连接,以使得手持设备可以和3个定位器件进行交互,进一步确定家庭场景中每一个设备的位置以及手持设备和每一个设备之间的距离等。
一种可能的实现方式中,可以通过智慧生活应用为手持设备和3个定位器件之间建立连接。示例性的,图7是本申请实施例提供的一例为手持设备和定位器件建立连接的示意图。其中,图7中的(a)图示出了解锁模式下,手机当前显示的主界面701,用户点击主界面701上智慧生活应用的图标,响应于用户的点击操作,手机显示如图7中的(b)图所示的智慧生活应用的主界面702。具体地,如图7中的(b)图所示,在该智慧生活应用的主界面702上,可以包括虚拟体验菜单和添加设备菜单,以及包括“家居”、“商城”、“智能”和“我的”等功能区域。
如图7中的(a)图所示,用户点击该智慧生活应用的主界面702上的“添加设备”菜单,响应于用户的点击操作,手机显示如图7中的(c)图所示的自动扫描界面703。具体地,手机可以自动扫描周围可以进行连接的设备或器件。应理解,在过程中,必须保证安装在家庭场景中的3个定位器件为通电的工作状态,可以被手机搜索发现。
可选地,用户还可以通过该智慧生活应用的主界面702上的“手动添加”或者“扫码添加”等方式发现该3个定位器件,本申请实施例对手机发现定位器件的方式不作限定,此处不再赘述。
当手机扫描到3个定位器件之后,可以显示如图7中的(d)图所示的界面704。在该界面704上,可以显示3个定位器件的名称,例如Tag 1、Tag 2和Tag 3。用户点击定位器件Tag 1,响应于用户的点击操作,该Tag 1可以直接与手机进行连接。或者,可选地,手机可以显示如7中的(e)图所示的网络配置界面705。在该网络配置界面705,用户可以输入当前的网络名称和密码,并点击“下一步”按键,进而手机跳转到如7中的(f)图所示的连接成功界面706。
通过上述步骤,实现了手机和定位器件1的连接,同样地,重复图7中的(d)、(e)和(f)图所示的过程,可以实现手机和定位器件2、定位器件3的连接。或者,手机和定位器件还可以通过“碰一碰”等快捷方式进行连接,本申请实施例对此不再赘述。
当在家庭场景中布局了3个定位器件之后,手持设备可以根据3个定位器件确定家庭场景中每一个设备的位置以及手持设备和每一个设备之间的距离等。
图8是本申请实施例提供的一例确定家庭场景中的设备位置的示意图。其中,在房间所在的空间建立空间坐标系,例如以房间的长、宽和高为坐标轴建立空间坐标系,本申请实施例对建立空间坐标系的方式不作限定。应理解,只要在通过3个定位器件计算家庭场景中每一个设备的位置时使用的是同一个空间坐标系即可。
已知定位器件1的空间坐标(x1,y1,z1),定位器件2的空间坐标(x2,y2,z2),定位器件3的空间坐标(x3,y3,z3),且已知可以测得设备A和定位器件1之间的距离d 1,设备A和定位器件2之间的距离d 2,设备A和定位器件3之间的距离d 3。获取以上的已知参数之后,假设家庭场景中的任意一个设备A的空间坐标(x0,y0,z0),并根据以下计算过程确定x0,y0,z0的值。
(x1-x0) 2+(y1-y0) 2+(z1-z0) 2=d 1 2
(x2-x0) 2+(y2-y0) 2+(z2-z0) 2=d 2 2
(x3-x0) 2+(y3-y0) 2+(z3-z0) 2=d 3 2
求得d 1,d 2,d 3之后,以定位器件1所在位置为圆心、d 1为半径作圆,以定位器件2所在位置为圆心、d 2为半径作圆,以定位器件3所在位置为圆心、d 3为半径作圆,三个圆的交点的位置坐标即为设备A的位置坐标,即可以通过3个定位器件3确定了家庭场景中任意一个设备的位置,手机作为手持设备,可以获取以上的已知参数,并根据以上计算过程确定出任意一个设备的位置。
综上,手机作为手持设备,已经可以和家庭场景中布局的3个定位器件进行通信,要实现进一步基于用户指一指的快捷手势,使用用户手持设备控制家庭场景中的其他设备,还需要赋予家庭场景中的其他设备被控制的能力,下面结合图9介绍一种实现方式,可以赋予家庭场景中的其他设备在检测到用户指一指的快捷手势之后,可以被用户的手持设备控制的能力。
图9是本申请实施例提供的一例设置家庭场景中的设备的示意图。其中,图9中的(a)图示出了解锁模式下,手机当前显示的主界面901,用户点击主界面901上智慧生活应用的图标,响应于用户的点击操作,手机显示如图9中的(b)图所示的智慧生活应用的主 界面902。
可选地,该智慧生活应用的主界面902上已经添加了家庭场景中红外遥控器、我的音箱、华为路由器、我的空调和华为智慧屏,换言之,该智慧生活应用的主界面902上可以显示多个与手持设备已经配对过的设备的卡片。
应理解,在生活应用中添加家庭场景中多种电子设备的方式可以参照现有技术中的方式,例如扫描添加、手动添加、碰一碰添加等多种可能的方式,此处不再赘述。
一种可能的实现方式中,在该智慧生活应用的主界面902上,用户通过预设操作选中某个家庭场景中的设备的卡片所在区域,再把手持设备指向该卡片所在区域对应的设备,从而激活该设备,以约定该设备可以在检测到用户的指一指手势时被手持设备控制。
示例性的,如图9中的(b)图所示,在该智慧生活应用的主界面902上,用户长按“我的音箱”卡片所在区域,并且同时或者一定时段内用户使用手机指向该音箱所放置的位置。
应理解,该长按操作可以触发激活音箱,再通过把手机指向音箱所放置的位置可以使得手机和音箱之间进行信息交互,以约定在手机检测到用户的指一指手势时,音箱可以被手机控制。
还应理解,该过程中,用户通过把手机指向音箱所放置的位置可以使得手机和音箱之间进行信息交互,还可以理解为,手机此时通过前述连接的3个定位器件对音箱进行定位,确定了音箱在家庭场景中的具体位置。
可选地,该触发激活音箱的方式不限于图9中的(b)图示出的长按该“我的音箱”卡片所在区域和手机指向音箱所放置的位置的操作,还可以通过划动操作等其他预设操作或手势,以及手机指向音箱所放置的位置的操作实现,本申请实施例对此不作限定。
另一种可能的实现方式中,用户可以选中某个家庭场景中的设备的卡片所在区域,进入该设备的详情界面,开启该设备的指一指操控功能开关,在检测到用户的指一指手势时,该设备可以被手持设备控制。应理解,在该实现方式中,用户也可以把手持设备指向该卡片所在区域对应的设备,从而激活该设备,手机此时通过前述连接的3个定位器件对该设备进行定位,确定了该设备在家庭场景中的具体位置,并且约定在手持设备检测到用户的指一指手势时,该设备可以被手持设备控制。
可选地,用户可以在该智慧生活应用的主界面902上选中某个家庭场景中的设备的卡片所在区域,或者通过快捷入口选中某个家庭场景中的设备的卡片所在区域。
示例性的,如图9中的(c)图所示,在手机的主界面903上,用户在该界面903上执行如黑色箭头所示的下拉操作,响应于用户的下拉操作,手机显示如图9中的(d)图所示的控制中心界面904,该控制中心界面904上可以显示已经添加的家庭场景中我的音箱和华为智慧屏卡片。
用户点击华为智慧屏卡片所在区域,手机可以进入如图9中的(e)图所示的华为智慧屏的详情界面905。在该华为智慧屏的详情界面905上,可以增加“指一指操控功能”开关,用户点击打开该“指一指操控功能”开关,使得该开关为打开状态,就可以激活该华为智慧屏,手机此时通过前述连接的3个定位器件对该华为智慧屏进行定位,确定了该华为智慧屏在家庭场景中的具体位置,并且以约定在手机检测到用户的指一指手势时,华为智慧屏可以被手机控制。
又一种可能的实现方式中,当用户通过手持设备激活了家庭场景中的某个设备之后,可以向用户展示提示信息,该提示信息用于指示已经将该设备成功激活。
可选地,当手机完成家庭场景中的某个设备的定位后,可以在某个特定的应用或者界面上,以弹窗等方式显示该提示信息,告知用户该设备已经定位完成,被成功激活。
可选地,如果手机激活某设备的过程中,发现该设备和手机的距离很近,可以提示用户“手机和被定位好的XX设备距离较近,建议移开手机或XX设备”,或者,还可以显示多个可能的设备,用户在实际操作中进一步选择当前被定位的设备,本申请实施例对此不作限定。
同理,重复上述操作,手机可以对家庭场景中的智慧屏等其他任意一个设备进行定位和激活,此处不再一一赘述。
结合图9中介绍多种可能的方法,该方法可以在某个特定的应用或界面(例如如智慧生活),或者手持设备的控制中心界面,或者某个设备的设备详情界面等,通过预设操作(长按、划动等操作)或点击预设开关等方式,使得已经与手持设备配对过的、该家庭场景中用户正在使用手持设备指向的其他设备,进入激活状态,以约定在手持设备检测到用户的指一指手势时,该设备可以被手持设备控制。
综上所述,通过图5至图9的介绍,当前的家庭场景中,已经布局了至少3个定位器件,且用户已经开启了手机的指一指操控其他设备的功能,并激活了该家庭场景中的多个设备,约定在手机检测到用户的指一指手势时,该被用户指向的设备可以被手机控制。下面结合图10至图19详细介绍用户通过指一指操作控制家庭场景中的其他设备的实现过程。
图10是本申请实施例提供的一例用户指向音箱的示意图,其中,图10中的(a)图至(c)图的过程示出了用户一种可能的指向操作过程。
示例性的,用户可以以如图10中的(a)图所示的姿势手握手机,并经由如图10中的(b)图所示的姿势,最终以如图10中的(c)图所示的姿势指向家庭场景中的音箱。且手机可以检测到用户手持手机发生了如图所示的位移变化过程,最终指向音箱所在位置。
一种可能的实现方式中,手机作为用户的手持设备,可以借助于手机的一个或多个传感器、或者手机的摄像头等识别用户的指向操作。在后续实施例的描述中,可以将用户的指向操作称为“指一指操作”。
可选地,手机的传感器可以包括加速度传感器、陀螺仪、磁力计(magnetometer sensor,M-sensor)、惯性检测单元(inertial measurement unit,IMU)等。手机的摄像头不限于手机的前置摄像头或后置摄像头;或者,手机的摄像头不限于手机的主摄像头、广角摄像头、长焦摄像头中的一个或多个,根据摄像头获取的画面识别用户的指向操作,本申请实施例对此不作限定。
在判断用户发生指向音箱的动作的过程中,建立如图10中的(d)图所示的坐标系O-XYZ。具体的,该坐标系O-XYZ以手机的重心为坐标原点O,以经过坐标原点O的手机长边框所在直线为Y轴,手机短边框所在直线为X轴,以垂直于地面的直线为Z轴。那么,在用户执行指向操作时,坐标系O-XYZ的移动过程可以如图10中的(b)图、(c)图所示。
示例性的,在用户的指向音箱的操作过程中,可以包括以下动作变化过程:
(1)用户起始位置可以是如图10中的(a)图所示的用户手握手机自然伸直状态,或者如图10中的(b)图所示的用户手握手机自然放置于胸前位置。
换言之,用户的指向操作可以是(a)图直接到(c)图,包括不同的轨迹;或者(b)图直接到(c)图;又或者经由(a)图-(b)图-(c)图的轨迹,本申请实施例对此不作限定。
(2)用户的手臂前伸运动,手机沿Y轴所在的直线进行加速,通过手机的加速度传感器检测到手机沿Y轴所在的直线的加速度大于或等于第一预设阈值a A。加速度的变化曲线可以如图10中的(e)图所示,在T2时刻,手机沿Y轴所在的直线的加速度大于或等于第一预设阈值a A
同时,检测到手机在X轴所在的直线,以及Z轴所在的直线的加速度小于或等于第二预设阈值a B
可选地,手机在不同方向上的加速度可以由手机的IMU进行检测。或者,手机在不同方向上的加速度可以基于手机前置摄像头采集的画面以及常开光流算法进行检测。具体地,利用手机前置摄像头获取画面中的相邻帧,其中相邻帧中特征点在平移过程中的二维矢量场,是通过二维图像来表示物体点三维运动的速度场。即可以根据该物体点三维运动的速度场反映一定时间间隔内,由于该物体点的运动形成的图像变化,以确定图像上该物体点的运动方向和运动速率,进而确定手机的运动轨迹是否为直线或者类直线。
一种可能的实现方式中,当手持设备检测手机沿Y轴所在的直线的运动,且加速度值大于或等于第一预设阈值a A时,如图10中的(e)图所示,在T2时刻可以在手持设备出现第一提示信息,引导用户沿Y轴方向继续加速。
(3)由手机的IMU检测到手机沿Y轴所在的直线的加速度的加速时间达到第一预设时长t a
一种可能的实现方式中,当手持设备检测手机沿Y轴所在的直线的运动,加速度值大于或等于第一预设阈值a A且加速度的加速时间达到第一预设时长t a时,可以在手持设备出现第二提示信息,提示用户手持设备开启了无线定位功能。
(4)检测到手机远离用户的身体。
可选地,手机可以通过磁力计检测远离用户的身体或者靠近用户的身体。由于人体本身是磁场,手机远离人体或者靠近人体时,磁力计检测到的磁场强度会产生明显的变化。因此,可以根据磁力计检测的磁场强度确定手机为远离用户的身体或者靠近用户的身体的状态。
或者,手机可以通过摄像头获取的图像检测远离用户的身体或者远离用户的身体。具体地,手机的摄像头可以实时获取图像,并根据获取的图像进行人脸特征检测。一定时段内,手机先在获取的图像中检测到人脸信息,确定为靠近用户的身体的状态;随后又在获取的图像中未检测到人脸信息,确定为远离用户的身体的状态。当出现上述的变化过程,可以确定手机从靠近用户的身体,逐渐转变为远离用户的身体。
(5)手机的IMU检测到手机加速停止时,且手机悬停的时间达到第二预设时长t dwell
当手机检测到以上的动作变化过程(1)(2)(3)(4)(5)时,可以判定当前用户执行了指向操作,进而触发手机通过无线定位技术确定用户指向的设备的位置。该过程 可以结合多个传感器采集的数据,更精确的判断出用户执行了指向操作。应理解,手机还可以在检测到以上的动作变化过程(1)(2)(3)(4)(5)中的一个或多个时,就触发手机通过无线定位技术确定用户指向的设备的位置,本申请实施例对此不作限定。
另一种可能的实现方式中,为了精准识别用户的指向操作,降低误触率,本申请实施例可以在预设场景下,才触发手持设备检测用户的指向操作,该预设场景包括:手持设备为亮屏状态;和/或,手持设备为解锁状态;和/或,手持设备显示为主界面;和/或,检测到垂直于手持设备的显示屏的法线方向和地面有一定的夹角。其中,手持设备的显示屏的发现方向和地面有一定的夹角可以理解为显示屏的法线方向不垂直于于地面。
又一种可能的实现方式中,当手机的IMU检测到手机加速停止时,且手机悬停的时间达到第二预设时长t dwell时,可以在手持设备出现第三提示信息,第三提示信息用户提示用户被指向的目标设备,当用户指向的方向上检测到至少2个设备时,第三提示信息可以为用户显示该至少2个设备的信息。用户可以从中选择目标设备。
或者,可选地,此时在被指向的设备上也可以出现第四提示信息,用于提示用户要指向该设备的正确的指向操作。示例性的,如果用户通过手机指向智慧屏,由于用户在指向过程中会注视着智慧屏,因此可以在智慧屏出现弹窗,该弹窗包括第四提示信息,用于指示用户控制智慧屏所需要执行的正确的指向操作。
以上通过视觉和非视觉的提示方式,在手持设备和指向的目标设备上进行指向操作的引导和反馈,提升了指向操作的成功率,提高了用户体验。
上述实施例中介绍了在手持设备或者目标设备上显示提示信息的可能情况。应理解,由于用户在指向目标设备的过程中,会出现手眼分离的现象,即眼睛看不到手机的界面的情况。因此,本申请实施例对上述任意一种提示信息(第一提示信息、第二提示信息、第三提示信息、第四提示信息)的提示方式不作限定,例如可以是用户可识别有差异的视觉或非视觉提示,如不同的界面提示、震动、指示灯、语音等多种提示方式。
可选地,手持设备上提示信息的提示效果可以和用户指一指动作的方向、手持设备的加速度等进行匹配。
通过上述预设场景的设置,限定手机可以一种预设场景或者同时满足多种场景才识别用户是否执行了指向操作,例如手机仅在亮屏状态和/或解锁状态才识别用户是否执行了指向操作,或者限定手机显示为主界面才识别用户是否执行了指向操作,或者限定手机同时满足处于亮屏状态且解锁状态且显示了手机的主界面时才识别用户是否执行了指向操作,该预设场景的设置可以增加识别用户指向操作的精确性,避免用户只是将手机递给其他人等可能的场景中的检测,从而降低误触率,提高了用户体验。
另一种可能的实现方式中,当手机确定用户当前进行了针对音箱的指向操作时,可以在用户执行了如图10中的(c)图所示的操作且手机悬停时间达到第二预设时长t dwell时,用户可以按压物理按键,或者执行预设的屏幕手势,或者空中手势等,用于向手机发出信号,确定当前手机检测的检测结果。
示例性的,当如图10中的(c)图所示的操作且手机悬停时间达到第二预设时长t dwell时,用户按压电源键或者音量键,手机可以接收用户的按压操作之后,确定当前检测到的是用户的指向操作。应理解,本申请实施例对用户按压物理按键的次数、按压何种物理按键,或者预设的屏幕手势或空中手势等不作限定。
通过上述过程,可以增加手机识别用户指向操作的精准性,该过程可以理解为,用户通过上述按压操作或者预设手势向手机发送确认信息,确认手机当前检测的动作是用户指向音箱的操作,可以更精确的触发手机对音箱的定位过程。相反,如果手机检测到用户执行了如图10中的(c)图所示的操作且手机悬停时间达到第二预设时长t dwell时,用户没有按压物理按键或者预设收拾,手机没有接收到用户的确认信号,可以不触发对音箱的定位过程。
根据以上步骤,手机已经识别用户当前的指向音箱的操作之后,进一步启动手机的无线定位功能,搜索手机周边设备,并确定周边设备的位置,以及周边设备和手机的距离等,判断用户的指向方向上是否存在设备。示例性的,如图10中的(c)图所示,当手机检测用户如图所示的指向操作时,可以触发手机的无限定位技术。
一种可能的实现方式中,当用户指向的目标设备安装有定位结构时,手机可以根据自身和该目标设备之间的双向连接进行无线定位。示例性的,用户指向的目标设备可以安装有蓝牙定位芯片、UWB定位芯片,或者GPS定位结构、WIFI定位结构、以及具有定位功能的激光传感器、红外传感器等结构中的一种或多种,就可以基于该目标设备和手机之间的双向连接,对目标设备进行定位。
示例性的,如果智慧屏、空调、音箱等设备本身具有UWB芯片,在家庭场景中可以通过手机和智慧屏、空调、音箱等设备之间的交互实现对家庭场景中的任意一个设备的定位。
应理解,手机和指向的目标设备都具备能够发射或者接受无线定位信号的硬件,并根据手机和指向的目标设备之间发射或者接受无线定位信号,计算并确定手机和指向的目标设备之间的距离和角度。
另一种可能的实现方式中,当家庭场景中布局有3个定位器件时,手机可以结合3个定位器件的三点定位能力,确定手机与指向的目标设备之间的距离和方向。
示例性的,按照图6介绍的方法,在家庭场景中安装了3个定位器件之后,再按照图7所示的方法建立手持设备和3个定位器件之间的连接,以使得手持设备可以和3个定位器件进行交互,进一步根据图8介绍的三点定位方法确定家庭场景中每一个设备的位置以及手持设备和每一个设备之间的距离等,此处不再赘述。
综上所述,手机可以通过在多个设备之间进行三角测量,确定手机和指向的目标设备之间的距离和角度。应理解,手机能够发射或者接受无线定位信号,只要家庭场景的空间中包括3个或3个以上固定的能够发射或者接受无线定位信号的定位器件,如图10中的(d)图所示的Tag 1、Tag 2和Tag 3。进一步地,手机通过达到时间差(time difference of arrival,TDOA)计算手机的绝对定位(x,y,z,θ)。即可以通过三点定位方法确定家庭场景中每一个设备的位置以及手持设备和每一个设备之间的距离。
可选地,当家庭场景中具备能够发射或接受无线定位信号的定位器件足够多时,可以确定手机的6自由度(six degrees of freedom,6DoF)的定位,此处不再赘述。
应理解,该定位器件可以独立存在,或者被安装于家庭场景内其他设备上,是智慧屏、空调、音箱等设备的一个组成部件,本申请实施例对此不作限定。
通过以上过程,手机已经识别用户当前的指向音箱的操作,且进一步启动手机的无线定位功能,并确定被用户指向的音箱的位置,响应于上述用户的指向操作之后,可以在手 机上对用户指向的音箱进行控制。
图11是本申请实施例提供的一例用户指向音箱的示意图,图12是本申请实施例提供的一例用户通过手持设备控制音箱的示意图。
示例性的,图11中的(a)、(b)图和(c)图的过程示出了用户一种可能的指向操作过程。具体地,图12中的(a)图显示了手机的主界面1201,当手机为亮屏状态且显示为手机的主界面时,如果用户使用手机执行完上述指向音箱操作之后,手机可以显示如图12中的(b)图所示的界面1202。在该界面1202中,自动弹出音箱控制窗口20,该音箱控制窗口20可以悬浮在手机的主界面上。
可选地,该音箱控制窗口20可以包括窗口缩放选项21、窗口关闭选项22、音箱图标和名称显示区域23、歌曲播放控制区域24。用户可以通过点击窗口缩放选项21将该音箱控制窗口20进行放大全屏显示或者缩小到悬浮显示。该歌曲播放控制区域24可以显示歌手、歌手照片、专辑图片、歌曲名称、播放开关、播放进度条、上一曲、下一曲等按钮,用户可以根据自己的需要点击任意一个按钮,控制音箱的播放。该歌曲播放控制区域24还包括投音按钮,用于控制将手机音乐通过音箱播放,此处不再一一赘述。
应理解,该音箱控制窗口20可以包括以上列举的控制选项、菜单、按钮或者其他功能区域,或者该音箱控制窗口20还可以包括以上没有列举的其他显示内容,例如显示歌词的区域等。该音箱控制窗口20可以根据手持设备的类型和屏幕尺寸等,显示不同样式和内容,此处不再赘述。
图13是本申请实施例提供的一例用户指向智慧屏的示意图,图14是本申请实施例提供的一例用户通过手持设备控制智慧屏的示意图。
示例性的,图13中的(a)、(b)图和(c)图的过程示出了用户一种可能的指向操作过程。具体地,图14中的(a)图显示了手机的主界面1401,当手机为亮屏状态且显示为手机的主界面时,如果用户使用手机执行完上述指向智慧屏操作之后,手机可以显示如图14中的(b)图所示的界面1402。在该界面1402中,自动弹出智慧屏控制窗口30,该智慧屏控制窗口30可以悬浮在手机的主界面上。
可选地,该实施例中图13的用户指向智慧屏的轨迹可以不同于图11中用户指向音箱的轨迹,也可以轨迹相同,本申请实施例对此不作限定。
可选地,该智慧屏控制窗口30可以包括窗口缩放选项31、窗口关闭选项32、智慧屏图标和名称显示区域、智慧屏播放控制区域33。用户可以通过点击窗口缩放选项31将该智慧屏控制窗口30进行放大全屏显示或者缩小到悬浮显示。该智慧屏播放控制区域33可以显示影片名称、选集列表、播放开关、播放进度条、上一集、下一集等按钮,用户可以根据自己的需要点击任意一个按钮,控制智慧屏上影片的播放。
应理解,该智慧屏控制窗口30可以包括以上列举的控制选项、菜单、按钮或者其他功能区域,或者该智慧屏控制窗口30还可以包括以上没有列举的其他显示内容,本申请实施例对此不作限定。该智慧屏控制窗口30可以根据手持设备的类型和屏幕尺寸等,显示不同样式和内容,此处不再赘述。
图15是本申请实施例提供的一例用户指向空调的示意图,图16是本申请实施例提供的一例用户通过手持设备控制空调的示意图。
示例性的,图15中的(a)、(b)图和(c)图的过程示出了用户一种可能的指向操 作过程。具体地,图16中的(a)图显示了手机的主界面1601,当手机为亮屏状态且显示为手机的主界面时,如果用户使用手机执行完上述指向空调操作之后,手机可以显示如图16中的(b)图所示的界面1602。在该界面1602中,自动弹出空调控制窗口40,该空调控制窗口40可以悬浮在手机的主界面上。
可选地,该空调控制窗口40可以包括窗口缩放选项41、窗口关闭选项42、空调图标和名称显示区域43、空调控制区域44。用户可以通过点击窗口缩放选项41将该空调控制窗口40进行放大全屏显示或者缩小到悬浮显示。该空调控制区域44可以显示空调是否开启、制冷等工作模式、室内温度、工作功率、温度增减按钮、风速设置等按钮,用户可以根据自己的需要点击任意一个按钮,控制空调的开启以及温度设置、工作模式设置等。
应理解,该空调控制窗口40可以包括以上列举的控制选项、菜单、按钮或者其他功能区域,或者该空调控制窗口40还可以包括以上没有列举的其他显示内容,本申请实施例对此不作限定。该空调控制窗口40可以根据手持设备的类型和屏幕尺寸等,显示不同样式和内容,此处不再赘述。
通过上述方法,基于手持设备的识别功能和定位功能,当手持设备检测到用户指向目标设备的操作时,可以在手持设备上显示控制该目标设备的窗口,用户可以通过该窗口实现对目标设备的控制。该方法操作简单,减少了用户操作目标设备的步骤;此外,该方法根据用户的指向操作选择目标设备,可以帮助用户选择较远的设备。降低了距离的限制,提高了用户体验。
另一种可能的实现方式中,在用户使用手持设备指向目标设备的操作过程中,可以在手持设备上显示提示信息,该提示信息用于引导用户执行正确的指向操作,以实现本申请实施例提供的通过指向操作控制目标设备。
可选地,该提示信息可以通过手持设备上显示的窗口进行显示,或者以图标的形式显示在手持设备上,或者以其他视觉引导的方式,引导用户执行正确的指向操作,以实现本申请实施例提供的通过指向操作控制目标设备。
图17是本申请实施例提供的又一例用户通过手持设备控制音箱的示意图。
示例性的,图17中的(a)、(b)图和(c)图的过程示出了用户一种可能的指向操作过程。具体地,图17中的(d)图显示了手机的主界面1701,当手机为亮屏状态且显示为手机的主界面1701时,如果用户使用手机执行了图17中的(a)、(b)图所示的操作,一定时段内手机没有检测到图17中的(c)图所示的指向音箱的操作以及悬停等,手机的主界面上可以显示如图17中的(e)图所示的界面1702。在该界面1702中,自动显示引导图标50,该引导图标50可以箭头的形式悬浮在手机的主界面上。
当用户根据该引导图标50继续执行如图17中的(c)图所示的指向操作时,手机的界面可以显示为如17中的(f)图所示的界面1703,在该界面1703上显示图标60,用于指示当前手机重新在检测用户的指向操作。当检测到如图17中的(c)图所示的用户指向音箱的操作时,可以在手持设备上显示音箱控制窗口20,此处不再赘述。
又一种可能的实现方式中,在用户使用手持设备指向目标设备的操作过程中,除了图17中的(e)图所示的引导图标之外,可以通过声音反馈、震动反馈等非视觉的方式,引导用户执行正确的指向操作,以实现本申请实施例提供的通过指向操作控制目标设备。
可选地,该声音反馈的方式可以由手持设备发出,或者由被指向的目标设备发出,例 如手机以语音的方式提示用户“请向右移动”。
可选地,该震动反馈可以由手持设备发出,以更快更灵敏的被用户感知到,应理解,本申请实施例对此不作限定。
或者,当用户使用手持设备成功指向目标设备之后,还可以在手持设备或者被指向的目标设备上提供反馈,该反馈用于告知用户指向操作成功。该反馈信息可以包括视觉反馈、声音反馈、震动反馈等一种或多种。示例性的,如图17中的(f)图所示,当用户使用手机成功指向音箱之后,手机可以震动以告知用户指向操作完成。
应理解,当用户使用手持设备成功指向目标设备之后,目标设备可以将当前登录的账号信息、设备信息传输给手持设备,进而在手持设备上显示如图17中的(g)图所示的目标设备控制窗口。
还应理解,当确定手持设备是否指向目标设备的过程中,识别手持设备的轴线和目标设备的位置在预设范围之内时,即可以确定用户指向的目标设备。具体地,识别手持设备的轴线以一定的预定精度与目标设备的物理位置基本相交,或者识别到手持设备与目标设备对准时,就可以确定用户指向的目标设备,即可以在手持设备或者被指向的目标设备上提供反馈,并传输目标设备的登录的账号信息、设备信息给手持设备,并在手持设备上显示目标设备控制窗口20或者与目标设备相关的界面。
综上所述,本申请实施例提供的一种基于指向操作实现跨设备交互的方法,用户可以使用手持设备指向目标设备,基于手持设备的加速度传感器、陀螺仪、IMU等一种或多种传感器和/或摄像头检测用户的指向操作,触发手持设备的无线定位功能。手持设备根据无线定位功能确定手持设备与其他设备的距离、以及其他设备的所处的位置和方向。当识别到手持设备的轴线与目标设备的物理位置以预定精度判断为相交或基本相交时,还可以在手持设备和/或目标设备上提供视觉反馈、声音反馈、震动等至少一种反馈,并传输目标设备的登录的账号信息、设备信息给手持设备,在手持设备上显示该目标设备的控制窗口,用户可以通过手持设备上的该控制窗口实现对该目标设备的控制。当识别到手持设备的轴线与目标设备的物理位置不相交时,还可以在手持设备和/或目标设备上提供视觉引导、声音引导、震动等至少一种引导方式,以引导用户执行正确的指向操作,进一步实现在手持设备上显示该目标设备的控制窗口以及对该目标设备的控制功能。
另一种可能的实现方式中,用户在执行指向目标设备的动作时,由于同一位置可能存在两个或多个比较临近的设备。换言之,手机运动过程中y轴的轴线可能位于两个设备之间,且该轴线与两个设备的物理位置之间的精度在预定精度之内,判断手机的y轴的轴线同时和设备1或者设备2相交或基本相交时,即用户手持设备的指向操作可以被识别为指向设备1或者设备2。对于该种场景,本申请实施例还提供一种方法,可以在检测用户指向操作的过程中,为用户提供选择窗口,由用户选择其中的目标设备。
图18是本申请实施例提供的又一例用户通过手持设备控制音箱的示意图。示例性的,图18中的(a)图显示了手机的主界面1801,当手机为亮屏状态且显示为手机的主界面1801时,手机在检测用户的指向操作时,可以显示如图18中的(b)图所示的界面1802,在该界面1802上显示引导用户进行正确的指向操作的引导图标50。
如果用户使用手机指向了客厅的空调,由于空调和音箱的位置很接近,因此手机检测用户的指向操作时,判断该指向操作既可以触发空调被手机控制,又可以触发音箱被手机 控制。
在该场景中,手机可以进一步显示如图18中的(c)图所示的界面1803,该界面1803上同时显示识别出的用户当前指向的音箱对应的音箱卡片70和空调对应的空调卡片80。可选地,该音箱卡片70可以仅显示设备名称、图标、缩放选项和窗口关闭选项中的等部分内容;同样地,空调卡片80可以仅显示设备名称、图标、缩放选项和窗口关闭选项中的等部分内容,本申请实施例对此不作限定。
用户可以执行如图18中的(c)图所示的操作,点击当前期望操作或控制的音箱卡片70的任意区域,响应于用户的点击操作,手机显示如如图18中的(d)图所示的界面1804。该界面1804上显示音箱控制窗口20,此处不再赘述。
以上介绍了手机识别到用户指向两个设备时的实现过程,当手机识别到用户指向更多的设备时,也可以根据该方法,为用户显示多个设备的卡片,供用户根据自己的需求选择其中的至少一个目标设备。此外,用户还可以同时点击选择多个设备作为目标设备,那么可以在界面1804上显示多个设备控制窗口,用户可以通过滑动切换的方式更换不同的设备控制窗口,此处不再赘述。
通过上述过程,对于位置临近的多个设备,手持设备可能识别到多个被用户指向的设备,或者用户期望控制该临近的多个设备时,可以为用户显示多个设备的卡片,供用户根据自己的需求选择其中的至少一个目标设备。该设计更加人性化,更能满足用户的不同需求,提高了用户体验。
上述实施例结合图5至图18,从用户交互层面介绍了基于指向操作的设备之间的交互方法,下面将结合图19,从软件实现策略层面,介绍本申请实施例提供的设备之间的交互方法。应理解,该方法可以在如图1、图2所示的具有触摸屏、定位芯片和摄像头组件等结构电子设备(例如手机、平板电脑等)中实现。
图19是本申请实施例提供的一例基于指向操作的设备之间的交互方法的示意性流程图。以手机为作为手持设备,如图19所示,该方法可以包括以下步骤:
1901,用户开启手持设备的指一指操控功能。
示例性的,用户可以按照图5中介绍的方法,通过在设置应用开启该“指一指操控功能”开关,进一步开启手机的通过快捷手势实现设备之间交互功能。
或者,可以在其他应用中增加该“指一指操控功能”开关,例如在智慧生活应用中增加该“指一指操控功能”开关,用户可以通过智慧生活的“指一指操控功能”开关开启手机的通过快捷手势实现设备之间交互功能。
又或者,除了在手机安装的设置应用、智慧生活应用中开启设备之间快捷交互功能之外,还可以通过在手机的通知栏中增加“指一指操控功能”开关。示例性的,用户可以在手机任意的界面上执行从手机顶端向下的下拉操作,响应于用户的下拉操作,手机显示通知界面。用户可以点击该通知界面中的“指一指操控功能”开关,开启手机的通过快捷手势实现设备之间交互功能,本申请实施例对开启设备之间快捷交互功能的方式不作限定。
应理解,手机作为用户的手持设备,还需要实现对家庭场景中的智能电视(智慧屏)、空调、音箱、路由器等设备进行定位,即手机需要确定每一个设备的位置,进而更精确的通过快捷手势进行控制。
一种可能的实现方式中,在家庭场景中安装至少3个固定的定位器件,并保证该3个 定位器件为通电工作状态,且该至少3个定位器件可以和用户的手持设备进行通信。
可选地,至少3个定位器件可以按照图6中介绍的方法和规则进行安装,在按照图7中所示的方法为手机和定位器件建立连接,即手机可以向定位器件之间发送信号或接受定位器件发送的信号。手机可以结合至少3个定位器件,按照图8介绍的过程,确定家庭场景中的任意一个设备的位置。
可选地,该定位器件可以是具有定位功能的传感器或者具有定位功能的结构等,例如传感器可以是激光传感器、红外传感器等;具有定位功能的结构可以是芯片。例如,具有定位功能的结构可以是基于蓝牙模块的定位结构、基于超宽带UWB无线感知能力的定位芯片、基于GPS的定位结构、基于WIFI模块的定位结构等。
可选地,除了在家庭场景中预先布局上述列举的定位器件之外,该定位器件还可以被安装在家庭场景中的智能电视(智慧屏)、空调、音箱、路由器等设备上。示例性的,如果智慧屏、空调、音箱等设备本身具有UWB芯片,在家庭场景中不需要额外再布局至少3个固定的定位器件,就可以通过手机和智慧屏、空调、音箱等设备之间的交互实现对家庭场景中的任意一个设备的定位功能。
1902,检测用户的指向操作。
示例性的,一种可能的实现方式中,手机作为用户的手持设备,可以借助于手机的一个或多个传感器、或者手机的摄像头等识别用户的指向操作。
可选地,手机的传感器可以包括加速度传感器、陀螺仪、磁力计、惯性检测单元IMU等。手机的摄像头不限于手机的前置摄像头或后置摄像头;或者,手机的摄像头不限于手机的主摄像头、广角摄像头、长焦摄像头中的一个或多个,根据摄像头获取的画面识别用户的指向操作,本申请实施例对此不作限定。具体的检测过程可以参照前述图10中用户指向音箱的操作过程的具体描述,此处不再赘述。
1903,用户指向方向上存在其他设备。
1904,当指向方向上没有检测到其他设备时,在手持设备上通过视觉和/或非视觉的提示方式,在手持设备和指向的目标设备上对用户进行指向操作的引导和反馈。
应理解,由于用户在指向目标设备的过程中,会出现手眼分离的现象,即眼睛看不到手机的界面的情况。因此,本申请实施例对上述任意一种提示信息(前述第一提示信息、第二提示信息、第三提示信息、第四提示信息等)的提示方式不作限定,例如可以是用户可识别有差异的视觉或非视觉提示,如不同的界面提示、震动、指示灯、语音等多种提示方式。
一种可能的实现方式中,在用户指向目标设备的过程中,如图17中的(e)图所示,手机可以在界面上自动显示引导图标,该引导图标可以箭头的形式悬浮在手机的界面上。
又一种可能的实现方式中,在用户使用手持设备指向目标设备的操作过程中,除了引导图标之外,可以通过声音反馈、震动反馈等非视觉的方式,引导用户执行正确的指向操作,以实现本申请实施例提供的通过指向操作控制目标设备。
可选地,该声音反馈的方式可以由手持设备发出,或者由被指向的目标设备发出,例如手机以语音的方式提示用户“请向右移动”。
可选地,该震动反馈可以由手持设备发出,以更快更灵敏的被用户感知到,应理解,本申请实施例对此不作限定。
1905,当指向方向上检测到其他设备存在时,手持设备根据无线定位技术或在多个设备之间的三点定位技术,确定手持设备与其他设备的距离和方向。
示例性的,手机识别用户指向目标设备的操作之后,进一步启动手机的无线定位功能,搜索手机周边设备,并确定周边设备的位置,以及周边设备和手机的距离等,判断用户的指向方向上是否存在设备。示例性的,如图10中的(c)图所示,当手机检测用户如图所示的指向操作时,可以触发手机的无限定位技术。
一种可能的实现方式中,当用户指向的目标设备安装有定位结构时,手机可以根据自身和该目标设备之间的双向连接进行无线定位。示例性的,用户指向的目标设备可以安装有蓝牙定位芯片、UWB定位芯片,或者GPS定位结构、WIFI定位结构、以及具有定位功能的激光传感器、红外传感器等结构中的一种或多种,就可以基于该目标设备和手机之间的双向连接,对目标设备进行定位。
示例性的,如果智慧屏、空调、音箱等设备本身具有UWB芯片,在家庭场景中可以通过手机和智慧屏、空调、音箱等设备之间的交互实现对家庭场景中的任意一个设备的定位。
应理解,手机和指向的目标设备都具备能够发射或者接受无线定位信号的硬件,并根据手机和指向的目标设备之间发射或者接受无线定位信号,计算并确定手机和指向的目标设备之间的距离和角度。
另一种可能的实现方式中,当家庭场景中布局有3个定位器件时,手机可以结合3个定位器件的三点定位能力,确定手机与指向的目标设备之间的距离和方向。
1906,确定手持设备的轴线是否以预设精度与目标设备的物理位置基本相交。
当确定手持设备是否指向目标设备的过程中,识别手持设备的轴线和目标设备的位置在预设范围之内时,即可以确定用户指向的目标设备。具体地,识别手持设备的轴线以一定的预定精度与目标设备的物理位置基本相交,或者识别到手持设备与目标设备对准时,就可以确定用户指向的目标设备,即可以在手持设备或者被指向的目标设备上提供反馈,并传输目标设备的登录的账号信息、设备信息给手持设备,并在手持设备上显示目标设备控制窗口20或者与目标设备相关的界面。
可选地,该用户的指向操作可以描述为用户手持手机,以第一位置为起始位置运动到第二位置的指向操作,且在第二位置处,手机长边所在的轴线和一个或多个其他设备相交或近似相交。这里相交可以理解为用户指向的方向上正好存在其他设备;近似相交可以理解为用户指向的方向上的预设精度范围内存在其他设备,这两种情况都可以理解为检测到了用户的指向操作。
应理解,手机的轴线与手机的天线布局有关。当天线布局在手机前端边框处时,用户可以将长边所在的轴线指向目标设备,或者当天线布局在手机壳的里面时,也可以类似于拍照的姿势将手机立起来,将垂直于手机显示屏的法线为轴线,使得该法线所在的轴线指向目标设备,本申请实施例对此不作限定。
1907,手持设备上提供反馈,例如视觉反馈、声音反馈、震动反馈等。
应理解,根据步骤1906确定了用户指向的目标设备,即用户使用手持设备成功指向目标设备。此时还可以在手持设备或者被指向的目标设备上提供反馈,该反馈用于告知用户指向操作成功。该反馈信息可以包括视觉反馈、声音反馈、震动反馈等一种或多种。
示例性的,如图17中的(f)图所示,当用户使用手机成功指向音箱之后,手机可以震动以告知用户指向操作完成。
1908,传输目标设备的登录的账号信息、设备信息、给手持设备,并在手持设备上显示指向设备相关的界面。
当用户使用手持设备成功指向目标设备之后,目标设备可以将当前登录的账号信息、设备信息传输给手持设备,进而在手持设备上显示如图17中的(g)图所示的目标设备控制窗口。
1909,结束。
综上所述,本申请实施例提供的一种基于指向操作实现跨设备交互的方法,用户可以使用手持设备指向目标设备,基于手持设备的加速度传感器、陀螺仪、IMU等一种或多种传感器和/或摄像头检测用户的指向操作,触发手持设备的无线定位功能。手持设备根据无线定位功能确定手持设备与其他设备的距离、以及其他设备的所处的位置和方向。当识别到手持设备的轴线与目标设备的物理位置以预定精度判断为相交或基本相交时,还可以在手持设备和/或目标设备上提供视觉反馈、声音反馈、震动等至少一种反馈,并传输目标设备的登录的账号信息、设备信息给手持设备,在手持设备上显示该目标设备的控制窗口,用户可以通过手持设备上的该控制窗口实现对该目标设备的控制。当识别到手持设备的轴线与目标设备的物理位置不相交时,还可以在手持设备和/或目标设备上提供视觉引导、声音引导、震动等至少一种引导方式,以引导用户执行正确的指向操作,进一步实现在手持设备上显示该目标设备的控制窗口以及对该目标设备的控制功能。
可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用对应各个功能划分各个功能模块的情况下,上述实施例中涉及的电子设备可以包括:显示单元、检测单元和处理单元。其中,显示单元、检测单元、处理单元相互配合,可以用于支持电子设备执行上述步骤等,和/或用于本文所描述的技术的其他过程。
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
本实施例提供的电子设备,用于执行上述视频播放的方法,因此可以达到与上述实现方法相同的效果。
在采用集成的单元的情况下,电子设备可以包括处理模块、存储模块和通信模块。其中,处理模块可以用于对电子设备的动作进行控制管理,例如,可以用于支持电子设备执行上述显示单元、检测单元和处理单元执行的步骤。存储模块可以用于支持电子设备执行 存储程序代码和数据等。通信模块,可以用于支持电子设备与其他设备的通信。
其中,处理模块可以是处理器或控制器。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理(digital signal processing,DSP)和微处理器的组合等等。存储模块可以是存储器。通信模块具体可以为射频电路、蓝牙芯片、Wi-Fi芯片等与其他电子设备交互的设备。
在一个实施例中,当处理模块为处理器,存储模块为存储器时,本实施例所涉及的电子设备可以为具有图1所示结构的设备。
本实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的基于指向操作的设备之间的交互方法。
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的基于指向操作的设备之间的交互方法。
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的基于指向操作的设备之间的交互方法。
其中,本实施例提供的电子设备、计算机可读存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对 现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (27)

  1. 一种设备之间的交互方法,其特征在于,应用于第一电子设备,所述方法包括:
    获取所述第一电子设备在第一轴线方向上的加速度、第二轴线上的加速度和第三轴线上的加速度,其中,所述第一轴线平行于所述第一电子设备的长边,所述第二轴线平行于所述第一电子设备的短边,所述第三轴线垂直于所述第一轴线和所述第二轴线确定的平面;
    确定用户手持所述第一电子设备,以第一位置为起始位置运动到第二位置的运动过程中,所述第一轴线方向上的加速度大于或等于第一阈值或所述第一轴线方向上的加速度大于或等于所述第一阈值的持续时长大于或等于第一预设时长,所述第二轴线方向上的加速度小于或等于第二阈值,所述第三轴线方向上的加速度小于或等于第三阈值;
    检测在所述第二位置处,所述第一电子设备的所述第一轴线和第二电子设备相交,或者所述第一电子设备的所述第一轴线和第二电子设备在预设精度范围内近似相交;
    接收所述第二电子设备发送的所述第二电子设备登录的账号信息和设备信息;
    根据所述第二电子设备登录的账号信息和设备信息,显示第一窗口,所述第一窗口显示用于控制所述第二电子设备的界面。
  2. 根据权利要求1所述的方法,其特征在于,所述获取所述第一电子设备在第一轴线方向上的加速度、第二轴线上的加速度和第三轴线上的加速度,包括:
    基于加速度传感器、惯性检测单元IMU、陀螺仪中的一种或多种,获取所述第一轴线方向上的加速度、所述第二轴线上的加速度和所述第三轴线上的加速度。
  3. 根据权利要求1或2所述的方法,其特征在于,所述检测在所述第二位置处,所述第一电子设备的所述第一轴线和第二电子设备相交,或者所述第一电子设备的所述第一轴线和第二电子设备在预设精度范围内近似相交之前,所述方法还包括:
    通过所述第一电子设备的摄像头采集运动过程中的画面;
    确定所述第一电子设备在所述第一位置处采集的所述画面包括用户的人脸特征信息,在所述第二位置处采集的所述画面不包括所述用户的人脸特征信息。
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述检测在所述第二位置处,所述第一电子设备的所述第一轴线和第二电子设备相交,或者所述第一电子设备的所述第一轴线和第二电子设备在预设精度范围内近似相交之前,所述方法还包括:
    通过所述第一电子设备的磁力计采集运动过程中的磁感应强度;
    确定所述第一电子设备在所述第一位置处采集的所述磁感应强度大于或等于第四阈值,在所述第二位置处采集的所述磁感应强度小于或等于第五阈值,且所述第四阈值大于所述第五阈值。
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,所述检测在所述第二位置处,所述第一电子设备的所述第一轴线和第二电子设备相交,或者所述第一电子设备的所述第一轴线和第二电子设备在预设精度范围内近似相交之前,所述方法还包括:
    确定所述第一电子设备在所述第二位置悬停的持续时长大于或等于第二预设时长。
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,当所述第一轴线方向上的加速度大于或等于所述第一阈值时,所述方法还包括:
    显示第一提示信息,所述第一提示信息用于引导用户沿着所述第一轴线的方向继续加速,所述第一提示信息包括文字、图标、声音和震动中的一种或多种。
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,当所述第一轴线方向上的加速度大于或等于所述第一阈值的持续时长大于或等于所述第一预设时长时,所述方法还包括:
    显示第二提示信息,所述第二提示信息用于提示用户沿着所述第一轴线的方向的加速时长达到所述第一预设时长,所述第二提示信息包括文字、图标、声音和震动中的一种或多种。
  8. 根据权利要求1至7中任一项所述的方法,其特征在于,当所述第一电子设备在所述第二位置悬停的持续时长大于或等于第二预设时长时,所述方法还包括:
    显示第三提示信息,所述第三提示信息用于指示所述第一电子设备检测在所述第二位置处,所述第一轴线是否和所述第二电子设备相交,所述第三提示信息包括文字、图标、声音和震动中的一种或多种。
  9. 根据权利要求1至8中任一项所述的方法,其特征在于,所述检测在所述第二位置处,所述第一电子设备的所述第一轴线和第二电子设备相交,或者所述第一电子设备的所述第一轴线和第二电子设备在预设精度范围内近似相交之后,所述方法还包括:
    显示第四提示信息,所述第四提示信息用于指示所述第一电子设备指向了所述第二电子设备,所述第四提示信息包括文字、图标、声音和震动中的一种或多种。
  10. 根据权利要求1至9中任一项所述的方法,其特征在于,所述检测在所述第二位置处,所述第一电子设备的所述第一轴线和第二电子设备相交,或者所述第一电子设备的所述第一轴线和第二电子设备在预设精度范围内近似相交,包括:
    根据定位器件,检测在所述第二位置处,所述第一电子设备的所述第一轴线和第二电子设备相交,或者所述第一电子设备的所述第一轴线和第二电子设备在预设精度范围内近似相交;
    其中,所述定位器件是独立安装的定位传感器,或者,所述定位器件是安装于所述第一电子设备和所述第二电子设备上的定位芯片,所述定位芯片包括蓝牙定位芯片、超宽带UWB定位芯片、无线保真WIFI定位芯片中的任意一种。
  11. 据权利要求1至10中任一项所述的方法,其特征在于,当所述第一电子设备的所述第一轴线和一个或多个所述第二电子设备相交或近似相交时,所述方法还包括:
    显示第二窗口,所述第二窗口包括所述一个或多个所述第二电子设备的信息;
    在所述第二窗口中,检测第一操作;
    响应于所述第一操作,所述第一电子设备显示所述第一窗口。
  12. 据权利要求1至11中任一项所述的方法,其特征在于,所述方法还包括:
    在所述第一窗口中,检测第二操作;
    响应于所述第二操作,所述第一电子设备向所述第二电子设备发送控制指令,所述控制指令用于控制所述第二电子设备的行为。
  13. 据权利要求1至12中任一项所述的方法,其特征在于,所述第二阈值等于所述第三阈值。
  14. 一种第一电子设备,其特征在于,包括:处理器和存储器,所述存储器存储有一 个或者多个指令,当所述一个或者多个指令被所述处理器执行时,使得所述第一电子设备执行以下步骤:
    获取在第一轴线方向上的加速度、第二轴线上的加速度和第三轴线上的加速度,其中,所述第一轴线平行于所述第一电子设备的长边,所述第二轴线平行于所述第一电子设备的短边,所述第三轴线垂直于所述第一轴线和所述第二轴线确定的平面;
    确定用户手持所述第一电子设备,以第一位置为起始位置运动到第二位置的运动过程中,所述第一轴线方向上的加速度大于或等于第一阈值或所述第一轴线方向上的加速度大于或等于所述第一阈值的持续时长大于或等于第一预设时长,所述第二轴线方向上的加速度小于或等于第二阈值,所述第三轴线方向上的加速度小于或等于第三阈值;
    检测在所述第二位置处,所述第一电子设备的所述第一轴线和第二电子设备相交,或者所述第一电子设备的所述第一轴线和第二电子设备在预设精度范围内近似相交;
    接收所述第二电子设备发送的所述第二电子设备登录的账号信息和设备信息;
    根据所述第二电子设备登录的账号信息和设备信息,显示第一窗口,所述第一窗口显示用于控制所述第二电子设备的界面。
  15. 根据权利要求14所述的第一电子设备,其特征在于,当所述一个或者多个指令被所述处理器执行时,使得所述第一电子设备执行以下步骤:
    基于加速度传感器、惯性检测单元IMU、陀螺仪中的一种或多种,获取所述第一轴线方向上的加速度、所述第二轴线上的加速度和所述第三轴线上的加速度。
  16. 根据权利要求14或15所述的第一电子设备,其特征在于,当所述一个或者多个指令被所述处理器执行时,使得所述第一电子设备执行以下步骤:
    通过所述第一电子设备的摄像头采集运动过程中的画面;
    确定在所述第一位置处采集的所述画面包括用户的人脸特征信息,在所述第二位置处采集的所述画面不包括所述用户的人脸特征信息。
  17. 根据权利要求14至16中任一项所述的第一电子设备,其特征在于,当所述一个或者多个指令被所述处理器执行时,使得所述第一电子设备执行以下步骤:
    通过所述第一电子设备的磁力计采集运动过程中的磁感应强度;
    确定在所述第一位置处采集的所述磁感应强度大于或等于第四阈值,在所述第二位置处采集的所述磁感应强度小于或等于第五阈值,且所述第四阈值大于所述第五阈值。
  18. 根据权利要求14至17中任一项所述的第一电子设备,其特征在于,当所述一个或者多个指令被所述处理器执行时,使得所述第一电子设备执行以下步骤:
    确定所述第一电子设备在所述第二位置悬停的持续时长大于或等于第二预设时长。
  19. 根据权利要求14至18中任一项所述的第一电子设备,其特征在于,当所述第一轴线方向上的加速度大于或等于所述第一阈值时,所述一个或者多个指令被所述处理器执行时,所述第一电子设备还用于执行以下步骤:
    显示第一提示信息,所述第一提示信息用于引导用户沿着所述第一轴线的方向继续加速,所述第一提示信息包括文字、图标、声音和震动中的一种或多种。
  20. 根据权利要求14至19中任一项所述的第一电子设备,其特征在于,当所述第一轴线方向上的加速度大于或等于所述第一阈值的持续时长大于或等于所述第一预设时长时,所述一个或者多个指令被所述处理器执行时,所述第一电子设备还用于执行以下步骤:
    显示第二提示信息,所述第二提示信息用于提示用户沿着所述第一轴线的方向的加速时长达到所述第一预设时长,所述第二提示信息包括文字、图标、声音和震动中的一种或多种。
  21. 根据权利要求14至20中任一项所述的第一电子设备,其特征在于,当所述第一电子设备在所述第二位置悬停的持续时长大于或等于第二预设时长时,所述一个或者多个指令被所述处理器执行时,所述第一电子设备还用于执行以下步骤:
    显示第三提示信息,所述第三提示信息用于指示所述第一电子设备检测在所述第二位置处,所述第一轴线是否和所述第二电子设备相交,所述第三提示信息包括文字、图标、声音和震动中的一种或多种。
  22. 根据权利要求14至21中任一项所述的第一电子设备,其特征在于,当所述一个或者多个指令被所述处理器执行时,使得所述第一电子设备执行以下步骤:
    显示第四提示信息,所述第四提示信息用于指示所述第一电子设备指向了所述第二电子设备,所述第四提示信息包括文字、图标、声音和震动中的一种或多种。
  23. 根据权利要求14至22中任一项所述的第一电子设备,其特征在于,当所述一个或者多个指令被所述处理器执行时,使得所述第一电子设备执行以下步骤:
    根据定位器件,检测在所述第二位置处,所述第一电子设备的所述第一轴线和第二电子设备相交,或者所述第一电子设备的所述第一轴线和第二电子设备在预设精度范围内近似相交;
    其中,所述定位器件是独立安装的定位传感器,或者,所述定位器件是安装于所述第一电子设备和所述第二电子设备上的定位芯片,所述定位芯片包括蓝牙定位芯片、超宽带UWB定位芯片、无线保真WIFI定位芯片中的任意一种。
  24. 据权利要求14至23中任一项所述的第一电子设备,其特征在于,当所述第一电子设备的所述第一轴线和一个或多个所述第二电子设备相交或近似相交时,所述一个或者多个指令被所述处理器执行时,所述第一电子设备还用于执行以下步骤:
    显示第二窗口,所述第二窗口包括所述一个或多个所述第二电子设备的信息;
    在所述第二窗口中,检测第一操作;
    响应于所述第一操作,所述第一电子设备显示所述第一窗口。
  25. 据权利要求14至24中任一项所述的第一电子设备,其特征在于,当所述一个或者多个指令被所述处理器执行时,使得所述第一电子设备执行以下步骤:
    在所述第一窗口中,检测第二操作;
    响应于所述第二操作,所述第一电子设备向所述第二电子设备发送控制指令,所述控制指令用于控制所述第二电子设备的行为。
  26. 据权利要求14至25中任一项所述的第一电子设备,其特征在于,所述第二阈值等于所述第三阈值。
  27. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1至13中任一项所述的方法。
PCT/CN2021/108941 2020-08-05 2021-07-28 基于指向操作的设备之间的交互方法及电子设备 WO2022028290A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US18/040,471 US11921968B2 (en) 2020-08-05 2021-07-28 Method for interaction between devices based on pointing operation, and electronic device
EP21854586.1A EP4184321A4 (en) 2020-08-05 2021-07-28 METHOD FOR INTERACTION BETWEEN DEVICES BASED ON A POINTING OPERATION, AND ELECTRONIC DEVICE

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010781046.7A CN114090140A (zh) 2020-08-05 2020-08-05 基于指向操作的设备之间的交互方法及电子设备
CN202010781046.7 2020-08-05

Publications (1)

Publication Number Publication Date
WO2022028290A1 true WO2022028290A1 (zh) 2022-02-10

Family

ID=80119901

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/108941 WO2022028290A1 (zh) 2020-08-05 2021-07-28 基于指向操作的设备之间的交互方法及电子设备

Country Status (4)

Country Link
US (1) US11921968B2 (zh)
EP (1) EP4184321A4 (zh)
CN (1) CN114090140A (zh)
WO (1) WO2022028290A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112327653A (zh) * 2020-11-13 2021-02-05 北京小米移动软件有限公司 设备控制方法、设备控制装置及存储介质
CN117093068A (zh) * 2022-05-12 2023-11-21 华为技术有限公司 基于穿戴设备的振动反馈方法、系统、穿戴设备和电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120162073A1 (en) * 2010-12-28 2012-06-28 Panasonic Corporation Apparatus for remotely controlling another apparatus and having self-orientating capability
CN103500495A (zh) * 2013-10-09 2014-01-08 广东索博智能科技有限公司 智能家居遥控系统
CN104488233A (zh) * 2014-04-22 2015-04-01 华为终端有限公司 设备选择方法和装置
CN104635505A (zh) * 2015-01-19 2015-05-20 赵树乔 一种与室内智能设备的交互方法
CN106293567A (zh) * 2015-06-08 2017-01-04 联想(北京)有限公司 控制方法、控制装置及电子设备

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7688307B1 (en) * 2006-01-24 2010-03-30 Zilog, Inc. Determining the distance an object has moved using an accelerometer
WO2012027605A2 (en) * 2010-08-27 2012-03-01 Intel Corporation Intelligent remote control system
CN102184014B (zh) * 2011-05-12 2013-03-20 浙江大学 基于移动设备指向的智能家电交互控制方法及装置
KR101404380B1 (ko) * 2012-09-24 2014-06-09 주식회사 팬택 모바일 디바이스 및 모바일 디바이스의 화면 방향 전환 방법
US9462108B2 (en) 2014-05-12 2016-10-04 Lg Electronics Inc. Mobile terminal and method for controlling the mobile terminal
US10222868B2 (en) * 2014-06-02 2019-03-05 Samsung Electronics Co., Ltd. Wearable device and control method using gestures
CN106611493A (zh) * 2017-02-06 2017-05-03 邯郸美的制冷设备有限公司 智能设备控制方法、控制系统和终端
CN106989773B (zh) * 2017-04-07 2019-07-16 浙江大学 一种姿态传感器及姿态更新方法
CN108366170A (zh) * 2018-02-05 2018-08-03 广东欧珀移动通信有限公司 显示控制方法和装置、终端、计算机可读存储介质
CN108563387A (zh) * 2018-04-13 2018-09-21 Oppo广东移动通信有限公司 显示控制方法和装置、终端、计算机可读存储介质
CN111610923B (zh) * 2020-04-26 2022-08-05 北京小米移动软件有限公司 定向操作方法、定向操作装置及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120162073A1 (en) * 2010-12-28 2012-06-28 Panasonic Corporation Apparatus for remotely controlling another apparatus and having self-orientating capability
CN103500495A (zh) * 2013-10-09 2014-01-08 广东索博智能科技有限公司 智能家居遥控系统
CN104488233A (zh) * 2014-04-22 2015-04-01 华为终端有限公司 设备选择方法和装置
CN104635505A (zh) * 2015-01-19 2015-05-20 赵树乔 一种与室内智能设备的交互方法
CN106293567A (zh) * 2015-06-08 2017-01-04 联想(北京)有限公司 控制方法、控制装置及电子设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4184321A4

Also Published As

Publication number Publication date
US11921968B2 (en) 2024-03-05
US20230289022A1 (en) 2023-09-14
EP4184321A1 (en) 2023-05-24
CN114090140A (zh) 2022-02-25
EP4184321A4 (en) 2024-01-10

Similar Documents

Publication Publication Date Title
WO2021013158A1 (zh) 显示方法及相关装置
WO2021129326A1 (zh) 一种屏幕显示方法及电子设备
WO2020052529A1 (zh) 全屏显示视频中快速调出小窗口的方法、图形用户接口及终端
CN113645351B (zh) 应用界面交互方法、电子设备和计算机可读存储介质
WO2021036770A1 (zh) 一种分屏处理方法及终端设备
CN108888959B (zh) 虚拟场景中的组队方法、装置、计算机设备及存储介质
WO2020062294A1 (zh) 系统导航栏的显示控制方法、图形用户界面及电子设备
WO2021078032A1 (zh) 用户界面的显示方法及电子设备
WO2022017393A1 (zh) 显示交互系统、显示方法及设备
WO2020238759A1 (zh) 一种界面显示方法和电子设备
WO2022042770A1 (zh) 控制通信服务状态的方法、终端设备和可读存储介质
WO2022022609A1 (zh) 一种防误触的方法及电子设备
WO2022028537A1 (zh) 一种设备识别方法及相关装置
WO2022028290A1 (zh) 基于指向操作的设备之间的交互方法及电子设备
WO2022042326A1 (zh) 显示控制的方法及相关装置
JP2023500656A (ja) 表示要素の表示方法及び電子機器
WO2022007707A1 (zh) 家居设备控制方法、终端设备及计算机可读存储介质
CN114356195B (zh) 一种文件传输的方法及相关设备
CN114201738B (zh) 解锁方法及电子设备
CN114095542A (zh) 显示控制方法及电子设备
WO2022095820A1 (zh) 一种文本输入的方法、电子设备和系统
CN111580892A (zh) 一种业务组件调用的方法、装置、终端和存储介质
WO2022002213A1 (zh) 翻译结果显示方法、装置及电子设备
CN114079691B (zh) 一种设备识别方法及相关装置
EP4057122A1 (en) Screenshot method and related device

Legal Events

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

Ref document number: 21854586

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021854586

Country of ref document: EP

Effective date: 20230220

NENP Non-entry into the national phase

Ref country code: DE