WO2021143650A1 - 数据分享的方法、电子设备 - Google Patents

数据分享的方法、电子设备 Download PDF

Info

Publication number
WO2021143650A1
WO2021143650A1 PCT/CN2021/071112 CN2021071112W WO2021143650A1 WO 2021143650 A1 WO2021143650 A1 WO 2021143650A1 CN 2021071112 W CN2021071112 W CN 2021071112W WO 2021143650 A1 WO2021143650 A1 WO 2021143650A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
user interface
graphical user
information
nearby
Prior art date
Application number
PCT/CN2021/071112
Other languages
English (en)
French (fr)
Inventor
卢恒惠
卢曰万
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021143650A1 publication Critical patent/WO2021143650A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72469User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Definitions

  • This application relates to the field of wireless communication, and in particular to methods and electronic devices for data sharing.
  • the purpose of the present invention is to provide a data sharing method and electronic device, which can make it easier for users to distinguish adjacent devices during data sharing using electronic devices, and improve the speed and convenience of users in selecting receiving devices.
  • a data sharing method may include: an electronic device displays a first graphical user interface, and a first object (such as a picture, a document, etc.) is displayed in the first graphical user interface; The device detects a first operation in the first graphical user interface (for example, clicking the control "share"), and in response to the first operation, the electronic device displays a second graphical user interface; the electronic device is in the first graphical user interface; 2. The first information and the second information are displayed in the graphical user interface, where the first information includes first direction information, and the second information includes second direction information.
  • the first information corresponds to a first device
  • the second information corresponds to a second device
  • the first direction information indicates that the first device is located in a first direction of the electronic device
  • the second information The two-direction information indicates that the second device is located in the second direction of the electronic device.
  • the first device and the second device are discovered by the electronic device through a short-range wireless communication protocol.
  • the electronic device detects a second operation (for example, the user clicks on the first information) in the second graphical user interface, and the second operation acts on the first information; in response to the second operation, the The electronic device sends the first object to the first device.
  • a second operation for example, the user clicks on the first information
  • the first graphical user interface may be a user interface of the first application program for displaying objects.
  • the first application program may be a “gallery” displaying pictures, and the objects displayed may be pictures.
  • the first application program may also be an application program that displays the file. Not limited to this, the first application program may also be another application program that displays objects such as pictures, documents, and text.
  • the technical solution described in the first aspect can enable the electronic device to display the direction information of nearby devices during the data sharing process, so that the user can combine the direction information to distinguish nearby devices, and improve the speed and convenience of the user in selecting the receiving device. Improve the use efficiency of electronic equipment.
  • a second object is also displayed in the first graphical user interface; and, before the first operation, it further includes: the electronic device is in the first
  • a third operation is detected in the graphical user interface, and the third operation acts on the first object; in response to the third operation, the first object is displayed as being selected.
  • the third operation may specifically be a long press operation on the first object, etc.
  • the user can select the objects to be shared.
  • the first information further indicates the distance between the electronic device and the first device
  • the second information further indicates the distance between the electronic device and the first device. 2. The distance of the device.
  • the distance is further combined on the basis of combining the direction information, and the efficiency of the user in distinguishing nearby devices is further improved.
  • the method before the electronic device displays the first information and the second information in the second graphical user interface, the method further includes: the electronic device detecting a fourth operation In response to the fourth operation, the electronic device discovers the first device and the second device through a short-range wireless communication protocol.
  • the fourth operation may specifically be sliding down on the status bar of the graphical user interface, and clicking the switch control of "directional sharing" in the displayed window.
  • the electronic device can start the nearby device discovery process before the user starts to share data, which shortens the response time between sharing data and sending data.
  • the second graphical user interface further includes a first option; and, the electronic device displays the first information and the first option in the second graphical user interface.
  • the electronic device displays the first information and the first option in the second graphical user interface.
  • the electronic device detects the fifth operation acting on the first option, the electronic device discovers the first device and the second device through a short-range wireless communication protocol.
  • the first option may specifically be in the form of icons, texts, pictures, etc. that represent "directed sharing", and the fifth operation may specifically be clicking the first option.
  • the electronic device only enables directional sharing when needed, which can save power consumption.
  • the electronic device has an antenna array, and the electronic device uses the antenna array to determine the first direction of the first device and the second device The second direction.
  • the antenna array may be used to determine the first direction of the first device, and then the antenna array may be used to determine the second direction of the second device, or the antenna may be used The array simultaneously determines the first direction of the first device and the second direction of the second device.
  • the electronic device can determine the relative angle of nearby devices.
  • third information is further displayed on the second graphical user interface, and the third information includes the first direction information; wherein, the third information Corresponding to the third device, the first direction information indicates that the third device is located in the first direction of the electronic device.
  • the second graphical user interface may display all nearby devices discovered by the electronic device and the direction information of the nearby devices.
  • the user can further combine the direction information to select the target receiving device among multiple nearby devices, which improves the efficiency of data sharing by the user.
  • the first information and the third information have different display effects, and the different display effects indicate that the first device and the third device The distance from the electronic device is different.
  • the distance between nearby devices and electronic devices is further used to distinguish nearby devices.
  • different display effects are configured for device information of nearby devices at different distances. Conveniently and intuitively prompt users, thereby improving user experience.
  • a coordinate axis is also displayed on the second graphical user interface, and the center point of the coordinate axis indicates the position of the electronic device.
  • the coordinate axis can indicate the reference direction for the user (such as front, back, left, right), and the center point is set to indicate the position of the electronic device, which can make the user more intuitively obtain the relative position relationship between the electronic device and nearby devices, and improve the user Experience.
  • the antenna array is a millimeter wave antenna array.
  • a data sharing method is provided, which is applied to an electronic device with an antenna array.
  • the method may include: an electronic device displays a first graphical user interface, and a first object (such as a picture, a document, etc.) is displayed in the first graphical user interface; and the electronic device detects a first graphical user interface in the first graphical user interface.
  • One operation the first operation indicates a first direction; in response to the first operation, the electronic device sends the first object to the first device; wherein, the first device is located in the electronic device In the first direction.
  • the first graphical user interface may be a user interface of the first application program for displaying objects.
  • the first application program may be a “gallery” displaying pictures, and the objects displayed may be pictures.
  • the first application program may also be an application program that displays the file. Not limited to this, the first application program may also be another application program that displays objects such as pictures, documents, and text.
  • the technical solution described in the second aspect can simplify the operation steps for users to share content during the data sharing process of the electronic device, and improve the efficiency of data sharing.
  • the above-mentioned first operation is long pressing and dragging the first object.
  • the electronic device may determine the first direction through the start point and the end point of the drag, and may also determine the first direction through the trajectory of the drag.
  • the electronic device detects the second operation, and in response to the second operation, the electronic device discovers the first device through a short-range wireless communication protocol.
  • the second operation may specifically be sliding down on the status bar of the graphical user interface, and clicking the switch control of "directional sharing" in the displayed window.
  • the electronic device can start the discovery process of nearby devices in all directions before the user starts to share data, which shortens the response time between sharing data and sending data.
  • the method before the electronic device sends the first object to the first device, the method further includes: in response to the first operation, the electronic device passes The short-range wireless communication protocol discovers the first device. That is, the electronic device can trigger the discovery process of nearby devices in all directions by the first operation.
  • the electronic device only enables directional sharing when needed, which can save power consumption.
  • the electronic device includes an antenna array, and the electronic device uses the antenna array to determine the first direction of the first device. According to the above implementation, the electronic device obtains the relative angle of nearby devices.
  • the first device is the only device in the first direction among nearby devices discovered by the electronic device.
  • the electronic device has discovered a second device, and the electronic device uses the antenna array to determine that the second device is also in the first direction; The electronic device selects the first device, and sends the first object to the first device.
  • the above selection is based on the first rule.
  • the foregoing first rule is to select the nearby device closest to the electronic device, and the foregoing implementation manner further includes that the electronic device determines the distance between the electronic device and the first device and the second device .
  • the nearby device closest to the electronic device is selected as the candidate receiving device, which simplifies the user's process of selecting the receiving device.
  • the method before the electronic device sends the first object to the first device, the method further includes: displaying a second graphical user interface by the electronic device;
  • the second graphical user interface includes first information, wherein the first information corresponds to the first device;
  • the electronic device detects a third operation in the second graphical user interface, and, in response to all In the third operation, the electronic device sends the first object to the first device.
  • the user can confirm the receiving device that will send data.
  • the method before the electronic device sends the first object to the first device, the method further includes: displaying a second graphical user interface by the electronic device;
  • the second graphical user interface includes first information and second information, where the first information corresponds to the first device, the second information corresponds to the second device; the electronic device is in the A fourth operation is detected in the second graphical user interface, and the fourth operation acts on the first information; and, in response to the third operation, the electronic device sends the first device to the first device.
  • the first information has a first display effect
  • the second information has a second display effect; wherein the first display effect indicates the first display effect.
  • the distance between the device and the electronic device, and the second display effect indicates the distance between the second device and the electronic device.
  • the electronic device can intuitively prompt the user of the distance between different nearby devices and the electronic device, and the user can refer to the distance to select a receiving device.
  • the antenna array is a millimeter wave antenna array.
  • a data sharing method which is applied to an electronic device with an antenna array, the method includes displaying a first graphical user interface on the electronic device, and the first graphical user interface includes a first object;
  • the electronic device detects a first operation in the first graphical user interface, wherein the first operation acts on the first object, and the first operation indicates a first direction; in response to the first operation
  • the electronic device configures the antenna array to receive the first broadcast message sent by the first device in the first direction, and obtains a first identifier from the first broadcast message, where the first identifier corresponds to the first broadcast message A device; according to the first identifier, the electronic device sends the first object to the first device.
  • the technical solution described in the third aspect can enable the electronic device to discover nearby devices in the direction specified by the user during the data sharing process, simplify the operation steps for the user to share content, and use the direction information to reduce the nearby devices discovered by the electronic device
  • the number of data sharing improves the efficiency of data sharing.
  • the electronic device in response to the first operation, configures the antenna array to send a detection request in the first direction, and the first device receives all After the detection request, a detection response is sent to the electronic device, and the electronic device obtains a first identifier from the detection response, and the first identifier corresponds to the first device.
  • the electronic device discovers the first device in the first direction.
  • the weight of each antenna in the antenna array is configured by the electronic device according to the posture of the mobile phone and the first direction.
  • the weight of the antenna can be adjusted according to the posture of the mobile phone to improve the accuracy of the beam direction.
  • the first device is the only device discovered by the electronic device in the first direction.
  • the electronic device configures the antenna array to receive a second broadcast message sent by a second device in the first direction, and from the second broadcast message Obtain a second identifier, where the second identifier corresponds to the second device; the electronic device selects the first device, and sends the first object to the first device.
  • the electronic device can discover multiple devices in a designated direction and select candidate receiving devices from them, which simplifies the process of the user selecting the receiving device.
  • the selection is based on a first rule; the first rule is to select a device corresponding to a broadcast message with the strongest signal strength.
  • the electronic device can select the device with the strongest signal strength among the multiple devices in the specified direction, which simplifies the user's process of selecting the receiving device.
  • the method before the electronic device sends the first object to the first device, the method further includes: in response to the first operation, the electronic device displays a second graphic User interface; the electronic device displays the first information in the second graphical user interface; wherein, the first information is obtained by the electronic device from the first broadcast message; the electronic device is in the A second operation is detected in the second graphical user interface; in response to the second operation, the electronic device sends the first object to the first device.
  • the above-mentioned second operation may be clicking the first information, or clicking a confirmation option related to the first information.
  • the electronic device displays the discovered nearby devices to the user, which can be selected or confirmed by the user.
  • the first information and the first identifier may be the same or different.
  • the user can confirm the receiving device that will send data.
  • the electronic device further displays second information in the second graphical user interface, wherein the second information is that the electronic device broadcasts from the second Obtained in the message.
  • the electronic device triggers discovery of nearby devices in a specified direction after the first operation, that is, the second device and the first device are both located on the first side of the electronic device. up.
  • the above-mentioned second operation may specifically be clicking on the first information.
  • the first information and the second information have different display effects
  • the different display effects indicate that the first broadcast message and the second broadcast message have different display effects.
  • the signal strength is different.
  • the electronic device uses the antenna array to discover nearby devices in the specified direction, which enables the electronic device to discover nearby devices only in the direction determined by the user, reduces the number of nearby devices discovered, and facilitates the user to receive
  • the choice of equipment improves the efficiency of data sharing and improves user experience.
  • the electronic device can also detect the distance between different devices and the electronic device, so as to display intuitively on the graphical user interface, and the user can further pass the distance To select the receiving device to further improve the efficiency of data sharing.
  • the electronic device detects a third operation on the second graphical user interface, and in response to the third operation, the electronic device updates the display on the first Device information corresponding to other devices found in the direction and not displayed on the second graphical user interface. Specifically, when only the device information of some devices found in the first direction is displayed on the second graphical user interface, for example, only the first information is displayed or only some devices are displayed according to a predetermined rule Corresponding device information, when the electronic device detects the third operation, the electronic device updates and displays device information corresponding to other devices found in the first direction.
  • the electronic device detects a fourth operation on the second graphical user interface, and in response to the fourth operation, the electronic device configures the antenna array in the first
  • a third broadcast message sent by a third device is received in the second direction, and a third identifier is obtained from the third broadcast message.
  • the third identifier corresponds to the third device and is updated on the second graphical user interface Display third information; wherein the third information is obtained by the electronic device from the third broadcast message, and the third device is located in the second direction of the electronic device.
  • the electronic device updates the display in the first direction.
  • the device information corresponding to the device in the two directions.
  • the above-mentioned first information and the above-mentioned second information have different display effects.
  • the different display effects indicate that the signal strengths of the first broadcast message and the second broadcast message are different.
  • the electronic device when the electronic device discovers nearby devices in all directions, the electronic device can display the direction information of the device on the graphical user interface, so that the user can select the receiving device in combination with the direction information, which improves the data sharing Efficiency improves user experience.
  • the electronic device can also detect the distance between different devices and the electronic device, so as to display intuitively on the graphical user interface, and the user can further select the receiving device based on the distance , To further improve the efficiency of data sharing.
  • the antenna array is a millimeter wave antenna array.
  • a data sharing method may include displaying a first graphical user interface on an electronic device, and displaying a first object (such as a picture, a document, etc.) in the first graphical user interface;
  • the device detects a first operation (such as clicking a sharing control) in the first graphical user interface, and in response to the first operation, the electronic device displays a second graphical user interface; the electronic device displays the second graphical user interface in the second graphical user interface.
  • a third operation is detected in the user interface, and the third operation indicates a first direction; in response to the third operation, the electronic device sends the first object to the first device; wherein, the first device Located in the first direction of the electronic device.
  • the first graphical user interface may be a user interface of the first application program for displaying objects.
  • the first application program may be a “gallery” displaying pictures, and the objects displayed may be pictures.
  • the first application program may also be an application program that displays the file. Not limited to this, the first application program may also be another application program that displays objects such as pictures, documents, and text.
  • the technical solution described in the fourth aspect can enable the electronic device to select the receiving device in combination with the direction information during the data sharing process, thereby improving the efficiency of data sharing.
  • the electronic device displays multiple direction options in the second graphical user interface, and the multiple direction options correspond to multiple directions; and, the electronic device is The second graphical user interface detects the third operation of the user, the third operation indicates a first direction, and further includes: the third operation is to select one or more of the direction options, and the one or A plurality of the direction options indicate a first direction. According to the foregoing implementation manner, the electronic device determines the first direction through the direction option selected by the user in the second graphical user interface.
  • the third operation is to slide a certain distance within a designated area of the second graphical user interface, and the electronic device determines the direction of the slide,
  • the sliding direction is regarded as the first direction.
  • the electronic device determines the first direction through the user's sliding gesture.
  • the electronic device can determine the direction of the receiving device through the user's gesture.
  • a second object is also displayed in the first graphical user interface; and, before the first operation, it further includes: the electronic device is in the first
  • a fourth operation is detected in the graphical user interface, and the fourth operation acts on the first object; in response to the fourth operation, the first object is displayed as being selected.
  • the fourth operation may specifically be a long-press operation on the first object or a selection operation on the page of selecting the object, etc. According to the above fourth operation, when multiple objects are displayed in the graphical user interface, the user can select the objects to share.
  • the electronic device detects a fifth operation, and in response to the fifth operation, the electronic device discovers the first device through a short-range wireless communication protocol.
  • the fifth operation may specifically be sliding down on the status bar of the graphical user interface, and clicking the switch control of "directional sharing" in the displayed window.
  • the electronic device can start the discovery process of nearby devices in all directions before the user starts to share data, and the electronic device can start the discovery process of nearby devices in all directions before the user starts to share data, shortening the sharing of data The response time between sending data.
  • the method before the electronic device sends the first object to the first device, the method further includes: in response to the third operation, the electronic device passes The short-range wireless communication protocol discovers the first device. In other words, the electronic device can trigger the discovery process of nearby devices in all directions by the third operation.
  • the electronic device only enables directional sharing when needed, which can save power consumption.
  • the electronic device includes an antenna array, and the electronic device uses the antenna array to determine the first direction of the first device. According to the above implementation, the electronic device obtains the relative angle of nearby devices.
  • the first device is the only device in the first direction among nearby devices discovered by the electronic device.
  • the electronic device discovers a second device, and the electronic device uses the antenna array to determine that the second device is in the first direction; responding In the first operation, the electronic device selects the first device, and sends the first object to the first device.
  • the above selection is based on the first rule.
  • the foregoing first rule is to select the nearby device closest to the electronic device, and the foregoing implementation manner further includes that the electronic device determines the distance between the electronic device and the first device and the second device .
  • the nearby device closest to the electronic device is selected as the candidate receiving device, which simplifies the user's process of selecting the receiving device.
  • the method before the electronic device sends the first object to the first device, the method further includes: displaying a third graphical user interface by the electronic device;
  • the third graphical user interface includes first information, where the first information corresponds to the first device;
  • the electronic device detects a sixth operation in the third graphical user interface, and responds to all In the sixth operation, the electronic device sends the first object to the first device.
  • the user can confirm the receiving device that will send data.
  • the method before the electronic device sends the first object to the first device, the method further includes: displaying a fourth graphical user interface by the electronic device;
  • the fourth graphical user interface includes first information and second information, where the first information corresponds to the first device, the second information corresponds to the second device; the electronic device is in the A seventh operation is detected in the fourth graphical user interface, and the seventh operation acts on the first information; and, in response to the seventh operation, the electronic device sends the first device to the first device.
  • the first information has a first display effect
  • the second information has a second display effect
  • the first display effect indicates that the first display effect The distance between the device and the electronic device
  • the second display effect indicates the distance between the second device and the electronic device.
  • the electronic device can intuitively remind the user of the distance between different nearby devices and the electronic device, and the user can refer to the distance to select the receiving device
  • the antenna array is a millimeter wave antenna array.
  • a method for data sharing is provided, which is applied to an electronic device with an antenna array.
  • the method may include displaying a first graphical user interface on the electronic device, and a first object is displayed on the first graphical user interface. (Such as pictures, documents, etc.); the electronic device detects a first operation (such as clicking a sharing control) in the first graphical user interface, and in response to the first operation, the electronic device displays a second graphical user interface The electronic device detects a third operation in the second graphical user interface, the third operation indicates a first direction; in response to the third operation, the electronic device configures the antenna array in the first A first broadcast message sent by a first device is received in one direction, and a first identifier is obtained from the first broadcast message, and the first identifier corresponds to the first device; according to the first identifier, the electronic device Sending the first object to the first device.
  • the first graphical user interface may be a user interface of the first application program for displaying objects.
  • the first application program may be a “gallery” displaying pictures, and the objects displayed may be pictures.
  • the first application program may also be an application program that displays the file. Not limited to this, the first application program may also be another application program that displays objects such as pictures, documents, and text.
  • the technical solution described in the fifth aspect can enable the electronic device to select the receiving device in combination with the direction information during the data sharing process, thereby improving the efficiency of data sharing.
  • the electronic device in response to the third operation, configures the antenna array to send a detection request in the first direction, and the first device receives all After the detection request, a detection response is sent to the electronic device, and the electronic device obtains a first identifier from the detection response, and the first identifier corresponds to the first device.
  • the electronic device discovers the first device in the first direction.
  • the electronic device displays multiple direction options in the second graphical user interface, and the multiple direction options correspond to multiple directions; and, the electronic device is The second graphical user interface detects the third operation of the user, the third operation indicates a first direction, and further includes: the third operation is to select one or more of the direction options, and the one or A plurality of the direction options indicate a first direction.
  • the electronic device determines the first direction through the direction option selected by the user in the second graphical user interface.
  • the third operation is to slide a certain distance in a designated area of the second graphical user interface, and the electronic device determines the direction of the slide, The sliding direction is regarded as the first direction.
  • the electronic device determines the first direction through the user's sliding gesture.
  • a second object is also displayed in the first graphical user interface; and, before the first operation, it further includes: the electronic device is in the first
  • a fourth operation is detected in the graphical user interface, and the fourth operation acts on the first object; in response to the fourth operation, the first object is displayed as being selected.
  • the fourth operation may specifically be a long-press operation on the first object or a selection operation on the page of selecting the object. According to the above fourth operation, when multiple objects are displayed in the graphical user interface, the user can select the objects to share.
  • the weight of each antenna in the antenna array is configured by the electronic device according to the posture of the mobile phone and the first direction.
  • the weight of the antenna can be adjusted according to the posture of the mobile phone to improve the accuracy of the beam direction.
  • the first device is the only device discovered by the electronic device in the first direction.
  • the electronic device configures the antenna array to receive a second broadcast message sent by a second device in the first direction, and from the second broadcast message Obtain a second identifier, where the second identifier corresponds to the second device; the electronic device selects the first device, and sends the first object to the first device.
  • the electronic device can discover multiple devices in a designated direction and select candidate receiving devices from them, which simplifies the process of the user selecting the receiving device.
  • the selection is based on a first rule; the first rule is to select a device corresponding to a broadcast message with the strongest signal strength.
  • the electronic device can select the device with the strongest signal strength among the multiple devices in the specified direction, which simplifies the user's process of selecting the receiving device.
  • the method before the electronic device sends the first object to the first device, the method further includes: displaying a third graphical user interface by the electronic device; The first information is displayed in the third graphical user interface; wherein, the first information is obtained by the electronic device from the first broadcast message; the electronic device detects in the third graphical user interface Fifth operation; in response to the fifth operation, the electronic device sends the first object to the first device.
  • the above-mentioned fifth operation may be clicking the first information, or clicking a confirmation option related to the first information.
  • the electronic device displays the discovered nearby devices to the user, which can be selected or confirmed by the user.
  • the first information and the first identifier may be the same or different.
  • the user can confirm the receiving device that will send data.
  • the electronic device further displays second information in the third graphical user interface, wherein the second information is that the electronic device broadcasts from the second Obtained in the message.
  • the electronic device triggers discovery of nearby devices in a specified direction after the third operation, that is, the second device and the first device are both located on the first side of the electronic device. up.
  • the above-mentioned second operation may specifically be clicking on the first information.
  • the first information and the second information have different display effects
  • the different display effects indicate that the first broadcast message and the second broadcast message have different display effects.
  • the signal strength is different.
  • the electronic device uses the antenna array to discover nearby devices in the specified direction, which enables the electronic device to discover nearby devices only in the direction determined by the user, reduces the number of nearby devices discovered, and facilitates the user to receive
  • the choice of equipment improves the efficiency of data sharing and improves user experience.
  • the electronic device can also detect the distance between different devices and the electronic device, so as to display intuitively on the graphical user interface, and the user can further pass the distance To select the receiving device to further improve the efficiency of data sharing.
  • the electronic device detects a sixth operation on the third graphical user interface, and in response to the sixth operation, the electronic device updates the display on the first Device information corresponding to other devices found in the direction and not displayed on the third graphical user interface. Specifically, when only the device information of some devices found in the first direction is displayed on the third graphical user interface, for example, only the first information is displayed or only some devices are displayed according to a predetermined rule Corresponding device information, when the electronic device detects the sixth operation, the electronic device updates and displays device information corresponding to other devices found in the first direction.
  • the electronic device detects a seventh operation on the third graphical user interface, and in response to the seventh operation, the electronic device configures the antenna array in the first
  • a third broadcast message sent by a third device is received in the second direction, and a third identifier is obtained from the third broadcast message.
  • the third identifier corresponds to the third device and is updated on the third graphical user interface Display third information; wherein the third information is obtained by the electronic device from the third broadcast message, and the third device is located in the second direction of the electronic device.
  • the electronic device updates The device information corresponding to the device in the second direction is displayed.
  • the above-mentioned first information and the above-mentioned second information have different display effects.
  • the different display effects indicate that the signal strengths of the first broadcast message and the second broadcast message are different.
  • the electronic device when the electronic device discovers nearby devices in all directions, the electronic device can display the direction information of the device on the graphical user interface, so that the user can select the receiving device in combination with the direction information, which improves the data sharing Efficiency improves user experience.
  • the electronic device can also detect the distance between different devices and the electronic device, so as to display intuitively on the graphical user interface, and the user can further select the receiving device based on the distance , To further improve the efficiency of data sharing.
  • the antenna array is a millimeter wave antenna array.
  • an electronic device including one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to The one or more processors execute, and the one or more programs include instructions for executing any possible implementation manner in the first aspect or any possible implementation manner in the second aspect , Or as any possible implementation manner in the third aspect, or as any possible implementation manner in the fourth aspect, or as any possible implementation manner in the fifth aspect.
  • a computer-readable medium for storing one or more programs, wherein the one or more programs are configured to be executed by the one or more processors, and the one or more Each program includes instructions for executing any possible implementation manner in the first aspect, or any possible implementation manner in the second aspect, or any possible implementation manner in the third aspect, or Such as any possible implementation manner in the fourth aspect, or as any possible implementation manner in the fifth aspect.
  • FIG. 1 is a schematic diagram of the architecture of a communication system provided by an embodiment
  • FIG. 2A is a schematic diagram of the structure of an electronic device provided by an embodiment
  • 2B is a schematic diagram of an electronic device with an antenna array provided by an embodiment
  • 2C is a schematic diagram of the software structure of an electronic device provided by an embodiment
  • Figure 3A is a graphical user interface for application menus on an electronic device provided by an embodiment
  • FIG. 3B is a schematic diagram of turning on "directed sharing" provided by an embodiment
  • 4A-4B are a graphical user interface of an application "Gallery" on an electronic device provided by an embodiment
  • 5A-5H are some graphical user interfaces of the data sharing method provided by an embodiment
  • 6A-6B are some graphical user interfaces of the data sharing method provided by another embodiment
  • 7A-7B are some graphical user interfaces of the data sharing method provided by another embodiment.
  • FIG. 8 is a graphical user interface of a data sharing method provided by another embodiment
  • 9A-9C are schematic flowcharts of a data sharing method provided by an embodiment
  • 10A-10B are working schematic diagrams of determining antenna array parameters according to the posture and sliding direction of the mobile phone according to an embodiment.
  • the electronic device may be a portable electronic device that also contains other functions such as a personal digital assistant and/or a music player function, such as a mobile phone, a tablet computer, and a wearable electronic device with wireless communication function (such as a smart watch) Wait.
  • portable electronic devices include, but are not limited to, carrying Or portable electronic devices with other operating systems.
  • the aforementioned portable electronic device may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface or a touch panel. It should also be understood that, in some other embodiments, the above-mentioned electronic device may not be a portable electronic device, but a desktop computer with a touch-sensitive surface or a touch panel.
  • UI user interface
  • the term "user interface (UI)" in the description, claims and drawings of this application is a medium interface for interaction and information exchange between applications or operating systems and users, which implements the internal form of information And the user can accept the conversion between the forms.
  • the user interface of the application is the source code written in a specific computer language such as java, extensible markup language (XML), etc.
  • the interface source code is parsed and rendered on the terminal device, and finally presented as content that can be recognized by the user.
  • Control also called widget, is the basic element of the user interface. Typical controls include toolbar, menu bar, text box, button, and scroll bar. (scrollbar), pictures and text.
  • the attributes and content of the controls in the interface are defined by tags or nodes.
  • XML specifies the controls contained in the interface through nodes such as ⁇ Textview>, ⁇ ImgView>, and ⁇ VideoView>.
  • a node corresponds to a control or attribute in the interface, and the node is rendered as user-visible content after parsing and rendering.
  • applications such as hybrid applications, usually contain web pages in their interfaces.
  • a webpage also called a page, can be understood as a special control embedded in the application program interface.
  • the webpage is source code written in a specific computer language, such as hypertext markup language (HTML), cascading style Tables (cascading style sheets, CSS), java scripts (JavaScript, JS), etc.
  • web page source code can be loaded and displayed as user-recognizable content by a browser or a web page display component with similar functions to the browser.
  • the specific content contained in a web page is also defined by tags or nodes in the source code of the web page. For example, HTML defines the elements and attributes of the web page through ⁇ p>, ⁇ img>, ⁇ video>, and ⁇ canvas>.
  • GUI graphical user interface
  • the commonly used form of the user interface is a graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be an icon, window, control and other interface elements displayed on the display screen of an electronic device.
  • the control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, Widgets, etc. Visual interface elements.
  • the following embodiments of this application provide a data sharing method, graphical user interface, electronic device and system, so that the electronic device can use angle and other information when sharing data with other nearby devices, or share with nearby devices in a specified direction Data, which improves the efficiency of sharing data among electronic devices.
  • directed sharing may be a service or function provided by an electronic device, which may support the electronic device to transmit data to other devices in a specified direction.
  • "directed sharing” can support the electronic device to connect via Bluetooth, wireless fidelity direct (Wi-Fi direct), Wi-Fi software access point (software access point, softAP), millimeter wave One or more of (Millimeter Wave, mmWave), Ultra Wide Band (UWB) and other technologies transmit data to nearby devices.
  • Wi-Fi direct wireless fidelity direct
  • Wi-Fi software access point software access point, softAP
  • Nearby devices refer to electronic devices connected via Bluetooth, Wi-Fi direct connection (such as Wi-Fi p2p), Wi-Fi softAP, etc., Wi-Fi LAN, millimeter wave (mmWave), ultra-wideband (UWB), one or more of them Technology discovered equipment.
  • Wi-Fi direct connection such as Wi-Fi p2p
  • Wi-Fi softAP such as Wi-Fi p2p
  • Wi-Fi LAN such as Wi-Fi p2p
  • mmWave millimeter wave
  • UWB ultra-wideband
  • the following describes a communication system 10 related to an embodiment of the present application.
  • Fig. 1 exemplarily shows a communication system 10 for directional data sharing that implements the present invention.
  • the communication system 10 may include an electronic device 100 and one or more nearby electronic devices, such as the electronic device 101, the electronic device 102, and the electronic device 103.
  • the electronic device 101 and the electronic device 102 are located in the first direction of the electronic device 100, that is, to the right, and the electronic device 103 is located in the second direction of the electronic device 100, that is, the front left.
  • the electronic device 100 may be a portable electronic device such as a mobile phone and a tablet computer.
  • the electronic device 100 may have one or more of a Bluetooth module, a WLAN module, a millimeter wave (mmWave) antenna module, and an ultra-wideband (UWB) antenna module.
  • a Bluetooth module such as a mobile phone and a tablet computer.
  • the electronic device 100 may have one or more of a Bluetooth module, a WLAN module, a millimeter wave (mmWave) antenna module, and an ultra-wideband (UWB) antenna module.
  • mmWave millimeter wave
  • UWB ultra-wideband
  • the electronic device 100 can detect, scan or directional detection through one or more of a Bluetooth module, a WLAN module, a millimeter wave (MilliMeterWave) antenna module, and an ultra-wideband (UWB) antenna module to detect, scan, or directional detection ⁇ Scan devices near the electronic device 100 , So that the electronic device 100 can use one or more short-range wireless communication protocols of Bluetooth, WLAN, millimeter wave (mmWave), and ultra-wideband (UWB) to discover or target nearby devices, and establish wireless communication connections with nearby devices, Share data to nearby devices through one or more short-range wireless communication protocols among Bluetooth, WLAN, millimeter wave (mmWave), and ultra-wideband (UWB).
  • the electronic device 101, the electronic device 102, or the electronic device 103 may be a mobile phone, a tablet computer, or a personal computer with one or more of a Bluetooth module, a WLAN module, a millimeter wave (mmWave) antenna module, and an ultra-wideband (UWB) antenna module
  • a Bluetooth module e.g., a Bluetooth module
  • WLAN module e.g., a Wi-Fi module
  • mmWave millimeter wave
  • UWB ultra-wideband
  • Electronic devices such as Bluetooth modules, WLAN modules, millimeter wave (mmWave) antenna modules, and ultra-wideband (UWB) antenna modules can also be printers, projectors, displays, speakers, and other devices that have one or more of them.
  • the communication system 10 may include more or less devices than shown.
  • the communication system 10 may further include one or more of a Bluetooth module, a WLAN module, a millimeter wave (mmWave) antenna module, and an ultra-wideband (UWB) antenna module in directions other than the first direction and the second direction. Items of electronic equipment.
  • FIG. 2A shows a schematic diagram of the structure of the electronic device 100.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone 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, etc.
  • SIM Subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and 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.
  • AP application processor
  • GPU graphics processing unit
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the electronic device 100 may also include one or more processors 110.
  • the controller may be the nerve center and command center of the electronic device 100.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store 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 directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the electronic device 100 is improved.
  • the processor 110 may include one or more interfaces.
  • the interface can 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, and a universal asynchronous transmitter (universal asynchronous) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • 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, including a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the electronic device 100.
  • the I2S interface can be used for audio communication.
  • the processor 110 may include 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 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 may 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 can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices.
  • the MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and so on.
  • the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100.
  • the processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the electronic device 100.
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can 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 so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect earphones and play audio through earphones. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic description, and does not constitute a structural limitation of the electronic device 100.
  • the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the 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, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation by the antenna.
  • 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 and at least part of the modules of the processor 110 may be provided in the same device.
  • the fifth-generation communication technology will be commercially available on a large scale, and new communication technologies will place new requirements on mobile device antennas and base station antennas.
  • the frequency bands used in 5G include millimeter wave frequency bands (mmWave, 30GHz-100GHz). Therefore, in order to be able to support millimeter wave communications, terminals supporting 5G communications are equipped with millimeter wave antennas.
  • mmWave millimeter wave frequency bands
  • terminals supporting 5G communications are equipped with millimeter wave antennas.
  • the signal propagation is similar to ray propagation, that is, the direct path and the reflection path are dominant, and there is no obvious scattering and diffraction phenomenon.
  • the signal will be scattered in some spatially dispersed paths The number of effective paths here is very scarce.
  • space division multiplexing such as MU-MIMO technology
  • FIG. 2B exemplarily shows an electronic terminal having a millimeter wave antenna array, and the electronic terminal may be the electronic terminal 100 in FIG. 1.
  • FIG. 2B exemplarily shows an electronic terminal having a millimeter wave antenna array, and the electronic terminal may be the electronic terminal 100 in FIG. 1.
  • the electronic terminal 100 has 8 antennas, and the 8 antennas form an antenna array, that is, two or more single antennas working at the same frequency are fed and spatially arranged to form an antenna array, so that
  • the 5G terminal has beamforming capability, that is, by adjusting the weight of each antenna module, multiple antennas are coherent and canceled on the waveform, forming a zero-point and maximum-directed lobe pattern, making the phase-controlled antenna
  • the array has the ability to send or receive signals in a specified direction.
  • the multiple antennas on the electronic device can be arranged in a uniform linear array, a circular array, a rectangular array, etc.
  • 5G millimeter wave antenna arrays are generally based on phased arrays.
  • the specific implementation can be divided into AoB (Antenna on Board), that is, the antenna array is located on the system motherboard, AiP (Antenna in Package), that is, the antenna array is located in the package of the chip, and AiM (Antenna in Module), that is, the antenna array and RFIC There are three types in one module.
  • millimeter wave antenna arrays In order to achieve wider spatial coverage, millimeter wave antenna arrays generally use complementary radiation beams (such as broadside radiation, or wide-side radiation, and end-fire radiation, or end-fire) antenna types, such as patch antennas.
  • the quasi-Yagi antenna (Quasi-Yagi antenna) is matched and designed, and the antenna feed point is appropriately designed to achieve dual-polarization coverage, thereby greatly improving the range and coverage of millimeter wave signals.
  • the antenna 2 may also have two or more antennas working at the same frequency, and form an antenna array.
  • the invention is suitable for electronic terminals with antenna arrays, especially electronic terminals with millimeter wave antenna arrays.
  • 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.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • UWB ultra-wideband
  • 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 an antenna, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic waves to radiate through the antenna.
  • the wireless communication module 160 may include a Bluetooth module, a Wi-Fi module, and the like.
  • a part of the antenna of the electronic device 100 is coupled with the mobile communication module 150, and another part of the antenna is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), millimeter wave (mmWave), BT , GNSS, WLAN, NFC, FM, UWB, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the Bluetooth (BT) module and WLAN module included in the wireless communication module 160 can transmit signals to detect or scan the nearby devices of the electronic device 100, so that the electronic device 100 can use wireless communication technologies such as Bluetooth or WLAN to discover nearby devices. , And establish a wireless communication connection with nearby devices, and share data to nearby devices through the above connection.
  • the Bluetooth (BT) module can provide solutions that include one or more of Bluetooth communication in classic Bluetooth or Bluetooth low energy (Bluetooth low energy, BLE).
  • the WLAN module can provide one or more WLAN communication solutions including Wi-Fi direct, Wi-Fi LAN, or Wi-Fi softAP.
  • the millimeter wave (mmWave) module included in the mobile communication module 150 can transmit or receive signals in a specified direction to detect or scan nearby devices of the electronic device 100 in the specified direction, so that the electronic device 100 can use millimeters.
  • Mobile communication technologies such as Wave discover nearby devices in a designated direction, establish mobile communication connections or wireless communication connections such as WLAN direct connections with nearby devices, and share data to nearby devices through the above connections.
  • the electronic device 100 can implement a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and is used for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can use liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • the electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and is projected to 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.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include one or N cameras 193, and N is a positive integer greater than one.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG)-1, MPEG-2, MPEG-3, MPEG-4, and so on.
  • MPEG moving picture experts group
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, photos, videos and other data in an external memory card.
  • the internal memory 121 may be used to store one or more computer programs, and the one or more computer programs include instructions.
  • the processor 110 can run the above-mentioned instructions stored in the internal memory 121 to enable the electronic device 100 to execute the data sharing methods, various functional applications, and data processing provided in some embodiments of the present application.
  • the internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store the operating system; the storage program area can also store one or more application programs (such as a gallery, contacts, etc.) and so on.
  • the data storage area can store data (such as photos, contacts, etc.) created during the use of the electronic device 100.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
  • UFS universal flash storage
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through the human mouth, and input the sound signal into the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, and a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA, CTIA
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive materials.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view 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, an instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the movement posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers, etc.
  • the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the electronic device 100 emits infrared light to the outside through the light emitting diode.
  • the electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100.
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • the touch sensor 180K can also be called a touch panel or a touch-sensitive surface.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
  • the button 190 includes a power-on button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations applied to different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
  • the electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can 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 may also be compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
  • the electronic device 100 exemplarily shown in FIG. 2A may display various graphical user interfaces described in the following embodiments through a display screen 194.
  • the electronic device 100 can detect touch operations in various graphical user interfaces through the touch sensor 180K, for example, click operations in various graphical user interfaces (such as touch operations on icons, double-click operations), and for example, in various graphical user interfaces Swipe up or down, or perform circle-drawing gestures, etc.
  • the electronic device 100 may detect a motion gesture performed by the user holding the electronic device 100, such as shaking the electronic device, through the gyroscope sensor 180B, the acceleration sensor 180E, and the like.
  • the electronic device 100 can detect non-touch gesture operations through the camera 193 (eg, a 3D camera, a depth camera).
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present invention takes an Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100.
  • FIG. 2C is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present invention.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • 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 framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and so on.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include videos, images, audios, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
  • the phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, and so on.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the software system shown in Figure 2C involves the presentation of applications that use sharing capabilities (such as gallery, file management), a directional sharing module that provides sharing capabilities, and the application framework layer provides WLAN services and Bluetooth services, and the core and bottom layers provide WLAN Bluetooth capabilities. And basic communication protocol.
  • the corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations into original input events (including touch coordinates, time stamps of touch operations, etc.).
  • the original input events are stored in the kernel layer.
  • the application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch operation, and the control corresponding to the touch operation is the control of the camera application icon as an example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer, and captures by the camera 193 Still images or videos.
  • the following describes an exemplary graphical user interface for application menus on the electronic device 100.
  • FIG. 3A exemplarily shows an exemplary graphical user interface for application menus on the electronic device 100.
  • the graphical user interface may include: a status bar 21, a tray 22 with icons of commonly used application programs, a calendar indicator 240, a weather indicator 241, a navigation bar 23, and other application program icons. in:
  • the status bar 21 may include: one or more signal strength indicators 211 of a mobile communication signal (also referred to as a cellular signal), a battery status indicator 212, and a time indicator 213.
  • a mobile communication signal also referred to as a cellular signal
  • a battery status indicator 212 also referred to as a cellular signal
  • the calendar indicator 240 can be used to indicate the current time, such as date, day of the week, hour and minute information, and so on.
  • the weather indicator 241 can be used to indicate the type of weather, such as cloudy to clear, light rain, etc., and can also be used to indicate information such as temperature.
  • the tray 22 with icons of commonly used application programs can display: a phone icon 221, a contact icon 222, a short message icon 223, and a camera icon 224.
  • the navigation bar 23 may include system navigation keys such as a return button 231, a home screen button 232, and a task button 233.
  • system navigation keys such as a return button 231, a home screen button 232, and a task button 233.
  • the electronic device 100 may display the previous page of the current page.
  • the electronic device 100 may display the main interface.
  • the electronic device 100 may display the task recently opened by the user.
  • the naming of each navigation key can also be other, which is not limited in this application. Not limited to virtual keys, each navigation key in the navigation bar 23 can also be implemented as a physical key.
  • Other application icons can be for example: Wechat icon 242, QQ icon 243, Twitter icon 244, Facebook icon 245, mailbox icon 246, cloud sharing icon 247, memo Icon 248 for file management, icon 249 for file management, icon 250 for gallery, and icon 251 for settings.
  • the graphical user interface may also include a page indicator 252.
  • the icons of other applications may be distributed on multiple pages, and the page indicator 252 may be used to indicate the application in which page the user is currently browsing. The user can swipe the area of other application icons left and right to browse application icons in other pages.
  • the graphical user interface exemplarily shown in FIG. 3A may be a home screen.
  • the electronic device 100 may also include a home button.
  • the main screen key can be a physical key or a virtual key.
  • the home screen key can be used to receive instructions from the user and return the currently displayed UI to the home interface, so that it is convenient for the user to view the home screen at any time.
  • the above instruction can be an operation instruction for the user to press the home screen key once, or an operation instruction for the user to press the home screen key twice in a short period of time, or the user long press the home screen key within a predetermined time Operation instructions.
  • the home screen key can also be integrated with a fingerprint recognizer, so that when the home screen key is pressed, fingerprints are collected and recognized accordingly.
  • FIG. 3A only exemplarily shows the graphical user interface on the electronic device 100, and should not constitute a limitation to the embodiment of the present application.
  • FIG. 3B exemplarily shows an operation of turning on "directional sharing" on the electronic device 100.
  • the electronic device 100 may display a window 26 on the graphical user interface, and the window 26 may display a "directional sharing"
  • the switch control 261 may also display switch controls with other functions (such as Wi-Fi, Bluetooth, flashlight, etc.).
  • the electronic device 100 can turn on "directional sharing".
  • the user can make a downward sliding gesture on the status bar 21 to open the window 26, and can click the switch control 261 of “directional sharing” in the window 26 to conveniently turn on the “directional sharing”.
  • FIG. 4A exemplarily shows a graphical user interface 40 displayed for selection of the "Gallery” application in FIG. 3A.
  • "Gallery” is a picture management application on electronic devices such as smart phones, tablets, etc., and can also be called “album”. This embodiment does not limit the name of the application.
  • the application can support users to perform various operations on pictures stored on the electronic device, such as browsing, editing, deleting, and selecting operations. That is, the objects managed by the "Gallery" are pictures. In other cases, the application can also support the user to perform the above-mentioned various operations on the pictures stored on the cloud server. It is understandable that, in this embodiment, the picture may be captured by the electronic device using the camera 193, or may be obtained from other applications or downloaded from a webpage.
  • the graphical user interface 40 may include: a status bar 41, an application title bar 42, a picture area 43, and a navigation bar 44. in:
  • the status bar 41 can refer to the status bar 21 in the graphical user interface 20 shown in FIG. 3A, which will not be repeated here.
  • the application title bar 42 may include: a return key 421 and a current page indicator 422.
  • the return key 421 can be used to return to the upper level of the menu.
  • the current page indicator 422 may be used to indicate the current page, for example, the text information "Gallery", and is not limited to text information.
  • the current page indicator 422 may also be an icon.
  • One or more pictures may be displayed in the picture area 43.
  • the electronic device monitors an upward or downward sliding operation in the picture area 43, in response to the sliding operation, the electronic device can update the picture displayed in the picture area 43 so that the user can browse the picture.
  • the user can swipe up or down in the picture area 43 to browse more pictures.
  • the user can also swipe left or right in the picture area 43 to browse more pictures.
  • the picture 431 may be a thumbnail.
  • the original picture corresponding to the picture 431 may be stored on the electronic device or on the cloud server.
  • the pictures referred to in the following embodiments may be stored in an electronic device or stored on a cloud server.
  • the navigation bar 44 can refer to the navigation bar 23 in the graphical user interface 20 shown in FIG. 3A, which will not be repeated here.
  • FIG. 4B exemplarily shows an embodiment in which a user shares pictures in the "gallery".
  • the electronic device can monitor in the graphical user interface 40 that the user selects the picture 431 and the picture 432 for sharing.
  • the electronic device may display the menu 45 in the graphical user interface 40.
  • the electronic device may also display a mark 433 on the selected picture 431 and the selected picture 432. The mark 433 may indicate that the picture has been selected by the user.
  • the electronic device may also initially display the menu 45 in the graphical user interface 40, that is, the menu 45 does not need to be monitored when the user selects a picture.
  • the menu 45 may include a control 451 ("Share"), a control 452 ("Move”), a control 453 ("Select All"), and a button 454 ("More").
  • Control 451 can be used for users to share selected pictures
  • control 452 can be used to monitor the operation of moving the selected pictures to other storage paths
  • control 453 can be used to select all pictures in the gallery
  • button 454 can be used to monitor and open the next level
  • the operation of the menu provides more functions, such as renaming, picture editing, etc.
  • control 451 may display the text message “directed sharing”.
  • the electronic device detects that the user clicks on the control, it triggers the update of the graphical user interface 40 to guide the user to select or indicate the direction of the receiving device.
  • This operation can also take other forms, such as selecting a picture first and then performing a circle gesture operation in the picture area, or for a fixed time after shaking the electronic device (Such as 1 second) the operation of selecting a picture.
  • This operation can also be a voice control operation, that is, the user only needs to speak a voice command to share the picture. This application does not limit the specific implementation of the operation of selecting pictures for sharing.
  • the scenes in which users share pictures can also include pictures in other applications, such as file management.
  • the graphical user interface 50 exemplarily shown in FIGS. 5A-5H may be an implementation of the "directional sharing interface".
  • FIG. 5A exemplarily shows the graphical user interface 50 displayed for the selection of the control 451 ("Share") in FIG. 4B.
  • the graphical user interface 50 may include an area 51, an area 52, and an area 53.
  • the area 51 can be used to display one or more pictures in the gallery, and the one or more pictures can include pictures selected by the user, such as the selected picture 511 and the selected picture 512.
  • a mark 513 may be displayed on the selected picture 511 and the selected picture 512, and the mark 513 may indicate that the corresponding picture 511 and picture 512 are selected by the electronic device (that is, the picture has been selected by the user) .
  • a control 514 and a control 515 may also be displayed in the area 51, and the above two controls can be used to switch or update the pictures displayed in the area 51.
  • other interactive elements may also be displayed in the area 51 for switching or updating the pictures displayed in the area 51.
  • the electronic device may not display the above-mentioned controls 514 and 515 in the area 51. Instead, the user may make a left or right sliding gesture in the area 51 to switch or update the picture.
  • the pictures 511 and 512 may be thumbnails.
  • the original picture corresponding to the picture displayed in the area 51 may be a picture stored on an electronic device, or it may be stored on a cloud server.
  • One or more options may be displayed in the area 53.
  • the application or protocol corresponding to the option can support sharing the picture selected by the user to a contact or server.
  • the electronic device in response to an operation that acts on an option (such as a touch operation on the icon 531) monitored in the area 53, the electronic device can trigger the sharing of the selected picture through the application or protocol corresponding to the option.
  • the process to the cloud contact or server the process may include: the electronic device opens the application or protocol, displays its graphical user interface, monitors the user’s data sharing operation in the graphical user interface, and responds to the operation through the application Program or protocol to share selected pictures to cloud contacts or servers.
  • users can share data through the application or protocol corresponding to the option. For example, sharing the selected picture to one or more contacts of WeChat, or sharing the selected picture to the dynamic publishing platform (ie server) of Facebook.
  • the page indicator 532 may also be displayed in the area 53. When there are many options to be displayed in the area 53, these options can be displayed on multiple pages.
  • the page indicator 532 may indicate the page where the currently displayed option is located.
  • the area 52 can be used to guide users to turn on targeted sharing.
  • the following describes the specific implementation of area 52 in the following situations:
  • an icon 521 may be displayed in the area 52, and a prompt message 522 may also be displayed.
  • the icon 521 can be used to monitor the operation of enabling "directed sharing”.
  • the prompt message 522 may prompt the user to turn on "directed sharing” by clicking the icon 521.
  • the electronic device updates areas 52 and 53, and the updated graphical user interface is as shown in 5B or 5C. The electronic device monitors the user's selection or instruction of the direction of the receiving device in the updated graphical user interface 50.
  • the electronic device when the user clicks on the icon 521 to turn on "directional sharing", in response to this operation, the electronic device triggers the discovery of nearby devices in all directions, and displays the discovered nearby devices in the updated graphical user interface
  • the corresponding device information the graphical user interface is updated as shown in Figure 5D.
  • the prompt information 522 may be text information, such as "click here to open targeted sharing" and so on. Not limited to text information, the prompt information 522 may also be in other forms such as pictures, links, dynamic pictures, etc. This embodiment does not impose any limitation on this. In some other embodiments, the prompt information 522 in the graphical user interface may not be displayed on the touch screen, but may be audio played through the speaker 170A.
  • the electronic device may also monitor the operation of enabling the "directed sharing” through other forms of interactive elements (IE).
  • IE interactive elements
  • part or all of the prompt information 522 may also be used to receive the operation of enabling "directed sharing". For example, part of the text “click here” in the prompt message 522 "click here to enable targeted sharing” can be used to receive an operation to enable "targeted sharing”.
  • the control 451 in the graphical user interface 40 shown in FIG. 4B is "directed sharing".
  • the electronic device detects that the user clicks on the control 451 ("directed sharing"), in response to this operation, the electronic device The device can enable "directional sharing", and update the graphical user interface 40 as shown in FIG. 5B or 5C, and monitor the user's selection or instruction of the receiving device direction in the updated graphical user interface 50.
  • the electronic device when the user turns on "directional sharing" by clicking on the control 451 ("directional sharing"), in response to this operation, the electronic device triggers the discovery of nearby devices in all directions, and displays the updated graphical user interface The device information corresponding to the discovered nearby devices is displayed in the, and the graphical user interface is updated as shown in Figure 5D.
  • 5B and 5C exemplarily show a graphical user interface for the electronic device to guide the user to select or indicate the direction of the receiving device in response to turning on "directional sharing".
  • the electronic device can update the area 52 and the area 53 in the graphical user interface 50.
  • the icon 521 and prompt information 523 can be displayed in the updated area 52.
  • the appearance (for example, color, gray scale, etc.) of the icon 521 in FIG. 5B may be different from that of the icon 521 in FIG. 5A to indicate that "directional sharing" has been turned on.
  • the prompt information 523 may be text information, such as "please select the direction of the receiving device", etc., and is used to prompt the user to perform an operation in the area 53 to select the direction of the receiving device.
  • an icon 533 may be displayed for monitoring the user's selection of the direction of the receiving device.
  • the icon 533 may include areas 5331-5334, indicating that the electronic device can find nearby devices in the four directions indicated by the areas 5331-5334, where the area 5331 represents an angle range of 45° to 135° counterclockwise relative to the horizontal direction. That is, the front of the electronic device, the area 5332 represents the angular range of 45° to 45° counterclockwise relative to the horizontal, that is, the right of the electronic device, and the area 5333 represents the angular range of 45° to 135° clockwise from the horizontal.
  • the area 5334 represents an angular range of 135°-225° clockwise with respect to the horizontal direction, that is, to the left of the electronic device.
  • the electronic device monitors an operation (such as tapping, sliding, pressing, or long pressing) that acts on one or more areas on the icon 533, in response to the operation, the selected area
  • the appearance of for example: color, gray scale, etc.
  • the electronic device triggers to find nearby devices within the angle range corresponding to the selected area.
  • the electronic device in response to the operation of tapping the area 5332, the electronic device triggers the discovery of nearby devices on its right; another example, in response to the sliding operation in the area 5331 and the area 5332, the electronic device triggers the discovery of nearby devices in the front and the right.
  • the number of regions in the icon 533 can be any natural number greater than or equal to 2, and the angle range can also be different, such as only indicating a range of 180 degrees, and the icon 533 is not limited to the form shown in FIG. 5B, such as It can be connected or separated rectangles, triangles, and other shapes, and can also be in the form of text, pictures, dynamic pictures, or links that indicate directions, and this embodiment does not impose any limitation on this.
  • the electronic device indicates the direction of the receiving device by receiving a user gesture.
  • the electronic device can update the area 52 and the area 53.
  • the icon 521 and prompt information 524 can be displayed in the updated area 52.
  • the appearance (for example, color, gray scale, etc.) of the icon 521 in FIG. 5C may be different from that of the icon 521 in FIG. 5A to indicate that "directional sharing" has been turned on.
  • the prompt information 524 may be text information, such as “please use a gesture to indicate the direction of the receiving device”, etc., and is used to prompt the user to use a gesture to indicate the direction of the receiving device in the area 53.
  • the user can use any point in the area as a starting point and continue to slide a distance L in a certain direction.
  • the distance L needs to be greater than a predetermined length so that the electronic device can identify and determine the direction of the slide.
  • the electronic device can determine the position of the contact point at the beginning and end of sliding, and determine the sliding direction according to the position of the contact point at the beginning and end of the sliding. For example, if the user starts at any point in the area 53 and slides a distance of 60° counterclockwise relative to the horizontal direction, the electronic device 100 is triggered to find the operation of nearby devices in the direction of the receiving device corresponding to the direction.
  • the area where the electronic device listens to the user's input gesture is not limited to the area 53.
  • the electronic device can also determine the sliding direction by recording the sliding track, etc., which is not limited in this embodiment.
  • the electronic device triggers the discovery of nearby devices in all directions and determines the relative position of the discovered nearby devices to the electronic device.
  • the electronic device in response to this operation, triggers the discovery of nearby devices in all directions and determines whether the discovered nearby devices and the electronic device Relative position, when the user clicks on the control 451 ("directed sharing") in the graphical user interface 40 as shown in FIG. 4B or the user clicks on the control 521 in the graphical user interface 40 as shown in FIG. 5A, the electronic device can update the graphic
  • the user interface is shown in Figure 5D to display nearby devices discovered by the electronic device.
  • FIG. 5D exemplarily shows a graphical user interface in which the electronic device displays nearby devices and their relative positions to the electronic device.
  • the relative position may include the angle of arrival (AoA) of the nearby device, and may also include location information such as the distance between the nearby device and the electronic device.
  • the electronic device After the "directional sharing" is turned on, if after a period of time, the electronic device discovers the nearby device and determines its relative position with the electronic device, the electronic device can update areas 52 and 53, as shown in Figure 5D, the updated The area 52 can display an icon 521 and prompt information 525.
  • the appearance (for example, color, gray scale, etc.) of the icon 521 in FIG. 5D may be different from that of the icon 521 in FIG. 5A to indicate that the "directional sharing" has been turned on.
  • the prompt information 525 may be text information, such as "please select a receiving device", etc., and is used to prompt the user to select a receiving device in the area 53.
  • a coordinate system 534 may be displayed on the graphical user interface 50, which may include a center point 5341 and a horizontal axis 5342 and a vertical axis 5343.
  • the center point 5341 may represent the electronic device
  • the horizontal axis 5342 represents the left-right direction relative to the electronic device
  • the vertical axis 5343 represents the front-rear direction relative to the electronic device.
  • the graphical user interface 50 may also display device information of the discovered nearby devices.
  • the graphical user interface 50 includes icons 535, 536, 537, 538, and 539.
  • the icons 535-539 represent nearby devices discovered by the electronic device and display device information corresponding to the nearby devices.
  • icons 534, 535, and 537 display device information "HUAWEI P30”
  • icons 536 and 538 display device information "HUAWEI Mate30”.
  • the positions of different icons indicate the relative positions of their corresponding nearby devices and electronic devices.
  • the icon 536 is located in the horizontal direction on the right side of the center point 5341, which indicates that the nearby device corresponding to the device information "HUAWEI P30" is located on the right side of the electronic device.
  • the distance between the icon and the center point 5341 indicates the distance between the corresponding nearby device and the electronic device.
  • an icon closer to the center point may have a different display effect than an icon farther from the center point.
  • an icon closer to the center point may have a different appearance (such as icon size, color, etc.) For icons that are far from the center point.
  • the icons 535-539 can be used to monitor the user's operation of selecting a receiving device on the graphical user interface 50. For example, as shown in Figure 5D, if the user clicks on the icon 536, the electronic device is triggered to establish a communication connection with the nearby device on the right side of the electronic device with the device information of "HUAWEI P30", and after the communication connection is established, the nearby device will be Send the selected picture.
  • the area displaying the device information of the nearby devices that have been discovered and the relative positions of the nearby devices and the electronic device is not limited to the area 53 shown in FIG. 5D: the electronic device can display the discovered device on the entire screen display area. The device information of nearby devices and the relative positions of nearby devices and electronic devices. The electronic device can also display the device information of the nearby device that has been discovered and the relative position of the nearby device and the electronic device in the edge area of the screen. For example, when a nearby device is found directly in front of the electronic device, the electronic device displays its device information near the upper edge of the screen. This embodiment does not impose any restriction on this.
  • the electronic device may also adopt other forms to display device information and relative position information.
  • the electronic device can use a list, etc., to display the relative position of the device while displaying the device information.
  • the electronic device can indicate the distance between the nearby device and the electronic device through sorting or different display effects. For example, for nearby devices that are closer to the electronic device, the display order of the corresponding device information is higher, or the device information corresponding to the device that is closer to the electronic device has a different device information from the device that is farther away from the electronic device.
  • the display effect, and the device information is different in appearance (such as icon size, color, etc.).
  • the electronic device in response to the user selecting or using gestures to indicate the direction of the receiving device in the graphical user interface 50 shown in FIG. 5B or 5C, the electronic device may update the graphical user interface as shown in FIG. 5D.
  • the graphical user interface 50 shown in FIG. 5D shows that nearby devices are found in all directions, and, in the graphical user interface 50 shown in FIG. 5D, different display effects are displayed for the device information in the direction of the receiving device. .
  • the device information in the direction of the receiving device is different from the device information in other directions in appearance (such as icon size, color, etc.). If the device information of nearby devices is displayed in a list, etc., the display order of the device information corresponding to the nearby devices in the direction of the receiving device may be higher, or it may have a different display effect from the device information in other directions.
  • the graphical user interface 50 as shown in FIG. 5D may also display text information, and the text information is used to prompt the user to turn the mobile phone so that the receiving device is located directly in front of the mobile phone. As the user turns the phone, the position of the icon on the graphical user interface changes accordingly. When the receiving device is located directly in front of the mobile phone, its corresponding icon is located above the graphical user interface 50.
  • the electronic device can also display graphics (such as arrows), animation and other methods or use voice to prompt.
  • the electronic device in response to the user selecting or using gestures to indicate the direction of the receiving device in the graphical user interface 50 shown in FIG. 5B or FIG. 5C, the electronic device may trigger the discovery of nearby devices in the indicated direction. Different situations update the graphical user interface to display the results of discovering nearby devices. 5E-5G exemplarily show that the electronic device displays graphical user interfaces of nearby devices found in the indicated direction under different conditions.
  • the electronic device can update the areas 52 and 53 in the graphical user interface 50.
  • the updated area 52 can display device information (such as icons, text, etc.) of nearby devices discovered by the electronic device in the direction indicated by the user, such as icons 525, 526, and 527, and the devices of each nearby device Information can be sorted according to a predetermined sorting rule.
  • the predetermined sorting rule may be based on the distance between the nearby device and the electronic device. For example, as shown in FIG.
  • the order indicates that the distance between the nearby device and the electronic device corresponding to the three device information in the figure is "MAC's mobile phone" ⁇ "Cindy's tablet” ⁇ "Jack's notebook".
  • different device information may have different display effects.
  • the icon "MAC phone” may be different from other icons in appearance (for example: color, size, etc.) to prompt that the nearby device corresponding to the icon is closest to the electronic device or the signal strength from the nearby device is the highest.
  • the updated area 53 is the same as the area 53 in FIG. 5A.
  • the foregoing predetermined sorting rule may be other rules such as the initial alphabetical order of the device ID, which is not limited in this embodiment.
  • the device information is not limited to icons, and the device information can also be expressed in other forms, such as the text information "printer”.
  • the device information may also include the account of the user who uses the device. For example, as shown in FIG. 5E, the "MAC” in the text message "MAC's mobile phone” is the user account, and the "Cindy” in “Cindy's tablet” Is a user account, and "Jack” in "Jack's Notebook” is a user account.
  • the device information may also be the model of the user device or other customized information, such as "HUAWEI P30" and so on.
  • the device information (such as icons 525-527) displayed in the area 52 can be used to monitor the operation that triggers the sharing.
  • a monitored operation such as a tap operation on the icon 525, etc.
  • the electronic device can trigger the sharing of the selected picture to the nearby device selected by the operation.
  • control 528 and/or the control 529 may also be displayed in the area 52.
  • the control 528 and/or the control 529 can be used to switch or update the device information displayed in the area 52, so that more discovered nearby devices can be viewed.
  • other interactive elements may also be used for the device information displayed in the user switching area 52.
  • the user may also make a left or right sliding gesture in the area 52 to switch or update the device information displayed in the area 52.
  • the electronic device can automatically update the information in the area 52, and the updated area 52 can display device information corresponding to nearby devices currently discovered by the electronic device in the indicated direction.
  • Device information corresponding to nearby devices that have been discovered by the electronic device but cannot currently be discovered may no longer be displayed in area 52.
  • device information corresponding to nearby devices newly discovered by the electronic device in the indicated direction may be displayed in area 52 .
  • the area 52 may also display an update control (such as "manual update"), and the update control is used for the user to manually update the device information corresponding to the currently discovered nearby device.
  • the area 52 may display another update control (such as "other recommendations"), and the other update control is used to update the area 52 to display device information corresponding to nearby devices found in other directions.
  • the user can also trigger the update of device information through specific gesture operations, such as sliding left or right.
  • the aforementioned other direction may be a predetermined angle range adjacent to the indicated direction, for example, a 30° angle range adjacent to the indicated direction.
  • the area 52 may also display operation prompt information corresponding to the device information.
  • the operation prompt information can be used to prompt the user which operation can trigger the electronic device to share data to nearby devices corresponding to the device information.
  • the text message "click to send" displayed below the user icon 525 may prompt the user to click the icon 525 to trigger the operation of sharing the selected picture to the nearby device "MAC's mobile phone”.
  • the operation prompt information corresponding to the device information can also prompt the user to trigger the electronic device to share data with nearby devices corresponding to the device information through other forms of operations.
  • the operation prompt information may prompt the user to make a specific gesture of drawing a circle counterclockwise on the user icon to trigger the sharing of the selected picture.
  • the electronic device in response to the user selecting or instructing the direction of the receiving device in the graphical user interface as shown in FIG. 5B or 5C, the electronic device may select a nearby device as a predetermined display rule among the nearby devices that have been discovered.
  • Candidate receiving device and display the device information of the candidate receiving device in the updated graphical user interface.
  • the predetermined display rule may be to select the nearby device closest to the electronic device as the candidate receiving device, and display its device information.
  • a dialog box 54 can be displayed in areas 52 and 53, and the dialog box 54 can include prompt information 541 and controls 542. 543.
  • the prompt information 541 may be text information, such as "you will share a picture with MAC's mobile phone", etc., which is used to prompt the user to share pictures with nearby devices whose device information is "MAC's mobile phone”.
  • the control 542 can display the text message "OK”, and the user touching the control can trigger the electronic device to establish a communication connection with a nearby device whose device information is "MAC phone” and send data after the connection is successfully established.
  • the control 543 can display the text "Get recommendations”. The user touching the control can trigger the electronic device to update the area 52, and display in the area 52 all nearby devices found in the indicated direction except for the nearby devices whose device information is "MAC's mobile phone”.
  • the device information corresponding to other nearby devices, and the display order of the device information corresponding to the other nearby devices may be based on a predetermined sorting rule, such as the distance between nearby devices and electronic devices or the initial alphabetical order of device IDs.
  • the area 52 may display device information corresponding to nearby devices discovered by the electronic device in other directions.
  • the above-mentioned other directions may be a predetermined angle range adjacent to the indicated direction.
  • the electronic device may display a dialog box 55 in area 52 and area 53, as shown in FIG. 5G.
  • the dialog box 55 may include prompt information 551 and controls 552 and 553.
  • the prompt information 551 may be text information, such as "You are sharing a picture with MAC's mobile phone", etc., used to prompt the user to share pictures with nearby devices whose device information is "MAC's mobile phone”.
  • the control 552 can display the text message "terminate", and the user can stop the data transmission between the electronic device and the nearby device whose device information is "MAC phone” by touching the control.
  • the control 553 may be a linear progress bar for prompting the progress of data transmission. Not limited to a linear progress bar, the electronic device can use numbers or other shapes of progress bars (such as circles, rings, rectangles, etc.) to prompt the user of the progress of data transmission.
  • the electronic device after the electronic device has only one nearby device in the direction of the indicated receiving device or selects a nearby device as a candidate receiving device among multiple nearby devices that have been discovered, it directly establishes a communication connection with the nearby device, and Send data after the connection is successfully established. That is, the graphical user interface can be directly updated from FIG. 5B or FIG. 5C to the one shown in FIG. 5G.
  • the electronic device when the electronic device does not find any device in the indicated direction, as shown in FIG. 5H, the electronic device can display a dialog box 56 in the areas 52 and 53, and the dialog box 56 can include prompt information 561 and Control 562, control 563.
  • the prompt information 561 may be text information, for example, "there is no supporting device in the specified direction", etc., which is used to prompt the user that no connectable device is found in the indicated direction.
  • the controls 562 and 563 can be used to prompt and monitor the user's next operation.
  • the control 562 can display text information "Get Recommendations", and the user can click the control to trigger the update area 52, and display in the area 52 device information corresponding to nearby devices found in directions other than the indicated direction.
  • the aforementioned other direction is a predetermined angular range adjacent to the indicated direction.
  • the control 563 can display the text message "Exit”, and the user clicks on the control to trigger the exit of this targeted sharing.
  • the controls 562 and 563 can correspond to other operations.
  • the control 563 can display the text message "redirect”, and the user can click the control to trigger the electronic device to update the graphical user interface for reselecting or instructing to receive
  • the orientation of the device, the graphical user interface 50 can be updated as shown in FIG. 5B or FIG. 5C.
  • a graphical user interface 50 It may also include a title bar, where a control 501 can be displayed in the title bar, and indication information 502 can also be displayed.
  • the control 501 can be used to cancel the operation of selecting a picture for sharing, that is, the user can click the control 501 to cancel sharing the selected picture.
  • the indication information 502 can be used to indicate the number of selected pictures.
  • the graphical user interface 60 exemplarily shown in FIGS. 6A-6B may be another implementation of the "directional sharing interface".
  • FIG. 6A exemplarily shows a graphical user interface 60 entered in response to a user's tap operation on a picture in the application "Gallery" in FIG. 4A.
  • the graphical user interface 60 may include areas 61 and 62.
  • the area 61 may display the picture 601 currently browsed by the user.
  • the menu 602 can be displayed in the area 62.
  • the menu 602 can refer to the menu 45 in the graphical user interface 40 shown in FIG. 4B, which will not be repeated here.
  • the electronic device can monitor the user's operation of clicking the control 6021 ("Share") in the menu 602 in the graphical user interface 60, thereby triggering the sharing of the currently displayed picture 601.
  • the electronic device triggers an update of the graphical user interface.
  • "directional sharing” is not enabled, the electronic device monitors the user's operation of enabling directional sharing in the updated graphical user interface.
  • the updated graphical user interface please refer to the graphical user interface 50 shown in FIG. 5A, which will not be repeated here.
  • control 6021 may be “directed sharing”.
  • the electronic device triggers an update of the graphical user interface, and monitors the user's selection operation of the direction of the receiving device in the updated graphical user interface.
  • the updated graphical user interface may refer to the graphical user interface 50 shown in FIG. 5B.
  • the electronic device in response to the user clicking the control 6021 "directed sharing", the electronic device triggers an update of the graphical user interface, monitors the user's gestures in the updated graphical user interface, and determines the direction of the receiving device through the user's gestures .
  • the updated graphical user interface can refer to the graphical user interface 50 shown in FIG. 5C.
  • the electronic device in response to the user clicking on the control 6021 "directed sharing", the electronic device updates the graphical user interface to display the device information corresponding to nearby devices and the relative positions of the nearby devices and the electronic device, and monitor the user's selection of the receiving device .
  • the updated graphical user interface can refer to the graphical user interface 50 shown in Fig. 5D, which will not be repeated here.
  • the electronic device can monitor the user's gesture operation in the graphical user interface 60 to trigger the directional sharing. As shown in FIG. 6B, the user can press and hold any position in the area 61 and continue to slide a distance L in a certain direction. The distance L needs to be greater than a predetermined length so that the electronic device can recognize and determine the direction in which the user slides.
  • the picture in the area 61 in response to the user's long-press operation at any position in the area 61, the picture in the area 61 can be updated to the thumbnail of the currently viewed picture, and the reduced picture is displayed at the position where the user has long-pressed, and when When the user's finger slides on the screen, the thumbnail can move as the position of the touch point changes.
  • the electronic device respectively determines the contact positions of the user at the beginning and the end of the sliding in the area 61, and determines the user's sliding direction according to the positions of the contact at the beginning and the end of the sliding. It is understandable that the method of determining the sliding direction is not limited to determining the contact positions at the beginning and the end of the sliding. The electronic device can also determine the sliding direction by recording the sliding track of the finger. This embodiment does not impose any limitation on this.
  • the electronic device In response to the user's operation of long pressing and continuously sliding a distance L in a certain direction in the area 61 of the graphical user interface as shown in FIG. 6B, the electronic device updates the graphical user interface and displays it in different situations. Graphical user interface of nearby devices found in the indicated direction.
  • the electronic device may update the graphical user interface as shown in FIG. 5D As shown, and display device information corresponding to nearby devices found in all directions in the updated graphical user interface.
  • the device information that the electronic device can set in the sliding direction has different display effects. For example, the device information in the sliding direction is different from the device information in other directions in appearance (such as icon size, color, etc.). If the device information of nearby devices is displayed in a list, etc., the display order of the device information corresponding to the nearby devices in the sliding direction can be higher.
  • the electronic device may update the graphical user interface as shown in FIG. 5E or FIG. 5F, and display device information corresponding to nearby devices in the sliding direction in the updated graphical user interface.
  • the electronic device in response to the user's long-pressing and continuing to slide a distance L in a certain direction at any position in the area 61 of the graphical user interface as shown in FIG. 6B, the electronic device can trigger the movement in the sliding direction
  • the electronic device can update the graphical user interface as shown in Figure 5G.
  • the electronic device may update the graphical user interface as shown in FIG. Shown at 5H to indicate that the electronic device does not find a supported device in the sliding direction.
  • the user touches a picture in the application "Gallery" in FIG. 4A to enter the graphical user interface 60, and the electronic device detects a specific operation in the graphical user interface 60 (for example: single-finger long press, After two-finger long press or draw a circle counterclockwise on the picture), the electronic device updates the graphical user interface to display device information corresponding to nearby devices found in all directions, and monitors the user's selection of the receiving device.
  • the updated The graphical user interface can refer to Figure 5D.
  • the graphical user interface 70 exemplarily shown in FIGS. 7A-7B may be another implementation of the "directional sharing interface".
  • FIG. 7A exemplarily shows a graphical user interface 70 entered in response to a user's tap operation on the application "file management" in FIG. 3A.
  • the graphical user interface 70 may include icons 701, 703, and 705 and corresponding text information 702, 704, and 706.
  • the icons 701, 703, and 705 are used to indicate different file types contained in the electronic device
  • the text information 702, 704, and 706 are used to prompt the user the names of the file types contained in the electronic device and the number of corresponding file types.
  • the content of the text information 702 is "picture 56", which means that 56 pictures are stored in the electronic device.
  • the icons 701, 703, and 705 are used to monitor the user's operation on the icon, and in response to the user's operation, trigger the electronic device to display the file of the corresponding file type. For example, the user clicks on the icon 703 to trigger the electronic device to display the list of documents stored therein, and the graphical user interface 70 is updated as shown in FIG. 7B.
  • FIG. 7B exemplarily shows the operation of monitoring the user to select and share in the currently displayed file list in the graphical user interface 70.
  • the graphical user interface 70 may include a status bar 71, an application title bar 72, and a file area 73. in:
  • the status bar 71 can refer to the status bar 21 in the graphical user interface 20 shown in FIG. 3A, which will not be repeated here.
  • the application title bar 72 may include: a return key 721 and a current page indicator 722.
  • the return key 721 is an APP-level return key, which can be used to return to a logical upper level.
  • the current page indicator 722 may be used to indicate the current page, for example, the text information "document", and is not limited to text information.
  • the current page indicator 722 may also be in other forms such as an icon.
  • the file area 73 may display a file list containing one or more file information. As shown in FIG. 7B, it may include files 731, 732, 733, and 734.
  • the electronic device monitors the upward or downward sliding operation in the file area 73, the electronic device can update the file displayed in the file area 73 so that the user can browse the file. In other words, the user can swipe up or down in the file area 73 to browse files. Not limited to the upward or downward sliding operation, the user can also swipe left or right in the file area 73 to browse files.
  • the graphical user interface 70 may also include a navigation bar (not shown in the figure).
  • a navigation bar refer to the navigation bar 23 in the graphical user interface 20 shown in FIG. 3A, which will not be repeated here.
  • the electronic device may display the menu 74 in the graphical user interface 70.
  • the menu 74 can refer to the menu 45 in the graphical user interface 40 shown in FIG. 4B, which will not be repeated here.
  • a mark 7331 is displayed on the selected file. The mark 7331 may indicate that the file 733 has been selected by the user.
  • the electronic device can monitor the user's operation of clicking the control 741 ("Share") in the menu 74 in the graphical user interface 70, thereby triggering the sharing of the selected file (such as the file 733).
  • the electronic device triggers an update of the graphical user interface, and monitors the user's operation of enabling directional sharing in the updated graphical user interface.
  • For the update of the graphical user interface by the electronic device refer to the areas 52 and 53 in the graphical user interface 50 shown in FIG. 5A. I won't repeat it here.
  • control 741 may be “directed sharing”.
  • the electronic device triggers an update of the graphical user interface, and monitors the user's selection operation of the direction of the receiving device in the updated graphical user interface.
  • the electronic device in response to the user clicking the control "directional sharing", triggers an update of the graphical user interface, monitors the user's gestures in the updated graphical user interface, and determines the direction of the receiving device through the user's gestures.
  • the electronic device For the update of the graphical user interface by the electronic device, refer to the areas 52 and 53 in the graphical user interface 50 shown in FIG. 5C.
  • the electronic device in response to the user clicking the control "directional sharing", the electronic device triggers the discovery of nearby devices in all directions and the determination of the relative position between the discovered nearby devices and the electronic device. After the relative position between the electronic device and the electronic device, the electronic device updates the graphical user interface, displays the device information corresponding to the nearby device and the relative position of the nearby device and the electronic device, and monitors the user's selection of the receiving device.
  • the update of the graphical user interface of the electronic device please refer to the areas 52 and 53 of the graphical user interface 50 shown in FIG. 5D, which will not be repeated here.
  • the graphical user interface 80 exemplarily shown in FIGS. 8A-8B may be another implementation of the "directional sharing interface".
  • FIG. 8A exemplarily shows the graphical user interface 80 that enters the application sharing in response to the user's operation on the application icon on the graphical user interface shown in FIG. 3A.
  • the electronic device monitors the long-press operation on the icon of the application 239, and in response to the operation, the electronic device can update the menu 81 around the application icon 239, and the menu 81 can include controls 811 ("Share") and controls 812 ("Uninstall").
  • the control 811 can be used to monitor the user's operation of sharing the selected application
  • the control 812 can be used to monitor the user's operation of uninstalling the selected application.
  • the electronic device can monitor the user's operation of tapping the control 811 ("share") in the menu 81 in the graphical user interface 80, and in response to the operation on the control 811, the electronic device triggers an update of the graphical user Interface, and monitor the user’s operation of enabling directional sharing in the updated graphical user interface.
  • the electronic device For the update of the graphical user interface by the electronic device, reference may be made to the areas 52 and 53 in the graphical user interface 50 shown in FIG. 5A, which will not be repeated here.
  • control 811 may be “directed sharing”.
  • the electronic device triggers an update of the graphical user interface, and monitors the user's selection operation of the direction of the receiving device in the updated graphical user interface.
  • the electronic device in response to the user clicking the control "directional sharing", triggers an update of the graphical user interface, monitors the user's gestures in the updated graphical user interface, and determines the direction of the receiving device through the user's gestures.
  • the electronic device For the update of the graphical user interface by the electronic device, refer to the areas 52 and 53 in the graphical user interface 50 shown in FIG. 5C.
  • the electronic device in response to the user clicking the control "directional sharing", the electronic device triggers the discovery of nearby devices in all directions and the determination of the relative position between the discovered nearby devices and the electronic device. After the relative position between the electronic device and the electronic device, the electronic device updates the graphical user interface, displays the device information corresponding to the nearby device and the relative position of the nearby device and the electronic device, and monitors the user's selection of the receiving device.
  • the update of the graphical user interface of the electronic device please refer to the areas 52 and 53 of the graphical user interface 50 shown in FIG. 5D, which will not be repeated here.
  • the user performs a specific operation on the application icon on the graphical user interface shown in FIG. 3A (for example, long press with two fingers, long press with multiple fingers, or draw a circle counterclockwise on the application icon, etc.).
  • Operation Trigger the discovery of nearby devices in all directions and determine the relative position between the discovered nearby devices and the electronic device. After discovering nearby devices and determining the relative position between them and the electronic device, the electronic device updates the graphical user interface, Display the device information corresponding to nearby devices and the relative positions of nearby devices and electronic devices, and monitor the user's selection of receiving devices. For the update of the graphical user interface by the electronic device, refer to the areas 52 and 53 in the graphical user interface 50 shown in FIG. 5D. In some cases, the electronic device triggers the operation of sharing the selected application to the nearby device by monitoring the user's dragging of the application icon to the device information corresponding to the nearby device displayed on the graphical user interface.
  • the electronic device determines the target receiving device, it establishes a communication connection with the target receiving device, and starts to transmit application information after the communication connection is established.
  • the application information may include one or more of application installation program, application download link, application program name and version number and other information.
  • FIG. 9A exemplarily shows the process of discovering all nearby devices and determining the relative positions of the nearby devices and the electronic device after the electronic device turns on the directional sharing, and establishing a connection with the selected receiving device and sending data.
  • the electronic device 100 monitors that the directional sharing is turned on, the electronic device 100 is triggered to discover nearby devices in all directions.
  • the user can click on the "directional sharing" control in the graphical user interface shown in Figure 3B, or click on the "directional sharing” control in the graphical user interface shown in Figure 4B, or by clicking on the "directed sharing" control in the graphical user interface shown in Figure 5A Click the icon 521 in the graphical user interface, or start the directional sharing through a specific gesture operation in the graphical user interface as shown in FIG. 6B.
  • the electronic device 100 can discover nearby devices in the following ways:
  • Method 1 Use Wi-Fi direct wireless communication technology to discover nearby devices
  • the electronic device 100 may broadcast a probe request to the outside. After listening to the detection request, nearby devices can respond with a probe response to notify their existence. In other embodiments, nearby devices may periodically send out beacon frames. The electronic device 100 can discover nearby devices by listening to Beacon frames sent by nearby devices.
  • the electronic device 100 can actively discover nearby devices or passively discover nearby devices.
  • Bluetooth devices such as mobile phones, tablet computers, printers, etc.
  • the electronic device 100 may perform Bluetooth scanning, scan broadcast frames broadcast by nearby Bluetooth devices, and find nearby Bluetooth devices.
  • the electronic device 100 can determine the IP address range of the LAN according to its own IP address and subnet mask in the LAN, and then can discover the devices in the LAN by means of unicast polling. Not limited to this, the electronic device 100 may also discover the devices in the LAN through broadcast messages or multicast messages in the LAN.
  • electronic devices can also use other methods to discover nearby devices based on communication technologies such as Bluetooth or Wi-Fi direct connection or Wi-Fi LAN or millimeter wave. This application There is no restriction on this.
  • the electronic device 100 obtains the identification information of the nearby devices from the messages (such as detection response, beacon frame or Bluetooth broadcast frame, etc.) received from nearby devices during the discovery process of nearby devices, and then obtains the device information through the identification information, or from nearby devices.
  • the device information of the above-mentioned nearby devices is obtained from the message received by the device.
  • the electronic device 100 After discovering the electronic device 101, the electronic device 102, and the electronic device 103, the electronic device 100 respectively determines the relative positions of the aforementioned nearby electronic devices and the electronic device 100.
  • the above-mentioned relative position includes at least angle of arrival (AoA) and other information.
  • the specific process of the electronic device 100 determining the angle of arrival (AoA) of nearby devices may be as shown in FIG. 9B.
  • the electronic device 100 first sends a first request signal 1011 to the electronic device 101, and the first request signal 1011 is used to request the electronic device 101 to send a first report signal 1012 to measure the angle of arrival (AoA). After the electronic device 101 receives the first request signal 1011, it sends the first report signal 1012 to the electronic device 100.
  • the electronic device 100 uses the antenna array to receive the first report signal 1012, and according to the difference of the first report signal 1012 received by different antennas.
  • the phase difference estimates the angle of arrival (AoA) of the electronic device 101.
  • the first report signal 1012 may specifically include a fixed-frequency extended signal, and the signal may be a data string including a series of switching time slots and sampling time slots attached to a normal data packet.
  • the receiving end switches different receiving antennas in a certain order, and determines the angle of arrival (AoA) according to the phase difference of the fixed frequency spread signal received by the different antennas.
  • the millimeter wave antenna array of the electronic device 100 includes 8 millimeter wave antennas A1-A8, after sending the first request signal 1011, at time t1, only the antenna A1 is used to receive the first report signal 1012 sent by nearby devices. At time t2, only the antenna A2 is used to receive the first report signal 1012 sent by the nearby device, and so on. After the eight antennas respectively receive the first report signal 1012 sent by the nearby device, the electronic device 100 is based on the first report signal 1012 received by the eight antennas. The phase difference of a report signal 1012 is used to calculate the angle of arrival (AoA) of the nearby device, that is, the relative angle between the nearby device and the electronic device 100.
  • AoA angle of arrival
  • the electronic device 100 and the electronic device 101 may adopt an angle of emission (AoD) measurement method to determine the relative angle.
  • AoD angle of emission
  • the electronic device 100 uses the same steps as measuring the angle of arrival (AoA) of the electronic device 101 to determine the angle of arrival (AoA) of the electronic device 102 and the electronic device 103 using antenna arrays in different time intervals. In some other embodiments, the electronic device 100 can simultaneously determine the angle of arrival (AoA) of multiple devices or all of the nearby devices.
  • the electronic device 100 may be configured with an antenna array for beamforming, and only receive broadcast messages sent by nearby devices in one direction, or send detection signals in that direction, and nearby devices that receive the detection signals send the detection signals to the electronic device 100. Send a probe response to discover nearby devices in this direction.
  • the electronic device 100 obtains device information of nearby devices, and corresponds the above-mentioned nearby devices to the direction.
  • the electronic device 100 configures the antenna array to perform beamforming, and finds nearby devices in another direction. That is, by polling in various directions, the discovery of nearby devices is completed, and the relative angles of nearby devices are obtained.
  • the relative position may also include distance information.
  • the electronic device 100 can determine the distance between the electronic device 100 and the discovered nearby device by receiving the signal strength RSSI of the message from the nearby device during the nearby device discovery process. For example, the electronic device 100 can determine the distance of the electronic device 100 from the nearby device during the nearby device discovery process.
  • the signal strength RSSI of the broadcast message or response message is used to determine the distance between the electronic device 100 and the discovered nearby device; other existing ranging methods, such as ToF/ToA/TDoA ranging, etc., can also be used to determine the electronic device The distance between 100 and nearby devices found. This embodiment does not impose any restriction on this.
  • the electronic device 100 After the electronic device 100 determines the relative positions of the electronic device 101, the electronic device 102, and the electronic device 103 and detects the user's operation of sharing data, it updates the graphical user interface and includes the aforementioned nearby devices electronic device 101 and electronic device in the graphical user interface.
  • the graphical user interface displayed can refer to FIG. 5D.
  • the closer the nearby device is to the electronic device the closer the corresponding icon to the center point 5341 is.
  • the electronic device 100 monitors the user's selection of the receiving device in the graphical user interface as shown in FIG. 5D.
  • the electronic device 100 can determine its signal strength RSSI from signals received from nearby devices during the nearby device discovery process. For example, the electronic device 100 can determine the broadcast received from nearby devices during the nearby device discovery process.
  • the signal strength RSSI of the message or response message after determining the relative angle between the nearby device and the electronic device 100 and detecting the user's operation of sharing data, the graphical user interface is updated, and the graphical user interface includes the device information and relative information of the nearby device.
  • the graphical user interface displayed can refer to Figure 5D.
  • the nearby devices with stronger signal strength have their corresponding icons closer to the center point 5341.
  • the electronic device 100 can establish a communication connection with the electronic device 101 through wireless technologies such as Bluetooth or WiFi and start sending data.
  • the above-mentioned specific process of establishing a communication connection may be: the electronic device 100 sends a connection establishment request message to the electronic device 101, and after receiving the connection establishment request message, the electronic device 101 returns a connection response message to the electronic device 100 to establish the connection between the electronic device 100 and the electronic device. Communication connection between devices 101.
  • the electronic device 100 sends data selected by the user, such as images, documents, application installation programs, application program information, etc., to the electronic device 101.
  • the electronic device can set different display effects for the device information corresponding to the nearby device in the indicated direction among the nearby devices found in all directions, or display only the indication in the graphical user interface as shown in Figure 5E.
  • the device information corresponding to the nearby device in the direction indicated, or when there is only one nearby device in the indicated direction or the electronic device selects a candidate nearby device from multiple nearby devices in the indicated direction, as shown in Figure 5F
  • the graphical user interface displays the corresponding device information or directly establishes a communication connection with the nearby device and starts sending data.
  • FIG. 9C exemplarily shows the process of determining the direction of the receiving device after the electronic device starts directional sharing, and discovering nearby devices based on the direction, and establishing a connection with the selected receiving device and sending data.
  • the user of the electronic device 100 can indicate the direction of the receiving device through selection on the graphical user interface as shown in FIG. 5B, or instruct the direction of the receiving device through gestures on the graphical user interface as shown in FIG. 5C or 6B.
  • the user selects area 5332 in the graphical user interface as shown in Figure 5B it means that the direction of the receiving device indicated by the user is on the right; in the graphical user interface as shown in Figure 5C, if the user moves along the horizontal Sliding to the right in the direction indicates that the direction of the receiving device indicated by the user is on the right.
  • the electronic device 100 determines the direction of the receiving device indicated by the user, it determines the beamforming scheme according to the posture of the electronic device 100 determined by the gyroscope, and configures the antenna array to receive broadcast messages sent by nearby devices in the indicated direction.
  • a nearby device was found in the direction of the receiving device.
  • the beamforming scheme may include the weight of each antenna. Specifically, by adjusting the weight of each antenna, multiple antennas undergo coherence and cancellation on the waveform, and can receive signals in a specified direction.
  • the antenna array may be a millimeter wave antenna array. During the nearby device discovery process, it receives millimeter wave broadcast messages sent by nearby devices in the direction of the receiving device, thereby discovering nearby devices in the specified direction. . In some other embodiments, the antenna array may be an antenna array equipped with wireless communication technologies such as Bluetooth or WiFi.
  • the electronic device 100 after determining the direction of the receiving device, configures the antenna array to send the detection request in the indicated direction.
  • the nearby devices that have received the detection request respond to the detection response to the electronic device 100 to notify their existence.
  • 10A and 10B exemplarily show the working principle of determining the beamforming scheme and configuring the antenna array according to the direction of the receiving device and the posture of the electronic device selected by the user or indicated by gestures in this embodiment.
  • the electronic device detects the user's upward sliding operation in the graphical user interface, the electronic device will find nearby devices directly in front of the electronic device.
  • the electronic device is in a horizontal direction, and the electronic device determines the first beamforming scheme according to the direction of the receiving device and the posture of the electronic device indicated by the user, that is, the weight of each antenna is determined so that the beam is directed directly in front of the electronic device.
  • the electronic device also detects the user's upward sliding operation in the graphical user interface, but because the electronic device has a certain angle with the horizontal direction, the electronic device is based on the direction of the receiving device indicated by the user and the direction of the electronic device.
  • the posture determines the second beamforming scheme, that is, determines the weight of each antenna so that the beam is directed directly in front of the electronic device.
  • the parameters of the first beamforming solution are different from the parameters of the second beamforming solution due to the different postures of the electronic devices.
  • the electronic device 100 since the electronic device 101 and the electronic device 102 are in the same direction, when the user indicates that the direction of the receiving device is on the right side of the electronic device 100, the electronic device 100 may be discovered during the discovery process of nearby devices Electronic device 101 and electronic device 102. As shown in FIG. 9C, if the electronic device 100 discovers the electronic device 101 and the electronic device 102, that is, the electronic device 100 receives the broadcast message or the detection response from the electronic device 101 and the electronic device 102.
  • the electronic device 100 obtains the device information of the electronic device 101 and the electronic device 102 from the above-mentioned broadcast message or detection response, and determines the signal strength RSSI of the above-mentioned broadcast message or detection response, and determines the difference between the electronic device 100 and the electronic device 101 and the electronic device according to the signal strength RSSI.
  • the distance between devices 102 In some other embodiments, the electronic device 100 can obtain the distance between it and nearby devices through other ranging technologies, such as ToF/ToA/TDoA ranging. After discovering nearby devices and determining the distance between the nearby devices and the electronic device 100, the electronic device can sort the discovered nearby devices according to a predetermined sorting rule and display the sorted devices in the graphical user interface as shown in FIG. 5E.
  • the predetermined sorting rule may be based on the distance between the nearby device and the electronic device.
  • the ordering of the device messages may be based on other rules such as the signal strength RSSI of the broadcast message or the probe response or the initials of the device message.
  • the electronic device 100 listens to the user clicking the icon corresponding to the electronic device 101 in the graphical user interface as shown in FIG. 5E, it indicates that the user selects the electronic device 101 as the receiving device.
  • the electronic device 100 establishes a communication connection with the electronic device 101 and starts to transmit data after the connection is established.
  • the electronic device 100 and the electronic device 101 establish a communication connection through wireless communication technologies such as Bluetooth or WiFi, and transmit data through wireless communication technologies such as Bluetooth or WiFi after the connection is established.
  • a communication connection is established between the electronic device 100 and the electronic device 101, and data is directionally transmitted through the antenna array after the connection is established.
  • the attitude of the mobile phone can be detected by the gyroscope and the angle of arrival (AoA) or the angle of emission (AoD) between the two devices can be measured to obtain the relative position change of the electronic device 100 and the electronic device 101, thereby adjusting the beamforming
  • the solution is to adjust the weight of each antenna of the antenna array in real time, so that the directional transmission can continue.
  • the electronic device 100 monitors the operation of updating the displayed device information in the graphical user interface as shown in FIG. 5E, in response to the operation, the electronic device 100 triggers the determination of the beamforming scheme in other directions different from the designated receiving device direction , That is, determine the weight of each antenna in the antenna array, and configure the antenna array to find nearby devices in this other direction.
  • the electronic device 100 can determine the distance between each nearby device and the electronic device according to the signal strength of the message (such as a broadcast message or detection response) received from nearby devices during the discovery process of nearby devices, and then determine the display order of each nearby device, and The device information corresponding to nearby devices is displayed in a certain order. Among them, the device information corresponding to the nearby devices that are closer to the electronic device is ranked higher.
  • the electronic device 100 may also determine the display sequence of each nearby device according to the signal strength of the broadcast message or the detection response received from the nearby device.
  • the electronic device 100 updates the device information in the area 52 of the graphical user interface as shown in FIG. 5E, and monitors the receiving device selected by the user on the displayed graphical user interface.
  • the aforementioned other direction may be a predetermined angle range adjacent to the direction of the receiving device.
  • the electronic device 100 finds nearby devices in the specified direction and determines the distance between each nearby device and the electronic device 100, only the device message corresponding to the nearby device closest to the electronic device 100 is displayed and displayed in the The graphical user interface monitors the user's confirmation result of the receiving device.
  • the electronic device 100 finds nearby devices in a specified direction and determines the signal strength of messages (such as broadcast messages or probe responses) received from each nearby device, and only displays the signals corresponding to the nearby device with the strongest signal strength.
  • Device information and monitor the user's confirmation result of the receiving device in the displayed graphical user interface.
  • the displayed graphical user interface can be referred to as shown in 5F.
  • the electronic device If the user clicks the control 542 ("OK") in the graphical user interface as shown in FIG. 5F, the electronic device is triggered to establish a communication connection with the selected device, and data is sent after the connection is successfully established. If the user clicks on the control 543 ("Recommendation") shown in FIG. 5F, the electronic device is triggered to update the displayed device information and display the devices found in the above-specified direction except for the nearby devices that are closest to the electronic device 100. For other nearby devices, the display order of the above-mentioned other nearby devices is based on the distance between the other nearby devices and the electronic device 100. The electronic device 100 monitors the user's selection of the receiving device by referring to the graphical user interface as shown in FIG. 5E.
  • the electronic device 100 determines the beamforming scheme in other directions different from the direction specified by the user, and configures the weight of each antenna in the antenna array, so that the antenna array finds nearby devices in the other direction.
  • the aforementioned other direction may be a predetermined angular range adjacent to the direction of the receiving device designated by the user.
  • the electronic device 100 finds only one nearby device in the direction of the receiving device specified by the user or determines a nearby device with the closest distance or the strongest signal strength as the receiving device among multiple nearby devices that have been discovered Then, it directly establishes a communication connection with the nearby device, and sends data after the connection is successfully established. At this time, the graphical user interface can be updated as shown in Figure 5G.
  • the electronic device 100 when the electronic device 100 does not find any device in the direction of the receiving device specified by the user, the electronic device 100 updates the graphical user interface to remind the user that no device is found.
  • the electronic device 100 If the user clicks the control 552 ("Get Recommendation") in the graphical user interface as shown in FIG. 5H, in response to this operation, the electronic device 100 triggers the determination of the beamforming scheme in a direction different from the direction of the receiving device specified by the user, And configure the weight of each antenna in the antenna array so that the antenna array can find nearby devices in this other direction.
  • the electronic device 100 estimates the distance between each nearby device and the electronic device according to the signal strength of the message received from the nearby device during the discovery process, and then determines the display order of each nearby device, and determines the device information corresponding to the nearby device according to the determined
  • the sorting is displayed in the graphical user interface shown with reference to Figure 5E.
  • the electronic device 100 monitors the receiving device selected by the user with reference to the graphical user interface as shown in FIG. 5E.
  • the other direction may be a predetermined angular range adjacent to the direction of the receiving device designated by the user.
  • the computer may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it can be implemented in the form of a computer program product in whole or in part.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium, (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state hard disk).
  • the process can be completed by a computer program instructing relevant hardware.
  • the program can be stored in a computer readable storage medium. , May include the processes of the above-mentioned method embodiments.
  • the aforementioned storage media include: ROM or random storage RAM, magnetic disks or optical disks and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Environmental & Geological Engineering (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明提供了一种数据分享方法以及电子终端。电子终端具有天线阵列,具备测量附近设备角度和波束成形的能力。用户在向附近设备分享数据时能够获得附近设备的方向信息,使用户能够结合方向信息选择接收设备或者电子终端在用户指定的方向上发现附近设备。用户也可以在指定的方向上发现附近设备。本发明能够使用户在使用电子设备向附近设备进行数据分享的过程中使用方向信息区分附近设备,提高用户选择接收设备的速度和便捷度,提高用户的使用满意度。

Description

数据分享的方法、电子设备
本申请要求在2020年1月13日提交中国国家知识产权局、申请号为202010033491.5的中国专利申请的优先权,发明名称为“数据分享的方法、电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及无线通信领域,尤其涉及数据分享的方法、电子设备。
背景技术
近年来,随着无线通信技术的发展,智能手机、平板电脑等电子设备开始支持使用蓝牙、Wifi等无线通信技术在设备之间分享数据。随着智能终端的普及,越来越多的用户采用D2D的方式进行数据的共享。用户在进行分享的过程中,首先需要对相邻的设备进行发现。在实际应用中,在进行附近设备发现时,相邻的电子设备越来越多。这种现象为用户使用D2D方式进行数据分享带来了困扰:首先,相邻设备数量的增加会增加用户设备探测的时间。此外,由于很少有用户维护自己设备的信息,导致发现设备的设备信息缺乏个性化,导致进行数据分享的发送方在数量庞大的相邻设备列表中难以区分接收设备。以上现象对用户选择接收设备带来不便,降低了用户的使用满意度。
发明内容
本发明的目的在于提供一种数据分享的方法、电子设备,能够使用户在使用电子设备进行数据分享的过程中能够更容易区分相邻设备,提高用户选择接收设备的速度和便捷度。
上述目标和其他目标将通过独立权利要求中的特征来达成。进一步的实现方式在从属权利要求、说明书和附图中体现。
第一方面,提供一种数据分享的方法,该方法可包括:电子设备显示第一图形用户界面,所述第一图形用户界面中显示有第一对象(如图片、文档等);所述电子设备在所述第一图形用户界面中检测第一操作(如点击控件“分享”),响应于所述第一操作,所述电子设备显示第二图形用户界面;所述电子设备在所述第二图形用户界面中显示第一信息和第二信息,其中,所述第一信息包括第一方向信息,所述第二信息包括第二方向信息。其中,所述第一信息与第一设备对应,所述第二信息与第二设备对应;所述第一方向信息指示所述第一设备位于所述电子设备的第一方向上,所述第二方向信息指示所述第二设备位于所述电子设备的第二方向上。所述第一设备和所述第二设备是所述电子设备通过短距离无线通信协议发现的。所述电子设备在所述第二图形用户界面中检测第二操作(例如用户点击第一信息),所述第二操作作用于所述第一信息上;响应于所述第二操作, 所述电子设备向所述第一设备发送所述第一对象。
这里,第一图形用户界面可以是第一应用程序的用于显示对象的用户界面。第一应用程序可以为显示有图片的“图库”,其显示的对象可以是图片。第一应用程序也可以为显示了文件的应用程序。不限于此,第一应用程序还可以是其他显示图片、文档、文字等对象的应用程序。
第一方面所描述的技术方案,可以使得电子设备在进行数据分享过程中,能够显示附近设备的方向信息,使得用户能够结合方向信息来区分附近设备,提高用户选择接收设备的速度和便捷度,提高了电子设备的使用效率。
根据第一方面,在一种可能的实现方式中,在第一图形用户界面中还显示有第二对象;以及,在所述第一操作之前,还包括:所述电子设备在所述第一图形用户界面中检测第三操作,所述第三操作作用于所述第一对象上;响应于所述第三操作,所述第一对象显示为被选择。第三操作具体可以为在所述第一对象上的长按操作等。
根据上述实现方式,在图形用户界面中显示了多个对象时,用户能够选择分享的对象。
根据第一方面,在另一种可能的实现方式中,所述第一信息还指示所述电子设备与所述第一设备的距离,所述第二信息还指示所述电子设备与所述第二设备的距离。
根据上述实现方式,在结合了方向信息的基础上进一步的结合距离,进一步提高用户区分附近设备的效率。
根据第一方面,在另一种可能的实现方式中,在所述电子设备在所述第二图形用户界面中显示第一信息和第二信息之前,还包括:所述电子设备检测第四操作,响应于第四操作,所述电子设备通过短距离无线通信协议发现所述第一设备和所述第二设备。该第四操作具体可以为在图形用户界面的状态栏上向下滑动,并在显示的窗口中点击“定向分享”的开关控件。
根据上述实现方式,电子设备可以在用户开始分享数据之前就可以开启附近设备发现过程,缩短了分享数据到发送数据之间的响应时间。
根据第一方面,在另一种可能的实现方式中,所述第二图形用户界面中还包括第一选项;以及,在所述电子设备在所述第二图形用户界面中显示第一信息和第二信息之前,还包括:所述电子设备检测到作用于所述第一选项的第五操作时,所述电子设备通过短距离无线通信协议发现所述第一设备和所述第二设备。该第一选项具体可以为表示“定向分享”的图标、文字、图片等形式,该第五操作具体可以为点击该第一选项。通过该步骤,在定向分享没有被开启的情况下,用户能够通过上述操作开启附近设备发现过程。
根据上述实现方式,电子设备仅在需要的时候开启定向分享,能够节约功耗。
根据第一方面,在另一种可能的实现方式中,所述电子设备具备天线阵列,所述电子设备使用所述天线阵列确定所述第一设备的所述第一方向和所述第二设备的所述第二方向。在具体实现中,可以使用所述天线阵列先确定所述第一设 备的所述第一方向,再使用所述天线阵列确定所述第二设备的所述第二方向,也可以使用所述天线阵列同时确定所述第一设备的所述第一方向和所述第二设备的所述第二方向。
根据上述实现方式,电子设备能够确定附近设备的相对角度。
根据第一方面,在另一种可能的实现方式中,所述第二图形用户界面上还显示有第三信息,所述第三信息包括所述第一方向信息;其中,所述第三信息与第三设备对应,所述第一方向信息指示所述第三设备位于所述电子设备的所述第一方向上。所述第二图形用户界面上可以显示所述电子设备发现的全部附近设备以及附近设备的方向信息。
根据上述实现方式,用户能够进一步的结合方向信息在多个附近设备中选择目标接收设备,提高了用户进行数据分享的效率。
根据第一方面,在另一种可能的实现方式中,所述第一信息和所述第三信息具有不同的显示效果,所述不同的显示效果指示所述第一设备和所述第三设备与所述电子设备的距离不同。通过上述操作,当多个附近设备在同一方向上时,进一步的通过附近设备与电子设备之间的距离来区分附近设备,同时,为不同距离的附近设备的设备信息配置不同的显示效果,非常方便、直观的提示用户,从而提高了用户体验。
根据第一方面,在另一种可能的实现方式中,所述第二图形用户界面上还显示有坐标轴,所述坐标轴的中心点指示所述电子设备的位置。坐标轴能够为用户指示参考方向(如前、后、左、右),设置中心点指示所述电子设备的位置,能够使用户更加直观的获得电子设备与附近设备的相对位置关系,提高了用户体验。
根据第一方面,在另一种可能的实现方式中,所述天线阵列为毫米波天线阵列。
第二方面,提供一种数据分享的方法,其应用在具备天线阵列的电子设备中。该方法可包括,电子设备显示第一图形用户界面,所述第一图形用户界面中显示有第一对象(如图片、文档等);所述电子设备在所述第一图形用户界面中检测第一操作,所述第一操作指示第一方向;响应于所述第一操作,所述电子设备向所述第一设备发送所述第一对象;其中,所述第一设备位于所述电子设备的所述第一方向上。
这里,第一图形用户界面可以是第一应用程序的用于显示对象的用户界面。第一应用程序可以为显示有图片的“图库”,其显示的对象可以是图片。第一应用程序也可以为显示了文件的应用程序。不限于此,第一应用程序还可以是其他显示图片、文档、文字等对象的应用程序。
第二方面所描述的技术方案,可以使得电子设备在进行数据分享过程中,简化了用户分享内容的操作步骤,提高了数据分享的效率。
根据第二方面,在一种可能的实现方式中,上述第一操作为长按并拖动所述第一对象。其中,所述电子设备可以通过拖动的起始点和终止点确定上述第一方向,也可以通过拖动的轨迹确定上述第一方向。
根据第二方面,在一种可能的实现方式中,所述电子设备检测第二操作,响应于第二操作,所述电子设备通过短距离无线通信协议发现所述第一设备。该第二操作具体可以为在图形用户界面的状态栏上向下滑动,并在显示的窗口中点击“定向分享”的开关控件。
根据上述实现方式,电子设备可以在用户开始分享数据之前就可以开启全部方向上的附近设备发现过程,缩短了分享数据到发送数据之间的响应时间。
根据第二方面,在另一种可能的实现方式中,在所述电子设备向所述第一设备发送所述第一对象之前,还包括:响应于所述第一操作,所述电子设备通过短距离无线通信协议发现所述第一设备。也就是说,所述电子设备可以由第一操作触发全部方向上的附近设备的发现过程。
根据上述实现方式,电子设备仅在需要的时候开启定向分享,能够节约功耗。
根据第二方面,在一种可能的实现方式中,所述电子设备具备天线阵列,所述电子设备使用所述天线阵列确定所述第一设备的所述第一方向。根据上述实现方式,电子设备获得附近设备的相对角度。
根据第二方面,在一种可能的实现方式中,所述第一设备是所述电子设备发现的附近设备中唯一在第一方向上的设备。
根据第二方面,在另一种可能的实现方式中,所述电子设备发现了第二设备,并且所述电子设备使用所述天线阵列确定所述第二设备也在所述第一方向上;所述电子设备选择所述第一设备,向所述第一设备发送所述第一对象。
根据上述实现方式,用户选择接收设备的过程得到简化。
根据第二方面,在另一种可能的实现方式中,上述选择根据第一规则。具体来说,上述第一规则是选择距离所述电子设备最近的附近设备,那么上述实现方式还包括,所述电子设备确定所述电子设备与所述第一设备和所述第二设备的距离。
根据上述实现方式,选择距离电子设备最近的附近设备作为候选接收设备,简化了用户选择接收设备的过程。
根据第二方面,在另一种可能的实现方式中,所述电子设备向第一设备发送所述第一对象之前,进一步包括:所述电子设备显示第二图形用户界面;所述电子设备在所述第二图形用户界面中包括第一信息,其中,所述第一信息对应所述第一设备;所述电子设备在所述第二图形用户界面中检测第三操作,以及,响应于所述第三操作,所述电子设备向所述第一设备发送所述第一对象。
根据上述实现方式,能够使用户对于将要发送数据的接收设备进行确认。
根据第二方面,在另一种可能的实现方式中,所述电子设备向第一设备发送所述第一对象之前,进一步包括:所述电子设备显示第二图形用户界面;所述电子设备在所述第二图形用户界面中包括第一信息和第二信息,其中,所述第一信息对应所述第一设备,所述第二信息对应所述第二设备;所述电子设备在所述第二图形用户界面中检测第四操作,所述第四操作作用于所述第一信息上;以及,响应于所述第三操作,所述电子设备向所述第一设备发送所述第一对象。
根据上述实现方式,能够使用户在指定方向上的多个设备中选择接收设备。
根据第二方面,在另一种可能的实现方式中,所述第一信息具有第一显示效果,所述第二信息具有第二显示效果;其中,所述第一显示效果指示所述第一设备与所述电子设备的距离,所述第二显示效果指示所述第二设备与所述电子设备的距离。
根据上述实现方式,电子设备能够直观的提示用户不同附近设备与电子设备之间的距离,用户可参考距离选择接收设备。
根据第二方面,在另一种可能的实现方式中,所述天线阵列为毫米波天线阵列。
第三方面,提供了一种数据分享的方法,其应用在具备天线阵列的电子设备中,该方法包括,电子设备显示第一图形用户界面,所述第一图形用户界面包括第一对象;所述电子设备在所述第一图形用户界面中检测第一操作,其中,所述第一操作作用于所述第一对象上,所述第一操作指示第一方向;响应于所述第一操作,所述电子设备配置所述天线阵列在所述第一方向上接收第一设备发送的第一广播消息,从所述第一广播消息中获得第一标识,所述第一标识对应所述第一设备;根据所述第一标识,所述电子设备向所述第一设备发送所述第一对象。
第三方面所描述的技术方案,可以使得电子设备在进行数据分享过程中,在用户指定的方向上发现附近设备,简化了用户分享内容的操作步骤,利用方向信息减少了电子设备发现的附近设备的数量,提高了数据分享的效率。
根据第三方面,在一种可能的实现方式中,响应于所述第一操作,所述电子设备配置所述天线阵列在所述第一方向上发送探测请求,所述第一设备接收到所述探测请求后,向所述电子设备发送探测响应,所述电子设备从所述探测响应中获得第一标识,所述第一标识对应所述第一设备。通过上述实现方式,电子设备在第一方向上发现了第一设备。
根据第三方面,在另一种可能的实现方式中,天线阵列中每个天线的权值是所述电子设备根据手机姿态和所述第一方向配置的。通过上述实现方式,在使用所述天线阵列在所述第一方向上发现设备时,能够根据手机的姿态调整天线的权值,提高波束方向的准确度。
根据第三方面,在另一种可能的实现方式中,所述第一设备是所述电子设备在所述第一方向上发现的唯一设备。
根据第三方面,在另一种可能的实现方式中,所述电子设备配置所述天线阵列在所述第一方向上接收第二设备发送的第二广播消息,从所述第二广播消息中获得第二标识,所述第二标识对应所述第二设备;所述电子设备选择所述第一设备,向所述第一设备发送所述第一对象。根据上述实现方式,电子设备能够在指定的方向上发现多个设备并从中选择候选接收设备,简化了用户选择接收设备的过程。
根据第三方面,在另一种可能的实现方式中,所述选择是根据第一规则进行选择;所述第一规则是选择信号强度最强的广播消息对应的设备。根据上述实现 方式,电子设备能够在指定方向的多个设备中选择信号强度最强的设备,简化了用户选择接收设备的过程。
根据第三方面,在另一种可能的实现方式中,所述电子设备向第一设备发送所述第一对象之前,进一步包括:响应于所述第一操作,所述电子设备显示第二图形用户界面;所述电子设备在所述第二图形用户界面中显示第一信息;其中,所述第一信息是所述电子设备从所述第一广播消息中获得的;所述电子设备在所述第二图形用户界面中检测第二操作;响应于所述第二操作,所述电子设备向所述第一设备发送所述第一对象。
具体来说,上述第二操作可以是点击所述第一信息,也可以是点击与所述第一信息相关的确认选项。通过第二图形用户界面,所述电子设备向用户显示了发现的附近设备,由用户进行选择或确认。所述第一信息与所述第一标识可以相同,也可以不同。
根据上述实现方式,能够使用户对于将要发送数据的接收设备进行确认。
根据第三方面,在一种可能的实现方式中,所述电子设备在所述第二图形用户界面中还显示第二信息,其中所述第二信息是所述电子设备从所述第二广播消息中获得的。
具体来说,若所述电子设备在所述第一操作后触发在指定的方向上发现附近设备,也即,上述第二设备与上述第一设备均位于所述电子设备的所述第一方向上。上述第二操作具体可以为点击所述第一信息。
根据上述实现方式,能够使用户在指定方向上的多个设备中选择接收设备。
根据第三方面,在一种可能的实现方式中,上述第一信息和上述第二信息具有不同的显示效果,所述不同的显示效果指示所述第一广播消息和所述第二广播消息的信号强度不同。
通过上述实现方式,在电子设备使用天线阵列在指定的方向上进行附近设备发现,能够使电子设备仅在用户确定的方向上发现附近设备,减少了发现的附近设备的数量,方便了用户进行接收设备的选择,提高了数据分享的效率,提高了用户体验。当电子设备在指定的方向上发现了多个设备时,所述电子设备还能够检测不同设备与所述电子设备之间的距离,从而在图形用户界面上进行直观的显示,用户能够进一步通过距离来进行接收设备的选择,进一步的提高数据分享的效率。
根据第三方面,在一种可能的实现方式中,所述电子设备在所述第二图形用户界面检测第三操作,响应于所述第三操作,所述电子设备更新显示在所述第一方向上发现的并且未显示在所述第二图形用户界面上的其他设备对应的设备信息。具体来说,当所述第二图形用户界面上仅显示了在所述第一方向上发现的部分设备的设备信息,例如,按照预定的规则仅显示了第一信息,或仅显示了部分设备对应的设备信息,当所述电子设备检测所述第三操作时,所述电子设备更新显示在所述第一方向发现的其他设备对应的设备信息。
根据第三方面,在一种可能的实现方式中,所述电子设备在所述第二图形用 户界面检测第四操作,响应于所述第四操作,所述电子设备配置所述天线阵列在第二方向上接收第三设备发送的第三广播消息,从所述第三广播消息中获得第三标识,所述第三标识对应所述第三设备,并在所述第二图形用户界面上更新显示第三信息;其中,所述第三信息是所述电子设备从所述第三广播消息中获得的,所述第三设备位于所述电子设备的所述第二方向上。具体来说,当所述第二图形用户界面已经显示了全部在所述第一方向上发现的设备时,当所述电子设备检测到第四操作时,所述电子设备更新显示在所述第二方向上的设备对应的设备信息。
其中,上述第一信息和上述第二信息具有不同的显示效果。所述不同的显示效果指示所述第一广播消息和所述第二广播消息的信号强度不同。
通过上述实现方式,在电子设备在全部方向上进行附近设备发现时,能够使电子设备在图形用户界面上显示设备的方向信息,使用户能够结合方向信息进行接收设备的选择,提高了数据分享的效率,提高了用户体验。当多个设备在同一方向时,所述电子设备还能够检测不同设备与所述电子设备之间的距离,从而在图形用户界面上进行直观的显示,用户能够进一步通过距离来进行接收设备的选择,进一步的提高数据分享的效率。
根据第三方面,在另一种可能的实现方式中,所述天线阵列为毫米波天线阵列。
第四方面,提供一种数据分享的方法,该方法可包括,电子设备显示第一图形用户界面,所述第一图形用户界面中显示有第一对象(如图片、文档等);所述电子设备在所述第一图形用户界面中检测第一操作(如点击分享控件),响应于所述第一操作,所述电子设备显示第二图形用户界面;所述电子设备在所述第二图形用户界面中检测第三操作,所述第三操作指示第一方向;响应于所述第三操作,所述电子设备向所述第一设备发送所述第一对象;其中,所述第一设备位于所述电子设备的所述第一方向上。
这里,第一图形用户界面可以是第一应用程序的用于显示对象的用户界面。第一应用程序可以为显示有图片的“图库”,其显示的对象可以是图片。第一应用程序也可以为显示了文件的应用程序。不限于此,第一应用程序还可以是其他显示图片、文档、文字等对象的应用程序。
第四方面所描述的技术方案,可以使得电子设备在进行数据分享过程中,能够结合方向信息进行接收设备的选择,提高了数据分享的效率。
根据第四方面,在一种可能的实现方式中,所述电子设备在所第二图形用户界面中显示多个方向选项,所述多个方向选项对应多个方向;以及,所述电子设备在所述第二图形用户界面中检测用户的所述第三操作,所述第三操作指示第一方向,进一步包括:所述第三操作为选择一个或多个所述方向选项,所述一个或多个所述方向选项指示第一方向。根据上述实现方式,电子设备通过用户在所述第二图形用户界面中选择的方向选项确定第一方向。
根据第四方面,在另一种可能的实现方式中,所述第三操作为在所述第二图形用户界面的指定区域内滑动一段距离,所述电子设备确定所述滑动的方向,将 所述滑动的方向作为所述第一方向。通过上述实现方式,电子设备通过用户的滑动手势确定第一方向。根据上述实现方式,电子设备能够通过用户的手势确定接收设备的方向。
根据第四方面,在一种可能的实现方式中,在第一图形用户界面中还显示有第二对象;以及,在所述第一操作之前,还包括:所述电子设备在所述第一图形用户界面中检测第四操作,所述第四操作作用于所述第一对象上;响应于所述第四操作,所述第一对象显示为被选择。第四操作具体可以为在所述第一对象上的长按操作或者在选择对象的页面上进行选择操作等。根据上述第四操作,在图形用户界面中显示了多个对象时,用户能够选择分享的对象。
根据第四方面,在一种可能的实现方式中,所述电子设备检测第五操作,响应于第五操作,所述电子设备通过短距离无线通信协议发现所述第一设备。该第五操作具体可以为在图形用户界面的状态栏上向下滑动,并在显示的窗口中点击“定向分享”的开关控件。通过该步骤,电子设备可以在用户开始分享数据之前就可以开启全部方向上的附近设备发现过程,电子设备可以在用户开始分享数据之前就可以开启全部方向上的附近设备发现过程,缩短了分享数据到发送数据之间的响应时间。
根据第四方面,在另一种可能的实现方式中,在所述电子设备向所述第一设备发送所述第一对象之前,还包括:响应于所述第三操作,所述电子设备通过短距离无线通信协议发现所述第一设备。也就是说,所述电子设备可以由第三操作触发全部方向上的附近设备的发现过程。
根据上述实现方式,电子设备仅在需要的时候开启定向分享,能够节约功耗。
根据第四方面,在一种可能的实现方式中,所述电子设备具备天线阵列,所述电子设备使用所述天线阵列确定所述第一设备的所述第一方向。根据上述实现方式,电子设备获得附近设备的相对角度。
根据第四方面,在一种可能的实现方式中,所述第一设备是所述电子设备发现的附近设备中唯一在第一方向上的设备。
根据第四方面,在另一种可能的实现方式中,所述电子设备发现了第二设备,并且所述电子设备使用所述天线阵列确定所述第二设备在所述第一方向上;响应于所述第一操作,所述电子设备选择所述第一设备,向所述第一设备发送所述第一对象。
根据上述实现方式,用户选择接收设备的过程得到简化。
根据第四方面,在另一种可能的实现方式中,上述选择根据第一规则。具体来说,上述第一规则是选择距离所述电子设备最近的附近设备,那么上述实现方式还包括,所述电子设备确定所述电子设备与所述第一设备和所述第二设备的距离。
根据上述实现方式,选择距离电子设备最近的附近设备作为候选接收设备,简化了用户选择接收设备的过程。
根据第四方面,在另一种可能的实现方式中,所述电子设备向第一设备发送 所述第一对象之前,进一步包括:所述电子设备显示第三图形用户界面;所述电子设备在所述第三图形用户界面中包括第一信息,其中,所述第一信息对应所述第一设备;所述电子设备在所述第三图形用户界面中检测第六操作,以及,响应于所述第六操作,所述电子设备向所述第一设备发送所述第一对象。
根据上述实现方式,能够使用户对于将要发送数据的接收设备进行确认。
根据第四方面,在另一种可能的实现方式中,所述电子设备向第一设备发送所述第一对象之前,进一步包括:所述电子设备显示第四图形用户界面;所述电子设备在所述第四图形用户界面中包括第一信息和第二信息,其中,所述第一信息对应所述第一设备,所述第二信息对应所述第二设备;所述电子设备在所述第四图形用户界面中检测第七操作,所述第七操作作用于所述第一信息上;以及,响应于所述第七操作,所述电子设备向所述第一设备发送所述第一对象。
根据上述实现方式,能够使用户在指定方向上的多个设备中选择接收设备。
根据第四方面,在另一种可能的实现方式中,所述第一信息具有第一显示效果,所述第二信息具有第二显示效果;其中,所述第一显示效果指示所述第一设备与所述电子设备的距离,所述第二显示效果指示所述第二设备与所述电子设备的距离。
根据上述实现方式,电子设备能够直观的提示用户不同附近设备与电子设备之间的距离,用户可参考距离选择接收设备
根据第四方面,在另一种可能的实现方式中,所述天线阵列为毫米波天线阵列。
第五方面,提供一种数据分享的方法,其应用在具备天线阵列的电子设备中,该方法可包括,电子设备显示第一图形用户界面,所述第一图形用户界面中显示有第一对象(如图片、文档等);所述电子设备在所述第一图形用户界面中检测第一操作(如点击分享控件),响应于所述第一操作,所述电子设备显示第二图形用户界面;所述电子设备在所述第二图形用户界面中检测第三操作,所述第三操作指示第一方向;响应于所述第三操作,所述电子设备配置所述天线阵列在所述第一方向上接收第一设备发送的第一广播消息,从所述第一广播消息中获得第一标识,所述第一标识对应所述第一设备;根据所述第一标识,所述电子设备向所述第一设备发送所述第一对象。
这里,第一图形用户界面可以是第一应用程序的用于显示对象的用户界面。第一应用程序可以为显示有图片的“图库”,其显示的对象可以是图片。第一应用程序也可以为显示了文件的应用程序。不限于此,第一应用程序还可以是其他显示图片、文档、文字等对象的应用程序。
第五方面所描述的技术方案,可以使得电子设备在进行数据分享过程中,能够结合方向信息进行接收设备的选择,提高了数据分享的效率。
根据第五方面,在一种可能的实现方式中,响应于所述第三操作,所述电子设备配置所述天线阵列在所述第一方向上发送探测请求,所述第一设备接收到所述探测请求后,向所述电子设备发送探测响应,所述电子设备从所述探测响应中 获得第一标识,所述第一标识对应所述第一设备。通过上述实现方式,电子设备在第一方向上发现了第一设备。
根据第五方面,在一种可能的实现方式中,所述电子设备在所第二图形用户界面中显示多个方向选项,所述多个方向选项对应多个方向;以及,所述电子设备在所述第二图形用户界面中检测用户的所述第三操作,所述第三操作指示第一方向,进一步包括:所述第三操作为选择一个或多个所述方向选项,所述一个或多个所述方向选项指示第一方向。通过上述实现方式,电子设备通过用户在所述第二图形用户界面中选择的方向选项确定第一方向。
根据第五方面,在另一种可能的实现方式中,所述第三操作为在所述第二图形用户界面的指定区域内滑动一段距离,所述电子设备确定所述滑动的方向,将所述滑动的方向作为所述第一方向。通过上述实现方式,电子设备通过用户的滑动手势确定第一方向。
根据第五方面,在一种可能的实现方式中,在第一图形用户界面中还显示有第二对象;以及,在所述第一操作之前,还包括:所述电子设备在所述第一图形用户界面中检测第四操作,所述第四操作作用于所述第一对象上;响应于所述第四操作,所述第一对象显示为被选择。第四操作具体可以为在所述第一对象上的长按操作或者在选择对象的页面上进行选择操作等。根据上述第四操作,在图形用户界面中显示了多个对象时,用户能够选择分享的对象。
根据第五方面,在另一种可能的实现方式中,天线阵列中每个天线的权值是所述电子设备根据手机姿态和所述第一方向配置的。通过上述实现方式,在使用所述天线阵列在所述第一方向上发现设备时,能够根据手机的姿态调整天线的权值,提高波束方向的准确度。
根据第五方面,在另一种可能的实现方式中,所述第一设备是所述电子设备在所述第一方向上发现的唯一设备。
根据第五方面,在另一种可能的实现方式中,所述电子设备配置所述天线阵列在所述第一方向上接收第二设备发送的第二广播消息,从所述第二广播消息中获得第二标识,所述第二标识对应所述第二设备;所述电子设备选择所述第一设备,向所述第一设备发送所述第一对象。根据上述实现方式,电子设备能够在指定的方向上发现多个设备并从中选择候选接收设备,简化了用户选择接收设备的过程。
根据第五方面,在另一种可能的实现方式中,所述选择是根据第一规则进行选择;所述第一规则是选择信号强度最强的广播消息对应的设备。根据上述实现方式,电子设备能够在指定方向的多个设备中选择信号强度最强的设备,简化了用户选择接收设备的过程。
根据第五方面,在另一种可能的实现方式中,所述电子设备向第一设备发送所述第一对象之前,进一步包括:所述电子设备显示第三图形用户界面;所述电子设备在所述第三图形用户界面中显示第一信息;其中,所述第一信息是所述电子设备从所述第一广播消息中获得的;所述电子设备在所述第三图形用户界面中 检测第五操作;响应于所述第五操作,所述电子设备向所述第一设备发送所述第一对象。
具体来说,上述第五操作可以是点击所述第一信息,也可以是点击与所述第一信息相关的确认选项。通过第三图形用户界面,所述电子设备向用户显示了发现的附近设备,由用户进行选择或确认。所述第一信息与所述第一标识可以相同,也可以不同。
根据上述实现方式,能够使用户对于将要发送数据的接收设备进行确认。
根据第五方面,在一种可能的实现方式中,所述电子设备在所述第三图形用户界面中还显示第二信息,其中所述第二信息是所述电子设备从所述第二广播消息中获得的。
具体来说,若所述电子设备在所述第三操作后触发在指定的方向上发现附近设备,也即,上述第二设备与上述第一设备均位于所述电子设备的所述第一方向上。上述第二操作具体可以为点击所述第一信息。
根据上述实现方式,能够使用户在指定方向上的多个设备中选择接收设备。
根据第五方面,在一种可能的实现方式中,上述第一信息和上述第二信息具有不同的显示效果,所述不同的显示效果指示所述第一广播消息和所述第二广播消息的信号强度不同。
通过上述实现方式,在电子设备使用天线阵列在指定的方向上进行附近设备发现,能够使电子设备仅在用户确定的方向上发现附近设备,减少了发现的附近设备的数量,方便了用户进行接收设备的选择,提高了数据分享的效率,提高了用户体验。当电子设备在指定的方向上发现了多个设备时,所述电子设备还能够检测不同设备与所述电子设备之间的距离,从而在图形用户界面上进行直观的显示,用户能够进一步通过距离来进行接收设备的选择,进一步的提高数据分享的效率。
根据第五方面,在一种可能的实现方式中,所述电子设备在所述第三图形用户界面检测第六操作,响应于所述第六操作,所述电子设备更新显示在所述第一方向上发现的并且未显示在所述第三图形用户界面上的其他设备对应的设备信息。具体来说,当所述第三图形用户界面上仅显示了在所述第一方向上发现的部分设备的设备信息,例如,按照预定的规则仅显示了第一信息,或仅显示了部分设备对应的设备信息,当所述电子设备检测所述第六操作时,所述电子设备更新显示在所述第一方向发现的其他设备对应的设备信息。
根据第五方面,在一种可能的实现方式中,所述电子设备在所述第三图形用户界面检测第七操作,响应于所述第七操作,所述电子设备配置所述天线阵列在第二方向上接收第三设备发送的第三广播消息,从所述第三广播消息中获得第三标识,所述第三标识对应所述第三设备,并在所述第三图形用户界面上更新显示第三信息;其中,所述第三信息是所述电子设备从所述第三广播消息中获得的,所述第三设备位于所述电子设备的所述第二方向上。具体来说,当所述第三图形用户界面已经显示了全部在所述第一方向上发现的设备时,当所述电子设备检测 到用户点击所述第二更新选项时,所述电子设备更新显示在所述第二方向上的设备对应的设备信息。
其中,上述第一信息和上述第二信息具有不同的显示效果。所述不同的显示效果指示所述第一广播消息和所述第二广播消息的信号强度不同。
通过上述实现方式,在电子设备在全部方向上进行附近设备发现时,能够使电子设备在图形用户界面上显示设备的方向信息,使用户能够结合方向信息进行接收设备的选择,提高了数据分享的效率,提高了用户体验。当多个设备在同一方向时,所述电子设备还能够检测不同设备与所述电子设备之间的距离,从而在图形用户界面上进行直观的显示,用户能够进一步通过距离来进行接收设备的选择,进一步的提高数据分享的效率。
根据第五方面,在另一种可能的实现方式中,所述天线阵列为毫米波天线阵列。
第六方面,还提供了一种电子设备,包括,一个或多个处理器;存储器;以及一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中并被配置为所述一个或多个处理器执行,所述一个或多个程序包括指令,所述指令用于执行如第一方面中任一可能的实现方式,或如第二方面中任一可能的实现方式,或如第三方面中任一可能的实现方式,或如第四方面中任一可能的实现方式,或如第五方面中任一可能的实现方式。
第七方面,还提供了一种计算机可读介质,用于存储一个或多个程序,其中所述一个或多个程序被配置为被所述一个或多个处理器执行,所述一个或多个程序包括指令,所述指令用于执行如第一方面中任一可能的实现方式,或如第二方面中任一可能的实现方式,或如第三方面中任一可能的实现方式,或如第四方面中任一可能的实现方式,或如第五方面中任一可能的实现方式。
应当理解的是,说明书中对技术特征、技术方案、优点或类似语言的描述并不是暗示在任意的单个实施例中可以实现所有的特点和优点。相反,可以理解的是对于特征或优点的描述意味着在至少一个实施例中包括特定的技术特征、技术方案或优点。因此,本说明书中对于技术特征、技术方案或优点的描述并不一定是指相同的实施例。进而,还可以任何适当的方式组合以下各个实施例中所描述的技术特征、技术方案和优点。本领域技术人员将会理解,无需特定实施例的一个或多个特定的技术特征、技术方案或优点即可实现实施例。在其他实施例中,还可在没有体现所有实施例的特定实施例中识别出额外的技术特征和优点。
附图说明
图1为一实施例提供的通信系统的架构示意图;
图2A为一实施例提供的电子设备的结构的示意图;
图2B为一实施例提供的具有天线阵列的电子设备的示意图;
图2C为一实施例提供的电子设备的软件结构的示意图;
图3A为一实施例提供的电子设备上的用于应用程序菜单的图形用户界面;
图3B为一实施例提供的开启“定向分享”的示意图;
图4A-4B为一实施例提供的电子设备上的应用程序“图库”的图形用户界面;
图5A-5H为一实施例提供的数据分享方法的一些图形用户界面;
图6A-6B为另一实施例提供的数据分享方法的一些图形用户界面;
图7A-7B为另一实施例提供的数据分享方法的一些图形用户界面;
图8为另一实施例提供的数据分享方法的图形用户界面;
图9A-9C为一实施例提供的数据分享方法的流程示意图;
图10A-10B为一实施例提供的根据手机姿态和滑动方向确定天线阵列参数的工作示意图。
具体实施方式
本申请以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,本申请中使用的术语“和/或”是指并包含一个或多个所列出项目的任何或所有可能组合。
以下介绍了电子设备、用于这样的电子设备的图形用户界面、和用于使用这样的电子设备的实施例。在一些实施例中,电子设备可以是还包含其它功能诸如个人数字助理和/或音乐播放器功能的便携式电子设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴电子设备(如智能手表)等。便携式电子设备的示例性实施例包括但不限于搭载
Figure PCTCN2021071112-appb-000001
或者其它操作系统的便携式电子设备。上述便携式电子设备也可以是其它便携式电子设备,诸如具有触敏表面或触控面板的膝上型计算机(Laptop)等。还应当理解的是,在其他一些实施例中,上述电子设备也可以不是便携式电子设备,而是具有触敏表面或触控面板的台式计算机。
本申请的说明书和权利要求书及附图中的术语“用户界面(user interface,UI)”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。应用程序的用户界面是通过java、可扩展标记语言(extensible markup language,XML)等特定计算机语言编写的源代码,界面源代码在终端设备上经过解析,渲染,最终呈现为用户可以识别的内容,比如图片、文字、按钮等控件。控件(control)也称为部件(widget),是用户界面的基本元素,典型的控件有工具栏(toolbar)、菜单栏(menu bar)、文本框(text box)、按钮(button)、滚动条(scrollbar)、图片和文本。界面中的控件的属性和内容是通过标签或者节点来定义的,比如XML通过<Textview>、<ImgView>、<VideoView>等节点来规定界面所包含的控件。一个节点对应界面中一个控件或属性,节点经过解析和渲染之后呈现为用户可视的内容。此外,很多应用程序,比如混合应用(hybrid application)的界面中通常还包含有网页。 网页,也称为页面,可以理解为内嵌在应用程序界面中的一个特殊的控件,网页是通过特定计算机语言编写的源代码,例如超文本标记语言(hyper text markup language,HTML),层叠样式表(cascading style sheets,CSS),java脚本(JavaScript,JS)等,网页源代码可以由浏览器或与浏览器功能类似的网页显示组件加载和显示为用户可识别的内容。网页所包含的具体内容也是通过网页源代码中的标签或者节点来定义的,比如HTML通过<p>、<img>、<video>、<canvas>来定义网页的元素和属性。
用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的一个图标、窗口、控件等界面元素,其中控件可以包括图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。
本申请以下实施例提供了一种数据分享的方法、图形用户界面、电子设备及系统,使得电子设备在与其他附近设备分享数据时能够结合使用角度等信息,或者与指定方向上的附近设备分享数据,提高了电子设备的分享数据的效率。
本申请以下实施例中,“定向分享”可以是电子设备提供的一种服务或功能,可以支持电子设备传输数据至指定方向上的其他设备。在一些实施例中,“定向分享”可支持该电子设备通过蓝牙、无线保真直连(wireless fidelity direct,Wi-Fi direct)、Wi-Fi软件接入点(software access point,softAP)、毫米波(Millimeter Wave,mmWave)、超宽带(Ultra Wide Band,UWB)中的一项或多项等技术传输数据至附近设备。附近设备是指电子设备通过蓝牙、Wi-Fi直连(如Wi-Fi p2p)、Wi-Fi softAP等、Wi-Fi LAN、毫米波(mmWave)、超宽带(UWB)中一项或多项技术发现的设备。
可以理解的是,“定向分享”只是本实施例中所使用的一个词语,其代表的含义在本实施例中已经记载,其名称并不能对本实施例构成任何限制。
下面介绍本申请实施例涉及的一种通信系统10。
图1示例性示出了实现本发明的一种用于定向数据分享的通信系统10。通信系统10可以包括电子设备100以及一个或多个附近电子设备,如电子设备101、电子设备102、电子设备103等。如图1所示,电子设备101和电子设备102位于电子设备100的第一方向,即右方,电子设备103位于电子设备100的第二方向,即左前方。
电子设备100可以为手机、平板电脑等便携式电子设备。具体的,电子设备100可以具有蓝牙模块、WLAN模块、毫米波(mmWave)天线模块、超宽带(UWB)天线模块中的一项或多项。电子设备100可以通过蓝牙模块、WLAN模块、毫米波(MilliMeterWave)天线模块、超宽带(UWB)天线模块中的一项或多项发射信号来探测、扫描或定向探测\扫描电子设备100附近的设备,使得电子设备100可以使用蓝牙、WLAN、毫米波(mmWave)、超宽带(UWB)中的一种或多种短距离无线通信协议发现或定向发现附近设备,并与附近设备建立无线通信连接,通过蓝牙、WLAN、毫米波(mmWave)、超宽带(UWB)中的一种或多 种短距离无线通信协议分享数据至附近设备。
电子设备101、电子设备102或电子设备103可以是具有蓝牙模块、WLAN模块、毫米波(mmWave)天线模块、超宽带(UWB)天线模块中的一项或多项的手机、平板电脑、个人电脑等电子设备,也可以是具有蓝牙模块、WLAN模块、毫米波(mmWave)天线模块、超宽带(UWB)天线模块中的一项或多项的打印机、投影仪、显示器、音箱等其他设备。
可以理解的,本实施例示出的结构并不构成对通信系统10的具体限定。在本申请另一些实施例中,通信系统10可以包括比图示更多或更少的设备。例如通信系统10还可包括在除了第一方向和第二方向之外的其他方向上具有蓝牙模块、WLAN模块、毫米波(mmWave)天线模块、超宽带(UWB)天线模块中的一项或多项的电子设备。
图2A示出了电子设备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。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所 述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了电子设备100的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。 GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
2020年第五代通信技术(5G)将实现大规模商用,新的通信技术对移动设备天线和基站天线带来了新的要求。5G中使用的频段包括毫米波频段(mmWave, 30GHz-100GHz)。因此,为了能够支持毫米波通信,支持5G通信的终端具备毫米波天线。与传统的微波频段相比,毫米波信号在传播过程中,信号的传播类似于射线传播,即直射径和反射径为主,无明显的散射和绕射现象,信号会在一些空间离散的径上传播,这里的有效径的数量非常稀少。在毫米波这种缺乏散射的信道上,可以通过空分复用(例如MU-MIMO技术)的方式获得分集增益,从而显著提高信号的质量。
毫米波信号波长短,天线的长度越短。基于传输速率的要求,5G终端可以具有多个毫米波天线模块。图2B示例性示出了具有毫米波天线阵列的电子终端,该电子终端可以为图1中的电子终端100。在图2B中,电子终端100具有8个天线,该8个天线形成了天线阵列,即,将工作在同一频率的两个或两个以上的单个天线进行馈电和空间排列构成天线阵列,使得5G终端具备了波束成形能力,即通过调整每个天线模块的权值,使得多个天线在波形上经过相干和相消,形成了有零点、有最大指向的波瓣方向图,使得相控天线阵列具有在指定方向上发送或接收信号的能力。电子设备上的多个天线可布局为均匀线性阵列、圆形阵列、矩形阵列等。
目前5G毫米波天线阵列一般是基于相控阵的方式。具体实现方式可以分为AoB(Antenna on Board),即天线阵列位于系统主板上、AiP(Antenna in Package),即天线阵列位于芯片的封装内、和AiM(Antenna in Module),即天线阵列与RFIC形成一模组三种。
毫米波天线阵列为了实现更广的空间覆盖,一般会以辐射波束互补(如broadside radiation,即宽边辐射,与end-fire radiation,即端射)的天线种类,如贴片天线(patch antenna)和准八木天线(Quasi-Yagi antenna),进行搭配设计,并给予天线馈点的适当设计,以达到双极化的覆盖,从而大幅改善毫米波信号的范围和覆盖率。
天线2也可以具有工作在同一频率的两个或两个以上的天线,并形成天线阵列。
本发明适用于具有天线阵列的电子终端,尤其是具有毫米波天线阵列的电子终端。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器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),超宽带(UWB)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线转为电磁波辐射出去。示例性地,无线通信模块160可以包括蓝牙模块、Wi-Fi模块等。
在一些实施例中,电子设备100的一部分天线和移动通信模块150耦合,另一部分天线和无线通信模块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),毫米波(mmWave),BT,GNSS,WLAN,NFC,FM,UWB,和/或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)。
在一些实施例中,无线通信模块160中包括的蓝牙(BT)模块、WLAN模块可以发射信号来探测或扫描电子设备100附近设备,使得电子设备100可以使用蓝牙或WLAN等无线通信技术发现附近设备,并与附近设备建立无线通信连接,并通过上述连接分享数据至附近设备。其中,蓝牙(BT)模块可以提供包括经典蓝牙或蓝牙低功耗(Bluetooth low energy,BLE)中一项或多项蓝牙通信的解决方案。WLAN模块可以提供包括Wi-Fi direct、Wi-Fi LAN或Wi-Fi softAP中一项或多项WLAN通信的解决方案。
在一些实施例中,移动通信模块150中包括的毫米波(mmWave)模块可以在指定方向上发射或接收信号来探测或扫描电子设备100在指定方向上的附近设备,使得电子设备100可以使用毫米波等移动通信技术在指定方向上发现附近设备,并与附近设备建立移动通信连接或如WLAN直连等的无线通信连接,并通过上述连接分享数据至附近设备。
电子设备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,MPEG-2,MPEG-3,MPEG-4等。
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分离。
图2A示例性所示的电子设备100可以通过显示屏194显示以下各个实施例中所描述的各个图形用户界面。电子设备100可以通过触摸传感器180K在各个 图形用户界面中检测触控操作,例如在各个图形用户界面中的点击操作(如在图标上的触摸操作、双击操作),又例如在各个图形用户界面中的向上或向下的滑动操作,或执行画圆圈手势的操作,等等。在一些实施例中,电子设备100可以通过陀螺仪传感器180B、加速度传感器180E等检测用户手持电子设备100执行的运动手势,例如晃动电子设备。在一些实施例中,电子设备100可以通过摄像头193(如3D摄像头、深度摄像头)检测非触控的手势操作。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图2C是本发明实施例的电子设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图2C所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2C所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗 口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
图2C所示的软件系统涉及到使用分享能力的应用呈现(如图库,文件管理),提供分享能力的定向分享模块,以及应用框架层提供WLAN服务、蓝牙服务,以及内核和底层提供WLAN蓝牙能力和基本通信协议。
下面结合捕获拍照场景,示例性说明电子设备100软件以及硬件的工作流程。
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸操作,该触摸操作所对应的控件为相机应用图标的控件为例,相机应用调用应用框架层的接口,启动相机应用,进而通过调用内核层启动摄像头驱动,通过摄像头193捕获静态图像或视频。
下面介绍电子设备100上的用于应用程序菜单的示例性图形用户界面。
图3A示例性示出了电子设备100上的用于应用程序菜单的示例性图形用户界面。
图形用户界面可包括:状态栏21,具有常用应用程序图标的托盘22,日历指示符240,天气指示符241,导航栏23,以及其他应用程序图标。其中:
状态栏21可包括:移动通信信号(又可称为蜂窝信号)的一个或多个信号强度指示符211、电池状态指示符212、时间指示符213。
日历指示符240可用于指示当前时间,例如日期、星期几、时分信息等。
天气指示符241可用于指示天气类型,例如多云转晴、小雨等,还可以用于指示气温等信息。
具有常用应用程序图标的托盘22可展示:电话图标221、联系人图标222、短信图标223、相机图标224。
导航栏23可包括:返回按键231、主界面(Home screen)按键232、任务按键233等系统导航键。当监听到用户点击返回按键231时,电子设备100可显示当前页面的上一个页面。当监听到用户点击主界面按键232时,电子设备100可显示主界面。当监听到用户点击任务按键233时,电子设备100可显示用户最近打开的任务。各导航键的命名还可以为其他,本申请对此不做限制。不限于虚拟按键,导航栏23中的各导航键也可以实现为物理按键。
其他应用程序图标可例如:微信(Wechat)的图标242、QQ的图标243、推特(Twitter)的图标244、脸书(Facebook)的图标245、邮箱的图标246、云共享的图标247、备忘录的图标248、文件管理的图标249、图库的图标250、设置的图标251。图形用户界面还可包括页面指示符252。其他应用程序图标可分布在多个页面,页面指示符252可用于指示用户当前浏览的是哪一个页面中的应用程序。用户可以左右滑动其他应用程序图标的区域,来浏览其他页面中的应用程序图标。
在一些实施例中,图3A示例性所示的图形用户界面可以为主界面(Home screen)。
在其他一些实施例中,电子设备100还可以包括主屏幕键。该主屏幕键可以是实体按键,也可以是虚拟按键。该主屏幕键可用于接收用户的指令,将当前显示的UI返回到主界面,这样可以方便用户随时查看主屏幕。上述指令具体可以是用户单次按下主屏幕键的操作指令,也可以是用户在短时间内连续两次按下主屏幕键的操作指令,还可以是用户在预定时间内长按主屏幕键的操作指令。在本申请其他一些实施例中,主屏幕键还可以集成指纹识别器,以便用于在按下主屏幕键的时候,随之进行指纹采集和识别。
可以理解的是,图3A仅仅示例性示出了电子设备100上的图形用户界面,不应构成对本申请实施例的限定。
图3B示例性示出了电子设备100上的一种开启“定向分享”的操作。
如图3B所示,当检测到在状态栏21上的向下滑动手势时,响应于该手势,电子设备100可以在图形用户界面上显示窗口26,窗口26中可以显示有“定向分享”的开关控件261,还可以显示有其他功能(如Wi-Fi、蓝牙、手电筒等等)的开关控件。当检测到在窗口26中的开关控件261上的操作(如在开关控件261上的触摸操作)时,响应于该操作,电子设备100可以开启“定向分享”。
也即是说,用户可以在状态栏21处做一个向下滑动的手势来打开窗口26,并可以在窗口26中点击“定向分享”的开关控件261来方便地开启“定向分享”。
不限于在窗口26中开启“定向分享”,用户还可以在选择数据(如图片、文 档等)进行分享时再开启“定向分享”,后续实施例中会详细说明,这里先不赘述。
下面分别描述本申请涉及的应用场景以及电子设备100上实现的图形用户界面的一些实施例。
图4A示例性示出了对于图3A中的“图库”应用程序的选择而显示的图形用户界面40。“图库”是智能手机、平板电脑等电子设备上的一款图片管理的应用程序,又可以称为“相册”,本实施例对该应用程序的名称不做限制。该应用程序可以支持用户对存储于电子设备上的图片进行各种操作,例如浏览、编辑、删除、选择等操作。即“图库”管理的对象是图片。在另一些情况下,该应用程序也可以支持用户对存储在云端服务器上的图片进行上述各种操作。可以理解的是,在本实施例中,图片可以是电子设备利用摄像头193捕捉到的,也可以是从其他应用程序中获取到的或者从网页上下载的。
如图4A所示,图形用户界面40可包括:状态栏41,应用程序标题栏42,图片区域43,导航栏44。其中:
状态栏41可参考图3A所示的图形用户界面20中的状态栏21,这里不再赘述。
应用程序标题栏42可包括:返回键421,以及当前页面指示符422。返回键421可用于返回菜单上一级。本领域技术人员可以理解,一个页面的逻辑上一级是固定的,在应用程序设计时便已确定。当前页面指示符422可用于指示当前页面,例如文本信息“图库”,不限于文本信息,当前页面指示符422还可以是图标。
图片区域43中可显示有一个或多个图片,例如图片431。当电子设备在图片区域43中监听到向上或向下的滑动操作时,响应于该滑动操作,电子设备可以更新图片区域43中显示的图片,以便用户浏览图片。也即是说,用户可以在图片区域43中向上或向下滑动来浏览更多的图片。不限于向上或向下的滑动操作,用户还可以在图片区域43中向左或向右滑动来浏览更多的图片。图片431可以是缩略图。此时,图片431对应的原图可以存储于电子设备上,也可以存储于云端服务器上。如无另外说明,以下实施例中所指的图片可以是存储在电子设备中的,也可以是存储在云端服务器上的。
导航栏44可参考图3A所示的图形用户界面20中的导航栏23,这里不再赘述。
图4B示例性示出了用户分享“图库”中的图片的实施例。如图4B所示,电子设备可以在图形用户界面40中监听到用户选择图片431、图片432进行分享的操作。当电子设备在显示有一个或多个图片的图形用户界面31中监听到选择一个或多个图片的操作时,电子设备可以在图形用户界面40中显示菜单45。在一些实施例中,电子设备还可以在选定的图片431、选定的图片432上显示标记433。标记433可表示图片已被用户选择。在一些实施例中,电子设备也可以初始就将菜单45显示在图形用户界面40中,即不需要监听到用户选择图片时才显示菜单45。其中,菜单45可包括控件451(“分享”)、控件452(“移动”)、控 件453(“全选”),以及按键454(“更多”)。控件451可用于用户分享已选择的图片,控件452可用于监听移动已选择的图片至其他存储路径的操作,控件453可用于选择图库中的全部图片的操作,按键454可用于监听打开下一级菜单的操作,提供更多功能,例如重命名、图片编辑等。
在其他一些实施例中,控件451可以显示文本信息“定向分享”,当电子设备监听到用户点击该控件时,触发图形用户界面40的更新,引导用户选择或指示接收设备的方向。
不限于先选择一个或多个图片然后点击控件451的操作,该操作还可以呈现其他形式,例如先选择图片再在图片区域中执行画圆圈手势的操作,又例如在晃动电子设备后的固定时间(如1秒)内选择图片的操作。该操作还可以是语音控制操作,即用户说出分享图片的语音指令即可。本申请对选择图片进行分享的操作的具体实现不做限制。
不限于“图库”中的图片,用户分享图片的场景还可包括用户分享其他应用程序,如文件管理等应用程序中的图片。另外,也可不限于电子设备上的图片,用户分享的图片还可包括用户分享云端服务器上的图片。
图5A-图5H示例性示出的图形用户界面50可以为“定向分享界面”的一种实现方式。
图5A示例性的示出了对于图4B中的控件451(“分享”)的选择而显示的图形用户界面50。如图5A所示,图形用户界面50可包括区域51、区域52和区域53。其中:区域51可用于显示图库中的一个或多个图片,这一个或多个图片中可以包括用户选择的图片,例如已选定图片511、已选定图片512。在一些实施例中,已选定图片511、已选定图片512上可显示有标记513,标记513可表示其对应的图片511、图片512被电子设备选定(也即图片已被用户选择)。在另外一些实施例中,区域51中还可以显示有控件514和控件515,上述两个控件可用于切换或更新区域51中显示的图片。不限于上述控件,区域51中也可以显示有其他交互元素来用于切换或更新区域51中显示的图片。在另外一些实施例中,电子设备也可以不用在区域51显示上述控件514、515,而是由用户在区域51中做出向左或向右的滑动手势等来切换或更新图片。图片511、512可以是缩略图。区域51中显示的图片对应的原图可以是存储于电子设备上的图片,也可以存储于云端服务器上。
区域53中可以显示有一个或多个选项(如图标531)。选项对应的应用程序或协议可支持分享用户选择的图片至联系人或服务器。在一些实施例中,响应于在区域53中监听到的作用于选项的操作(如在图标531上的触摸操作)时,电子设备可触发通过该选项对应的应用程序或协议分享已选定图片至云端联系人或服务器的过程,该过程可包括:电子设备打开该应用程序或协议,显示其图形用户界面,在该图形用户界面中监听用户进行数据分享的操作,响应该操作,通过该应用程序或协议将已选定的图片分享至云端联系人或服务器。也即是说,用 户可以通过选项对应的应用程序或协议进行数据分享。例如将选择的图片分享至微信的一个或多个联系人,又例如将选择的图片分享至脸书的动态发布平台(即服务器)。
在其他一些实施例中,区域53中还可以显示页面指示符532。当区域53中需要显示的选项较多时,这些选项可以在多个页面显示。页面指示符532可指示当前显示的选项所处的页面。
区域52可用于引导用户开启定向分享。下面说明以下几种情况下区域52的具体实现:
在“定向分享”未开启的情况下,如图5A所示,区域52中可以显示图标521,还可以显示提示信息522。其中,图标521可用于监听开启“定向分享”的操作。提示信息522可提示用户通过点击图标521开启“定向分享”。响应于该操作,电子设备更新区域52和53,更新后的图形用户界面如5B或5C所示。电子设备在更新后的图形用户界面50中监听用户对于接收设备方向的选择或指示。在其他一些实施例中,当用户通过点击图标521开启“定向分享”后,响应于该操作,电子设备触发对于全部方向附近设备的发现,并在更新后的图形用户界面中显示发现的附近设备对应的设备信息,图形用户界面更新至如图5D所示。提示信息522可以为文本信息,例如“点击此处开启定向分享”等。不限于文本信息,提示信息522还可以为图片、链接、动态图片等其他形式,本实施例对此不做任何限制。在其他一些实施例中,本图形用户界面中的提示信息522也可以不显示在触摸屏上,而是通过扬声器170A播放出来的音频。
可以理解的是,在其他一些实施例中,不限于图标521,该电子设备还可以通过其他形式的交互元素(interactive element,IE)监听开启“定向分享”的操作。示例性地,部分或全部的提示信息522也可用于接收开启“定向分享”的操作。例如提示信息522“点击此处开启定向分享”中的部分文字“点击此处”可用于接收开启“定向分享”的操作。
在其他一些实施例中,在如图4B显示的图形用户界面40中控件451为“定向分享”,当电子设备监听到用户点击控件451(“定向分享”)时,响应于该操作,该电子设备可以开启“定向分享”,并且更新图形用户界面40为如图5B或5C所示,并在更新后的图形用户界面50中监听用户对于接收设备方向的选择或指示。在其他一些实施例中,当用户通过点击控件451(“定向分享”)开启“定向分享”后,响应于该操作,电子设备触发对于全部方向附近设备的发现,并在更新后的图形用户界面中显示发现的附近设备对应的设备信息,图形用户界面更新至如图5D所示。
图5B和5C示例性示出了响应于开启“定向分享”,电子设备引导用户选择或指示接收设备方向的图形用户界面。
在用户发起“定向分享”后,如图5B所示,电子设备可以更新图形用户界面50中的区域52和区域53。更新后的区域52中可以显示图标521和提示信息523。其中,图5B中的图标521的外观(例如:颜色、灰度等)可以与图5A中 的图标521不同,以提示“定向分享”已被开启。提示信息523可以为文本信息,例如“请选择接收设备的方向”等,用于提示用户在区域53中进行操作以选择接收设备的方向。
在更新后的区域53中,可以显示图标533,用于监听用户对于接收设备方向的选择。其中,图标533可以包括区域5331-5334,表示电子设备可以在区域5331-5334指示的4个方向上发现附近设备,其中,区域5331表示相对于水平方向逆时针45°~135°的角度范围,即电子设备的前方,区域5332表示相对于水平方向顺时针45°~逆时针45°的角度范围,即电子设备的右方,区域5333表示相对于水平方向顺时针45°~135°的角度范围,即电子设备的后方,区域5334表示相对于水平方向顺时针135°~225°的角度范围,即电子设备的左方。如图5B所示,当电子设备监听到作用于图标533上的一个或多个区域的操作(如轻触、滑动、重压或长按等操作)时,响应于该操作,被选定区域的外观(例如:颜色、灰度等)可以与选定前不同,并且该电子设备触发在选定区域对应的角度范围内发现附近设备。例如,响应于点击区域5332的操作,该电子设备触发在其右方发现附近设备;又如,响应于在区域5331和区域5332的滑动操作,该电子设备触发在前方和右方发现附近设备。在其他一些实施例中,图标533中区域的个数可以为大于等于2的任何自然数,角度范围也可以不同,如仅指示180度范围,并且图标533也不限于如图5B中的形式,如可以为相连接或者分离的矩形、三角形等其他形状,也可以为表示方向的文字、图片、动态图片或链接等形式,本实施例对此不作任何限制。
在其他一些实施例中,电子设备通过接收用户手势指示接收设备的方向。在用户发起“定向分享”后,如图5C所示,该电子设备可以更新区域52和区域53。更新后的区域52中可以显示图标521和提示信息524。其中,图5C中的图标521的外观(例如:颜色、灰度等)可以与图5A中的图标521不同,以提示“定向分享”已被开启。提示信息524可以为文本信息,例如“请用手势指示接收设备的方向”等,用于提示用户在区域53使用手势指示接收设备的方向。
在更新后的区域53中,用户可以在该区域中以任意一点为起点,朝某方向持续滑动一段距离L,该距离L需大于一预定长度以使得电子设备能够识别并确定滑动的方向。该电子设备可以确定滑动开始和结束时的触点位置,并根据上述滑动开始和结束时的触点位置确定滑动方向。例如,用户在区域53中以任意一点为起点,向相对于水平方向逆时针60°的方向滑动一段距离,则触发电子设备100在该方向对应的接收设备方向上发现附近设备的操作。在其他一些实施例中,电子设备监听用户输入手势的区域不限于区域53。此外,电子设备也可以通过记录滑动轨迹等方式来确定滑动方向,本实施例对此不作任何限制。
可以理解的是,上述区域51、52和53仅为示意,并不代表实际大小。
在一些实施例中,当“定向分享”未开启时,用户在如图4B所示的图形用户界面40中点击控件451(“定向分享”)或用户在如图5A所示的图形用户界面40中点击控件521,响应于该操作,电子设备触发在全部方向上发现附近设备以 及确定发现的附近设备与电子设备的相对位置,电子设备在更新的图形用户界面中显示发现的附近设备对应的设备信息。在其他一些实施例中,如用户在如图3B所示的图形用户界面中开启了定向分享,响应于该操作,电子设备触发在全部方向上发现附近设备以及确定发现的附近设备与电子设备的相对位置,当用户在如图4B所示的图形用户界面40中点击控件451(“定向分享”)或用户在如图5A所示的图形用户界面40中点击控件521时,电子设备可以更新图形用户界面至如图5D所示,以显示电子设备发现的附近设备。图5D示例性示出了电子设备显示附近设备及其与电子设备的相对位置的图形用户界面。该相对位置可以包括附近设备的到达角(AoA),还可以包括附近设备与电子设备之间的距离等位置信息。
在“定向分享”被开启后,若经过一段时间,电子设备发现了附近设备并确定其与电子设备的相对位置,则该电子设备可以更新区域52和53,如图5D所示,更新后的区域52可以显示图标521和提示信息525。其中,图5D中的图标521的外观(例如:颜色、灰度等)可以与图5A中的图标521不同,以提示“定向分享”已被开启。提示信息525可以为文本信息,例如“请选择接收设备”等,用于提示用户在区域53选择接收设备。
在更新后的区域53中,可以显示若干个设备信息及其与该电子设备的相对位置。如图5D所示,图形用户界面50上可以显示坐标系534,其可以包括中心点5341以及横轴5342和纵轴5343。其中,中心点5341可以表示电子设备,横轴5342表示相对于电子设备的左右方向,纵轴5343表示相对于电子设备的前后方向。此外,图形用户界面50还可以显示发现的附近设备的设备信息。例如,如图5D所示,图形用户界面50中包括图标535、536、537、538和539,其中,图标535-539表示电子设备发现的附近设备,并显示了附近设备对应的设备信息。其中,图标534、535和537显示设备信息“HUAWEI P30”,图标536和538显示设备信息“HUAWEI Mate30”。此外,如图5D所示,不同图标的位置指示其对应的附近设备与电子设备的相对位置。例如,图标536位于中心点5341的右侧水平方向上,其表示设备信息“HUAWEI P30”对应的附近设备位于电子设备的右侧。此外,图标与中心点5341的距离指示其对应的附近设备与电子设备的距离,图标距离中心点越近,表示对应的附近设备距离电子设备越近。可以理解的是,图标535-539还可以表现为其他形式,例如编号或者设备用户自定义的其他信息。在其他一些实施例中,距离中心点较近的图标可以具有与距离中心点较远的图标不同的显示效果,如距离中心点较近的图标在外观上(如图标大小、颜色等)可以不同于距离中心点较远的图标。
图标535-539可以用于监听用户在图形用户界面50上选择接收设备的操作。例如,如图5D所示,若用户点击图标536,则触发电子设备与位于电子设备右侧的、设备信息为“HUAWEI P30”的附近设备建立通信连接,并在通信连接建立后向该附近设备发送已选定的图片。
在其他一些实施例中,显示已发现的附近设备的设备信息以及附近设备与电 子设备的相对位置的区域不仅限于如图5D所示的区域53:电子设备可以在整个屏幕显示区域上显示已发现的附近设备的设备信息以及附近设备与电子设备的相对位置。电子设备也可以在屏幕的边缘区域显示已发现的附近设备的设备信息以及附近设备与电子设备的相对位置。例如,当发现的附近设备位于电子设备的正前方时,电子设备将其设备信息显示在靠近屏幕上边缘的位置。本实施例对此不做任何限制。
可以理解的是,电子设备也可以采用其他形式来显示设备信息及其相对位置信息。比如,电子设备可以采用列表等方式,在显示设备信息的同时显示其相对位置。此外,电子设备可以通过排序或者不同的显示效果指示附近设备与电子设备的距离。例如,距离电子设备较近的附近设备,其对应的设备信息的显示顺序靠前,或者,距离电子设备较近的设备对应的设备信息具有与距离电子设备较远的设备对应的设备信息不同的显示效果,其设备信息在外观(如图标大小、颜色等)上不同。
在其他一些实施例中,响应于用户在如图5B或图5C显示的图形用户界面50中选择或用手势指示接收设备方向的操作,该电子设备可以更新图形用户界面如图5D所示,在如图5D所示的图形用户界面50中显示在全部的方向上发现附近设备,并且,在如图5D所示的图形用户界面50中,对在接收设备方向上的设备信息显示不同的显示效果。例如,在接收设备方向上的设备信息在外观(如图标大小、颜色等)上不同于其他方向上的设备信息。若采用列表等方式显示附近设备的设备信息,在接收设备方向上的附近设备对应的设备信息的显示顺序可以靠前,或者具有与其他方向的设备信息不同的显示效果等。
在其他一些实施例中,在如图5D所示的图形用户界面50还可以显示文字信息,该文字信息用于提示用户转动手机使得接收设备位于手机的正前方。在用户转动手机的过程中,图形用户界面上图标的位置随之发生变化。当接收设备位于手机正前方时,其对应的图标在图形用户界面50上位于上方。不限于文字信息,电子设备还可以显示图形(如箭头)、动画等其他方式或使用语音进行提示。
在其他一些实施例中,响应于用户在如图5B或图5C显示的图形用户界面50中选择或用手势指示接收设备方向的操作,该电子设备可以触发在指示的方向上发现附近设备,针对不同的情况更新图形用户界面显示发现附近设备的结果。图5E-5G示例性示出了电子设备在不同的情况下显示在指示的方向上发现的附近设备的图形用户界面。
若经过一段时间,电子设备在指示的方向上发现了附近设备,则该电子设备可以更新图形用户界面50中的区域52和53。如图5E所示,更新后的区域52中可显示电子设备在用户指示的方向上发现的附近设备的设备信息(例如图标、文本等),如图标525、526和527,各附近设备的设备信息可以按照预定排序规则进行排序。在一些实施例中,该预定排序规则可以是基于附近设备与电子设备的距离远近。例如,如图5E所示,区域52中显示了三个设备信息,其顺序表示图中该三个设备信息对应的附近设备与电子设备的距离为“MAC的手机”< “Cindy的平板”<“Jack的笔记本”。此外,在其他一些实施例中,在区域52中,不同的设备信息可以具有不同的显示效果。例如,图标“MAC的手机”在外观(例如:颜色、大小等)上可以不同于其他图标,以提示该图标对应的附近设备距离电子设备最近或者来自该附近设备的信号强度最高。此外,更新后的区域53与图5A中的区域53相同。在其他一些实施例中,上述预定排序规则可以为设备ID首字母顺序等其他规则,本实施例对此不作任何限制。
可以理解的是,不限于图标,设备信息还可以表现为其他形式,例如文本信息“打印机”。此外,设备信息中还可以包括使用设备的用户的账号,例如,如图5E所示,文本信息“MAC的手机”中的“MAC”是用户账号、“Cindy的平板电脑”中的“Cindy”是用户账号、“Jack的笔记本”中的“Jack”是用户账号。在其他一些实施例中,设备信息还可以为用户设备的型号或其他自定义信息,如“HUAWEI P30”等。
区域52中显示的设备信息(如图标525-527)可用于监听触发分享的操作。响应于监听到的作用于设备信息的操作(如在图标525上的轻触操作等),电子设备可以触发分享已选定的图片至该操作选定的附近设备。
在一些实施例中,区域52中还可以显示控件528和/或控件529。控件528和/或控件529可用于切换或更新区域52中显示的设备信息,这样可查看更多的已发现的附近设备。不限于上述控件,其他交互元素也可以用于用户切换区域52中显示的设备信息。在其他一些情况下,用户还可以在区域52中做出向左或向右的滑动手势来切换或更新区域52中显示的设备信息。
在其他一些实施例中,电子设备可以自动更新区域52中的信息,更新后的区域52中可以显示该电子设备在指示的方向上当前发现的附近设备对应的设备信息。电子设备曾经发现的但当前无法发现的附近设备对应的设备信息可以不再在区域52中显示,另外,电子设备在指示的方向上新发现的附近设备对应的设备信息可以被显示在区域52中。在其他一些情况下,区域52还可以显示更新控件(如“手动更新”),该更新控件用于用户手动更新当前发现的附近设备对应的设备信息。
在另一些实施例中,区域52可以显示另一更新控件(如“其他推荐”),该另一更新控件用于更新区域52显示在其他方向上发现的附近设备对应的设备信息。用户也可以通过特定的手势操作,比如左滑或右滑等操作,来触发设备信息的更新。在一些情况下,上述其他方向可以是与指示的方向相邻的预定角度范围,比如,与指示的方向相邻的30°角度范围。
在另一些实施例中,如图5E所示,区域52中还可以显示设备信息对应的操作提示信息。该操作提示信息可用于提示用户何种操作能够触发该电子设备分享数据至该设备信息对应的附近设备。例如,用户图标525下面显示的文本信息“点击发送”可提示用户点击图标525来触发将已选定图片分享至附近设备“MAC的手机”的操作。
上述示例仅仅是本实施例提供的一些实现方式,不应构成限定。不限于作用 于设备信息上的操作,设备信息对应的操作提示信息还可以提示用户通过其他形式的操作来触发电子设备对该设备信息对应的附近设备分享数据。例如,该操作提示信息可以提示用户在用户图标上做一个逆时针画圆圈的特定手势来触发分享已选定图片。
在其他一些实施例中,响应于用户在如图5B或5C所示的图形用户界面中选择或指示接收设备的方向,电子设备在已发现的附近设备中可以按预定显示规则选择一个附近设备作为候选接收设备,并在更新的图形用户界面中显示候选接收设备的设备信息。在一些实施例中,该预定显示规则可以是选择距离电子设备最近的附近设备作为候选接收设备,并显示其设备信息。如图5F所示,当电子设备确定了在指示的方向上距离电子设备最近的附近设备时,可以在区域52和53显示对话框54,对话框54中可以包括提示信息541和控件542、控件543。其中,提示信息541可以为文本信息,例如“您将与MAC的手机分享图片”等,用于提示用户将与设备信息为“MAC的手机”的附近设备分享图片。控件542可以显示文字信息“确定”,用户触摸该控件能够触发该电子设备与设备信息为“MAC的手机”的附近设备建立通信连接并在连接建立成功后发送数据。控件543可以显示文字“获取推荐”,用户触摸该控件能够触发电子设备更新区域52,并在区域52中显示在指示的方向上发现的除设备信息为“MAC的手机”的附近设备之外的其他附近设备对应的设备信息,上述其他附近设备对应的设备信息显示的顺序可以基于预定排序规则,如根据附近设备与电子设备之间的距离或者设备ID首字母顺序等。在其他一些实施例中,区域52中可以显示电子设备在其他方向上发现的附近设备对应的设备信息。在一些情况下,上述其他方向可以是与指示的方向相邻的预定角度范围。
响应于用户点击如图5F所示的图形用户界面中的控件542(“确定”),电子设备可以在区域52和区域53显示对话框55,如图5G所示。对话框55中可以包括提示信息551和控件552、控件553。其中,提示信息551可以是文本信息,例如“您正与MAC的手机分享图片”等,用于提示用户正在与设备信息为“MAC的手机”的附近设备分享图片。控件552可以显示文字信息“终止”,用户触摸该控件能够停止该电子设备与设备信息为“MAC的手机”的附近设备之间的数据传输。控件553可以是直线进度条,用于提示数据发送的进度。不限于直线进度条,电子设备可以使用数字或者其他形状的进度条(如圆形、环形、矩形等)来提示用户数据发送的进度。
在其他一些实施例中,电子设备在指示的接收设备方向上仅一个附近设备或者在已发现的多个附近设备中选择一个附近设备作为候选接收设备后,直接与该附近设备建立通信连接,并在连接建立成功后发送数据。也即,图形用户界面可以从图5B或图5C直接更新为如图5G所示。
在其他一些实施例中,当电子设备在指示的方向上没有发现任何设备时,如图5H所示,电子设备可以在区域52和53显示对话框56,对话框56中可以包括提示信息561和控件562、控件563。其中,提示信息561可以为文本信息, 例如“指定方向上没有支持设备”等,用于提示用户在指示的方向上没有发现可连接设备。控件562和563可以用于提示并监听用户下一步的操作。控件562可以显示文字信息“获取推荐”,用户点击该控件能够触发更新区域52,并在区域52中显示在除指示的方向外的其他方向上发现的附近设备对应的设备信息。在一些情况下,上述其他方向是与指示的方向相邻的预定角度范围。控件563可以显示文字信息“退出”,用户点击该控件触发退出本次定向分享。在其他一些实施例中,控件562和563可以对应于其他操作,比如,控件563可以显示文字信息“重新定向”,用户点击该控件能够触发电子设备更新图形用户界面,用于重新选择或指示接收设备的方向,图形用户界面50可以更新如图5B或图5C所示。
可以理解的是,在本实施例中,不限于上述所描述的区域51、区域52和区域53,“定向分享界面”还可以包括其他形式的交互元素,如图5A所示,图形用户界面50还可以包括标题栏,标题栏中可显示控件501,还可显示指示信息502。其中,控件501可用于取消选择图片进行分享的操作,即用户可以点击控件501来取消分享已选择的图片。指示信息502可用于指示已选定图片的数量。
图6A-图6B示例性示出的图形用户界面60可以为“定向分享界面”的另一种实现方式。
图6A示例性示出了响应于用户对于图4A中应用程序“图库”中图片的轻触操作而进入的图形用户界面60。图形用户界面60可以包括区域61和62。区域61中可以显示用户当前浏览的图片601。区域62中可以显示菜单602。菜单602可参考图4B中所示的图形用户界面40中的菜单45,这里不再赘述。
如图6A所示,电子设备可以在图形用户界面60中监听用户点击菜单602中的控件6021(“分享”)的操作,从而触发分享当前显示的图片601。响应于用户点击控件6021“分享”,电子设备触发更新图形用户界面。若“定向分享”未开启,电子设备在更新后的图形用户界面中监听用户开启定向分享的操作,更新后的图形用户界面可参考图5A中显示的图形用户界面50,这里不再赘述。
在另一些实施例中,控件6021可以为“定向分享”。响应于用户点击该控件,电子设备触发更新图形用户界面,并在更新后的图形用户界面中监听用户对于接收设备方向的选择操作。更新后的图形用户界面可参考图5B中显示的图形用户界面50。在其他一些实施例中,响应于用户点击控件6021“定向分享”,电子设备触发更新图形用户界面,并在更新后的图形用户界面中监听用户的手势,并通过用户的手势确定接收设备的方向。更新后的图形用户界面可参考图5C中显示的图形用户界面50。在一些情况下,当用户点击控件6021之前,“定向分享”已经开启,则响应于用户点击控件6021(“分享”或“定向分享”),电子设备更新图形用户界面至如图5B或图5C所示,这里不再赘述。
在其他一些实施例中,响应于用户点击控件6021“定向分享”,电子设备更新图形用户界面,显示附近设备对应的设备信息及附近设备与电子设备的相对位置,并监听用户对于接收设备的选择。更新后的图形用户界面可参考图5D中显 示的图形用户界面50,这里不再赘述。
在其他一些实施例中,电子设备可以在图形用户界面60中监听用户手势的操作,从而触发定向分享。如图6B所示,用户可以在区域61中的任意位置长按并向某一方向持续滑动一段距离L。该距离L需大于一预定长度以使得电子设备能够识别并确定用户滑动的方向。在一些情况下,响应于用户在区域61中任意位置的长按操作,区域61中的图片可以更新为当前浏览图片的缩略图,该缩小后的图片显示在用户长按的位置,并且,当用户手指在屏幕上滑动时,该缩略图可以随着触点位置的变化而移动。在一些实施例中,电子设备分别确定用户在区域61中滑动开始和结束时的触点位置,并根据该滑动开始和结束时的触点位置确定用户的滑动方向。可以理解的是,确定滑动方向的方式不仅限于通过确定滑动开始和结束时的触点位置,电子设备也可以通过记录手指滑动轨迹等方式来确定滑动方向,本实施例对此不作任何限制。
响应于用户在如图6B所示的图形用户界面的区域61中的任意位置长按并向某一方向持续滑动一段距离L的操作,电子设备更新图形用户界面,并在不同的情况下显示在指示的方向上发现的附近设备的图形用户界面。
在一些情况下,响应于用户在如图6B所示的图形用户界面的区域61中的任意位置长按并向某一方向持续滑动一段距离L的操作,电子设备可以更新图形用户界面如图5D所示,并在更新后的图形用户界面中显示在全部方向上发现的附近设备对应的设备信息。其中,由于电子设备通过用户的滑动操作能够确定滑动方向,电子设备可以设置在滑动方向上的设备信息具有不同的显示效果。例如,在滑动方向上的设备信息在外观(如图标大小、颜色等)上不同于其他方向上的设备信息。若采用列表等方式显示附近设备的设备信息,在滑动方向上的附近设备对应的设备信息的显示顺序可以靠前。
在另一些情况下,响应于用户在如图6B所示的图形用户界面的区域61中的任意位置长按并向某一方向持续滑动一段距离L的操作,电子设备可以更新图形用户界面如图5E或图5F所示,并在更新后的图形用户界面中显示在滑动方向上的附近设备对应的设备信息。
在另一些情况下,响应于用户在如图6B所示的图形用户界面的区域61中的任意位置长按并向某一方向持续滑动一段距离L的操作,电子设备可以触发向滑动方向上的一个设备分享数据,电子设备可以更新图形用户界面如图5G所示。
在另一些情况下,响应于用户在如图6B所示的图形用户界面的区域61中的任意位置长按并向某一方向持续滑动一段距离L的操作,电子设备可以更新图形用户界面如图5H所示,以表示电子设备在滑动方向上没有发现支持的设备。
在其他一些实施例中,用户在对图4A中应用程序“图库”中图片进行轻触操作进入图形用户界面60,电子设备在图形用户界面60中检测特定的操作(例如:单指长按、双指长按或者在图片上逆时针画圈等操作)之后,电子设备更新图形用户界面,显示在全部方向上发现的附近设备对应的设备信息,并监听用户 对于接收设备的选择,更新后的图形用户界面可参考图5D。
图7A-图7B示例性示出的图形用户界面70可以为“定向分享界面”的又一种实现方式。
图7A示例性示出了响应于用户对于图3A中应用程序“文件管理”的轻触操作而进入的图形用户界面70。如图7A所示,图形用户界面70可以包括图标701、703、705以及对应的文字信息702、704、706。其中,图标701、703和705用于表示电子设备中包含的不同的文件类型,文字信息702、704和706用于提示用户在电子设备中包含的文件类型名称以及对应文件类型的数量。例如,文字信息702的内容为“图片56”,其表示在电子设备中存储了56张图片。图标701、703和705用于监听用户作用于图标的操作,响应于用户的操作,触发电子设备显示对应文件类型的文件。例如,用户点击图标703,触发电子设备显示在其中存储的文档列表,图形用户界面70更新为如图7B所示。
图7B示例性示出了在图形用户界面70中监听用户在当前显示的文件列表中进行选择并分享的操作。图形用户界面70可以包括状态栏71、应用程序标题栏72、文件区域73。其中:
状态栏71可参考图3A所示的图形用户界面20中的状态栏21,这里不再赘述。
应用程序标题栏72可包括:返回键721以及当前页面指示符722。返回键721为APP级返回键,可用于返回逻辑上一级。当前页面指示符722可用于指示当前页面,例如文本信息“文档”,不限于文本信息,当前页面指示符722还可以是图标等其他形式。
文件区域73中可以显示包含一个或多个文件信息的文件列表。如图7B所示,其可以包括文件731、732、733和734。当电子设备在文件区域73中监听到向上或向下的滑动操作时,电子设备可以更新文件区域73中显示的文件,以便用户浏览文件。也即是说,用户可以在文件区域73中向上或向下滑动来浏览文件。不限于向上或向下的滑动操作,用户还可以在文件区域73中向左或向右滑动来浏览文件。
图形用户界面70还可以包括导航栏(图中未示出),导航栏可参考图3A中所示的图形用户界面20中的导航栏23,这里不再赘述。
如图7B所示,当电子设备在图形用户界面70监听到选择一个或多个文件的操作时,电子设备可以在图形用户界面70中显示菜单74。菜单74可参考图4B中所示的图形用户界面40中的菜单45,这里不再赘述。在一些实施例中,当电子设备在图形用户界面70监听到选择文件的操作时,在选定的文件上显示标记7331。标记7331可表示文件733已被用户选择。
如图7B所示,电子设备可以在图形用户界面70中监听用户点击菜单74中的控件741(“分享”)的操作,从而触发分享选择的文件(如文件733)。响应于该操作,电子设备触发更新图形用户界面,并在更新后的图形用户界面中监听用户开启定向分享的操作。电子设备对于图形用户界面的更新可参考图5A中显示 的图形用户界面50中的区域52和53。这里不再赘述。
在另一些实施例中,控件741可以为“定向分享”。响应于用户点击该控件,电子设备触发更新图形用户界面,并在更新后的图形用户界面中监听用户对于接收设备方向的选择操作。电子设备对于图形用户界面的更新可参考图5B中显示的图形用户界面50中的区域52和53。在其他一些实施例中,响应于用户点击控件“定向分享”,电子设备触发更新图形用户界面,并在更新后的图形用户界面中监听用户的手势,并通过用户的手势判断接收设备的方向。电子设备对于图形用户界面的更新可参考图5C中显示的图形用户界面50中的区域52和53。在其他一些实施例中,响应于用户点击控件“定向分享”,电子设备触发在全部方向上发现附近设备以及确定发现的附近设备与电子设备之间的相对位置,在发现了附近设备并确定其与电子设备之间的相对位置后,电子设备更新图形用户界面,显示附近设备对应的设备信息及附近设备与电子设备的相对位置,并监听用户对于接收设备的选择。电子设备对于图形用户界面的更新可参考图5D中显示的图形用户界面50的区域52和53,这里不再赘述。
图8A-图8B示例性示出的图形用户界面80可以为“定向分享界面”的又一种实现方式。
图8A示例性示出了响应于用户作用于图3A中显示的图形用户界面上的应用程序图标的操作而进入应用分享的图形用户界面80。例如,电子设备监听到在应用239的图标上的长按操作,响应于该操作,电子设备可以在该应用图标239的周围更新菜单81,菜单81中可以包括控件811(“分享”)和控件812(“卸载”)。其中,控件811可用于监听用户分享已选择应用的操作,控件812可用于监听用户卸载已选择应用的操作。
在一些实施例中,电子设备可以在图形用户界面80中监听到用户轻触菜单81中的控件811(“分享”)的操作,响应于作用于控件811上的操作,电子设备触发更新图形用户界面,并在更新后的图形用户界面中监听用户开启定向分享的操作。电子设备对于图形用户界面的更新可参考图5A中显示的图形用户界面50中的区域52和53,这里不再赘述。
在另一些实施例中,控件811可以为“定向分享”。响应于用户点击该控件,电子设备触发更新图形用户界面,并在更新后的图形用户界面中监听用户对于接收设备方向的选择操作。电子设备对于图形用户界面的更新可参考图5B中显示的图形用户界面50中的区域52和53。在其他一些实施例中,响应于用户点击控件“定向分享”,电子设备触发更新图形用户界面,并在更新后的图形用户界面中监听用户的手势,并通过用户的手势判断接收设备的方向。电子设备对于图形用户界面的更新可参考图5C中显示的图形用户界面50中的区域52和53。在其他一些实施例中,响应于用户点击控件“定向分享”,电子设备触发在全部方向上发现附近设备以及确定发现的附近设备与电子设备之间的相对位置,在发现了附近设备并确定其与电子设备之间的相对位置后,电子设备更新图形用户界面,显示附近设备对应的设备信息及附近设备与电子设备的相对位置,并监听用户对 于接收设备的选择。电子设备对于图形用户界面的更新可参考图5D中显示的图形用户界面50的区域52和53,这里不再赘述。
在其他一些实施例中,用户在对图3A中显示的图形用户界面上的应用程序图标通过特定的操作(例如:双指长按、多指长按或者在应用程序图标上逆时针画圈等操作)触发在全部方向上发现附近设备以及确定发现的附近设备与电子设备之间的相对位置,在发现了附近设备并确定其与电子设备之间的相对位置后,电子设备更新图形用户界面,显示附近设备对应的设备信息及附近设备与电子设备的相对位置,并监听用户对于接收设备的选择。电子设备对于图形用户界面的更新可参考图5D中显示的图形用户界面50中的区域52和53。在一些情况下,电子设备通过监听用户拖动应用程序图标至图形用户界面上显示的附近设备对应的设备信息来触发将选定的应用程序分享至该附近设备的操作。
在一些实施例中,当电子设备确定了目标接收设备之后,与目标接收设备建立通信连接,并在通信连接建立后开始传输应用程序信息。该应用程序信息可以包括应用安装程序、应用程序下载链接、应用程序名称及版本号等信息中的一个或多个。
图9A示例性示出了电子设备开启定向分享后,发现全部附近设备并确定附近设备与电子设备的相对位置,并与选定的接收设备建立连接并发送数据的过程。如图9A所示,当电子设备100监听到定向分享开启后,触发电子设备100发现所有方向上的附近设备。其中,用户可以在如图3B所示的图形用户界面中点击“定向分享”控件,或者在如图4B所示的图形用户界面中点击“定向分享”控件,或者通过在如图5A所示的图形用户界面中点击图标521,或者在如图6B所示的图形用户界面中的通过特定手势操作等方式开启定向分享。
电子设备100可以通过以下几种方式来发现附近设备:
方式1.采用Wi-Fi直连无线通信技术发现附近设备
在一些实施例中,电子设备100可以向外广播探测请求(probe request)。附近设备在监听到该探测请求之后,可以回应探测响应(probe response),以通报自身的存在。在另一些实施例中,附近设备可以周期性的向外发送信标(Beacon)帧。电子设备100可以通过监听附近设备发送的Beacon帧来发现附近设备。
也即是说,电子设备100可以主动发现附近设备,也可以被动发现附近设备。
方式2.采用蓝牙无线通信技术发现附近设备
在一些实施例中,电子设备100附近的蓝牙设备(如具有蓝牙模块的手机、平板电脑、打印机等)可以进行蓝牙广播。电子设备100可以进行蓝牙扫描,扫描附近的蓝牙设备广播的广播帧,从而发现附近的蓝牙设备。
方式3.发现同一个Wi-Fi LAN中的设备
在一些实施例中,电子设备100可以根据自身在该LAN中的IP地址和子网掩码确定出该LAN的IP地址范围,然后可以通过单播轮询的方式来发现该LAN中的设备。不限于此,电子设备100还可以在该LAN中通过广播消息或组播消息的方式来发现该LAN中的设备。
不限于上述几种电子设备发现附近设备的方式,实际应用中,电子设备还可以采用其他方式来基于蓝牙或Wi-Fi直连或Wi-Fi LAN或毫米波等通信技术发现附近设备,本申请对此不作限制。
电子设备100在附近设备发现过程中从附近设备接收的消息(如探测响应、信标帧或蓝牙广播帧等)中获得上述附近设备的标识信息,然后通过标识信息获得设备信息,也可以从附近设备接收的消息中获得上述附近设备的设备信息。
电子设备100在发现了电子设备101、电子设备102和电子设备103之后,分别确定上述附近电子设备与电子设备100的相对位置。上述相对位置至少包括到达角(AoA)等信息。电子设备100确定附近设备的到达角(AoA)的具体过程可以如图9B所示。电子设备100首先向电子设备101发送第一请求信号1011,该第一请求信号1011用于请求电子设备101发送第一报告信号1012,以进行到达角(AoA)的测量。电子设备101在接收到第一请求信号1011之后,向电子设备100发送第一报告信号1012,电子设备100使用天线阵列接收第一报告信号1012,并根据不同天线接收到的第一报告信号1012的相位差估计电子设备101的到达角(AoA)。在一些实施例中,该第一报告信号1012具体可以包括固定频率扩展信号,该信号可以是附加在正常数据包后面的包含一系列的切换时隙和采样时隙的数据串。接收端在接收第一报告信号1012时,按照一定的顺序切换不同的接收天线,并根据不同天线接收到的固定频率扩展信号的相位差确定到达角(AoA)。
举例说明,若电子设备100的毫米波天线阵列中包含8个毫米波天线A1-A8,在发送第一请求信号1011之后,在时间t1仅使用天线A1接收附近设备发送的第一报告信号1012,在时间t2仅使用天线A2接收附近设备发送的第一报告信号1012,以此类推,在8根天线分别接收到附近设备发送的第一报告信号1012后,电子设备100根据8根天线接收的第一报告信号1012的相位差来计算附近设备的到达角(AoA),也即是附近设备与电子设备100的相对角度。
在其他一些实施例中,电子设备100与电子设备101可采用发射角(AoD)测量方法来确定相对角度。
接下来,电子设备100采用与测量电子设备101到达角(AoA)相同的步骤在不同时间区间使用天线阵列分别确定电子设备102和电子设备103的到达角(AoA)。在其他一些实施例中,电子设备100可以同时确定附近设备中的多个设备或者全部设备的到达角(AoA)。
在其他一些实施例中,电子设备100可以配置天线阵列进行波束成形,仅在一个方向上接收附近设备发送的广播消息,或者朝向该方向发送探测信号,接收到探测信号的附近设备向电子设备100发送探测响应,用于在该方向上发现附近设备。电子设备100获取附近设备的设备信息,并将上述附近设备与该方向相对应。接下来,电子设备100配置天线阵列进行波束成形,在另一个方向上发现附近设备。即,通过在各个方向进行轮询的方式,完成附近设备的发现,并获得附近设备的相对角度。
在其他一些实施例中,相对位置还可以包括距离信息。电子设备100可以通过在附近设备发现过程中从附近设备接收消息的信号强度RSSI来确定电子设备100与发现的附近设备的距离,例如,电子设备100可以通过在附近设备发现过程中从附近设备接收的广播消息或者响应消息的信号强度RSSI来确定电子设备100与发现的附近设备的距离;也可以采用其他现有技术中的测距方法,如ToF/ToA/TDoA测距等,来确定电子设备100与发现的附近设备之间的距离。本实施例对此不做任何限制。
电子设备100在确定了电子设备101、电子设备102、电子设备103的相对位置并检测到用户分享数据的操作后,更新图形用户界面,并在图形用户界面中包括上述附近设备电子设备101、电子设备102和电子设备103的设备信息及上述设备与电子设备100的相对位置,显示的图形用户界面可参考图5D。此外,在如图5D所示的图形用户界面中,距离电子设备越近的附近设备,其对应的图标距离中心点5341越近。电子设备100在如图5D所示的图形用户界面中监听用户对于接收设备的选择。
在其他一些实施例中,电子设备100可以通过在附近设备发现过程中从附近设备接收到的信号确定其信号强度RSSI,例如,电子设备100可以确定在附近设备发现过程中从附近设备接收的广播消息或者响应消息的信号强度RSSI,在确定了附近设备与电子设备100的相对角度并检测到用户分享数据的操作后,更新图形用户界面,并在图形用户界面中包括附近设备的设备信息、相对角度以及信号强度,显示的图形用户界面可参考图5D。此外,在如图5D所示的图形用户界面中,信号强度越强的附近设备,其对应的图标距离中心点5341越近。
如图9A所示,若用户选择了电子设备101作为接收设备。接下来,电子设备100可以通过蓝牙或WiFi等无线技术与电子设备101建立通信连接并开始发送数据。上述建立通信连接的具体过程可以是:电子设备100向电子设备101发送建立连接请求消息,电子设备101接收到建立连接请求消息后,向电子设备100回复连接响应消息,以建立电子设备100与电子设备101之间的通信连接。接下来,电子设备100向电子设备101发送用户选定的数据,如图像、文档、应用安装程序、应用程序信息等。
在其他一些实施例中,若用户在分享数据时指示了方向信息,例如,在如图5B所示的图形用户界面中选择了方向,或在如图5C或6B所示的图形用户界面中使用手势指示了方向,电子设备可以在全部方向发现的附近设备中对指示的方向上的附近设备对应的设备信息设置不同的显示效果,或在如图5E所示的图形用户界面中仅显示在指示的方向上的附近设备对应的设备信息,或当指示的方向上仅有一个附近设备或电子设备在指示的方向上的多个附近设备中选择一个候选附近设备时,在如图5F所示的图形用户界面中显示相应的设备信息或直接与该附近设备建立通信连接并开始发送数据。
图9C示例性示出了电子设备开启定向分享后,确定接收设备的方向,并基于该方向发现附近设备,并与选定的接收设备建立连接并发送数据的过程。
电子设备100的用户可以在如图5B所示图形用户界面上通过选择指示接收设备的方向,也可以在如图5C或6B所示的图形用户界面上通过手势指示接收设备的方向。举例说明,若用户在如图5B所示的图形用户界面中,用户选择区域5332,则表示用户指示的接收设备方向在右方;在如图5C所示的图形用户界面中,若用户沿水平方向向右滑动,则表示用户指示的接收设备方向在右方,在如图6B所示的图形用户界面中,若用户长按图片并沿水平方向向右滑动,则表示用户指示的接收设备方向在右方。电子设备100在确定了用户指示的接收设备方向之后,根据由陀螺仪确定的电子设备100的姿态,确定波束成形方案,并配置天线阵列在指示的方向上接收附近设备发送的广播消息用于进行在接收设备方向上发现附近设备。其中,所述波束成形方案可以包括每个天线的权值。具体来说,通过调整每个天线的权值,使得多个天线在波形上经过相干和相消,能够在指定的方向上接收信号。在一些实施例中,该天线阵列可以为毫米波天线阵列,其在附近设备发现过程中,在接收设备的方向上接收附近设备发送的毫米波广播消息,从而发现在指定的方向上的附近设备。在其他一些实施例中,该天线阵列可以为具备蓝牙或WiFi等无线通信技术的天线阵列。
在其他一些实施例中,电子设备100在确定接收设备的方向后,配置天线阵列在指示的方向上发送探测请求。接收到该探测请求的附近设备向电子设备100回应探测响应,以通报自身的存在。
通过在指定的方向上发现附近设备,减少了电子设备发现的设备个数,提高了用户选择接收设备的精准度和效率。
图10A、10B示例性示出了本实施例中根据用户选择或通过手势指示的接收设备方向和电子设备的姿态,确定波束成形方案并配置天线阵列的工作原理。如图10A所示,若电子设备在图形用户界面中检测到用户向上滑动的操作,则电子设备将在电子设备的正前方发现附近设备。图10A中,电子设备呈水平方向,电子设备根据用户指示的接收设备的方向和电子设备的姿态确定第一波束成形方案,即确定各天线的权值,使得波束朝向电子设备的正前方。而图10B中,电子设备同样在图形用户界面中检测到用户向上滑动的操作,但由于电子设备与水平方向存在一定的夹角,因此,电子设备根据用户指示的接收设备的方向和电子设备的姿态确定第二波束成形方案,即确定各天线的权值,使得波束朝向电子设备的正前方。其中,虽然电子设备检测到的用户滑动操作是相同的,但由于电子设备的姿态不同,使得第一波束成形方案与第二波束成形方案的参数不同。
结合图1和图9C,由于电子设备101和电子设备102在同一方向上,因此,当用户指示接收设备的方向在电子设备100右侧时,电子设备100有可能在附近设备发现的过程中发现电子设备101和电子设备102。如图9C所示,若电子设备100发现了电子设备101和电子设备102,即电子设备100接收到来自电子设备101和电子设备102的广播消息或探测响应。电子设备100从上述广播消息或探测响应中获取电子设备101和电子设备102的设备信息,并确定上述广播消息或探测响应的信号强度RSSI,根据信号强度RSSI确定电子设备100与电子设备 101和电子设备102之间的距离。在其他一些实施例中,电子设备100可以通过其他测距技术来获得其与附近设备之间的距离,如ToF/ToA/TDoA测距等。在发现了附近设备并确定了附近设备与电子设备100的距离后,电子设备可以按照预定排序规则对发现的各附近设备进行排序并在如图5E所示的图形用户界面中显示排序后的各附近设备对应的设备信息。在一些实施例中,该预定排序规则可以是基于附近设备与电子设备的距离。在其他一些实施例中,设备消息的排序可以根据广播消息或探测响应的信号强度RSSI或设备消息的首字母等其他规则。
接下来,结合图5E和图9C,若电子设备100在如图5E所示的图形用户界面中监听到用户点击电子设备101对应的图标,表明用户选择电子设备101作为接收设备。电子设备100与电子设备101建立通信连接并在连接建立之后开始传输数据。在一些实施例中,电子设备100与电子设备101之间通过蓝牙或WiFi等无线通信技术建立通信连接并在连接建立之后通过蓝牙或WiFi等无线通信技术传输数据。在其他一些实施例中,电子设备100与电子设备101之间建立通信连接,并在连接建立之后通过天线阵列定向传输数据。在定向数据传输过程中,可以通过陀螺仪检测手机的姿态并测量两设备之间的到达角(AoA)或发射角(AoD)获得电子设备100和电子设备101的相对位置变化,从而调整波束成形方案,即实时调整天线阵列各天线的权值,使得定向传输能够持续进行。
若电子设备100在如图5E所示的图形用户界面中监听到更新显示的设备信息的操作,响应于该操作,电子设备100触发在与指定的接收设备方向不同的其他方向上确定波束成形方案,即确定天线阵列中各天线的权值,并配置天线阵列在该其他方向上发现附近设备。此外,电子设备100可以根据附近设备发现过程中从附近设备接收的消息(如广播消息或探测响应)的信号强度确定各附近设备与电子设备的距离,进而确定各附近设备的显示顺序,并将附近设备对应的设备信息按照确定的排序显示。其中,距离电子设备越近的附近设备对应的设备信息的排序越靠前。在其他一些实施例中,电子设备100也可以根据从附近设备接收的广播消息或探测响应的信号强度确定各附近设备的显示顺序。电子设备100在如图5E所示的图形用户界面的区域52中更新设备信息,并在显示的图形用户界面上监听用户选择的接收设备。在一些情况下,上述其他方向可以是与接收设备方向相邻的预定角度范围。
在其他一些实施例中,电子设备100在指定的方向上发现附近设备并确定各附近设备与电子设备100的距离之后,仅显示距离电子设备100最近的附近设备对应的设备消息,并在显示的图形用户界面中监听用户对接收设备的确认结果。在另一些实施例中,电子设备100在指定的方向上发现附近设备并确定从各附近设备接收的消息(如广播消息或探测响应)的信号强度,仅显示信号强度最强的附近设备对应的设备消息,并在显示的图形用户界面中监听用户对接收设备的确认结果。显示的图形用户界面可参考如5F所示。
若用户点击如图5F所示的图形用户界面中的控件542(“确定”),则触发电子设备与该选择的设备建立通信连接,并在连接建立成功后发送数据。若用户点 击如图5F所示的控件543(“获取推荐”),则触发电子设备更新显示的设备信息,并显示在上述指定的方向上发现的除上述距离电子设备100最近的附近设备之外的其他附近设备,上述其他附近设备显示的顺序基于其他各附近设备与电子设备100的距离远近。电子设备100在参考如图5E所示的图形用户界面中监听用户对于接收设备的选择。在其他一些情况下,若在用户指定的接收设备方向上发现的附近设备有且仅有如图5F中显示的附近设备,则用户点击如图5F所示的控件543(“获取推荐”)将触发电子设备100在与用户指定的方向不同的其他方向上确定波束成形方案,并配置天线阵列中每个天线的权值,使天线阵列在该其他方向上发现附近设备。在一些情况下,上述其他方向可以是与用户指定的接收设备方向相邻的预定角度范围。
在其他一些实施例中,当电子设备100在用户指定的接收设备方向上仅发现一个附近设备或者在已发现的多个附近设备中确定了一个距离最近或信号强度最强的附近设备作为接收设备后,直接与该附近设备建立通信连接,并在连接建立成功后发送数据。此时图形用户界面可以更新至如图5G所示。
在其他一些实施例中,当电子设备100在用户指定的接收设备方向上没有发现任何设备时,电子设备100更新图形用户界面以提醒用户没有发现任何设备。显示的图形用户界面可参考图5H。若用户点击如图5H所示的图形用户界面中的控件552(“获取推荐”),响应于该操作,电子设备100触发在与用户指定的接收设备方向不同的其他方向上确定波束成形方案,并配置天线阵列中每个天线的权值,使天线阵列在在该其他方向上发现附近设备。此外,电子设备100根据在发现过程中从附近设备接收到的消息的信号强度估计各附近设备与电子设备的距离,进而确定各附近设备的显示顺序,并将附近设备对应的设备信息按照确定的排序在参考如图5E所示的图形用户界面中显示。电子设备100在参考如图5E所示的图形用户界面中监听用户选择的接收设备。在一些情况下,其他方向可以是与用户指定的接收设备方向相邻的预定角度范围。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘)等。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。

Claims (12)

  1. 一种数据分享的方法,其应用在具备天线阵列的电子设备中,其特征在于,包括:
    电子设备显示第一图形用户界面,所述第一图形用户界面包括第一对象;
    所述电子设备在所述第一图形用户界面中检测第一操作,其中,所述第一操作作用于所述第一对象上,所述第一操作指示第一方向;
    响应于所述第一操作,所述电子设备配置所述天线阵列在所述第一方向上接收第一设备发送的第一广播消息,从所述第一广播消息中获得第一标识,所述第一标识对应所述第一设备;
    根据所述第一标识,所述电子设备向所述第一设备发送所述第一对象。
  2. 如权利要求1所述的方法,其特征在于,所述配置所述天线阵列,还包括,
    电子设备检测手机姿态,根据所述手机姿态和所述第一方向配置所述天线阵列中每个天线的权值。
  3. 如权利要求1或2所述的方法,其特征在于,还包括,所述电子设备配置所述天线阵列在所述第一方向上接收第二设备发送的第二广播消息,从所述第二广播消息中获得第二标识,所述第二标识对应所述第二设备。
  4. 如权利要求3所述的方法,其特征在于,所述电子设备向所述第一设备发送所述第一对象之前,还包括,
    所述电子设备从所述第一设备和所述第二设备中选择所述第一设备。
  5. 如权利要求4所述的方法,其特征在于,还包括,所述电子设备根据第一规则选择所述第一设备;其中,所述第一规则是选择信号强度最强的广播消息对应的设备。
  6. 如权利要求1、2、4、5中任一项所述的方法,其特征在于,所述电子设备向第一设备发送所述第一对象之前,进一步包括:
    所述电子设备显示第二图形用户界面;
    所述电子设备在所述第二图形用户界面中包括第一信息,其中,所述第一信息是所述电子设备从所述第一广播消息中获得的;
    所述电子设备在所述第二图形用户界面中检测第二操作,以及,
    响应于所述第二操作,所述电子设备向所述第一设备发送所述第一对象。
  7. 如权利要求3所述的方法,其特征在于,所述电子设备向第一设备发送所述第一对象之前,进一步包括:
    所述电子设备显示第二图形用户界面;
    所述电子设备在所述第二图形用户界面中包括第一信息和第二信息,其中,所述第一信息是所述电子设备从所述第一广播消息中获得的,所述第二信息是所述电子设备从所述第二广播消息中获得的;
    所述电子设备在所述第二图形用户界面中检测第三操作,所述第三操作作用于所述第一信息上;以及,
    响应于所述第三操作,所述电子设备向所述第一设备发送所述第一对象。
  8. 如权利要求7所述的方法,其特征在于,所述第一信息和所述第二信息具有不同的显示效果,所述显示效果指示所述第一广播消息和所述第二广播消息的信号强度不同。
  9. 如权利要求7或8所述的方法,其特征在于,
    所述电子设备检测第四操作,
    响应于所述第四操作,所述电子设备配置所述天线阵列在第二方向上接收第三设备发送的第三广播消息,从所述第三广播消息中获得第三标识,所述第三标识对应所述第三设备;其中,所述第二方向不同于所述第一方向;
    所述电子设备在所述第二用户界面上显示第三信息,所述第三信息是所述电子设备从所述第三广播消息中获得的。
  10. 如权利要求1-9中任一项所述的方法,其特征在于,所述天线阵列为毫米波天线阵列。
  11. 一种电子设备,包括,
    一个或多个处理器;
    存储器;以及
    一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中并被配置为所述一个或多个处理器执行,所述一个或多个程序包括指令,所述指令用于执行如权利要求1-10所述的方法。
  12. 一种计算机可读介质,用于存储一个或多个程序,其中所述一个或多个程序被配置为被所述一个或多个处理器执行,所述一个或多个程序包括指令,所述指令用于执行如权利要求1-10所述的方法。
PCT/CN2021/071112 2020-01-13 2021-01-11 数据分享的方法、电子设备 WO2021143650A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010033491.5 2020-01-13
CN202010033491.5A CN113194454B (zh) 2020-01-13 2020-01-13 数据分享的方法、电子设备

Publications (1)

Publication Number Publication Date
WO2021143650A1 true WO2021143650A1 (zh) 2021-07-22

Family

ID=76863588

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/071112 WO2021143650A1 (zh) 2020-01-13 2021-01-11 数据分享的方法、电子设备

Country Status (2)

Country Link
CN (1) CN113194454B (zh)
WO (1) WO2021143650A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143769A (zh) * 2021-12-08 2022-03-04 Oppo广东移动通信有限公司 内容分享方法、装置、设备、介质及计算机程序
WO2024114307A1 (zh) * 2022-11-28 2024-06-06 歌尔科技有限公司 设备通信方法、装置、设备及存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114302386B (zh) * 2021-12-24 2023-06-09 深圳创维数字技术有限公司 无线网络连接方法、装置、接入点以及存储介质

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102646012A (zh) * 2011-02-22 2012-08-22 宏碁股份有限公司 手持式装置、电子装置及其相关数据传输方法
CN103257813A (zh) * 2012-02-21 2013-08-21 海尔集团公司 一种共享设备的确定方法和文件传输方法以及系统
CN104507160A (zh) * 2014-12-16 2015-04-08 福建星网锐捷网络有限公司 无线网络定位方法、接入点及定位服务器
CN106405495A (zh) * 2016-09-30 2017-02-15 上海乐蜗信息科技有限公司 Vr设备定位系统及其定位方法
CN106603609A (zh) * 2015-10-16 2017-04-26 中兴通讯股份有限公司 文件发送、传输方法及装置
CN107277147A (zh) * 2017-06-28 2017-10-20 上海斐讯数据通信技术有限公司 移动终端的文件传输方法、装置及计算机处理设备
US20180121073A1 (en) * 2016-10-27 2018-05-03 International Business Machines Corporation Gesture based smart download
CN109690967A (zh) * 2016-09-15 2019-04-26 高通股份有限公司 基于天线扇区的无线定向共享

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015183756A1 (en) * 2014-05-31 2015-12-03 Apple Inc. Message user interfaces for capture and transmittal of media and location content
CN107943489B (zh) * 2017-11-14 2019-12-17 维沃移动通信有限公司 数据分享方法及移动终端
CN110568767B (zh) * 2019-07-31 2021-01-29 华为技术有限公司 一种智能家居设备选择方法及终端

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102646012A (zh) * 2011-02-22 2012-08-22 宏碁股份有限公司 手持式装置、电子装置及其相关数据传输方法
CN103257813A (zh) * 2012-02-21 2013-08-21 海尔集团公司 一种共享设备的确定方法和文件传输方法以及系统
CN104507160A (zh) * 2014-12-16 2015-04-08 福建星网锐捷网络有限公司 无线网络定位方法、接入点及定位服务器
CN106603609A (zh) * 2015-10-16 2017-04-26 中兴通讯股份有限公司 文件发送、传输方法及装置
CN109690967A (zh) * 2016-09-15 2019-04-26 高通股份有限公司 基于天线扇区的无线定向共享
CN106405495A (zh) * 2016-09-30 2017-02-15 上海乐蜗信息科技有限公司 Vr设备定位系统及其定位方法
US20180121073A1 (en) * 2016-10-27 2018-05-03 International Business Machines Corporation Gesture based smart download
CN107277147A (zh) * 2017-06-28 2017-10-20 上海斐讯数据通信技术有限公司 移动终端的文件传输方法、装置及计算机处理设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143769A (zh) * 2021-12-08 2022-03-04 Oppo广东移动通信有限公司 内容分享方法、装置、设备、介质及计算机程序
WO2024114307A1 (zh) * 2022-11-28 2024-06-06 歌尔科技有限公司 设备通信方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN113194454B (zh) 2023-02-07
CN113194454A (zh) 2021-07-30

Similar Documents

Publication Publication Date Title
WO2021013158A1 (zh) 显示方法及相关装置
WO2021129326A1 (zh) 一种屏幕显示方法及电子设备
WO2021139768A1 (zh) 跨设备任务处理的交互方法、电子设备及存储介质
CN114397979B (zh) 一种应用显示方法及电子设备
WO2021052147A1 (zh) 一种数据传输的方法及相关设备
WO2020177622A1 (zh) Ui组件显示的方法及电子设备
WO2021103981A1 (zh) 分屏显示的处理方法、装置及电子设备
WO2021213164A1 (zh) 应用界面交互方法、电子设备和计算机可读存储介质
WO2020134869A1 (zh) 电子设备的操作方法和电子设备
WO2021000839A1 (zh) 一种分屏方法及电子设备
WO2021000804A1 (zh) 锁定状态下的显示方法及装置
WO2021082835A1 (zh) 启动功能的方法及电子设备
WO2021143650A1 (zh) 数据分享的方法、电子设备
WO2021036770A1 (zh) 一种分屏处理方法及终端设备
CN113794796B (zh) 一种投屏方法及电子设备
WO2020155014A1 (zh) 智能家居设备分享系统、方法及电子设备
CN116360725B (zh) 显示交互系统、显示方法及设备
WO2020238759A1 (zh) 一种界面显示方法和电子设备
CN112130788A (zh) 一种内容分享方法及其装置
WO2022028537A1 (zh) 一种设备识别方法及相关装置
WO2022063159A1 (zh) 一种文件传输的方法及相关设备
WO2021196980A1 (zh) 多屏交互方法、电子设备及计算机可读存储介质
WO2022166435A1 (zh) 分享图片的方法和电子设备
WO2022022674A1 (zh) 应用图标布局方法及相关装置
CN114079691B (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: 21741211

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21741211

Country of ref document: EP

Kind code of ref document: A1