WO2022028324A1 - 启动应用程序的方法、装置、电子设备和介质 - Google Patents

启动应用程序的方法、装置、电子设备和介质 Download PDF

Info

Publication number
WO2022028324A1
WO2022028324A1 PCT/CN2021/109637 CN2021109637W WO2022028324A1 WO 2022028324 A1 WO2022028324 A1 WO 2022028324A1 CN 2021109637 W CN2021109637 W CN 2021109637W WO 2022028324 A1 WO2022028324 A1 WO 2022028324A1
Authority
WO
WIPO (PCT)
Prior art keywords
app
positional relationship
relative positional
target
target app
Prior art date
Application number
PCT/CN2021/109637
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
Priority claimed from CN202010899131.3A external-priority patent/CN114090102B/zh
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to US18/040,541 priority Critical patent/US20230289199A1/en
Priority to EP21852719.0A priority patent/EP4184298A4/en
Publication of WO2022028324A1 publication Critical patent/WO2022028324A1/zh

Links

Images

Classifications

    • 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/1698Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being a sending/receiving arrangement to establish a cordless communication link, e.g. radio or infrared link, integrated cellular phone
    • 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/448Execution paradigms, e.g. implementations of programming paradigms
    • 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/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
    • 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/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/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03541Mouse/trackball convertible devices, in which the same ball is used to track the 2D relative movement
    • 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/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03547Touch pads, in which fingers can move on a surface
    • 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/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • 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
    • 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/04886Interaction 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 by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • 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/445Program loading or initiating

Definitions

  • the present application relates to the field of multi-device collaboration, and in particular, to a method, an apparatus, an electronic device and a medium for starting an application program.
  • the notebook computer synchronizes the content displayed by the mobile phone on the display screen of the notebook computer through the network connection with the mobile phone. single.
  • the present application provides a method, apparatus, electronic device, computer-readable storage medium and computer program product for starting an application program, which can enrich functions and scenarios and improve the interactive experience in the process of multi-device collaboration.
  • a first aspect provides a method for starting an application, comprising: a first device determining a relative positional relationship between the first device and a second device; and the first device starting a target application according to the relative positional relationship ( Application, APP).
  • the first device can perceive the relative positional relationship with the second device through ultra wideband (UWB) positioning technology, Bluetooth positioning or wireless fidelity (Wi-Fi) positioning, when the relative positional relationship between the two satisfies In the preset condition, the first device can start the corresponding target APP according to the relative positional relationship.
  • UWB ultra wideband
  • Wi-Fi wireless fidelity
  • the interaction mode of the two devices also changes accordingly.
  • the method provided by the present application has more flexible device interaction effects and can provide users with more abundant interactive experience.
  • the first device uses UWB positioning technology to determine the relative positional relationship between the first device and the second device, which has higher accuracy, better performance, and is more suitable for indoor scenarios.
  • the plane on which the screen of the second device is located is the XOY plane
  • the target APP when the relative positional relationship is the first relative positional relationship, the target APP is an APP other than the file transfer APP
  • the first The relative positional relationship includes: the distance between the first device and the second device on the Z axis is less than or equal to a distance threshold; when the relative positional relationship is the second relative positional relationship, the target APP is a file transfer APP
  • the second relative positional relationship includes: the distance between the first device and the second device on the Z axis is greater than the distance threshold.
  • the distance between the first device and the second device in the Z-axis direction is less than or equal to the preset distance threshold, it can be determined that the two are basically in the same plane, and the first device is located from each of the planes where the screen of the second device is located. The direction is close to or away from the second device. At this time, the user usually wants the first device and the second device to perform screen extension or display a virtual keyboard and other interactions. Therefore, the first device can start an APP corresponding to a specific direction, such as a screen extension APP. or keyboard APP.
  • the above distance threshold may be a small value, which is used to constrain whether the two terminal devices are approximately in the same plane.
  • the above-mentioned relative position relationship is that the distance between the first device and the second device in the Z-axis direction is greater than the above-mentioned distance threshold, it is determined that the two are not in the same plane.
  • the devices are kept at a long distance.
  • the user usually wants the first device and the second device to perform file transfer. Therefore, the first device can start the file transfer APP.
  • the foregoing embodiments can provide interactive functions that meet user requirements, and provide users with a richer interactive experience.
  • the second device includes a long side and a short side
  • the first relative positional relationship further includes: the first device approaches the second device from the short side;
  • the target APP includes: a screen Extension APP, screen casting APP or mouse APP.
  • the first device is close to the second device from the short side, that is, the first device is located to the left or right of the second device. At this time, the user's desire has a greater probability of being enhanced.
  • the screen display effect of the second device may add a mouse function to the second device. Therefore, the first device may start a screen extension APP, a screen-casting APP, or a mouse APP.
  • the second device includes a long side and a short side
  • the first relative positional relationship further includes: the first device approaches the second device from the long side;
  • the target APP includes: a keyboard APP or touchpad APP.
  • the first device is close to the second device from the long side, that is, the first device is located below or above the second device.
  • the device adds an input function, therefore, the first device can start a keyboard APP or a touchpad APP.
  • the foregoing embodiments can provide interactive functions that meet user requirements, and provide users with a richer interactive experience.
  • the first relative positional relationship further includes: the projection of the first device on the XOY plane and the second device have an overlapping area; the target APP includes a wireless charging APP.
  • the first relative positional relationship not only indicates that the distance between the first device and the second device is relatively close, but also indicates that the projection of the first device on the XOY plane and the second device have an overlapping area.
  • One device and the second device have a high probability of being in an overlapping stacking state.
  • the user's desire may be to control the first device and the second device to perform wireless charging. Therefore, the first device can be in the positional relationship between the first device and the second device.
  • the wireless charging APP is started for the first relative position relationship to realize wireless charging between the first device and the second device.
  • the second relative positional relationship may further include: an overlapping area exists between the projection of the first device on the XOY plane and the second device.
  • the second relative positional relationship not only indicates that the distance between the first device and the second device is far, but also indicates that the projection of the first device on the XOY plane and the second device have an overlapping area; the first device is held close to the second device.
  • Two devices and maintaining a certain distance is a habitual action of some users when transferring files. Therefore, the first device can start the file transfer APP when the positional relationship between the first device and the second device is the second relative positional relationship.
  • the method further includes: the first device verifies the security of the second device, and when the security verification of the second device passes, the first device determines that the first device The relative positional relationship between the device and the second device; or after the first device determines the relative positional relationship between the first device and the second device, the first device verifies the security of the second device, if If the verification is passed, the target APP is started.
  • the above method may further include: indicating information input according to the user's active modification, where the indicating information is used to indicate the corresponding relationship between the relative positional relationship and the target APP.
  • the first device can determine the corresponding relationship expected by the user based on the indication information. Therefore, in this embodiment, the above-mentioned strategy for launching the target APP can be adjusted individually, so that the target APP meets the user's expectation, and further improves the User interaction experience.
  • the first device may also learn the corresponding relationship between the relative position relationship and the target APP according to the indication information.
  • the first device may train a neural network by using the content indicated by the above indication information as a real value, and learn the corresponding relationship between the relative positional relationship and the target APP through the neural network.
  • the first device can obtain the user's preference by learning the corresponding relationship between the relative positional relationship and the target APP based on the above-mentioned indication information, and adaptively and individually adjusts the strategy for launching the above-mentioned APP based on the user's preference, so that the target APP can be customized.
  • the user's expectations are met, and the user's interactive experience is further improved.
  • the first device may also start the target APP according to the relative positional relationship between the first device and the second device and the relative positional relationship between the first device and the third device.
  • the triggering condition for starting the target APP may not be limited to the relative positional relationship between two or three terminal devices, but may also be the relative positional relationship between more terminal devices, so that the interaction scene is more abundant.
  • the third device may be a device of the same type as the first device and the second device, or may be a different type of device, which is not limited in this embodiment of the present application.
  • an apparatus for starting an application program including a module composed of software and/or hardware, and the unit is configured to execute any one of the methods in the technical solutions described in the first aspect above.
  • an electronic device including: a processor, a memory, and an interface;
  • the processor, the memory, and the interface cooperate with each other, and the processor is configured to execute any one of the methods in the technical solutions described in the first aspect above.
  • a computer-readable storage medium where computer instructions are stored in the computer-readable storage medium, and when the computer instructions are executed on an electronic device or a server, the first aspect described above is executed. Any method in the technical solution.
  • a computer program product includes: computer program code, when the computer program code is run on an electronic device, the electronic device is made to execute the technology described in the first aspect above any method in the program.
  • FIG. 1 is a schematic structural diagram of an example of a terminal device 100 provided by an embodiment of the present application
  • FIG. 2 is a software structural block diagram of a terminal device 100 provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of an example of a method for starting an APP provided by an embodiment of the present application
  • FIG. 4 is a schematic diagram of an example XOY plane and Z axis provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of an example of different APPs corresponding to different relative positional relationships provided by an embodiment of the present application
  • FIG. 6 is a schematic diagram of a distance and an angle relationship between an example of different devices and antennas provided by an embodiment of the present application
  • FIG. 7 is a schematic diagram of an example of the relationship between the antenna position and the incident angle of the incident wave provided by the embodiment of the present application.
  • FIG. 8 is a schematic schematic diagram of an example of the relationship between time and acceleration provided by the embodiment of the application.
  • FIG. 9 is a schematic diagram of an example of area division of different relative positional relationships provided by an embodiment of the present application.
  • FIG. 10 is an example of a schematic diagram of area division of different relative positional relationships after adjustment based on FIG. 9 provided by an embodiment of the present application;
  • FIG. 11 is a schematic flowchart of an example of a method for starting an APP provided by an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of an example of an apparatus for starting an APP provided by an embodiment of the present application.
  • first”, “second” and “third” are only used for descriptive purposes, and should not be understood as indicating or implying relative importance or implying the number of indicated technical features. Thus, a feature defined as “first”, “second”, “third” may expressly or implicitly include one or more of that feature.
  • the method for launching an application can be applied to mobile phones, tablet computers, wearable devices, in-vehicle devices, augmented reality (AR)/virtual reality (VR) devices, notebook computers, super mobile devices
  • AR augmented reality
  • VR virtual reality
  • terminal devices such as a personal computer (ultra-mobile personal computer, UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA), the embodiments of the present application do not impose any restrictions on the specific type of the terminal device.
  • FIG. 1 is a schematic structural diagram of an example of a terminal device 100 provided by an embodiment of the present application.
  • the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone 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 terminal device 100 may include more or less components than those shown in the drawings, 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 terminal 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 terminal 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 the CSI interface, so as to realize the shooting function of the terminal device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the terminal 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 terminal device 100, and can also be used to transmit data between the terminal device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. This interface can also be used to connect other terminal 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 terminal device 100 .
  • the terminal 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 the wireless charging coil of the terminal device 100 . While the charging management module 140 charges the battery 142 , it can also supply power to the terminal 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 terminal 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.
  • the structures of the antenna 1 and the antenna 2 in FIG. 1 are only an example.
  • Each antenna in terminal 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 a wireless communication solution including 2G/3G/4G/5G, etc. applied on the terminal 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 part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part 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 terminal 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 terminal 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 terminal 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 global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system, GLONASS
  • Beidou navigation satellite system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quadsi -zenith satellite system, QZSS
  • SBAS satellite based augmentation systems
  • the terminal 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 terminal device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
  • the terminal 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 terminal 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 terminal device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, and the like.
  • Video codecs are used to compress or decompress digital video.
  • the terminal device 100 may support one or more video codecs.
  • the terminal device 100 can play or record videos in various encoding formats, for example, moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG moving picture experts group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the terminal 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 terminal 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 terminal 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 terminal 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 terminal 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 terminal 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 terminal device 100 answers a call or a voice message, 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 terminal device 100 may be provided with at least one microphone 170C.
  • the terminal device 100 may be provided with two microphones 170C, which may implement a noise reduction function in addition to collecting sound signals.
  • the terminal 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 terminal 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 terminal device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the terminal 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 terminal device 100 .
  • the angular velocity of the end device 100 about three axes ie, the 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 terminal device 100, calculates the distance to be compensated by the lens module according to the angle, and allows the lens to offset the shaking of the terminal 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 terminal 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 terminal device 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D.
  • the terminal 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 terminal device 100 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the terminal device 100 is stationary. It can also be used to identify the posture of terminal devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the terminal device 100 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the terminal 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 terminal device 100 emits infrared light to the outside through the light emitting diode.
  • the terminal device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the terminal device 100 . When insufficient reflected light is detected, the terminal device 100 may determine that there is no object near the terminal device 100 .
  • the terminal device 100 can use the proximity light sensor 180G to detect that the user holds the terminal 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 terminal 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 terminal device 100 is in a pocket, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the terminal device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect the temperature.
  • the terminal device 100 uses the temperature detected by the temperature sensor 180J to execute the temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the terminal device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the terminal device 100 when the temperature is lower than another threshold, the terminal device 100 heats the battery 142 to avoid abnormal shutdown of the terminal device 100 caused by the low temperature.
  • the terminal 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 terminal device 100 , which is different from the position 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 terminal device 100 may receive key input and generate key signal input related to user settings and function control of the terminal 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.
  • the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 .
  • 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 terminal device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
  • the terminal 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 terminal device 100 interacts with the network through the SIM card to realize functions such as calls and data communication.
  • the terminal device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100 .
  • the software system of the terminal 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 terminal device 100 .
  • FIG. 2 is a block diagram of a software structure of a terminal device 100 according to an 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 system is divided into four layers, from top to bottom, the application layer, the application framework layer, the hardware abstraction layer interface definition language (HAL interface definition language, HIDL) layer, the system library and the runtime ( runtime), hardware abstraction (Hardware Abstract Layer, HAL) layer (including UWB library), and kernel (kernel) layer, including UWB driver in the kernel layer.
  • the application layer can include a series of application packages and/or system services.
  • the framework layer may include directional expansion logic, which may include a relative position awareness module to perceive the relative position relationship with other devices, and a strategy selection module to select the required Launched application.
  • 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.
  • the application program may be an APP with a display interface, or may be a system service without a display interface, which is not limited in this embodiment of the present application.
  • the method for launching an APP in this embodiment of the present application can be applied to a multi-device collaborative system composed of two or more terminal devices, for example, a multi-device collaborative system composed of three, four or more terminal devices,
  • the embodiments of the present application are first described by taking two terminal devices as an example.
  • the two terminal devices are respectively defined as the first device and the second device.
  • the first device and the second device may be, for example, the terminal device 100 shown in FIG. 1 , such as a desktop computer, a tablet computer, a smart phone, a wristband, and other devices with a touch screen.
  • the execution body of the embodiment of the present application may be a processor, or may be a first device including a processor.
  • the first device and the second device have corresponding application programs. When the first device starts an APP, the second device starts to interact with the function corresponding to the APP started by the first device, so as to realize multi-device collaboration.
  • FIG. 3 is a schematic flowchart of an example of a method for launching an APP provided by an embodiment of the present application. As shown in Figure 3, the method includes the following steps.
  • the first device determines the relative positional relationship between the first device and the second device.
  • the logic for sensing the relative positional relationship between the two is activated.
  • the above-mentioned relative positional relationship may include the distance between the two and/or the included angle between the two in the space coordinate system; and may also include different location areas divided according to the distance and the included angle.
  • the first device may use Bluetooth positioning or Wi-Fi positioning technology to obtain the relative positional relationship between the two devices; it may also use the UWB positioning technology to obtain the relative positional relationship between the two devices.
  • the phase difference of the signals received by the multiple antennas set on it calculates the angle between the two devices in space, and combines the measured distances to obtain the relative positional relationship between the two.
  • the first device uses the UWB positioning technology to determine the relative positional relationship between the two devices, which has higher accuracy, better performance, and is more suitable for indoor scenarios.
  • the area around the second device may be divided into several sub-areas and marked according to a preset rule to obtain various relative positional relationships.
  • the above-mentioned relative positional relationship may include, but is not limited to, the first device being located at any one of the upper, lower, left, right, lower right, upper right, lower left, upper left, front and rear of the second device, or from the above Approach the second device in all directions.
  • the above-mentioned first device can use UWB ranging technology to periodically measure the distance between the two devices, and when the distance is less than a preset distance threshold, perform the step of determining the relative positional relationship between the two devices; It is also possible to use Wi-Fi, Bluetooth, or ZigBee for ranging between two devices.
  • the UWB ranging method can reduce power consumption.
  • it can also be a ranging instruction triggered by the user actively, for example, the user clicks a ranging button on the touch screen of the first device, or the user performs a corresponding gesture operation on the touch screen of the first device, such as from the bottom of the touch screen. Swipe left to right, or the user inputs a voice command to the first device, such as "start ranging".
  • the period of scanning the distance between the two devices can also be adjusted according to the user's habit. For example, users often perform multi-device collaborative operations during working hours every day, so the scanning cycle can be shortened, so that the devices that need to be coordinated can be found in time, and the response can be more timely; and every night from 6:00 to 8:00, the user may be eating dinner. Time or traffic time, at this time, the scanning period is increased, which can effectively reduce the power consumption of the device.
  • the first device starts the target APP according to the relative position relationship.
  • different relative positional relationships and different APPs may be established in advance according to the user's operating habits or preferences, for example, a corresponding list of relative positional relationships and APPs may be established.
  • different relative positional relationships may represent different intentions of the user.
  • the first device may search for an APP corresponding to the relative positional relationship in the above-mentioned corresponding relationship according to the relative positional relationship, and start it as a target APP.
  • the first device can start the target APP corresponding to the relative positional relationship according to the determined relative positional relationship between the two devices.
  • the interaction mode between the devices also changes.
  • the method provided by the present application has more flexible device interaction effects, and can provide users with a richer interaction experience.
  • the first device may first verify the security of the second device, and when the verification is passed, the first device confirms that the second device is a safe and legal device, and at this time starts the corresponding target APP according to the relative positional relationship , to achieve multi-device collaboration.
  • the method can start the target APP under the condition of ensuring the legality of the second device, avoid data leakage that may be caused by accessing illegal devices, and improve data security.
  • the embodiments of the present application do not limit the execution order of the security verification step and the relative position relationship acquisition step.
  • the security verification step When the security verification step is in the front, it can be pre-determined whether the two devices can safely exchange data, and then start the target APP, which can avoid the invalid operation of other processing procedures caused by the failure of the security verification, thus saving equipment cost.
  • a possible implementation process for the above-mentioned first device to verify the security of the second device may include:
  • the first device can obtain the device identifier of the second device, and check it according to the preset whitelist of devices that are allowed to connect. If the device identifier of the second device is in the above whitelist, then The verification is passed, and the two establish a connection.
  • the first device may compare the account information logged on the first device and the second device. If the account information of the two matches, for example, the account information of the two indicates that the user logged in with the two devices is the same user, for example, the input fingerprint, face recognition, input password, collected iris information, etc. Make sure the verification is passed. If the account information of the two do not match, the user can also confirm whether the verification is passed and establish a connection in the form of a pop-up window.
  • the first device can control to pop up a dialog box on the display screen of the first device or the second device, prompting the user whether to allow the connection to be established. If the user needs to establish a connection, he can click the button to confirm the establishment of the connection, and the verification is passed. If the user does not need multi-device collaboration at this time, or thinks that the second device is not the device that you want to collaborate with, you can also click the button to cancel the connection establishment to exit the current verification process.
  • the above whitelist may be stored locally on the first device or the second device, or may be obtained from the cloud, which is not limited in this embodiment of the present application.
  • the first device performs security verification by combining the whitelist, account information and pop-up dialog box, which can give priority to the automatic verification of the device under the premise of ensuring information security, thereby improving the verification efficiency.
  • Efficiency effectively balances information security and data processing efficiency, so it is more reasonable.
  • the plane where the screen of the second device is located is taken as the XOY plane, and the positive direction of the screen perpendicular to the XOY plane is taken as the positive direction of the Z axis to establish a three-dimensional space Coordinate System.
  • the above-mentioned relative positional relationship may include a first relative positional relationship and a second relative positional relationship.
  • the first relative position relationship indicates that the first device and the second device are in the same plane
  • the second relative position relationship indicates that the first device and the second device are not in the same plane. Whether the two are located in the same plane can be judged according to the distance between the two in the Z-axis direction.
  • the distance between the first device and the second device in the Z-axis direction is less than or equal to the preset distance threshold, it is considered that the two devices are approximately in the same plane, and the first device is located in the plane where the screen of the second device is located. All directions are close to or away from the second device.
  • the user usually wants the first device and the second device to expand the screen or display a virtual keyboard and other interactions. Therefore, the first device can start an APP corresponding to a specific direction, such as a keyboard APP. , touch screen APP, screen mirroring APP and other APPs that do not include file transfer APPs.
  • the above distance threshold may be a small value, which is used to constrain whether the two terminal devices are approximately in the same plane.
  • the distance between the first device and the second device in the Z-axis direction is greater than the distance threshold, it is considered that the two devices are not in the same plane.
  • the user holds the first device close to the second device but keeps a distance from the second device.
  • the user usually wants the first device and the second device to transfer files. Therefore, the first device can start a sharing APP, such as a file transfer APP, to transfer files between the first device and the second device.
  • a sharing APP such as a file transfer APP
  • the two devices are not in the same plane, and the projections of the two on the XOY plane have an overlapping area, that is, the two devices are in a second relative positional relationship, the second relative positional relationship
  • the distance between one device and the second device is far, and it also indicates that the projection of the first device on the XOY plane and the second device have an overlapping area; holding the first device close to the second device and keeping a certain distance is when some users transfer files. Therefore, the first device can start the file transfer APP when the positional relationship between the first device and the second device is the second relative positional relationship.
  • the screen of the second device may be a rectangular screen or an approximately rectangular screen.
  • the longer side can be used as the long side, and the shorter one can be used as the short side. Long and short sides.
  • the first device approaches the second device from different sides, and different APPs can be launched.
  • the first device can start a screen extension APP, a screen-casting APP, or a mouse APP.
  • the foregoing embodiments can provide interactive functions that meet user requirements, and provide users with a richer interactive experience.
  • the content displayed on the screen of the first device can be displayed from the side of the second device, and the user can also operate the screen of the first device displayed on the second device. area to realize the operation of the first device; when the first device starts the screen projection APP, the display screen of the second device is used to display the display content of the first device; when the first device starts the mouse APP, a virtual mouse can be displayed on the display screen Left and right keys and ball keys, the user can use the first device as a mouse by clicking on the screen of the first device and moving the position of the first device.
  • the first device when the first device approaches from the short side of the second device, it may be determined to start a screen extension APP, a screen-casting APP or a mouse APP according to the user's preference and the actual hardware configuration.
  • the first device can obtain the user's use preference by learning the historical data of the user's use, for example, which APP the user uses more often, and can start the corresponding APP. It can also be selected according to the configuration of the external device of the second device. For example, if the second device is not configured with a mouse, the mouse APP can be started first. If the second device is configured with a mouse, the screen extension APP or the screen-casting APP can be started first. .
  • the method can adaptively start the corresponding APP in combination with the user preference and the specific configuration of the hardware when the first device approaches from the short side of the second device, which has a higher degree of automation and is more convenient to use.
  • the first device can start a keyboard APP or a touchpad APP, as shown in part of the scene in FIG. 5 , for example.
  • the first device may display the distribution of keyboard keys. The user uses the first device as a keyboard by touching the keys of the keyboard displayed by the first device.
  • the first device When the first device starts the touchpad APP, the first device may display a handwriting input area, expand the first device into a touchpad, and the user inputs an instruction by touching the touchscreen of the first device.
  • the above embodiments can provide interactive functions that meet user requirements, and provide users with a richer interactive experience.
  • the keyboard APP or the touchpad APP can be selected according to the specific orientation of the first device on the long side. For example, continuing to refer to the partial scene shown in FIG. 5 , when the first device approaches from the right end of the long side, that is, the first device approaches from the lower right of the second device, the touchpad APP can be started. When the middle area is close to the second device, the keyboard APP is started. This method divides the relative position relationship in more detail, combines the user's usage habits more reasonably, and improves the user experience.
  • the first device can also determine the APP that is started when the first device approaches the long side of the second device according to the user's preference. If the user uses the keyboard more often, the keyboard APP can be started; if the user is The elderly, who are used to handwriting, can start the touch template APP. The first device starts the corresponding APP based on the user's preference, which can reasonably match the user's usage habits and improve the user experience.
  • the first device and the second device when the first device and the second device are in the same plane, and the projection of the first device on the XOY plane and the second device have an overlapping area, that is, when the two devices are in a first relative positional relationship, the The first relative positional relationship not only indicates that the distance between the first device and the second device is close, but also indicates that the projection of the first device on the XOY plane and the second device have an overlapping area.
  • the first device and the second device There is a high probability of being in an overlapping stacking state, and the user's desire may be to control the first device and the second device to perform wireless charging. Therefore, the first device starts the wireless charging APP.
  • the first device when the first device approaches the second device from the back of the screen of the second device, and the Z-axis distance between the two is less than the distance threshold, the first device starts the wireless charging APP to realize wireless charging between devices.
  • the foregoing embodiments can provide interactive functions that meet user requirements, and provide users with a richer interactive experience.
  • the corresponding APP can be quickly and automatically started based on the user's usage habits, avoiding the inconvenience caused by manual operation of the multi-device collaborative display mode. , thus making the realization of multi-device collaboration more convenient and faster.
  • the first device can start the corresponding APP according to different relative positional relationships, while realizing the effect of display differentiation, it also forms the expansion of new functions, which meets the diverse interaction needs of users and provides users with more abundant interactive experience.
  • the user can input indication information to the first device, and the first device can determine the relative position relationship expected by the user and the corresponding relationship of the target APP based on the indication information, so as to modify the strategy for launching the APP.
  • this embodiment can make personalized adjustments to the strategy for launching the target APP, so that the target APP meets the user's expectation and further improves the user's interactive experience.
  • the first device may train a neural network by using the content indicated by the above-mentioned indication information as a real value, and learn the corresponding relationship between the relative positional relationship and the target APP through the neural network. For example, when the first device is under the second device, the user closes APP1 that uses the first device as a keyboard, but opens APP2 that uses the first device as a gamepad. It is learned that the user prefers to use the first device as a gamepad, so the corresponding relationship between "below” and APP1 can be released, and the corresponding relationship between "below” and APP2 can be established. By learning the user's preference, the method realizes the personalized adjustment of the above-mentioned APP startup strategy, so that the target APP meets the user's expectation and further improves the user's interactive experience.
  • the triggering condition for starting the target APP may not be limited to the relative positional relationship between two or three terminal devices, but may also be the relative positional relationship between more terminal devices, so that the interaction scene is more abundant .
  • the first device starts a sharing APP among multiple devices to transfer files of the first device to the second device and the third device.
  • the third device may be a device of the same type as the first device and the second device, or may be a different type of device, which is not limited in this embodiment of the present application.
  • the above-mentioned determination of the relative positional relationship between the two using the UWB technology may be implemented based on two antenna structures.
  • these two antenna structures can be set on the first device or the second device.
  • the first antenna structure is: the second device is provided with three antennas that are perpendicular to each other.
  • the direction of one long side of the screen of the second device can be used as the X-axis direction
  • the direction of a short side can be used as the Y-axis direction
  • the second The midpoint of the screen of the device is taken as the origin O
  • the positive direction perpendicular to the screen of the second device is taken as the Z-axis direction to establish a three-dimensional space coordinate system, as shown in FIG. 4 .
  • the number of antennas of the first device is at least one, and this embodiment of the present application does not limit the setting direction of the antennas of the first device.
  • ⁇ and - ⁇ shown in Fig. 7 are the projection angles of the incident angle on the XOY plane
  • ⁇ and - ⁇ are the projection angles of the incident angle on the XOZ plane
  • d is the distance between any two antennas known to the first device distance
  • is the wavelength of the incident wave
  • the projection angle of the incident angle of the incoming wave on the plane where the two antennas are located can be obtained through the plane where any two antennas are located, and the measured phase difference between the antenna a and the antenna b can also be obtained.
  • the method is based on the situation that the three antennas are perpendicular to each other, adopts UWB technology, and combines the trigonometric function relationship to realize the accurate and rapid positioning of the relative position relationship between the two devices, realizes the precise start of the APP in the multi-device collaboration, and improves the user experience. experience.
  • the second antenna structure is: the second device is provided with two antennas that are perpendicular to each other, and the direction of a long side of the screen of the second device is taken as the X-axis direction, the direction of a short side is taken as the Y-axis direction, and the The midpoint of the screen is taken as the origin O, and the positive direction perpendicular to the screen of the second device is taken as the Z-axis direction to establish a three-dimensional space coordinate system.
  • the number of antennas of the first device is at least one, and the direction of the antenna of the first device is not limited in this embodiment of the present application. Based on the principle shown in FIG.
  • the relative positions of the two devices projected on the XOY plane can be obtained first, and based on the data of the device (inertial measurement unit, IMU) that measures the three-axis attitude angle and acceleration of the object, the first device can be obtained at The Z-axis distance perpendicular to the XOY plane direction, so as to obtain the relative positional relationship between the two devices.
  • the way of obtaining the Z-axis distance from the IMU data may be to measure the acceleration a of the movement of the first device according to the sensor.
  • the initial Z-axis distance between the two devices may be that when the second device senses that the first device has entered the sensing range, the sensing range of the first device is used as the initial Z-axis distance, or the initial Z-axis distance sensed by other sensors may be read.
  • the axis distance the embodiment of the present application does not limit the acquisition method of the initial Z-axis distance.
  • the method is based on the combination of UWB ranging and IMU data when the second device has a structure in which two antennas are perpendicular to each other, so as to achieve accurate positioning of the relative positional relationship between the two devices, so it does not depend on the first device of the second device.
  • the existence of three antennas enables accurate and fast positioning, and is applicable to a wider range of scenarios.
  • the first device pre-establishes different relative positional relationships and corresponding relationships of different APPs according to the usage habits of most users.
  • the area around the second device can be divided as shown in FIG. 9 , and the front can be In the orientation of the screen of the second device (not shown in the figure), the rear can be the orientation of the rear shell of the second device (not shown in the figure).
  • the area division of the above-mentioned relative positional relationship can also be adaptively adjusted according to the usage habits of different users, such as the area division shown in FIG.
  • the method realizes the personalized correction of the above-mentioned area division around the second device, and further improves the user's interactive experience.
  • the first device When the first device can sense that it is close to the second device within a certain range, it starts the subsequent logic; or the first device receives a startup instruction actively triggered by the user, and executes the subsequent APP startup strategy.
  • the first device first determines whether the second device is a trusted device in the whitelist, and if so, the verification is passed.
  • the second device is not a trusted device determined by the first device, continue to determine whether the accounts logged in by the two devices are the same person, and if so, a connection can be established.
  • the above-mentioned proximity sensing may also be that the second device senses the first device, which is not limited in this embodiment of the present application.
  • a dialog box is selected to pop up on the first device or the second device to remind the user whether a connection needs to be established.
  • the first device or the second device uses the UWB method to obtain the relative positional relationship between the two devices.
  • the Z-axis distance of the two terminal devices is less than or equal to the distance threshold, it can be determined that the two are basically in the same plane.
  • the Z-axis distance of the two devices is greater than the distance threshold, it can be determined that the two devices are not in the same plane, and at this time, it can be continued to determine whether the projections of the two devices in the plane where the screen of the second device is located overlap. If it overlaps, it can be determined to start the APP of the sharing class.
  • the first device may also accept the instruction information input by the user to modify the startup strategy of the APP, or learn the usage habits and preferences of the user, so as to update the startup strategy.
  • FIG. 12 shows a schematic structural diagram of an example of an apparatus for starting an application program provided by an embodiment of the present application.
  • the apparatus 1200 includes a determination module 1201 and an activation module 1202 .
  • a determining module 1201 configured to control the first device to determine the relative positional relationship between the first device and the second device;
  • the starting module 1202 is configured to control the first device to start the target application program APP according to the relative positional relationship.
  • the plane on which the screen of the second device is located is the XOY plane
  • the target APP when the relative positional relationship is the first relative positional relationship, the target APP is an APP other than the file transfer APP
  • the first The relative positional relationship includes: the distance between the first device and the second device on the Z axis is less than or equal to a distance threshold; when the relative positional relationship is the second relative positional relationship, the target APP is a file transfer APP
  • the second relative positional relationship includes: the distance between the first device and the second device on the Z axis is greater than the distance threshold.
  • the second device includes a long side and a short side
  • the first relative positional relationship further includes: the first device approaches the second device from the short side;
  • the target APP includes: a screen Extension APP, screen casting APP or mouse APP.
  • the second device includes a long side and a short side
  • the first relative positional relationship further includes: the first device approaches the second device from the long side;
  • the target APP includes: a keyboard APP or touchpad APP.
  • the first relative positional relationship further includes: the projection of the first device on the XOY plane and the second device have an overlapping area; the target APP includes a wireless charging APP.
  • the second relative positional relationship further includes: an overlapping area exists between the projection of the first device on the XOY plane and the second device.
  • the apparatus 1200 further includes a verification module for controlling the first device to verify the security of the second device; the startup module 1202 is specifically configured to: when the security verification of the second device passes When , the first device is controlled to start the target APP according to the relative positional relationship.
  • the apparatus 1200 further includes an acquisition module configured to control the first device to acquire indication information input by the user, where the indication information is used to indicate the corresponding relationship between the relative positional relationship and the target APP; start the module 1202 , which is specifically used to: control the first device to start the target APP according to the relative position relationship and the indication information.
  • an acquisition module configured to control the first device to acquire indication information input by the user, where the indication information is used to indicate the corresponding relationship between the relative positional relationship and the target APP
  • start the module 1202 which is specifically used to: control the first device to start the target APP according to the relative position relationship and the indication information.
  • the apparatus 1200 further includes a learning module, configured to control the first device to learn the corresponding relationship between the relative position relationship and the target APP according to the indication information.
  • a learning module configured to control the first device to learn the corresponding relationship between the relative position relationship and the target APP according to the indication information.
  • the starting module 1202 is specifically configured to: control the first device to start the target APP according to the relative positional relationship between the first device and the second device and the relative positional relationship between the first device and the third device .
  • the determining module 1201 is specifically configured to: control the first device to determine the relative positional relationship between the first device and the second device using the ultra-wideband UWB technology.
  • An embodiment of the present application further provides an electronic device, including the above-mentioned processor.
  • the electronic device provided in this embodiment may be the terminal device 100 shown in FIG. 1 , and is configured to execute the above method for starting an application program.
  • the terminal device may include a processing module, a storage module and a communication module.
  • the processing module may be used to control and manage the actions of the terminal device, for example, may be used to support the terminal device to perform steps performed by the display unit, the detection unit, and the processing unit.
  • the storage module can be used to support the terminal device to execute stored program codes and data.
  • the communication module can be used to support the communication between the terminal 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 terminal devices, such as a radio frequency circuit, a Bluetooth chip, and a Wi-Fi chip.
  • the terminal device involved in this embodiment may be a device having the structure shown in FIG. 1 .
  • Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the processor is made to execute the description in any of the foregoing embodiments. method to start the application.
  • Embodiments of the present application also provide 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 implement the method for starting an application program in the above-mentioned embodiment.
  • 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.

Abstract

本申请涉及多设备协同领域,提供了一种启动应用程序的方法、装置、电子设备和介质,电子设备可以是手机、平板电脑、可穿戴设备、车载设备等,该方法包括:第一设备确定所述第一设备与第二设备的相对位置关系;所述第一设备根据所述相对位置关系启动目标应用程序。以上方法在多设备协同过程中,提高了用户的交互体验。

Description

启动应用程序的方法、装置、电子设备和介质
本申请要求于2020年08月05日提交国家知识产权局、申请号为202010779550.3、申请名称为“启动应用程序的方法、终端设备、多设备协同系统和介质”的中国专利申请的优先权,以及要求于2020年08月31日提交国家知识产权局、申请号为202010899131.3、申请名称为“启动应用程序的方法、装置、电子设备和介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及多设备协同领域,具体涉及一种启动应用程序的方法、装置、电子设备和介质。
背景技术
随着互联网科技和电子信息技术的快速发展,多设备协同在移动办公、智慧家庭等场景下发挥出越来越重要的作用。例如在多设备协同办公的时候,将手机和笔记本电脑建立连接,笔记本电脑上会同步显示手机屏幕的显示内容。
传统的多设备协同办公的过程中,笔记本电脑通过和手机的网络连接,将手机所显示的内容同步在笔记本电脑的显示屏幕上进行显示,然而这种多设备协同方式的功能单一,且应用场景单一。
发明内容
本申请提供了一种启动应用程序的方法、装置、电子设备、计算机可读存储介质和计算机程序产品,能够丰富功能和场景,提高多设备协同过程中的交互体验。
第一方面,提供了一种启动应用程序的方法,包括:第一设备确定所述第一设备与第二设备的相对位置关系;所述第一设备根据所述相对位置关系启动目标应用程序(Application,APP)。
第一设备可以通过超宽带(ultra wideband,UWB)定位技术、蓝牙定位或者无线保真(wireless fidelity,Wi-Fi)定位来感知和第二设备的相对位置关系,当二者的相对位置关系满足预设条件时,第一设备可以根据这个相对位置关系启动与之对应的目标APP。当两个设备的位置关系不同时,两个设备的交互方式也随之变化,相比于传统的固定交互方式,本申请提供的方法具有更加灵活的设备交互效果,能够为用户提供更加丰富的交互体验。
可选地,所述第一设备采用UWB定位技术确定所述第一设备与所述第二设备的相对位置关系,其精度更高,性能更好,也更适用于室内场景。
可选地,所述第二设备的屏幕所在的平面为XOY平面,当所述相对位置关系为第一相对位置关系时,所述目标APP为除文件传输APP之外的APP,所述第一相对位置关系包括:所述第一设备在Z轴上与所述第二设备的距离小于等于距离阈值;当所述相对位置关系为第二相对位置关系时,所述目标APP为文件传输APP,所述第二相对位置关系包括:所述第一设备在Z轴上与所述第二设备的距离大于所述距离阈值。
当第一设备和第二设备在Z轴方向上的距离小于或等于预设的距离阈值的时候,可以确定二者基本处于同一个平面,第一设备从第二设备的屏幕所在平面中的各个方向靠近或 远离第二设备,此时,用户通常希望第一设备和第二设备进行屏幕扩展或者显示虚拟键盘等交互,因此,第一设备可以启动与具体的方向对应的APP,如屏幕扩展APP或键盘APP。上述距离阈值可以为一个较小的值,用于约束两个终端设备是否近似处于同一平面内。当上述相对位置关系为第一设备和第二设备在Z轴方向的距离大于上述距离阈值的时候,则确定二者不在同一个平面,例如,用户手持第一设备靠近第二设备但与第二设备保持较远的距离,此时用户通常希望第一设备和第二设备进行文件传输,因此,第一设备可以启动文件传输APP。上述实施例能够提供符合用户需求的交互功能,为用户提供更加丰富的交互体验。
可选地,所述第二设备包括长边和短边,所述第一相对位置关系还包括:所述第一设备从所述短边靠近所述第二设备;所述目标APP包括:屏幕扩展APP、投屏APP或鼠标APP。
以第二设备的屏幕为矩形屏幕为例,第一设备从短边靠近第二设备,即第一设备处于第二设备的左方或者右方,此时用户的愿望有较大的概率是增强第二设备的屏幕显示效果或者为第二设备增加鼠标功能,因此,第一设备可以启动屏幕扩展APP、投屏APP或者鼠标APP。上述实施例能够提供符合用户需求的交互功能,为用户提供了更为丰富的交互体验。
可选地,所述第二设备包括长边和短边,所述第一相对位置关系还包括:所述第一设备从所述长边靠近所述第二设备;所述目标APP包括:键盘APP或触摸板APP。
以第二设备的屏幕为矩形屏幕为例,第一设备从长边靠近第二设备,即第一设备处于第二设备的下方或上方,此时用户的愿望有较大的概率是为第二设备增加输入功能,因此,第一设备可以启动键盘APP或者触摸板APP。上述实施例能够提供符合用户需求的交互功能,为用户提供了更为丰富的交互体验。
可选地,所述第一相对位置关系还包括:所述第一设备在所述XOY平面上的投影与所述第二设备存在重叠区域;所述目标APP包括无线充电APP。
在本实施例中,第一相对位置关系除了指示第一设备和第二设备的距离较近,还指示第一设备在XOY平面上的投影与所述第二设备存在重叠区域,此时,第一设备和第二设备有较大的概率处于重叠堆放状态,用户的愿望可能是控制第一设备和第二设备进行无线充电,因此,第一设备可以在第一设备和第二设备的位置关系为第一相对位置关系时启动无线充电APP,实现第一设备和第二设备之间的无线充电。上述实施例能够提供符合用户需求的交互功能,为用户提供了更为丰富的交互体验。
可选地,所述第二相对位置关系还可以包括:所述第一设备在所述XOY平面上的投影与所述第二设备存在重叠区域。
在本实施例中,第二相对位置关系除了指示第一设备和第二设备的距离较远,还指示第一设备在XOY平面上的投影与第二设备存在重叠区域;手持第一设备靠近第二设备并且保持一定的距离是一些用户进行文件传输时的习惯动作,因此,第一设备可以在第一设备和第二设备的位置关系为第二相对位置关系时启动文件传输APP。上述实施例能够提供符合用户需求的交互功能,为用户提供了更为丰富的交互体验。
可选地,所述方法还包括:所述第一设备校验所述第二设备的安全性,当所述第二设备的安全性校验通过时,所述第一设备确定所述第一设备与所述第二设备的相对位置关 系;或者是第一设备确定所述第一设备与所述第二设备的相对位置关系之后,第一设备校验所述第二设备的安全性,如果校验通过,则启动目标APP。
通过第一设备校验第二设备的安全性,避免了接入不合法设备可能导致的数据泄露,提高了数据的安全性。
结合第一方面,在第一方面的有些实现方式中,上述方法还可以包括:根据用户的主动修改时输入的指示信息,该指示信息用于指示相对位置关系和目标APP的对应关系。
当用户输入指示信息时,第一设备可以基于指示信息确定用户期望的对应关系,因此,本实施例能够对上述目标APP启动的策略进行个性化调整,使得目标APP满足用户的期望,进一步提高了用户的交互体验。
可选地,第一设备还可以根据所述指示信息学习所述相对位置关系与所述目标APP的对应关系。
第一设备可以将上述指示信息指示的内容作为真实值训练神经网络,通过神经网络学习相对位置关系与目标APP的对应关系。第一设备通过对上述指示信息对上述相对位置关系与所述目标APP的对应关系进行学习,能够获取用户的偏好,基于用户偏好对上述APP启动的策略自适应地进行个性化调整,使得目标APP满足用户的期望,进一步提高了用户的交互体验。
可选地,第一设备还可以根据所述第一设备与所述第二设备的相对位置关系以及所述第一设备与第三设备的相对位置关系启动目标APP。
启动目标APP的触发条件可以不限于两个或三个终端设备之间的相对位置关系,还可以是更多个终端设备之间的相对位置关系,使得交互场景更为丰富。其中,第三设备可以是和第一设备、第二设备同类型的设备,也可以是不同类型的设备,对此本申请实施例也不做限定。
第二方面,提供了一种启动应用程序的装置,包括由软件和/或硬件组成的模块,该单元用于执行如上述第一方面所述的技术方案中任意一种方法。
第三方面,提供了一种电子设备,包括:处理器、存储器和接口;
所述处理器、存储器和接口相互配合,所述处理器用于执行如上述第一方面所述的技术方案中任意一种方法。
第四方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,当所述计算机指令在电子设备、或者服务器上运行时,执行如上述第一方面所述的技术方案中任意一种方法。
第五方面,提供了一种计算机程序产品,所述计算机程序产品包括:计算机程序代码,当所述计算机程序代码在电子设备上运行时,使得该电子设备执行如上述第一方面所述的技术方案中任意一种方法。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的一例终端设备100的结构示意图;
图2是本申请实施例提供的终端设备100的软件结构框图;
图3是本申请实施例提供的一例启动APP的方法的流程示意图;
图4是本申请实施例提供的一例XOY平面和Z轴的示意图;
图5是本申请实施例提供的一例不同相对位置关系所对应的不同APP的示意图;
图6是本申请实施例提供的一例不同的设备和天线之间的距离和角度关系示意图;
图7是本申请实施例提供的一例天线位置和入射波的入射角的关系示意图;
图8申请实施例提供的一例时间和加速度之间的相互关系的原理示意图;
图9是本申请实施例提供的一例不同相对位置关系的区域划分示意图;
图10是本申请实施例提供的一例基于图9进行调整之后的不同相对位置关系的区域划分示意图;
图11是本申请实施例提供的一例启动APP的方法的流程示意图;
图12是本申请实施例提供的一例启动APP的装置的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,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用于发射和接收电磁波信号。图1中的天线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的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将系统分为四层,从上至下分别为应用程序层,应用程序框架层,硬件抽象层接口定义语言(HAL interface definition language,HIDL)层,系统库和运行时(runtime),硬件抽象(Hardware Abstract Layer,HAL)层(包括UWB库),以及内核(kernel)层,内核层中包括UWB驱动。应用程序层可以包括一系列应用程序包和/或系统服务。
如图2所示,框架层中可以包括方向性扩展逻辑,该方向性扩展逻辑可以包括相对位置感知模块,用来感知与其他设备的相对位置关系,还可以包括策略选择模块,用来选择需要启动的应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
为了便于理解,本申请以下实施例将以具有图1和图2所示结构的终端设备为例,结合附图和应用场景,对本申请实施例提供的启动应用程序的方法进行具体阐述,这里的应用程序可以是带有显示界面的APP,也可以是没有显示界面的系统服务,本申请实施例对此不作限定。
本申请实施例中的启动APP的方法可以应用在两个或两个以上的终端设备所组成的多设备协同系统中,例如三个、四个或更多的终端设备组成的多设备协同系统,本申请实施例首先以两个终端设备为例进行描述。这里将这两个终端设备分别定义为第一设备和第二设备。第一设备和第二设备例如可以是图1所示的终端设备100,例如台式电脑、平板电脑、智能手机、手环等具有触摸屏的设备。本申请实施例的执行主体可以是处理器,也可以是包含处理器的第一设备。上述第一设备和第二设备具有对应的应用程序,当第一设备启动某个APP的时候,第二设备启动与第一设备启动的APP对应的功能进行交互,实现多设备协同。
图3是本申请实施例提供的一例启动APP的方法的流程示意图。如图3所示,该方法包括如下步骤。
S310,第一设备确定所述第一设备与第二设备的相对位置关系。
当用户手持第一设备向第二设备靠近,第一设备感知到第二设备在其一定的距离范围内时,启动感知二者相对位置关系的逻辑。上述相对位置关系可以包括二者的距离和/或二者在空间坐标系中的夹角;也可以包括根据距离和夹角进行划分的不同的位置区域。可选地,第一设备可以采用蓝牙定位或Wi-Fi定位技术获取两个设备之间的相对位置关系;也可以采用UWB定位技术获取两个设备之间的相对位置关系,例如第一设备根据其上设置的多个天线接收到的信号的相位差计算两个设备在空间的夹角,并结合测量得到的距离,得到二者的相对位置关系。第一设备采用UWB定位技术确定两个设备之间的相对位置关系,其精度更高,性能更好,也更适用于室内场景。
可选地,第二设备周围的区域可以按照预先设定的规则划分为若干个子区域并标记,得到多种相对位置关系。上述相对位置关系可以包括但不限于第一设备位于第二设备的上方、下方、左方、右方、右下方、右上方、左下方、左上方、前方和后方中的任意一个,或者从上述各个方向靠近第二设备。
可选地,上述第一设备可以采用UWB测距技术,对两个设备之间的距离进行周期性的测量,当距离小于预设的距离阈值时执行确定两个设备的相对位置关系的步骤;还可以采用Wi-Fi、蓝牙或ZigBee进行两个设备的测距,相比之下,UWB测距的方法能够降低功耗。可选地,还可以是用户主动触发的测距指令,例如用户点击第一设备的触摸屏上的测距按钮,或者用户在第一设备的触摸屏上进行相应的手势操作,如在触摸屏的下方从左向右滑动,或者用户对第一设备输入语音指令,如“开始测距”。
可选地,还可以根据用户的习惯调整扫描两个设备距离的周期。例如用户每天在工作时段常常进行多设备的协同操作,则可以将扫描的周期缩短,以便及时发现需要进行协同的设备,响应更加及时;而每天晚上6点至8点,用户可能为吃晚饭的时间或者交通时间,此时,将扫描的周期增长,可以有效降低设备功耗。
S320,所述第一设备根据所述相对位置关系启动目标APP。
通常,可以预先根据用户的操作习惯或偏好将不同的相对位置关系和不同的APP建立对应关系,例如建立相对位置关系和APP的对应列表。其中,不同的相对位置关系可以代表用户的不同意图。当上述相对位置关系满足预设的条件时,第一设备可以根据相对位置关系,在上述对应关系中查找相对位置关系对应的APP,作为目标APP进行启动。
图3所示的方法中,第一设备能够根据所确定的两个设备的相对位置关系,启动与相对位置关系对应的目标APP,当两个设备的位置关系不同时,设备间的交互方式也随之变化,相比于传统的固定交互方式,本申请提供的方法具有更加灵活的设备交互效果,能够为用户提供更加丰富的交互体验。
在一些实施例中,第一设备可以先校验第二设备的安全性,当校验通过时,第一设备确认第二设备为安全合法的设备,此时根据相对位置关系启动对应的目标APP,实现多设备协同。在多设备协同过程中,该方法够在确保第二设备合法的情况下,启动目标APP,避免了接入不合法设备可能导致的数据泄露,提高了数据的安全性。
本申请实施例对安全性的校验步骤和相对位置关系的获取步骤,这两者的执行顺序不做限定。当安全性的校验步骤在前时,可以预先判断两个设备是否能够安全地进行数据交互,再启动目标APP,能够避免安全校验不通过而导致的其他处理流程的无效运行,因此 节约了设备的开销。
可选地,上述第一设备校验第二设备的安全性的一种可能的实现过程可以包括:
在测距的过程中,第一设备可以获取第二设备的设备标识,并根据预先设定的允许连接的设备的白名单进行检验,如果第二设备的设备标识在上述白名单之列,则校验通过,二者建立连接。
如果第二设备的设备标识并不在白名单之列,则第一设备可以将第一设备和第二设备上所登录的账户信息进行比对。如果二者的账户信息匹配,例如二者的账户信息表明两个设备登录的用户为同一个用户,例如可以是输入的指纹、人脸识别、输入的密码、采集的虹膜信息等匹配,则可以确定校验通过。如果二者的账户信息不匹配,则还可以采用弹窗的形式由用户确认是否校验通过并建立连接,例如当第一设备和第二设备上所登录的账户信息不匹配的时候,第一设备可以控制在第一设备或第二设备的显示屏上弹出对话框,提示用户是否允许建立连接。如果用户需要建立连接,则可以点击确认建立连接的按钮,则校验通过。如果用户此时不需要多设备协同,或者认为第二设备不是想要协同的设备,也可以点击取消建立连接的按钮,退出当前的校验流程。
可选地,上述白名单可以存在第一设备或第二设备本地,也可以是从云端获取,对此本申请实施例也不做限定。
上述校验过程中,第一设备通过结合白名单、账户信息和弹出对话框的方式进行安全性校验,能够在确保信息安全的前提下,优先采用设备自动校验,从而提高了校验的效率,有效地平衡了信息安全和数据处理效率,因而更为合理。
为了对设备间的相对位置关系进行详细描述,可以参见图4所示,将第二设备的屏幕所在的平面作为XOY平面,将垂直于XOY平面的屏幕正向作为Z轴正方向,建立三维空间坐标系。
在一些实施例中,上述相对位置关系可以包括第一相对位置关系和第二相对位置关系。其中,第一相对位置关系表征第一设备和第二设备处于同一个平面内,第二相对位置关系表征第一设备和第二设备不在同一个平面内。二者是否位于同一个平面内,可以依据二者在Z轴方向的距离大小进行判断。
当第一设备和第二设备在Z轴方向上的距离小于或等于预设的距离阈值时,则认为两个设备近似处于同一个平面内,第一设备从第二设备的屏幕所在平面中的各个方向靠近或远离第二设备,此时,用户通常希望第一设备和第二设备进行屏幕扩展或者显示虚拟键盘等交互,因此,第一设备可以启动与具体的方向对应的APP,如键盘APP、触摸屏APP、投屏APP等不包括文件传输APP的其他APP。上述距离阈值可以为一个较小的值,用于约束两个终端设备是否近似处于同一平面内。当第一设备和第二设备在Z轴方向的距离大于距离阈值时,则认为两个设备不在同一个平面内,例如,用户手持第一设备靠近第二设备但与第二设备保持较远的距离,此时用户通常希望第一设备和第二设备进行文件传输,因此,第一设备可以启动分享类的APP,例如文件传输APP,进行第一设备和第二设备之间的文件传输。本实施例能够基于两个设备的Z轴距离来匹配用户的意图,提供符合用户需求的交互功能,为用户提供更加丰富的交互体验。
可选地,如果两个设备为不处于同一个平面内,且二者在XOY平面上的投影存在重叠区域时,即两个设备处于第二相对位置关系,该第二相对位置关系除了指示第一设备和 第二设备的距离较远,还指示第一设备在XOY平面上的投影与第二设备存在重叠区域;手持第一设备靠近第二设备并且保持一定的距离是一些用户进行文件传输时的习惯动作,因此,第一设备可以在第一设备和第二设备的位置关系为第二相对位置关系时启动文件传输APP。上述实施例能够提供符合用户需求的交互功能,为用户提供了更为丰富的交互体验。
在一些实施例中,第二设备的屏幕可以为矩形屏幕或者近似矩形的屏幕。此处以第二设备的屏幕为矩形屏幕为例,可以将第二设备屏幕四周相交的两条边中,长度较长的作为长边,长度较短的作为短边,例如参见图4所示的长边和短边。第一设备从不同边靠近第二设备,可以启动不同的APP。
当第一设备和第二设备在同一个平面内,且第一设备从第二设备的短边靠近第二设备时,如图5中的部分场景所示,即第一设备处于第二设备的左方或者右方。此时用户的愿望有较大的概率是增强第二设备的屏幕显示效果或者为第二设备增加鼠标功能,因此,第一设备可以启动屏幕扩展APP、投屏APP或者鼠标APP。上述实施例能够提供符合用户需求的交互功能,为用户提供了更为丰富的交互体验。
可选地,第一设备启动屏幕扩展APP时,可以将第一设备的屏幕显示内容从第二设备的一侧飞入显示,用户还可以通过操作第二设备上所显示的第一设备的屏幕区域,实现对第一设备的操作;第一设备启动投屏APP时,利用第二设备的显示屏显示第一设备的显示内容;第一设备启动鼠标APP时,可以在显示屏显示虚拟的鼠标左右键以及滚珠键,用户通过点击第一设备地屏幕以及移动第一设备的位置,将第一设备作为鼠标进行使用。
可选地,第一设备从第二设备的短边靠近时,可以依据用户的偏好和实际的硬件配置确定启动屏幕扩展APP、投屏APP或鼠标APP。第一设备可以通过对用户的使用的历史数据进行学习,得到用户的使用偏好,例如用户使用哪个APP的情况较多,则可以启动对应的APP。也可以根据第二设备的外部设备的配置进行选择,例如第二设备没有配置鼠标的情况下,可以优先启动鼠标APP,如果第二设备配置了鼠标,则可以优先启动屏幕扩展APP或者投屏APP。该方法能够在第一设备从第二设备的短边靠近时,结合用户偏好和硬件的具体配置自适应地启动对应的APP,自动化程度更高,使用更便利。
当第一设备和第二设备在同一平面内,且第一设备从第二设备的长边靠近第二设备时,即第一设备处于第二设备的下方或上方,此时用户的愿望有较大的概率是为第二设备增加输入功能,因此,第一设备可以启动键盘APP或者触摸板APP,例如图5中的部分场景所示。当第一设备启动键盘APP时,第一设备可以显示键盘按键的分布。用户通过触摸第一设备所显示的键盘按键,将第一设备作为键盘进行使用。当第一设备启动触摸板APP时,第一设备可以显示手写输入区域,将第一设备扩展为触摸板,用户通过触摸第一设备的触摸屏输入指令。在多设备协同过程中,上述实施例能够提供符合用户需求的交互功能,为用户提供了更为丰富的交互体验。
可选地,第一设备从第二设备的长边靠近时,可以根据第一设备在长边的具体方位选择启动键盘APP还是触摸板APP。例如继续参见图5所示的部分场景中,当第一设备从长边的右端靠近,即第一设备从第二设备的右下方靠近,可以启动触摸板APP,当第一设备从长边的中间区域靠近第二设备的时候,则启动键盘APP。该方式将相对位置关系进行更详细的划分,更为合理的结合用户的使用习惯,提升了用户体验。
可选地,第一设备还可以依据用户的偏好确定在第一设备从第二设备的长边靠近时所启动的APP,如果用户使用键盘的情况较多,则可以启动键盘APP;如果用户为老年人,习惯采用手写的方式,则可以启动触模板APP。第一设备基于用户偏好启动对应的APP,能够合理匹配用户的使用习惯,提升了用户体验。
在一些实施例中,当第一设备和第二设备在同一平面内,且第一设备在XOY平面上的投影与第二设备存在重叠区域,即两个设备处于第一相对位置关系时,该第一相对位置关系除了指示第一设备和第二设备的距离较近,还指示第一设备在XOY平面上的投影与所述第二设备存在重叠区域,此时,第一设备和第二设备有较大的概率处于重叠堆放状态,用户的愿望可能是控制第一设备和第二设备进行无线充电,因此,第一设备启动无线充电APP。例如当第一设备从第二设备的屏幕背面靠近第二设备,且二者Z轴的距离小于距离阈值时,则第一设备启动无线充电APP,实现设备间的无线充电。上述实施例能够提供符合用户需求的交互功能,为用户提供了更为丰富的交互体验。
上述实施例中,通过相对位置关系和不同的APP之间的对应关系,能够基于用户使用的习惯,快速自动启动对应的APP,避免了手动对多设备协同的显示方式进行操作所带来的不便,因此使得多设备协同的实现更为方便和快捷。同时由于第一设备能够根据不同相对位置关系,启动对应的APP,在实现显示差异化的效果的同时,还形成了新功能的扩展,满足了用户多样化的交互需求,为用户提供更加丰富的交互体验。
可选地,用户可以向第一设备输入指示信息,第一设备可以基于指示信息来确定用户期望的相对位置关系和目标APP的对应关系,以此修改启动APP的策略。当第一设备从不同方向靠近第二设备时,本实施例能够对上述目标APP启动的策略进行个性化调整,使得目标APP满足用户的期望,进一步提高了用户的交互体验。
可选地,第一设备可以将上述指示信息指示的内容作为真实值训练神经网络,通过神经网络学习相对位置关系与目标APP的对应关系。例如,当第一设备处于第二设备的下方时,用户关闭了将第一设备作为键盘的APP1,而是打开了将第一设备作为游戏手柄的APP2,通过多次这样的操作,第二设备学习到用户偏向于将第一设备作为游戏手柄进行使用,因此可以将相对位置关系为“下方”和APP1的对应关系解除,建立“下方”和APP2的对应关系。该方法通过对用户的偏好进行学习,实现对上述APP启动的策略的个性化地调整,使得目标APP满足用户的期望,进一步提高了用户的交互体验。
在一些实施例中,启动目标APP的触发条件可以不限于两个或三个终端设备之间的相对位置关系,还可以是更多个终端设备之间的相对位置关系,使得交互场景更为丰富。例如,当第一设备靠近第二设备和第三设备的屏幕正面时,第一设备启动在多个设备间的分享类APP,实现将第一设备的文件传输至第二设备和第三设备。其中,第三设备可以是和第一设备、第二设备同类型的设备,也可以是不同类型的设备,对此本申请实施例也不做限定。可选地,第一设备和第三设备之间的相对位置关系的确定方法,可以参见本申请实施例所描述的第一设备和第二设备的相对位置关系的确定方法,此处不再赘述。
可选地,上述利用UWB技术确定两个之间的相对位置关系可以基于两种天线结构实现。以多设备系统包括第一设备和第二设备为例,这两种天线结构可以设置在第一设备或第二设备,此处以设置在第二设备为例进行描述:
第一种天线结构为:第二设备设置有相互垂直的三个天线,这里可以将第二设备的屏 幕的一个长边的方向作为X轴方向、一个短边的方向作为Y轴方向、第二设备的屏幕的中点作为原点O,将垂直于第二设备屏幕的正方向作为Z轴方向,建立三维空间坐标系,如图4所示。第一设备的天线个数为至少一个,本申请实施例对第一设备的天线的设置方向不做限定。
这里结合图7所示的来波入射方向和天线的位置设置,对如何获取的两个设备的相对位置关系进行示例性描述:基于测量到的天线a和天线c之间的相位差,利用公式相位差
Figure PCTCN2021109637-appb-000001
Figure PCTCN2021109637-appb-000002
计算得到θ或-θ。其中,图7中所示的θ和-θ为入射角在XOY平面的投影角度,φ和-φ为入射角在XOZ平面的投影角度,d为第一设备已知的任意两个天线之间的距离,λ为入射波的波长,
Figure PCTCN2021109637-appb-000003
为天线a和天线c的相位差。这里由于三个天线互相垂直,因此,可以通过任意两个天线所在的平面获取来波的入射角在这两个天线所在平面的投影角度,还可以基于测量到的天线a和天线b的相位差
Figure PCTCN2021109637-appb-000004
利用公式
Figure PCTCN2021109637-appb-000005
Figure PCTCN2021109637-appb-000006
计算得到φ或-φ,根据上述θ或-θ,和φ或-φ可以得到第一设备和第二设备的夹角,然后结合UWB测距得到的二者的距离,得到上述相对位置关系。该方法基于三个天线互相垂直的情况,采用UWB技术,结合三角函数关系实现了两个设备之间的相对位置关系的准确和快速定位,实现了多设备协同中APP的精准启动,提高了用户的体验。
第二种天线结构为:第二设备设置有相互垂直的两个天线,将第二设备的屏幕的一个长边的方向作为X轴方向、一个短边的方向作为Y轴方向、第二设备的屏幕的中点作为原点O,将垂直于第二设备屏幕的正方向作为Z轴方向,建立三维空间坐标系。第一设备的天线个数为至少一个,对第一设备的天线的方向本申请实施例不做限定。基于上述图7所示的原理,可以先获取投影在XOY平面中两个设备的相对位置,并基于测量物体三轴姿态角及加速度的装置(inertial measure mentunit,IMU)数据,获取第一设备在垂直于XOY平面方向的Z轴距离,从而得到两个设备之间的相对位置关系。可选地,IMU数据获取Z轴距离的方式,可以根据传感器测量第一设备移动的加速度a。根据如图8所示的加速度和时间的关系,采用公式
Figure PCTCN2021109637-appb-000007
求得第一设备相对第二设备在Z轴方向所移动的距离s,之后结合两个设备的初始Z轴距离,求得二者当前的Z轴距离。其中,两个设备的初始Z轴距离可以是当第二设备感知到第一设备进入感知范围时,将第一设备的感知范围作为初始Z轴距离,也可以是读取其他传感器感知的初始Z轴距离,本申请实施例对初始Z轴距离的获取方式不做限定。该方法基于第二设备存在两个天线互相垂直的结构时,采用UWB测距和IMU数据的结合,实现了两个设备之间的相对位置关系的准确定位,因此不依赖于第二设备的第三根天线的存在,在实现准确和快速定位的同时,适用场景更广。
在一些实施例中,第一设备根据大多数用户的使用习惯预先建立不同的相对位置关系和不同的APP的对应关系,例如可以将第二设备周围的区域进行如图9的划分,前方可以为第二设备的屏幕的朝向(图中未出示),后方可以为第二设备的后壳的朝向(图中未出示)。可选地,上述相对位置关系的区域划分还可以根据不同用户的使用习惯进行自适应的调整,如图9所示的区域划分,有时用户在图9中右下方的区域使用第一设备的时候,启动将第一设备作为鼠标的APP,由于使用过程中可能存在移动“鼠标”等操作,会出现距离第二设备在宽边或长边方向比较近,但是往往这时用户并不期望切换所启动的APP,则可以将上述图9所示的区域划分进行调整,调整后的区域划分可以如图10所示。该方法 通过对用户的使用习惯进行获取或学习,实现了对上述第二设备周围的区域划分的个性化修正,进一步提高了用户的交互体验。
为了更为清楚的对本申请进行解释,这里以一个完整的实施例对本申请的技术方案进行详细描述,具体可以参见图11所示,包括:
第一设备可以感知靠近第二设备到一定范围内时,则启动后续逻辑;或者第一设备接收用户主动触发的启动指令,执行后续的APP的启动策略。
第一设备首先判断第二设备是否为白名单中的可信设备,如果是则校验通过。
如果第二设备不是第一设备确定的可信设备,则继续判断两个设备登录的账户是否为同一个人,如果是则可以建立连接。当然上述感知靠近也可以是第二设备感知第一设备,对此本申请实施例不做限定。
如果两个设备登录的账户不是同一个人,则选择在第一设备或者第二设备上弹出对话框,以此提醒用户是否需要建立连接。
当用户选择确认建立连接,则校验通过。
第一设备或第二设备采用UWB方法获取两个设备的相对位置关系,当两个终端设备的Z轴距离小于或等于距离阈值时,则可以确定二者基本处于同一个平面内,此时根据第一设备所在的第二设备所划分的区域,启动对应的APP。
当两个设备的Z轴距离大于距离阈值时,则可以确定二者不在同一平面内,此时可以继续判断二者是否在第二设备的屏幕所在平面内的投影有重叠。如果重叠,则可以确定启动分享类的APP。
第一设备还可以接受用户输入的指示信息修正APP的启动策略,或者对用户的使用习惯和偏好进行学习,从而更新上述启动策略。
本实施例的技术原理和有益效果也可以参见前述实施例中的描述,此处不再赘述。
图12示出了本申请实施例提供的一例启动应用程序的装置的结构示意图。装置1200包括确定模块1201和启动模块1202。
确定模块1201,用于控制第一设备确定所述第一设备与第二设备的相对位置关系;
启动模块1202,用于控制所述第一设备根据所述相对位置关系启动目标应用程序APP。
可选地,所述第二设备的屏幕所在的平面为XOY平面,当所述相对位置关系为第一相对位置关系时,所述目标APP为除文件传输APP之外的APP,所述第一相对位置关系包括:所述第一设备在Z轴上与所述第二设备的距离小于等于距离阈值;当所述相对位置关系为第二相对位置关系时,所述目标APP为文件传输APP,所述第二相对位置关系包括:所述第一设备在Z轴上与所述第二设备的距离大于所述距离阈值。
可选地,所述第二设备包括长边和短边,所述第一相对位置关系还包括:所述第一设备从所述短边靠近所述第二设备;所述目标APP包括:屏幕扩展APP、投屏APP或鼠标APP。
可选地,所述第二设备包括长边和短边,所述第一相对位置关系还包括:所述第一设备从所述长边靠近所述第二设备;所述目标APP包括:键盘APP或触摸板APP。
可选地,所述第一相对位置关系还包括:所述第一设备在所述XOY平面上的投影与所述第二设备存在重叠区域;所述目标APP包括无线充电APP。
可选地,所述第二相对位置关系还包括:所述第一设备在所述XOY平面上的投影与所述第二设备存在重叠区域。
可选地,装置1200还包括校验模块,用于控制所述第一设备校验所述第二设备的安全性;启动模块1202具体用于:当所述第二设备的安全性校验通过时,控制所述第一设备根据所述相对位置关系启动目标APP。
可选地,装置1200还包括获取模块,用于控制所述第一设备获取用户输入的指示信息,所述指示信息用于指示所述相对位置关系与所述目标APP的对应关系;启动模块1202,具体用于:控制所述第一设备根据所述相对位置关系和所述指示信息启动所述目标APP。
可选地,装置1200还包括学习模块,用于控制所述第一设备根据所述指示信息学习所述相对位置关系与所述目标APP的对应关系。
可选地,启动模块1202具体用于:控制所述第一设备根据所述第一设备与所述第二设备的相对位置关系以及所述第一设备与第三设备的相对位置关系启动目标APP。
可选地,确定模块1201具体用于:控制第一设备采用超宽带UWB技术确定所述第一设备与所述第二设备的相对位置关系。
装置1200执行启动应用程序的方法的具体方式以及产生的有益效果可以参见方法实施例中的相关描述。
本申请实施例还提供了一种电子设备,包括上述处理器。本实施例提供的电子设备可以是图1所示的终端设备100,用于执行上述启动应用程序的方法。在采用集成的单元的情况下,终端设备可以包括处理模块、存储模块和通信模块。其中,处理模块可以用于对终端设备的动作进行控制管理,例如,可以用于支持终端设备执行显示单元、检测单元和处理单元执行的步骤。存储模块可以用于支持终端设备执行存储程序代码和数据等。通信模块,可以用于支持终端设备与其他设备的通信。
其中,处理模块可以是处理器或控制器。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理(digital signal processing,DSP)和微处理器的组合等等。存储模块可以是存储器。通信模块具体可以为射频电路、蓝牙芯片、Wi-Fi芯片等与其他终端设备交互的设备。
在一个实施例中,当处理模块为处理器,存储模块为存储器时,本实施例所涉及的终端设备可以为具有图1所示结构的设备。
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储了计算机程序,当所述计算机程序被处理器执行时,使得处理器执行上述任一实施例所述的启动应用程序的方法。
本申请实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的启动应用程序的方法。
其中,本实施例提供的电子设备、计算机可读存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它 的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (24)

  1. 一种启动应用程序的方法,其特征在于,包括:
    第一设备确定所述第一设备与第二设备的相对位置关系;
    所述第一设备根据所述相对位置关系启动目标应用程序APP。
  2. 根据权利要求1所述的方法,其特征在于,所述第二设备的屏幕所在的平面为XOY平面,
    当所述相对位置关系为第一相对位置关系时,所述目标APP为除文件传输APP之外的APP,所述第一相对位置关系包括:所述第一设备在Z轴上与所述第二设备的距离小于等于距离阈值;
    当所述相对位置关系为第二相对位置关系时,所述目标APP为文件传输APP,所述第二相对位置关系包括:所述第一设备在Z轴上与所述第二设备的距离大于所述距离阈值。
  3. 根据权利要求2所述的方法,其特征在于,所述第二设备包括长边和短边,
    所述第一相对位置关系还包括:所述第一设备从所述短边靠近所述第二设备;
    所述目标APP包括:屏幕扩展APP、投屏APP或鼠标APP。
  4. 根据权利要求2所述的方法,其特征在于,所述第二设备包括长边和短边,
    所述第一相对位置关系还包括:所述第一设备从所述长边靠近所述第二设备;
    所述目标APP包括:键盘APP或触摸板APP。
  5. 根据权利要求2所述的方法,其特征在于,所述第一相对位置关系还包括:所述第一设备在所述XOY平面上的投影与所述第二设备存在重叠区域;所述目标APP包括无线充电APP。
  6. 根据权利要求2所述的方法,其特征在于,所述第二相对位置关系还包括:所述第一设备在所述XOY平面上的投影与所述第二设备存在重叠区域。
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,
    所述方法还包括:
    所述第一设备校验所述第二设备的安全性;
    所述第一设备根据所述相对位置关系启动目标应用程序APP,包括:
    当所述第二设备的安全性校验通过时,所述第一设备根据所述相对位置关系启动目标APP。
  8. 根据权利要求1至7中任一项所述的方法,其特征在于,
    所述方法还包括:
    所述第一设备获取用户输入的指示信息,所述指示信息用于指示所述相对位置关系与所述目标APP的对应关系;
    所述第一设备根据所述相对位置关系启动目标APP,包括:
    所述第一设备根据所述相对位置关系和所述指示信息启动所述目标APP。
  9. 根据权利要求8所述的方法,其特征在于,所述方法还包括:
    所述第一设备根据所述指示信息学习所述相对位置关系与所述目标APP的对应关系。
  10. 根据权利要求1至9中任一项所述的方法,其特征在于,所述第一设备根据所述 相对位置关系启动目标APP,包括:
    所述第一设备根据所述第一设备与所述第二设备的相对位置关系以及所述第一设备与第三设备的相对位置关系启动目标APP。
  11. 根据权利要求1至10中任一项所述的方法,其特征在于,所述第一设备确定所述第一设备与第二设备的相对位置关系,包括:
    第一设备采用超宽带UWB技术确定所述第一设备与所述第二设备的相对位置关系。
  12. 一种启动应用程序的装置,其特征在于,包括:
    确定模块,用于控制第一设备确定所述第一设备与第二设备的相对位置关系;
    启动模块,用于控制所述第一设备根据所述相对位置关系启动目标应用程序APP。
  13. 根据权利要求12所述的装置,其特征在于,所述第二设备的屏幕所在的平面为XOY平面,
    当所述相对位置关系为第一相对位置关系时,所述目标APP为除文件传输APP之外的APP,所述第一相对位置关系包括:所述第一设备在Z轴上与所述第二设备的距离小于等于距离阈值;
    当所述相对位置关系为第二相对位置关系时,所述目标APP为文件传输APP,所述第二相对位置关系包括:所述第一设备在Z轴上与所述第二设备的距离大于所述距离阈值。
  14. 根据权利要求13所述的装置,其特征在于,所述第二设备包括长边和短边,
    所述第一相对位置关系还包括:所述第一设备从所述短边靠近所述第二设备;
    所述目标APP包括:屏幕扩展APP、投屏APP或鼠标APP。
  15. 根据权利要求13所述的装置,其特征在于,所述第二设备包括长边和短边,
    所述第一相对位置关系还包括:所述第一设备从所述长边靠近所述第二设备;
    所述目标APP包括:键盘APP或触摸板APP。
  16. 根据权利要求13所述的装置,其特征在于,所述第一相对位置关系还包括:所述第一设备在所述XOY平面上的投影与所述第二设备存在重叠区域;所述目标APP包括无线充电APP。
  17. 根据权利要求13所述的装置,其特征在于,所述第二相对位置关系还包括:所述第一设备在所述XOY平面上的投影与所述第二设备存在重叠区域。
  18. 根据权利要求12至17中任一项所述的装置,其特征在于,
    所述装置还包括校验模块,用于控制所述第一设备校验所述第二设备的安全性;
    所述启动模块具体用于:当所述第二设备的安全性校验通过时,控制所述第一设备根据所述相对位置关系启动目标APP。
  19. 根据权利要求12至18中任一项所述的装置,其特征在于,
    所述装置还包括获取模块,用于:控制所述第一设备获取用户输入的指示信息,所述指示信息用于指示所述相对位置关系与所述目标APP的对应关系;
    所述启动模块具体用于:控制所述第一设备根据所述相对位置关系和所述指示信息启动所述目标APP。
  20. 根据权利要求19所述的装置,其特征在于,所述装置还包括学习模块,用于:控制所述第一设备根据所述指示信息学习所述相对位置关系与所述目标APP的对应关系。
  21. 根据权利要求12至20中任一项所述的装置,其特征在于,所述启动模块具体用于:控制所述第一设备根据所述第一设备与所述第二设备的相对位置关系以及所述第一设备与第三设备的相对位置关系启动目标APP。
  22. 根据权利要求12至21中任一项所述的装置,其特征在于,所述确定模块具体用于:控制第一设备采用超宽带UWB技术确定所述第一设备与所述第二设备的相对位置关系。
  23. 一种电子设备,其特征在于,包括:处理器、存储器和接口;
    所述处理器、存储器和接口相互配合,所述处理器用于执行如权利要求1至11中任一项所述的方法。
  24. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机指令,当所述计算机指令在电子设备、或者服务器上运行时,执行如权利要求1至11中任一项所述的方法。
PCT/CN2021/109637 2020-08-05 2021-07-30 启动应用程序的方法、装置、电子设备和介质 WO2022028324A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US18/040,541 US20230289199A1 (en) 2020-08-05 2021-07-30 Method and Apparatus for Starting Application, Electronic Device, and Medium
EP21852719.0A EP4184298A4 (en) 2020-08-05 2021-07-30 APPLICATION LAUNCHING METHOD AND APPARATUS, ELECTRONIC DEVICE AND MEDIUM

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202010779550 2020-08-05
CN202010779550.3 2020-08-05
CN202010899131.3A CN114090102B (zh) 2020-08-05 2020-08-31 启动应用程序的方法、装置、电子设备和介质
CN202010899131.3 2020-08-31

Publications (1)

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

Family

ID=80116964

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/109637 WO2022028324A1 (zh) 2020-08-05 2021-07-30 启动应用程序的方法、装置、电子设备和介质

Country Status (3)

Country Link
US (1) US20230289199A1 (zh)
EP (1) EP4184298A4 (zh)
WO (1) WO2022028324A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103138808A (zh) * 2011-12-02 2013-06-05 联想(北京)有限公司 一种信息处理方法、装置及设备
CN104516697A (zh) * 2013-09-27 2015-04-15 联想(北京)有限公司 一种信息处理方法及电子设备
CN105487804A (zh) * 2015-11-30 2016-04-13 联想(北京)有限公司 一种控制方法及电子设备
CN106648505A (zh) * 2016-11-29 2017-05-10 努比亚技术有限公司 一种移动终端操控方法及移动终端
US20200220963A1 (en) * 2013-09-03 2020-07-09 Samsung Electronics Co., Ltd. Executing applications in conjunction with other devices

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11019195B2 (en) * 2018-09-28 2021-05-25 Apple Inc. Ranging between mobile devices

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103138808A (zh) * 2011-12-02 2013-06-05 联想(北京)有限公司 一种信息处理方法、装置及设备
US20200220963A1 (en) * 2013-09-03 2020-07-09 Samsung Electronics Co., Ltd. Executing applications in conjunction with other devices
CN104516697A (zh) * 2013-09-27 2015-04-15 联想(北京)有限公司 一种信息处理方法及电子设备
CN105487804A (zh) * 2015-11-30 2016-04-13 联想(北京)有限公司 一种控制方法及电子设备
CN106648505A (zh) * 2016-11-29 2017-05-10 努比亚技术有限公司 一种移动终端操控方法及移动终端

Non-Patent Citations (1)

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

Also Published As

Publication number Publication date
EP4184298A4 (en) 2024-01-03
EP4184298A1 (en) 2023-05-24
US20230289199A1 (en) 2023-09-14

Similar Documents

Publication Publication Date Title
WO2020168965A1 (zh) 一种具有折叠屏的电子设备的控制方法及电子设备
WO2020119493A1 (zh) 一种触摸屏的响应方法及电子设备
WO2020182065A1 (zh) 快捷功能启动的方法及电子设备
WO2020259452A1 (zh) 一种移动终端的全屏显示方法及设备
WO2021213164A1 (zh) 应用界面交互方法、电子设备和计算机可读存储介质
WO2020224449A1 (zh) 一种分屏显示的操作方法及电子设备
WO2021036770A1 (zh) 一种分屏处理方法及终端设备
WO2021052279A1 (zh) 一种折叠屏显示方法及电子设备
WO2021063311A1 (zh) 具有折叠屏的电子设备的显示控制方法及电子设备
WO2020168968A1 (zh) 一种具有折叠屏的电子设备的控制方法及电子设备
WO2022042770A1 (zh) 控制通信服务状态的方法、终端设备和可读存储介质
WO2021082564A1 (zh) 一种操作提示的方法和电子设备
CN114090102B (zh) 启动应用程序的方法、装置、电子设备和介质
WO2021008589A1 (zh) 一种应用的运行方法及电子设备
WO2022160991A1 (zh) 权限控制方法和电子设备
WO2020237617A1 (zh) 控屏方法、装置、设备及存储介质
WO2022105702A1 (zh) 保存图像的方法及电子设备
WO2022048453A1 (zh) 解锁方法及电子设备
WO2023216930A1 (zh) 基于穿戴设备的振动反馈方法、系统、穿戴设备和电子设备
WO2022135144A1 (zh) 自适应显示方法、电子设备及存储介质
CN114006698B (zh) token刷新方法、装置、电子设备及可读存储介质
WO2022152174A1 (zh) 一种投屏的方法和电子设备
WO2022062902A1 (zh) 一种文件传输方法和电子设备
WO2022135195A1 (zh) 显示虚拟现实界面的方法、装置、设备和可读存储介质
WO2021147483A1 (zh) 数据分享的方法和装置

Legal Events

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

Ref document number: 21852719

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021852719

Country of ref document: EP

Effective date: 20230217

NENP Non-entry into the national phase

Ref country code: DE